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

how do i make a script that give's a random person a gear?

like the murder mystery that only one player is the killer

1 comment

0

Don't make requests on SH.Please read the rules and abide by them before you ask anymore questions.

1 answer

-- Get your tool, blah blah...
-- If your tool is a variable named "tool", then:

tool.Parent = (game.Players:GetPlayers())[math.random(1, #(game.Players:GetPlayers()))].Backpack

1 comment

0

If you plan on using the GetPlayers() table for anything else, it would probably make sense to store it in a table.

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