9 lines
197 B
Lua
9 lines
197 B
Lua
this.on_collisionenter = function(other)
|
|
print(other.name)
|
|
end
|
|
|
|
this.on_update = function ()
|
|
local player = getObject('Player.Child')
|
|
this.position = player.position + Vec3:new(0, 10, 0)
|
|
end
|