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)

1 comment
Doesn't work, still thanks for trying to help