06-09-2011, 10:52 PM
(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