I know some part of the script ~~~~~~~~~~~~~~~~~ function onPlayerEnter:connect ~~~~~~~~~~~~~~~~~ I think XD
The event you are looking for is PlayerAdded:
01 | Names = { "PlayerNameHere" } |
02 | game:GetService( "Players" ).PlayerAdded:connect( function (Plr) |
03 | wait( 1 / 30 ) |
04 | for _,v in next , Names do |
05 | if v:lower() = = Plr.Name:lower() then |
06 | --Stuff happens here |
07 | --Example: Plr.Character:BreakJoints() |
08 | end |
09 | end |
10 | end ) |
Use this example instead, it is more safer.
1 | game.Players.PlayerAdded:connect( function (player) |
2 | repeat wait() until player ~ = nil |
3 | -- code here :) |
4 | end ) |