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

How do you find 2 random players?

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

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.

1 comment

0

You would also just delete the give item stuff.

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