what's wrong with this random number selector?
local value = script.Parent.Value function random() value.Value = math.random(1,2,3,4,5,6,7,8) wait(1) value.Value = 0 end script.Parent.ClickDetector.MouseClick:connect(random)
I actually don't know what's wrong and this is my first time using math
local value = script.Parent.Value function random() value.Value = math.random(1,8) wait(1) value.Value = 0 end script.Parent.ClickDetector.MouseClick:connect(random)
math.random
Does not change the value to any of the numbers listed. You have to use a range of numbers, not individual.
Hope it helped!