Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make everyone have this command?

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)

3 comments

0

remove lines 1, 4,5, 7, 8

0

Thank you So much.

0

I posted an example, feel free to use those if needed.

1 answer

✓ Accepted answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.