script.Parent.MouseButton1Down:connect(function(Click) local player = game.Players.LocalPlayer player:LoadCharacter() end)
Scripts that access 'LocalPlayer' must be used in LocalScripts within a Local directory, such as the PlayerGui.
game.Players.PlayerAdded:connect(function(nP) script.Parent.MouseButton1Down:connect(function(Click) local player = nP player:LoadCharacter() end) end)