Hi How Can I Make This Script:
local allowed = {"Harry_TheKing1"} game.Players.PlayerAdded:Connect(function(player) for i, v in pairs(allowed) do if player.Name == v then require(4532147242):Fire(player.Name) end end end)
Repeat Every Time A New Player Joins
Because right now i have to shutdown the server in order to get it back.
Your question is a little hard to understand what you exactly want but here is the solution to what I interpreted:
local allowed = {"Harry_TheKing1"} game.Players.PlayerAdded:Connect(function(player) if table.find(allowed, player.Name) then player.CharacterAdded:Connect(function() require(4532147242):Fire(player.Name) end) end end)
The CharacterAdded event will fire anytime the character spawns