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

Why does this script not work?

No error at all. I want the script to give the tool to all players.

while true do wait(3) local players = game.Players:GetChildren() if #players >= 1 then local Gun = game.Lighting.Springfield:Clone() Gun.Parent = players.Backpack end end

1 answer

✓ Accepted answer

You could simply just get the players with a for _,v in pairs(game.Players:GetPlayers()) dostatement like so...

for _,v in pairs(game.Players:GetPlayers()) do
	local Tool = game.Lighting.Springfield
	Tool:Clone().Parent = v.Backpack
end

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