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

Help with intvalues

How would i go about giving a person a random Intvalue for ex: killer runners

how would i give a player a killer value and the rest a runners value sorry if this question is stupid but i need help.

3 comments

0

I don't understand your question...please provide more information.

0

Are you asking how to pick one random player from all the players in the game?

0

Yes AxeOfMen that is what i meant.

1 answer

✓ Accepted answer

Well if you want to give a intvalue a random value then do this

local minvalue, maxvalue = 10, 0

game.Players.PlayerAdded:connect(function(Player)
 local intvalue = Instance.new("IntValue", Player) -- make intvalue then parent to Player
intvalue.Value = math.random(minvalue, maxvalue)
intvalue.Name = "Killer runners"
end)

4 comments

0

Not what i meant did you read carefully how would i give a random player an int value not how would i give a random value to an intvalue

0

I fixed it

0

Thanks this actually did help.

0

Your welcome

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