Answered by
7 years ago Edited 7 years ago
Like @WoolHat said, math.random
uses two numbers and then chooses one in between, but the math.random
generator will always have a certain order unless you use math.randomseed
. math.randomseed gives the generator a random 'seed' therefore, the number will always be different.
3 | if script.Parent.Parent.Parent.Parent.stats.BornZone.Value = = "None" then |
4 | script.Parent.Parent.Parent.Parent.stats.BornZone.Value = math.random( 1 , 6 ) |
6 | script.Parent.MouseButton 1 Click:connect(onClicked) |
Hope this helps!