Locks and Hidden Keys - Doors Tutorial #5

DISCORD ► / discord
TWITCH ► / gnomecode
TWITTER ► / gnomecoderblx
WEBSITE ► gnome.codes/
TIMESTAMPS ►
00:00 Intro
00:35 Modifying door
06:05 Getting item locations
12:05 Item module script
20:57 Changing randomisation
23:00 Adding sounds
25:40 Outro

Пікірлер: 353

  • @pansirawit
    @pansirawit9 ай бұрын

    If your original key disappears, check if it’s falling into the void or not. If not then check scripts and see which line it disappears. I don’t know what happened but my attachment was called content instead of location so check that too

  • @pansirawit

    @pansirawit

    9 ай бұрын

    If you want to test quickly you can add highlight to your key handle so you can find the key easily This is also good for checking if a normal room has a key or not

  • @mekbok
    @mekbok Жыл бұрын

    i love the amount of effort going into making this series, especially considering how big of a game doors is right now, lots of aspiring and experienced developers are looking to create something like doors. keep up the great work!!

  • @Airdart306

    @Airdart306

    Жыл бұрын

    YOOO ITS MEKBOK. can't wait to play unhinged by the way. have a great day

  • @lennyface987

    @lennyface987

    Жыл бұрын

    Mekbok... I am the first to reply (:

  • @mekbok

    @mekbok

    Жыл бұрын

    @@Airdart306 hey! glad u recognized me... i am proud 🥲

  • @mekbok

    @mekbok

    Жыл бұрын

    @@Airdart306 u have a good day too ❤️

  • @piercenewboy3173

    @piercenewboy3173

    Жыл бұрын

    Me to and it is inspiring for me ;-)

  • @gemmken
    @gemmken Жыл бұрын

    damn, you never fail to impress us with the start room and the very fast update on your tutorials edit: you can put if the Key is a Tool, else it will mistake the player's avatar as the actual Key

  • @IanGamerBoy
    @IanGamerBoy Жыл бұрын

    That was REALLY quick! I was not expecting this! Thanks again for this epic tutorial!

  • @alonepoptart24_6

    @alonepoptart24_6

    Жыл бұрын

    2 days ikr

  • @that_fella_orion
    @that_fella_orion Жыл бұрын

    came out super fast! excited for this episode! :D

  • @michaelmartins6132
    @michaelmartins6132 Жыл бұрын

    Only can imagine that part 6 comes out as fast as part 5. Amazing job!

  • @alejandrorivera9694
    @alejandrorivera9694 Жыл бұрын

    Wow man!!! thank you for this series!!!

  • @Punchie-ThePro
    @Punchie-ThePro Жыл бұрын

    The details are awesome in the rooms!

  • @Pruttesvin
    @Pruttesvin Жыл бұрын

    Looking forward to see what you're adding next! :D

  • @lennyface987
    @lennyface987 Жыл бұрын

    part 2 in a week, part 3 in a week, part 4 in a week, part five IN 2 DAYS. edit: Wow thanks for 30 likes!

  • @SamLight234

    @SamLight234

    Жыл бұрын

    2 days you mean

  • @reyrey_X2

    @reyrey_X2

    Жыл бұрын

    True

  • @lennyface987

    @lennyface987

    Жыл бұрын

    @@SamLight234 Yeah

  • @pedrinhotime

    @pedrinhotime

    Жыл бұрын

    Incrible

  • @pu2f551

    @pu2f551

    Жыл бұрын

    Definently depends on what hes working on, the monsters are probably gonna take more days than usual especially figure and seek

  • @caz0gamz
    @caz0gamz Жыл бұрын

    Wooo hooo! I wasn’t expecting another tutorial so fast! For your great content I’ll reward you with +1 subscriber (with notifications on)

  • @GreatRamilYT
    @GreatRamilYT Жыл бұрын

    im not completed 4th tutorial, and you created new!!!! thank you so much GnomeCode for cool content! :D

  • @weirdsweapons
    @weirdsweapons Жыл бұрын

    Petition for GnomeCode to do a ViewModel tutorial.

  • @bald_rice

    @bald_rice

    Жыл бұрын

    yee

  • @PumpyGT

    @PumpyGT

    Жыл бұрын

    sign

  • @qualitymemes6325

    @qualitymemes6325

    Жыл бұрын

    agree

  • @guestnoobwastaken

    @guestnoobwastaken

    Жыл бұрын

    *signs*

  • @redfire826
    @redfire826 Жыл бұрын

    Let's go!! Keep them coming!! Your doing great!!!

  • @scpplayer8842
    @scpplayer8842 Жыл бұрын

    You're my favorite coder you help me make so many games thank you for these amazing tutorials

  • @MegaYarr
    @MegaYarr Жыл бұрын

    GnomeCode! Hello! I love the series, but there is one thing I have been trying to make for ages: realistic movement, similar to the game Evade if you have played it. Could you make a tutorial for that?

  • @PumpyGT
    @PumpyGT Жыл бұрын

    Hey, thanks for making these tutorials

  • @Texan_countryballs
    @Texan_countryballs Жыл бұрын

    I’m about to say I really love those tutorials I enjoyed them every day I want to see if you can make more of them

  • @Astral_OfficialYT
    @Astral_OfficialYT11 ай бұрын

    TYSM FOR THESE TUTORIALS! You have earned yourself a new subscriber! Also for those that are having problems, here are some tips: If your key is spawning but you cant pick it up, make sure that it is big enough so the prompt can register properly. Make sure to have atleast one drawer or desk per room. This is so you can avoid running into locked doors but theres no drawers or desks, ergo, the key cant spawn. *TYPE EXACTLY THE WAY HE TYPES IT! I HAD TONS OF ERRORS JUST BECAUSE OF SIMPLE TYPOS I MADE*

  • @SunnyNightsStudios

    @SunnyNightsStudios

    3 ай бұрын

    I tried to implement door specific rooms but I always run into an error with the doors no longer generating after the door specific room

  • @Astral_OfficialYT

    @Astral_OfficialYT

    3 ай бұрын

    @@SunnyNightsStudios what code do you use to generate your pre-generated room if thats what you mean

  • @VinactiYT

    @VinactiYT

    2 ай бұрын

    aye this really late but the key spawns in a different room then the lock, know why

  • @HappyDucklingAndFriends

    @HappyDucklingAndFriends

    4 күн бұрын

    for me, it says Key is not a valid member of Folder "Workspace.items"

  • @brick1488
    @brick1488 Жыл бұрын

    when will you put this on your website because i been having lot of errors and i dont know why the code look the same

  • @ValidityValue
    @ValidityValue Жыл бұрын

    Tysm!! I love ur videos

  • @equox6946
    @equox6946 Жыл бұрын

    I did all the script up to the end of item locations but when i tested it everything worked but no part every got spawned into workspace. How do i fix this?

  • @JanBlox
    @JanBlox Жыл бұрын

    Gnome Code, i've finally created a door game! Thanks to you i can add the enemies now

  • @daniilka353
    @daniilka353 Жыл бұрын

    Wow! Thanks for the fast upload! I love you! Pls do rush next episode?

  • @sussy-coder
    @sussy-coder Жыл бұрын

    This came out sooner than expected

  • @aboyandhisdog4463

    @aboyandhisdog4463

    Жыл бұрын

    Ikr

  • @Puzzledmusel86
    @Puzzledmusel86 Жыл бұрын

    You are great at making toturials

  • @jaxgamez3541
    @jaxgamez3541 Жыл бұрын

    Cool! This is helping me make my new doors fan game! Thanks!

  • @alejandrorivera9694
    @alejandrorivera9694 Жыл бұрын

    Ayo gnomecode! did you made the keys unable to spawn in rooms with no drawers? edit: i figured out yes because if there's no furniture folder the room won't furnish so there won't be keydoors in rooms without furniture

  • @joaninhaminimundos4252
    @joaninhaminimundos4252 Жыл бұрын

    congrats, you have talent!

  • @auevi
    @auevi Жыл бұрын

    What if you want a pause before unlocking, like a hold E to unlock

  • @TobyZzz
    @TobyZzz Жыл бұрын

    You should improve the lighting by making it "Future Lighting". Love your videos!

  • @yeshuahansyy1922
    @yeshuahansyy1922 Жыл бұрын

    i know im 3 - 2 episodes late but how will i make it so that a room generates after you open a door, and after like 5 or 6 rooms, the previous rooms get deleted, so that i dont have to lag everytime i test

  • @ProdByJuice.
    @ProdByJuice. Жыл бұрын

    Hey gnome i got no error but the door doesn't open and the key doesnt go in my inventory how do i fix?

  • @SurFare
    @SurFare Жыл бұрын

    mine need to fix: Item, in line 21, it say: WorldPosition is not a valid member of Vector3

  • @deta7914
    @deta7914 Жыл бұрын

    Why are my parts spawning on and under the drawers, how do i fix that? edit; Nvm I've fixed it, the primary part of the drawers had can collide can query and can touch on, i just turned them off and now it's spawning in the drawers

  • @JamesNJoe
    @JamesNJoe Жыл бұрын

    i feel like for a small part of next episode you could make the key snap back to the drawer if the person holding it were to die

  • @crepay35
    @crepay35 Жыл бұрын

    This is the first time I’ve seen gnomecode post a tutorial right after another one

  • @bduber274
    @bduber274 Жыл бұрын

    Can you do one over entities?

  • @doinic09
    @doinic09 Жыл бұрын

    Next, add special rooms like the puzzle room and the lever room

  • @ImIndeedCappy
    @ImIndeedCappy Жыл бұрын

    Yo! Ty ALOT! I Love ur vids!

  • @MrPacman-ut4nw
    @MrPacman-ut4nw Жыл бұрын

    I love your videos but idk why I cant use game script or workspace when I script

  • @louissiew7860
    @louissiew7860 Жыл бұрын

    Hey GnomeCode, love the work. Question, is it possible to make it so you have to hold on a proximityprompt for a few seconds before the door is unlocked and instead of destroying the lock, can you make it fall to the ground instead? Thanks!

  • @tnbouma

    @tnbouma

    Жыл бұрын

    prompt = the ProximityPrompt which activates the lock falling/dissapearing Hold Proximity: 'prompt.HoldDuration = 3' or any other number in seconds Fall lock to ground: you want to replace 'doorModel.Lock:Destroy()' with: 'doorModel.Lock.Anchored = false' You can always reply to this comment if you experience issues!

  • @louissiew7860

    @louissiew7860

    Жыл бұрын

    @@tnbouma K thanks!

  • @louissiew7860

    @louissiew7860

    Жыл бұрын

    @@tnbouma I was thinking of using a proximity prompt too but I wasn't sure how to do it

  • @icarobloxer
    @icarobloxer Жыл бұрын

    Hey man can you do the Tower Defense Tutorial for Admin Commands? (like spawn enemies / give cash )

  • @EarthandMoonPresents
    @EarthandMoonPresents Жыл бұрын

    THIS WAS QUICK HOLY SPAGHETTIE!

  • @XtraContent
    @XtraContent Жыл бұрын

    oh we goin quick now

  • @GamerlazaMPG1703
    @GamerlazaMPG1703 Жыл бұрын

    “Hello my fellow gnomes” got me laughing anyways good tutorial!

  • @PumpyGT
    @PumpyGT Жыл бұрын

    Can you make a viewmodel for the keys and other items?

  • @pagodeando5880
    @pagodeando5880 Жыл бұрын

    Hooooooooo I Love So Much This Serie Please Make More???

  • @FireFonce
    @FireFonce Жыл бұрын

    YEEEEEEEEESSS NEW VIDEOOO SHEESH MATE

  • @microwavez69
    @microwavez69 Жыл бұрын

    keep the line, keep the line movin'!

  • @aboyandhisdog4463
    @aboyandhisdog4463 Жыл бұрын

    When are you going to add the monsters?

  • @Davidouuu23
    @Davidouuu23 Жыл бұрын

    Love your content

  • @gamingwithrealnader2901

    @gamingwithrealnader2901

    Жыл бұрын

    First to comment on someone else's comment

  • @ProdByJuice.
    @ProdByJuice. Жыл бұрын

    Damn that was fast!

  • @eykord
    @eykord Жыл бұрын

    I have a question, when i picked up the key it didn't show up on my inventory.

  • @Scrach240
    @Scrach240 Жыл бұрын

    can you do entitys?

  • @sebalby34
    @sebalby34 Жыл бұрын

    Woah so fast :o nice!

  • @belabori9941
    @belabori9941 Жыл бұрын

    when are you going to make the monsters?

  • @MelmarWasTaken
    @MelmarWasTaken Жыл бұрын

    can someone help? line 6 of the Item Module script clones the hammer, right? well for some reason when i use it for 1-2 times it doesnt let me pick it up and either says "Hammer is not a valid member of folder "Workspace.Items"" or "Furniture script timed out/exhausted" what do i do?

  • @Danik3673
    @Danik367321 күн бұрын

    Hey gnome, how could i make this generate different items? Like for example vitamns. I know how to do it, but only on locked doors, and the key cant appear if i generate the vitamins

  • @LukasKK670
    @LukasKK670 Жыл бұрын

    WHAT? 2 TUTORIALS IN LESS THAN 1 WEEK?!?! OMG

  • @greanut
    @greanut4 ай бұрын

    when i did this i got through it and at one point the server script kept saying that it had an error loading, anyone have an idea on what could help??

  • @carrotchad9139
    @carrotchad9139 Жыл бұрын

    Yo dude this tutorial is amazing! could you maybe make dark rooms for next one?

  • @JamesNJoe

    @JamesNJoe

    Жыл бұрын

    i personally think he should do something where old rooms get deleted and new ones generate since lag can begin to happen before dark rooms

  • @carrotchad9139

    @carrotchad9139

    Жыл бұрын

    @@JamesNJoe true

  • @apro8723

    @apro8723

    Жыл бұрын

    You can do it yourself just copy the rooms but take out the lights......... could you also find out how to make my flashlight stop spawning in the same drawer as my key?

  • @aubriemason1239

    @aubriemason1239

    Жыл бұрын

    @@apro8723 maybe do this: local occupied = Instance.new("BoolValue") occupied.Value = false then maybe add another thing the flashlight spawning function expects: occupied the maybe write this in your flashlight spawning function: if occupied.Value == false then cut everything in the flashlight function exept the new lines of code then maybe do this at the end of the if statement: else return i havent tried this for myself, but hopefully it will work, reply back if it works or not

  • @aubriemason1239

    @aubriemason1239

    Жыл бұрын

    @@apro8723 maybe do this: local occupied = Instance.new("BoolValue") occupied.Value = false then maybe add another thing the flashlight spawning function expects: occupied the maybe write this in your flashlight spawning function: if occupied.Value == false then cut everything in the flashlight function exept the new lines of code then maybe do this at the end of the if statement: else return i havent tried this for myself, but hopefully it will work, reply back if it works or not

  • @apro8723
    @apro8723 Жыл бұрын

    could you find out how to make my flashlight stop spawning in the same drawer as my key? and make the flashlight rarer??????? plssss

  • @LJPerms
    @LJPerms3 ай бұрын

    If the tool breaks in the output saying : key is not a child of workspace.items it’s because you can only have the handle in the tool part you can’t have any other parts or meshes

  • @dregoboiiiiiii
    @dregoboiiiiiii Жыл бұрын

    everything works..... well sometimes. every now and again a room that doesn't have furniture spawns with a lock like say the stairs, and also my keys sometimes don't spawn i swear i followed everthing what happen?

  • @lyftfn7870
    @lyftfn7870 Жыл бұрын

    Can you add flashlight and more loot like coins. also make door 100 a special one like doors

  • @DOOMSLAYER1230
    @DOOMSLAYER1230 Жыл бұрын

    What are both of the sound ids

  • @aritoxstudios2068
    @aritoxstudios2068 Жыл бұрын

    Surely and slowly getting to entities.

  • @DrakiMona
    @DrakiMona Жыл бұрын

    Hey gnomecode can you help me? I dont want all room generate at same time this will lag a lot

  • @auevi
    @auevi Жыл бұрын

    How do I increase the chances of having a key room?

  • @IRWNum1
    @IRWNum1 Жыл бұрын

    ayyyyy lets gooo

  • @NDVQReal
    @NDVQReal Жыл бұрын

    can you post these in roblox market place PLZZZ ty

  • @Just_a_Gamer0
    @Just_a_Gamer0 Жыл бұрын

    can anyone help me? because i did the item module script and it didn't generate any room and any door, what do i do?

  • @candykid44
    @candykid44 Жыл бұрын

    Well that was quick

  • @gholin
    @gholin Жыл бұрын

    Does anyone know why my keys keep disappearing from workspace?

  • @BloxzToxzRhino
    @BloxzToxzRhino Жыл бұрын

    bro one question what if my tool handle has inside more parts and not only a handle

  • @EliWithAHat

    @EliWithAHat

    17 күн бұрын

    put the parts in the handle

  • @kriskrosappelsauz
    @kriskrosappelsauz Жыл бұрын

    I added a prompt to the unlock door system to make it a bit more fun.

  • @epicspider2003
    @epicspider2003 Жыл бұрын

    Hi gnome, I really appreciate the time you invest into these tutorials. Anyways, I have an error which says "Key is not a valid member of folder 'Workspace.Items'". The problem is in line 6 local tool = workspace.Items.Key:Clone(). How can I fix this?

  • @tnbouma

    @tnbouma

    Жыл бұрын

    you have to say: workspace.Items OR game.Workspace.Items

  • @polanddoesstuff

    @polanddoesstuff

    Жыл бұрын

    you put another bracket after the open and close brackets

  • @epicspider2003

    @epicspider2003

    Жыл бұрын

    @@tnbouma i did it, but now the key isnt appearing in my inventory

  • @polanddoesstuff

    @polanddoesstuff

    Жыл бұрын

    make sure your key is in the items folder which is in workspace, it should look like this: Workspace > Items > Key. If that doesn’t work, you will have to carefully check your script. also make sure key and item folder has the right spelling. stick with the orginal line btw

  • @PizzaMoose

    @PizzaMoose

    Жыл бұрын

    I don’t really know what to do either. I don’t have any errors in the output, but when I pick up the key it just disappears and doesn’t go into my inventory. Is there any way I can fix that?

  • @star_smells6451
    @star_smells6451 Жыл бұрын

    Gnome you have to be my favourite KZread on Roblox studio.

  • @GnomeCode

    @GnomeCode

    Жыл бұрын

    Thank you!

  • @goofyahprofile8474
    @goofyahprofile8474 Жыл бұрын

    I looked at the doors tutorial playlist and it said 6 videos and was excited to see part 6 but then it said the video is unavailable :(

  • @robuxname
    @robuxname Жыл бұрын

    can i get a Kit? i always mess this stuff up

  • @GamerFlamer
    @GamerFlamer Жыл бұрын

    my rooms stopped generating after finishing getting item locations part on the video. it generates 1 to 5 rooms ot even doesnt generate at all :( PLS HELP EDIT: nvm, i fixed that!! the problem was that it didnt find the location thingy since it was in a different part, so i rewrited locations location and it works!!!

  • @KTS_God
    @KTS_God Жыл бұрын

    Woah!

  • @SEDGY717
    @SEDGY717 Жыл бұрын

    hello the god of gnome i would need help with the code that the parts arent spawning in the drawers and in the workspace either thanks😁

  • @Jarate_expert

    @Jarate_expert

    Жыл бұрын

    same the ke isnt loading it just invisible

  • @EliWithAHat
    @EliWithAHat22 күн бұрын

    everything else works fine, but I lost my key. It doesn't spawn at all. Can i get a tip on what is wrong?

  • @templars44
    @templars44 Жыл бұрын

    Cool!

  • @Ranckiw
    @Ranckiw Жыл бұрын

    It's awesome

  • @Colognn
    @Colognn Жыл бұрын

    guys... when the door gets Locked, the key doesn't Appear.. i even tried inserting SOOO MANY drawers to test if the key will appear, but it didn't still...how do i fix it

  • @trishagomez6
    @trishagomez6 Жыл бұрын

    is dis coming to roblox

  • @ck_happy5977
    @ck_happy5977 Жыл бұрын

    Amazing video, would be following it rn but well, Roblox being quite broken rn.

  • @ck_happy5977

    @ck_happy5977

    Жыл бұрын

    Cant load up my games

  • @godzil7

    @godzil7

    Жыл бұрын

    @@ck_happy5977 same

  • @ck_happy5977

    @ck_happy5977

    Жыл бұрын

    Roblox just came back up as I was about to go to dinner

  • @flision99
    @flision99 Жыл бұрын

    part of the script is stopping the rooms from spawning? for index, value in ipairs(spawns) do table.insert(roomItemSpawns, value) end

  • @flision99

    @flision99

    Жыл бұрын

    the error is ServerScriptService.server.room.LootBoxes:41: invalid argument #1 to 'ipairs' (table expected, got Instance)

  • @W3X777

    @W3X777

    Жыл бұрын

    @@flision99 recheck your code and copy it from the video bit by bit.

  • @dawt838
    @dawt838 Жыл бұрын

    you should make a tutorial about “The Figure” I have no idea how they made it actually hear sounds

  • @dawt838

    @dawt838

    Жыл бұрын

    @@real_spii ik im not dumb, I know how AI work I just don’t know how to make it follow footstep sounds

  • @dawt838

    @dawt838

    Жыл бұрын

    @@real_spii i know as I said i am not dumb it follows the player when they aren’t crouching

  • @A1pha0101

    @A1pha0101

    Жыл бұрын

    @@dawt838 you're all wrong. the AI actually just checks if a player's humanoid's walkspeed goes over a certain amount. if its equal to or less than the crouch speed then it will not target or go towards the player. if they get too close, it will automatically chase said player.

  • @plastibonic

    @plastibonic

    Жыл бұрын

    @@A1pha0101 OHHH , that explains so much now

  • @auevi
    @auevi Жыл бұрын

    What if you were to want a random generation of items in the drawers? like multiple items?

  • @mrSEEK_official

    @mrSEEK_official

    Жыл бұрын

    didnt happen:(

  • @auevi

    @auevi

    Жыл бұрын

    @@mrSEEK_official I figured it out :)

  • @mrSEEK_official

    @mrSEEK_official

    Жыл бұрын

    @@auevi bye

  • @Flashcap9787

    @Flashcap9787

    Жыл бұрын

    @@auevi how?

  • @auevi

    @auevi

    Жыл бұрын

    @@Flashcap9787 hard to explain - I'll follow up with you tomorrow!

  • @beandevv
    @beandevv Жыл бұрын

    i really need to catch up lol

  • @ItzLuckz1
    @ItzLuckz1 Жыл бұрын

    hello i have this problem saying (CFrame is not a valid member of Model "Workspace.GeneratedRooms.LeftTurn.Furniture.Drawer") and i dont really get what to do here.

  • @BRUSDHDFhd

    @BRUSDHDFhd

    Жыл бұрын

    A model doesn't have a CFrame Value

  • @MrFoxANDnoobie
    @MrFoxANDnoobie Жыл бұрын

    My doors still are not working like they won’t go in the right Cframe please help me

  • @Pa_es
    @Pa_es Жыл бұрын

    how can i have more than one item spawn in places, like flashlights vitamins etc

  • @apro8723

    @apro8723

    Жыл бұрын

    idk bro.. i want the same just try to tinker with the code and i will send u mine when i figure it out

  • @Pa_es

    @Pa_es

    Жыл бұрын

    @@apro8723 ok, I am trying stuff with the code and I'll send you mine if I figure it out first

  • @StingyDenizo
    @StingyDenizo Жыл бұрын

    can u do like a ending room in the next episode because if you are at the last room and open the door its just empty void

  • @ItzJustTeam

    @ItzJustTeam

    Жыл бұрын

    i could say monsters first. alot of people are actually waiting for the monsters

  • @StingyDenizo

    @StingyDenizo

    Жыл бұрын

    @@ItzJustTeam but like to make te end it would take like 3 min because i know its easy but idk how to make it

  • @GamerlazaMPG1703
    @GamerlazaMPG1703 Жыл бұрын

    When will you make the monsters/entities like rush,seek and so on...?

  • @kelseygordon8606

    @kelseygordon8606

    Жыл бұрын

    he said at the end that he might do it soon or even next episode

  • @turtle1658

    @turtle1658

    Жыл бұрын

    @@kelseygordon8606 YAY

  • @GamerlazaMPG1703

    @GamerlazaMPG1703

    Жыл бұрын

    @@kelseygordon8606 Wohoooo thanks!!!!

  • @noriandris
    @noriandris Жыл бұрын

    LETS GO