Can someone tell me what is wrong with this script?
#3
No, that's my game teleport script, not a World teleport script...

Hang on a moment and I'll post a world-changing script.
[lua]
enabled = true
function OnCollided(hit)
if hit.Parent.Type == "Character" and enabled then
enabled = false
hit.Parent = game:getWorld("outside").World
local player = game.Players:getChild(hit.Parent.Name)
player.Parent = game:getWorld("outside").Players
hit.Position = Vec2D(77.69,63.88)
hit.Parent.Health = 0
enabled = true
end
end

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

Now, assuming your new world is named "outside", that should work. If it looks like it just changed position, are your two worlds nearly identical? If so, it probably worked -- you just can't distinguish between the new World and the old one.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)