So, my TP all button on a control panel im making, dosen't work. I tried making a test on 2 players but nothing happened when i clicked the button, not even an error.
Here is the code:
local button = script.Parent
function clicked(player)
for _, players in pairs(game.Players:GetPlayers()) do
if players.Character then
players.Character.Torso.CFrame = player.Character
end
end
end
script.Parent.MouseButton1Down:connect(clicked)
