The title says it all but basically I made a 4 digit code system and instead of having the same code every time I want the script to generate a random code for it instead.
1 Like
local RandomCode=math.random(1000, 9999)
use math.random, it will return a random number within the ranges provided