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

Help with intvalues

Asked by
Damo999 182
10 years ago

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.

0
I don't understand your question...please provide more information. Freemium 110 — 10y
0
Are you asking how to pick one random player from all the players in the game? AxeOfMen 434 — 10y
0
Yes AxeOfMen that is what i meant. Damo999 182 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago

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)
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 Damo999 182 — 10y
0
I fixed it DragonSkyye 517 — 10y
0
Thanks this actually did help. Damo999 182 — 10y
0
Your welcome DragonSkyye 517 — 10y
Ad

Answer this question