Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

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

Asked by 10 years ago

like the murder mystery that only one player is the killer

0
Don't make requests on SH.Please read the rules and abide by them before you ask anymore questions. Kozero 120 — 10y

Closed as Not Constructive by AmericanStripes

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 10 years ago
-- 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
0
If you plan on using the GetPlayers() table for anything else, it would probably make sense to store it in a table. DiamondBladee 135 — 10y
Ad