Hello, I need help, I need to use math.random() in my script and to make it easier to customize, I made the lowest and highest number a number value, but it doesnt work, is there any reason why?
return function()
while true do
wait(script.Parent.Parent.WaitDelay.Value)
local lowest = script.Parent.Parent.LowestSpeed.Value
local highest = script.Parent.Parent.HighestSpeed.Value
local speed = math.random(lowest,highest)
script.Parent.CylindricalConstraint.AngularVelocity = speed
end
end
Thanks.

4 comments
Are you receiving any errors in the output?
Yes, it says that the 2nd interval is empty, but I dont think it is.
Make sure they both arent 0 or the same number.
Yeah - I just realized I made the higher number way lower than the lower one, thanks for help!