2DWorlds Forums
Teleport Tool - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: Teleport Tool (/showthread.php?tid=1089)



Teleport Tool - Jacob__mybb_import1 - 10-17-2010

Put this script in a tool, then click somewhere to teleport there:

Code:
tool = script.Parent
player = tool.Parent.Parent
if player:isA("Player") then
    body = player.Character.Body
    link(script.Parent.MouseDown, function(button, point)
        body.Position = point
    end)
end