How can I have a code in a game that changes each time you play it?

This would be used in like secrets and stuff in my game.

I don’t think I can provide exact steps right now but you could use random number generation to draw a random number. That number can either be a digit in your code or be used to choose a letter, number, or other character in your code.

1 Like

Well here is a link for RNG:

Edit 1: What type of game is this?

2 Likes

I see this guide linked a lot. It’s not a guide to just random number generation on Gimkit in general, rather a guide to recreating a game on Roblox. In this case, the way they use random number generation isn’t super relevant to the current topic.

As for the original question, you could create a code fairly easily by having a trigger run on game start with a block that sets a property to a random number 0 through 9999.

Oh!

Didn’t expect the creator of the guide to show up!

Thanks! This should help out a lot.

1 Like

I understand the confusion from the title, my fault. I changed the title to reflect that it is for RNG Games, like the one I recreated. However, it is good for randomized chests, loot boxes, and chances. But for something truly random, just a random number from X to Y will work just fine.

2 Likes

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.