In case you dont know much about scripting and want that script for a piece of paper, here is the script I wrote: local correctcode = game.Workspace.CodeDoor.CorrectCode local text = script.Parent text.Text = correctcode.Value
yes thank you so much, it works but I fix the correct code to local correctcode = game.Workspace["Code Door"].CorrectCode local text = script.Parent text.Text = correctcode.Value bc CodeDoor value is a model so I fix to that and my it works
Thank you so much for making this, i have been struggling to get a code or even a model to be like that. I appreciate every effort you have put into this model, once again thank you!
OK so heres what you need to do Step 1: In the Code Door model, click on CorrectCode. Step 2: Insert a part in CorrectCode (You can name the part whatever you want.) Step 3: Insert a SurfaceGui in the part. Step 4: Insert a TextLabel in the SurfaceGui. Step 5: Click on the TextLabel that you inserted, go to properties, and scroll down until you find "Size" set the value to {1, 0},{1, 0} (Doing this makes the text fully fit the size of the part) Step 6: Drag the Generator script into the text Label Step 7: Delete everything in the Generator script and put in the following code: local GenerateCode = math.random(1000, 9999) local CorrectCode = script.Parent.Parent.Parent.Parent CorrectCode.Value = GenerateCode script.Parent.Text = GenerateCode
@user-uc1kf2tk6o you have to insert a surfacegui, just right click on the part, click insert, and scroll down until you find an option that says surfacegui
To make your own code input your specific code in CorrectCode.Value in the generator script. i.e. CorrectCode.Value = your code Dont change anything else in the script
Hey! I got a amazing idea tht might help other people too with making their game. Could you make a part that triggers a Animation Event. Something like you're in a hallway and you touch an invisible part that triggers a animation of a rig module a few studs away from you. And that also only plays once, Its not actually a jumpscare but i think you get the idea what i mean.. It woud be very helpfull if you could make that! Also i have been using your tips , Tricks, and kits. Alot to figure out more developing stuff.. Thank you.
make a gui and type the gui for a example screengui.textgui.visible = false wait (60) --means how much time till the gui pops up screengui.textgui.visible = true wait(5) --how many seconds till the gui disapears screengui.textgui.visible = false
you can just make anchored transparent part with collision off so player can go inside and the npc's pathfind will thinks there's an obstacle to get to the player and will ignore and go back to waypoint.
can you show us how to make a game like left 4 dead series? i wanted to make the beatdown thing that the special zombies do, if you do i'll be really appreaciated, these videos help out alot.
When I try to change the correct code value to have a 0 as the first number, it gets rid of tue 0 and the code does not work. Is there a way to fix this?
Hello i have answer I set up the dummy what will chase player from horror kit how u said but he still dont work and he dont chase player if i play test my experience
im not sure if this is what you mean, but if you want a code to apply and it doesnt change, go into the correct code value script and replace the math.random with your numbers. happy to help!
if u dont want it to generate and what you code here it is: local CorrectCode = script.Parent local GenerateCode = (Your code ) CorrectCode.Value = GenerateCode
If you still need to know how to do it heres how I did it: Step 1: Make 4 parts with a surface gui so you can put text labels in them Step 2: Name each of your parts so they stay organized, e.g. Part1, Part2, Part3, Part4 Step 3: Insert scripts into each of the surface guis Step4: Identify the name of your door (You might need to change this in each of the scripts) Here's the script. Edit accordingly and adjust to your preferences if needed: Put this inside your Part1 ----------------------------------------------------------- -- This script goes into the script inside Part1 wait(1) -- Give it some time for the code to generate local correctCode = game.Workspace.CodeDoor.CorrectCode -- Reference the CorrectCode value. You can edit the name of the door if you need to local textLabel = script.Parent:FindFirstChild("TextLabel") -- Get the TextLabel inside Part1 -- Ensure the TextLabel exists if textLabel then local code = tostring(correctCode.Value) -- Convert the generated code to a string textLabel.Text = code:sub(1, 1) -- Set the TextLabel to the 1st digit end ------------------------------------------------------------- Copy this script into each of the surface guis inside of the parts, but change (1, 1) to the correct digit like if its Part2 then change it to (2, 2) Part 3 - (3, 3) Part 4 - (4, 4) This is what worked for me so if you're having issues let me know so I can help
yo I've spent about 2 hours trying to do the paper that says the code and didn't make it, please could you write me the script? :( I would really appresiate it
You can create you own code just do this instead of generating a random code: local CorrectCode = script.Parent local GenerateCode = (thecodeyouwant) CorrectCode.Value = GenerateCode
Join the Discord Server! discord.gg/9PcAgJ7USm
ok
Hey @monkeydeveloper how do i put the code on paper?
WHAT IS THE CODE
In case you dont know much about scripting and want that script for a piece of paper, here is the script I wrote:
local correctcode = game.Workspace.CodeDoor.CorrectCode
local text = script.Parent
text.Text = correctcode.Value
wait im confused where it says correct code do we put the correct code? orrrr
Its not working
yes thank you so much, it works but I fix the correct code to
local correctcode = game.Workspace["Code Door"].CorrectCode
local text = script.Parent
text.Text = correctcode.Value
bc CodeDoor value is a model so I fix to that and my it works
@@futureforanimfor me it still doesn't work.
@@futureforanim where do I put the local script in?
Thank you so much for making this, i have been struggling to get a code or even a model to be like that. I appreciate every effort you have put into this model, once again thank you!
DUDE LITERALLY A LIFE SAVER THABK YOUUU
just subbed :)
(also can you make the tutorial on how to make the code generate on a paper im new to scripting)
It’s sad he did not reply because I’m asking that question too 💀
OMG THIS IS THE FIRST TIME ONE OF THESE WORKS TYSM!
love the video great work!!!!
You have 3K subs?! Good job man! I remember when you had 60
Thanks for sticking around!
If anyone doesn't know how to make their own code an easy way is to just make the generator range both the same number (your code)
Change the number only???
Smart
thanks!! i needed this
or just delete the generate script and change the "correct code" value to ur code
Wait can you tell me how to change those code in roblox studio pls??
Like how to find that code where put it
Oh nice thank you ❤
how do i get the piece of paper to have the code on it? im new to coding and know nothing
OK so heres what you need to do
Step 1: In the Code Door model, click on CorrectCode.
Step 2: Insert a part in CorrectCode (You can name the part whatever you want.)
Step 3: Insert a SurfaceGui in the part.
Step 4: Insert a TextLabel in the SurfaceGui.
Step 5: Click on the TextLabel that you inserted, go to properties, and scroll down until you find "Size" set the value to {1, 0},{1, 0} (Doing this makes the text fully fit the size of the part)
Step 6: Drag the Generator script into the text Label
Step 7: Delete everything in the Generator script and put in the following code:
local GenerateCode = math.random(1000, 9999)
local CorrectCode = script.Parent.Parent.Parent.Parent
CorrectCode.Value = GenerateCode
script.Parent.Text = GenerateCode
@user-uc1kf2tk6o you have to insert a surfacegui, just right click on the part, click insert, and scroll down until you find an option that says surfacegui
@@a_thiing got it. thanks!
@@parxgamer7347 np!
@@a_thiing thanks
Thank you!,this really help me!
To make your own code input your specific code in CorrectCode.Value in the generator script. i.e. CorrectCode.Value = your code
Dont change anything else in the script
Nice video!
I was wondering, how do you make the code a different number (specific ones) in each server?
Ty for making this, now I can make my horror game more fun. TYSM
Nice work 👍
Hey! I got a amazing idea tht might help other people too with making their game. Could you make a part that triggers a Animation Event. Something like you're in a hallway and you touch an invisible part that triggers a animation of a rig module a few studs away from you. And that also only plays once, Its not actually a jumpscare but i think you get the idea what i mean.. It woud be very helpfull if you could make that! Also i have been using your tips , Tricks, and kits. Alot to figure out more developing stuff.. Thank you.
wait so whats the code?
you can put your own code just deleting, after value you must delete that an put the code you want
Nice video! 👍👍
Thank you!
@@monkeydeveloper how do you make the paper with the code
@@monkeydeveloper yeah how
@@monkeydeveloper i wanna know how the fuck i make only ONE code, i dont want a random code.
how do you make it so that the code pops up on the screen after a certain amount of time??
make a gui and type the gui for a example
screengui.textgui.visible = false
wait (60) --means how much time till the gui pops up
screengui.textgui.visible = true
wait(5) --how many seconds till the gui disapears
screengui.textgui.visible = false
How do u make random code per server?
Can you script it to where the door will close after a couple of seconds?
i need this too
Did any of you figure it out?
@@LemonOaks unfortunately no
amazing video
How do I generate the code for the script because the surfacegui for the text label didn't work.
Try rotating the part because it’s most likely that the text is on the other side.
can you make it so the code is randomly generated per person/server
thats what I'm sayin lol
Can you point me how should this work with * and # buttons? I need this for intercoms in Roblox
Can you add hiding spots to your horror game kit?
you can just make anchored transparent part with collision off so player can go inside and the npc's pathfind will thinks there's an obstacle to get to the player and will ignore and go back to waypoint.
@@Reikizen0 yoooo ty
im wondering if you can actually make the door close after a bit, like a minuet or so
YOU CAN
How do u though?
How do we know what the correct code is and how do we change it. Pls help me!
one question how do you set a text from a script?
can you show us how to make a game like left 4 dead series? i wanted to make the beatdown thing that the special zombies do, if you do i'll be really appreaciated, these videos help out alot.
search for it on youtube, some people have made the zombie special grabbing animations free to use.
idea: each number has a location to find out, make the numbers random and different locations so the game isnt boring
The door doesnt open when i put in the correct code how do I fix?
how do i see the correct code
How do you make the door close after a few seconds so someone else types it too
where do i put the right numbers im confused
Why doesn’t the door open when I enter the correct code?
hey can you add flickering lights?
how do i make the door larger/change the door but not the size of the keypad
How to add walking animations to your monster in ur horror game kit
can you show the code that displays the code on a piece of paper?
he explained
How can I make it not random?
how to change the code ? plz help ! plz
When I try to change the correct code value to have a 0 as the first number, it gets rid of tue 0 and the code does not work. Is there a way to fix this?
Hello i have answer
I set up the dummy what will chase player from horror kit how u said but he still dont work and he dont chase player if i play test my experience
where do I put the code in so I can make the door work?
oh you changed your name, ngl it suits you better 👍
Hey dude can you tell me how to close the door?
Monkey dev it’s me Bigdog nice video man
how do you make the white outline on the door when you point at the door?
how do you create your OWN code? like one that you know that goes for every server?
im not sure if this is what you mean, but if you want a code to apply and it doesnt change, go into the correct code value script and replace the math.random with your numbers. happy to help!
Can 5 digit codes go into the code door?
if u dont want it to generate and what you code here it is:
local CorrectCode = script.Parent
local GenerateCode = (Your code
)
CorrectCode.Value = GenerateCode
How to do 1 is yes but not random, please answer ?
how do you make it where it isnt a generated code?
Set the random code script so that it will always generate the number you want
@@FluxitesOtherChannelbut how?
I still dont understand which line in the script can put the code
How do we make it different every time
How do I make it so that each paper has one of the numbers needed for the code?
If you still need to know how to do it heres how I did it:
Step 1: Make 4 parts with a surface gui so you can put text labels in them
Step 2: Name each of your parts so they stay organized, e.g. Part1, Part2, Part3, Part4
Step 3: Insert scripts into each of the surface guis
Step4: Identify the name of your door (You might need to change this in each of the scripts)
Here's the script. Edit accordingly and adjust to your preferences if needed:
Put this inside your Part1
-----------------------------------------------------------
-- This script goes into the script inside Part1
wait(1) -- Give it some time for the code to generate
local correctCode = game.Workspace.CodeDoor.CorrectCode -- Reference the CorrectCode value. You can edit the name of the door if you need to
local textLabel = script.Parent:FindFirstChild("TextLabel") -- Get the TextLabel inside Part1
-- Ensure the TextLabel exists
if textLabel then
local code = tostring(correctCode.Value) -- Convert the generated code to a string
textLabel.Text = code:sub(1, 1) -- Set the TextLabel to the 1st digit
end
-------------------------------------------------------------
Copy this script into each of the surface guis inside of the parts, but change (1, 1) to the correct digit
like if its Part2 then change it to (2, 2)
Part 3 - (3, 3)
Part 4 - (4, 4)
This is what worked for me so if you're having issues let me know so I can help
@@HannahMariee777 you're the goat
how to do know what the code is?
Can you make walls for the realistic horror game please
PLEASE MAKE A HIDING FEATURE!!!
That is in his realistic horror game kit.
check it out! :D
hello whens the next door episode?
yo I've spent about 2 hours trying to do the paper that says the code and didn't make it, please could you write me the script? :( I would really appresiate it
You can create you own code just do this instead of generating a random code:
local CorrectCode = script.Parent
local GenerateCode = (thecodeyouwant)
CorrectCode.Value = GenerateCode
How do i make my code?
Yo can you make a tutorial on customizing the monster from ur horror series
I plan on doing that soon
@@monkeydeveloper OMG TYSM I HAVE BEEN REQUESTING IT FOR A WHILE TYSM
@@monkeydeveloper lets gooo
It works but the door won’t open 😭
I don't understand how to do that with the code and the paper.
how do i know the correct code?
Why if i interact a door it doesnt work
can u make it randomly genorate a code on the paper??
didn't he said that in the video?
yes but i cant hear what he says @@wasnexhere
I finally found a door that could work, but it wont close -_-
how to make your own code and not generated
How will i know the code
make it so it closes in a couple minates so the next person has to gues the code
will it close later?
İt did not
The script in the generator just said “ print (Hello World!) “
When the code is correct, de door stay close i think bcs she don't have script, someone can give me the script pls ?
There’s a script so I opened it to find no code inside. And the door won’t open when I type the right code :(
do you have the answer now pls ? I have the same prblm
nope
I cant insert the code into the paper.
whats the code for it
when i input my code the door makes the right noise but it doesnt open???????//
yeah me too, do u now why or not ?
@@serwaxsg nope
Ummm the door works but it doesn’t open if i type in the correct code, can someone help me pls
do you have the answer now ?
PLS HELP ME THE DOOR DOESNT WORK
Sameee
How to close door
Ni siquiera a lo inglés pero lo entendí 😅
why is my comment gone this always happens for some reason.
I cloud not find the exact door you used!
ty
Why is the code 0000?
my door isnt opening
+
HOW DO I EVEN USE THIS
Your generator doesn’t work and the door is bugy
please make slap battles tutorial
lol. u play doors cuz u made vitamins.
how to add my code !!! ?
yum
It did not work
I think the code is 2041
add this idea button door fake door