Hi, my name is shieldmr3, my main thing/job is scripting, I do some building too. I’m an expert at lighting and scripting them!
I have been using math.random a lot, I have noticed that when I make a random number using math.random, it keeps generating the same number every time, here’s an example:
local randomnumber = math.random(1, 50)
while wait() do
print(randomnumber)
end
So when it prints, it keeps printing the same number every time.
how can this be fixed? is this a problem with my script? and if it is, then how can I fix it?
I will! Thank you so much! I know my question sounded kind of a beginner but, if you need any help, just ask me, I make lots of cool things such as an animated jumpscares, here is the link if you want to see it:
I make most of the things, but I like unique things such as jumpscares, camerashake, guis (announcements gui, ban and kick, suggestion that sends it to your discord, main game screen (kind of an intro, animating, etc.)
If you or anyone needs help, please ask me, I like helping people as much as possible!
Hi, well, they all gave me an answer, and I appreciate that. But they all answered at the same time, even tho FactorOfTheThird was first, but all of them answered right after. So I didn’t give anyone solution just to be fair. I did give them all likes too.