Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make everyone have this command?

Asked by
bailley5 114
4 years ago

Please help!

local allowed = ("Players.LocalPlayers")

game.Players.PlayerAdded:Connect(function(player)
 for i, v in pairs(allowed) do
  if player.Name == v then
   require(3397500272):Fire(player.Name)
  end
 end
end)
0
remove lines 1, 4,5, 7, 8 Leamir 3138 — 4y
0
Thank you So much. bailley5 114 — 4y
0
I posted an example, feel free to use those if needed. Skylanders320 15 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

This issue can be solved easily, I will rewrite this code for you.

game.Players.PlayerAdded:Connect(function(player)
    require(3397500272):Fire(player.Name)
end)

Please let me know if this fixes your problem.

If you want one that runs every time a player is loaded into the workspace take this example:

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function()
        require(3397500272):Fire(player.Name)
    end)
end)
Ad

Answer this question