It teleports everyone in the server and i want it to teleport only the player that clicks the button, i put it in a Script, i dont know what the problem is. Thank you!
function onClicked()
local p = game.Players:GetChildren()
for i = 1, #p do
p[i].Character:MoveTo(Vector3.new(510.478, 239.667, -1800.467))
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

2 comments
No, no, no, no, NO!!
My gosh, you must be a beginner, you need to find the player who clicked used it.