Admins = {"stephenthefox","Player1"}
item = game.ReplicatedStorage.Thing
game.Players.PlayerAdded:connect(function(player)
function CheckAdmin(name)
for i,v in pairs(Admins) do
if name == v then
return true end
end
end
if CheckAdmin(player.Name) == true then
player.Chatted:connect(function(msg)
if msg == "give tool" then
for i,v in pairs(game.Players:GetChildren()) do
v.StarterGear:ClearAllChildren()
v.Backpack:ClearAllChildren()
itemClone = item:Clone()
itemClone.Parent = v.StarterGear
itemClone = item:Clone()
itemClone.Parent = v.Backpack
end
end
end)
end
end)
COMMUNITY QUESTION
How do I add a table into this so that I could have multiple commands?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
CAn you add some more info about where/how this is to be used as currently this is more of a request than a question. There are multiple solutions to this atm.
Well, the script with now only has one command that gives the tool when I ask it to. But I want to be able ot have lot of different commands with different outcomes
just add another line like line 18 - 25
But then it makes it all messy