This script is suppose to tp anyone to 1,1,1 if touched a part
script.Parent.Touched:connect(function(hit) local Player = game.Player.PlayerAdded Player.Character:MoveTo(Vector3.new(1,1,1)) end)
script.Parent.Touched:connect(function(hit) for i,v in pairs(game.Players:GetChildren()) do if v.Character then v.Character:MoveTo(Vector3.new(1,1,1)) end end end)
When you reference it you only referenced the hit which is an object. To get all the players in the server we use game.Players:GetChildren() then we use a for i,v in pairs to go thru all of them.