Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Teleporters tping the player in a random spot?

So ive been working with Teleporters and when i teleport i dont go where im supposed to go how can i fix this?

Script

local ClickDetector = script.Parent.ClickDetector
local TP = script.Parent.Parent.TP_2


ClickDetector.MouseClick:Connect(function(plr)
plr.Character:MoveTo(TP.Position)



end)

1 answer

✓ Accepted answer

When I tested, I had no issues.

local ClickDetector = script.Parent.ClickDetector
local TP = script.Parent.Parent.TP_2


ClickDetector.MouseClick:Connect(function(plr)
	local Pos = TP.Position
	local character = plr.Character
	local Root = character:WaitForChild("HumanoidRootPart")
	Root.Position = Pos
end)

If you still have issues, check spelling and make sure you don't have multiple TP_2's.

This discussion is preserved as it was. New answers, comments, and votes are closed.