Anybody have a World Teleporter?
#14
(06-09-2011, 09:24 PM)Jacob_ Wrote: [lua]
function OnCollided(hit)
if hit.Parent.Type == "Character" then
hit.Parent.Parent = game:getWorld("test").World
hit.Parent.Position = Vec2D(newX, newY)
end
end

link(script.Parent.Collided, OnCollided)
[/lua]

[lua]
function OnCollided(hit)
if hit.Parent.Type == "Character" then
hit.Parent.Parent = game:getWorld("test").World
hit.Parent.Body.Position = Vec2D(newX, newY)
end
end

link(script.Parent.Collided, OnCollided)
[/lua]

You forgot the body hehehe :3
[Image: AmZJnA9.png]
Reply


Messages In This Thread
Anybody have a World Teleporter? - by Brassrhino - 06-09-2011, 07:58 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)