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.
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.
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)
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
I fixed it
Thanks this actually did help.
Your welcome
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
I don't understand your question...please provide more information.
Are you asking how to pick one random player from all the players in the game?
Yes AxeOfMen that is what i meant.