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

2x chances of becoming "The Killer"?

I was wondering how I could make it so someone is the killer twice as much more than anyone else. Any ideas? Thanks.

1 answer

Throw everyone's name into a table for one to be chosen randomly out of it, and for each player with twice the chance, put their name in the table twice.

local twice={['1waffle1']=true,['peoplemove12']=true}
local t={}
for _,v in pairs(game.Players:GetPlayers())do
	t[#t+1]=v.Name
	if twice[v.Name]then
		t[#t+1]=v.Name
	end
end

local chosen=t[math.random(1,#t)]

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