Once the tool handle hits the block, I want it to wait a few seconds then teleport everyone to the new position. I'm trying to do this but each time I test it, it doesn't work. The script is giving me an error as well that says forgot to close then and do. Here's my script so far.
script.Parent.Touched:connect(function(hit)
if hit.Name == "Handle" then
wait(3)
local p = game.Players:GetChildren()
for i = 1, #p do p[i].Character:MoveTo(Vector3.new(0, 38.8, 1))
end

6 comments
I tried to do that, but it does the same. I'm not sure...
I think you're missing an end at the end of your script. Put end) at the last line.
I tried to add the end) it's still saying forgot to close do and it wont execute the teleport
I edit my post, try to do that.
I believe it has something to do with the function, I tried it alone and it teleported. It's just the first part that needs changing.
Try adding a second ) after hit.