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

[SOLVED] Teleporter script isn't working for me, can someone tell me why it is not working properly?

I'm trying to make a teleporter which I know how to make but for some reason this script isn't working. If you can help me that'd be awesome, thanks!

to = game.Workspace.MiniGame2.To
reset = false

script.Parent.Touched:Connect(function(hit)
	local humanoid = hit.Parent:FindFirstChild("Humanoid")
	if reset == false then
		reset = true
		hit.Parent.HumanoidRootPart.Position = to.Position
		wait(1)
		reset = false
	end
end)

2 answers

Try changing Position to CFrame? (I'm new so dont expect this to work)

1 comment

0

Doesn't work, still thanks for trying to help

I found the correction myself by experimenting random things. I apparently needed to just anchor both parts and then it worked for some reason, lol.

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