How can I make these random number values work in LocalScript?

Hi all so I have this code system (kinda like piggy)

In the video is the model. The left side is supposed to be randomly generated codes so they can be put in and destroy the door.


This is the code that runs the random numbers generated but when I test in game the numbers dont show/generate! This script is in “StarterCharacterScripts”


This code allows the players to enter the numbers with the + or - and they work perfectly fine. I have 3 of these for each number pad.

I would dearly appreciate any type of help or guidance as I am not very experienced with scripting. Thank you :slight_smile:

Yall nevermind! It was a dumb error on my end lol! In the first script for the numberpad variable it wasnt correct so I changed it to game.Workspace.Alleyspace.Numberpad

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