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

2 comments
oh, thanks
However, if you want to achieve randomness, I suggest a line before your function which says; math.randomseed(tick())