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)


4 comments

0

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.

0

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

0

just add another line like line 18 - 25

0

But then it makes it all messy