Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help me with this teleport script? Output gives no error?

Asked by 9 years ago
local a = Instance.new("Part", game.Workspace)
a.Name = "Teleport"
a.Position = Vector3.new(-5.848, 13, -95.462)
a.Anchored = true
local b = Instance.new("ClickDetector", a)
function playermover(hit)
local torso = hit.Torso
torso.Position = CFrame3.new(7, 5, -55)
end
game.Workspace.Teleport.ClickDetector.MouseClick:connect(playermover)``

Answer this question