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

How do you find 2 random players?

Asked by 10 years ago

How do you find 2 random players, within a script? I need help with this, and I'm guessing there's a chance the player could turn out to be both the random players, so how would you make it not pick that player, after he's already been selected?

1 answer

Log in to vote
0
Answered by 10 years ago
local Tool = game.Lighting["Revolver"]
Tool:Clone().Parent = game.Players:GetChildren()[math.random(1, #game.Players:GetChildren())].Backpack
local Tool = game.Lighting["Blade"]
Tool:Clone().Parent = game.Players:GetChildren()[math.random(1, #game.Players:GetChildren())].Backpack 

That would be the Murder Mystery way.

0
You would also just delete the give item stuff. stanford7787 0 — 10y
Ad

Answer this question