invalid argument #2 to ‘random’ (interval is empty)
clone.CFrame = CFrame.new(71, 149, math.random(372, 188))
invalid argument #2 to ‘random’ (interval is empty)
clone.CFrame = CFrame.new(71, 149, math.random(372, 188))
math.random(x,y)
x cannot be larger than y
Switch the digits and it’ll work
math.random(188, 372)
Post withdrawn by author will be deleted
For math.random
statements, argument 1 must be less than argument 2. Therefore, math.random(372, 188)
will NOT work, and math.random(188, 372)
should work.
Let me introduce you to Random.new()
.
More information: Screenshot by Lightshot