Locks and Hidden Keys - Doors Tutorial #5

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 394

  • @mekbok
    @mekbok 2 года назад +34

    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 2 года назад +2

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

    • @lennyface987
      @lennyface987 2 года назад +1

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

    • @mekbok
      @mekbok 2 года назад +1

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

    • @mekbok
      @mekbok 2 года назад +1

      @@Airdart306 u have a good day too ❤️

    • @piercenewboy3173
      @piercenewboy3173 2 года назад +1

      Me to and it is inspiring for me ;-)

  • @IGBwasTaken
    @IGBwasTaken 2 года назад +15

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

  • @gemmken
    @gemmken 2 года назад +14

    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

  • @pansirawit
    @pansirawit Год назад +6

    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 Год назад +1

      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

  • @caz0gamz
    @caz0gamz 2 года назад +4

    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 2 года назад +1

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

  • @IDI_NULL
    @IDI_NULL Год назад +4

    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 8 месяцев назад

      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

    • @IDI_NULL
      @IDI_NULL 8 месяцев назад

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

    • @VinactiYT
      @VinactiYT 7 месяцев назад

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

    • @HappyDucklingAndFriends
      @HappyDucklingAndFriends 5 месяцев назад +1

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

    • @catsoda7691
      @catsoda7691 3 месяца назад +1

      And how does it says that (Key is not a valid member of Folder "Workspace.Items") and which the name is all in details also it's not a bug it have spawned even though that i have checked output which result the key has spawned and it cannot trigger it is only because handle was not made by me

  • @Pruttesvin
    @Pruttesvin 2 года назад +1

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

  • @alejandrorivera9694
    @alejandrorivera9694 2 года назад +1

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

  • @michaelmartins6132
    @michaelmartins6132 2 года назад

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

  • @Punchie-ThePro
    @Punchie-ThePro 2 года назад +1

    The details are awesome in the rooms!

  • @JanBlox
    @JanBlox 2 года назад

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

  • @redfire826
    @redfire826 2 года назад +2

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

  • @scpplayer8842
    @scpplayer8842 2 года назад

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

  • @TheBritishRobloxian
    @TheBritishRobloxian 8 месяцев назад +1

    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

  • @doinic09
    @doinic09 Год назад +4

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

  • @TobyZzz
    @TobyZzz Год назад +1

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

  • @louissiew7860
    @louissiew7860 2 года назад +4

    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 2 года назад +1

      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 Год назад +1

      @@tnbouma K thanks!

    • @louissiew7860
      @louissiew7860 Год назад +1

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

  • @the-notorious-khaki
    @the-notorious-khaki 2 года назад +34

    Petition for GnomeCode to do a ViewModel tutorial.

  • @pagodeando5880
    @pagodeando5880 2 года назад +1

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

  • @yeshuahansyy1922
    @yeshuahansyy1922 Год назад +1

    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

  • @star_smells6451
    @star_smells6451 2 года назад +2

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

  • @crepay35
    @crepay35 2 года назад

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

  • @carrotchad9139
    @carrotchad9139 2 года назад +4

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

    • @JamesNJoe
      @JamesNJoe 2 года назад +1

      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 2 года назад

      @@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

  • @equox6946
    @equox6946 Год назад +2

    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?

  • @EpicSpider200
    @EpicSpider200 2 года назад +6

    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 2 года назад

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

    • @polanddoesstuff
      @polanddoesstuff 2 года назад

      you put another bracket after the open and close brackets

    • @EpicSpider200
      @EpicSpider200 2 года назад

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

    • @polanddoesstuff
      @polanddoesstuff 2 года назад

      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 2 года назад

      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?

  • @JamesNJoe
    @JamesNJoe 2 года назад +2

    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

  • @GoodyOliver
    @GoodyOliver 2 года назад

    THIS WAS QUICK HOLY SPAGHETTIE!

  • @hello_huu2
    @hello_huu2 Год назад +3

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

  • @MegaYarr
    @MegaYarr 2 года назад +3

    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?

  • @Davidouuu23
    @Davidouuu23 2 года назад +2

    Love your content

  • @danqq_s
    @danqq_s 2 года назад

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

  • @PumpyGT
    @PumpyGT 2 года назад

    Hey, thanks for making these tutorials

  • @Puzzledmusel86
    @Puzzledmusel86 2 года назад

    You are great at making toturials

  • @teduded7188
    @teduded7188 3 месяца назад +2

    The drawers doesn't work after I managed to make the key generation work. The drawers don't open. I have gone through the vid like 3 times to find any typos but can't find any. Does anyone know what could be wrong?

  • @Wheiejdj27383
    @Wheiejdj27383 Год назад +1

    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

  • @jaxgamez3541
    @jaxgamez3541 2 года назад

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

  • @auevi
    @auevi Год назад +4

    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!

  • @GamerlazaMPGandBuffaGaming
    @GamerlazaMPGandBuffaGaming 2 года назад

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

  • @SlumpFish
    @SlumpFish 2 года назад +2

    Hi GnomeCode. So ive been stuck for a while, and I am very far behind, so im commenting on the newest video in the series so you might see this. So after part 1, I decided to try adding rooms with turns. However, when i had done this, the rooms with turns began phasing through the straight rooms, messing up the whole thing.. I have no errors in my code, and my entrance and exits are facing the correct way, please help.

    • @SlumpFish
      @SlumpFish Год назад +1

      @@KJTCG Hi. So I went through the entire video and I copied his code. However, I have now been hit with the error saying: "Server.Server.Room:14: attempt to index nil with 'Direction'
      This error did not appear last time, and I have struggled to fix it, any ideas?

    • @roober43
      @roober43 Год назад +1

      @@SlumpFish My turn rooms works. I don't know try to fix it.

    • @SlumpFish
      @SlumpFish Год назад +1

      @@roober43 is there any chance you could copy and paste your code in a reply? Because mine just isnt working..

    • @roober43
      @roober43 Год назад +1

      @@SlumpFish Ignore the walls thing its for making random wall color generation

    • @unusualben
      @unusualben Год назад +1

      @@SlumpFish it's because your code is not understand where your information is

  • @GigaGnome
    @GigaGnome 2 года назад +3

    Mad Teddy vibes

  • @ProdByVRNE
    @ProdByVRNE Год назад +1

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

  • @joaninhaminimundos4252
    @joaninhaminimundos4252 2 года назад

    congrats, you have talent!

  • @LukasKK670
    @LukasKK670 2 года назад

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

  • @alejandrorivera9694
    @alejandrorivera9694 2 года назад +1

    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

  • @deta7914
    @deta7914 Год назад +1

    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

  • @ValidityValue
    @ValidityValue 2 года назад +1

    Tysm!! I love ur videos

  • @Foxfilms-hn1lg
    @Foxfilms-hn1lg 18 дней назад

    @GnomeCode I am having trouble getting item locations, instead of it trying to place parts it won't generate the rooms. Can you please help me out? Is it something in the Room Module that is wrong? I you can help me out it would be super apperciated!

  • @ArnoTheJay
    @ArnoTheJay 2 месяца назад +1

    when i try to add the item to the backpack, it keeps saying "attempt to index nil". what should i do

    • @hexarinumerial
      @hexarinumerial 2 месяца назад

      This could mean 2 things:
      1. The name parameter of the code is different from the item name in the folder, so it returns nil
      2. The item you are trying to find does not exist anymore (Could be caused by having an unanchored and uncollidable tool fall into the void on game start)

  • @ItzLuckz1
    @ItzLuckz1 Год назад +1

    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.

    • @notmix479
      @notmix479 20 дней назад

      make sure ur drawer is not a model, has to be a BasePart or a MeshPart

  • @XtraContent
    @XtraContent 2 года назад

    oh we goin quick now

  • @BloxzToxzRhino
    @BloxzToxzRhino Год назад +1

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

    • @EliWithAHat
      @EliWithAHat 6 месяцев назад

      put the parts in the handle

  • @Pa_es
    @Pa_es Год назад +1

    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

  • @ck_happy5977
    @ck_happy5977 2 года назад +1

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

    • @ck_happy5977
      @ck_happy5977 2 года назад

      Cant load up my games

    • @godzil7
      @godzil7 2 года назад

      @@ck_happy5977 same

    • @ck_happy5977
      @ck_happy5977 2 года назад

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

  • @bduber274
    @bduber274 2 года назад +1

    Can you do one over entities?

  • @eykord
    @eykord Год назад

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

  • @FireFonce
    @FireFonce 2 года назад

    YEEEEEEEEESSS NEW VIDEOOO SHEESH MATE

  • @lennyface987
    @lennyface987 2 года назад +35

    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 года назад +1

      2 days you mean

    • @reyrey_X2
      @reyrey_X2 2 года назад

      True

    • @lennyface987
      @lennyface987 2 года назад

      @@SamLight234 Yeah

    • @pedrinhotime
      @pedrinhotime 2 года назад

      Incrible

    • @pu2f551
      @pu2f551 2 года назад

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

  • @Danik3673
    @Danik3673 6 месяцев назад

    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

  • @belabori9941
    @belabori9941 2 года назад

    when are you going to make the monsters?

  • @ProdByVRNE
    @ProdByVRNE 2 года назад

    Damn that was fast!

  • @aboyandhisdog4463
    @aboyandhisdog4463 2 года назад

    When are you going to add the monsters?

  • @kriskrossappelsauz
    @kriskrossappelsauz Год назад

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

  • @auevi
    @auevi Год назад

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

  • @ImIndeedCappy
    @ImIndeedCappy 2 года назад

    Yo! Ty ALOT! I Love ur vids!

  • @albertoedgar831
    @albertoedgar831 Год назад +1

    can someone help, on the output there is absolutely no errors but the key does not appear nor spawn anywhere, how do i fix this?

    • @EliWithAHat
      @EliWithAHat 6 месяцев назад

      nobody listens to us :(

  • @candykid44
    @candykid44 2 года назад

    Well that was quick

  • @Novum228
    @Novum228 4 месяца назад +2

    I hate to be the one to say it, but the lock's on the wrong side. The hinge is on the left, but the lock should be on the right.
    I haven't finished this series, so you can yell at me if this is covered in a future episode.

  • @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 :(

  • @PumpyGT
    @PumpyGT 2 года назад

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

  • @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?

  • @dawt838
    @dawt838 2 года назад

    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

    • @GribblesUTR
      @GribblesUTR Год назад

      @@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 Год назад +1

      @@GribblesUTR OHHH , that explains so much now

  • @aritroxstudios2068
    @aritroxstudios2068 2 года назад

    Surely and slowly getting to entities.

  • @GamerlazaMPGandBuffaGaming
    @GamerlazaMPGandBuffaGaming 2 года назад

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

  • @EliWithAHat
    @EliWithAHat 6 месяцев назад

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

  • @greanut
    @greanut 9 месяцев назад

    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??

  • @MrPacman-ut4nw
    @MrPacman-ut4nw 2 года назад

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

  • @DuolingoExtra
    @DuolingoExtra 2 года назад +1

    For people that haves problems with not getting key do this:
    Drag the items folder to replicated storage
    Try this code:
    local item = {}
    function item.Interact(player, prompt, template, itemName)
    if player.Character then
    if itemName == "Key" then
    local tool = game.ReplicatedStorage.Items.Key:Clone()
    local backpack = player:WaitForChild("Backpack")

    tool.Parent = backpack
    end

    prompt.Enabled = false
    template:Destroy()
    end
    end
    function item.New(location, itemName)

    local itemObject = game.ReplicatedStorage.Items:FindFirstChild(itemName)

    if itemObject then
    local itemHandle = itemObject.Handle:Clone()
    itemHandle.Position = location.WorldPosition

    local weld = Instance.new("WeldConstraint")
    weld.Part0 = itemHandle
    weld.Part1 = location.Parent
    weld.Parent = itemHandle

    itemHandle.Parent = location

    local prompt = Instance.new("ProximityPrompt")
    prompt.ActionText = ""
    prompt.MaxActivationDistance = 5
    prompt.Parent = location
    prompt.Triggered:Connect(function(player)
    item.Interact(player, prompt, itemHandle, itemName)
    end)
    end
    end
    return item

    • @pizzadoofus
      @pizzadoofus Год назад

      Whenever I try this, the game doesn't generate any rooms. :/

    • @DuolingoExtra
      @DuolingoExtra Год назад

      @@pizzadoofus What does it say in output?

    • @pizzadoofus
      @pizzadoofus Год назад

      @@DuolingoExtra It works now, I think. I don't know what I changed, but thanks I guess.

    • @ProdByVRNE
      @ProdByVRNE Год назад

      @@DuolingoExtra Broski ive got a problem, the first door doesnt open, there is every lock on a generated door. I changed the chances to make it rare but the doors still got every lock. Do you know why this is happening? i go no errors nor any spelling error/ Warning.

    • @DuolingoExtra
      @DuolingoExtra Год назад

      @@ProdByVRNE Watch the tutorials again.

  • @Joecz_55
    @Joecz_55 День назад

    i have a PROBLEM in my doors game there are always two doors stuck in each other, can someone help me please?

  • @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

  • @StingyDenizo
    @StingyDenizo 2 года назад

    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 2 года назад

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

    • @StingyDenizo
      @StingyDenizo 2 года назад

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

  • @sebalby34
    @sebalby34 2 года назад

    Woah so fast :o nice!

  • @vezern.
    @vezern. Год назад

    I got an error it says
    Lock is not a valid member of Model "Workspace.GeneratedRooms.SmallRoom.Door" and I did everything right.
    It also won't destroy the key. Any tips?

    • @vezern.
      @vezern. Год назад

      My code is
      local TweenService = game:GetService("TweenService")
      local door = {}
      function door.Open(doorModel)
      doorModel:SetAttribute("Open", true)

      local cframe = doorModel.Hinge.CFrame * CFrame.Angles(0, math.rad(100), 0)
      local doorTween = TweenService:Create(doorModel.Hinge, TweenInfo.new(0.5), {CFrame = cframe})

      doorTween:Play()
      doorModel.Door.Open:Play()
      end
      function door.New(roomModel, number, locked)
      local doorModel = workspace.Door:Clone()
      doorModel:PivotTo(roomModel.Exit.CFrame)
      doorModel:SetAttribute("Open", false)

      doorModel.Sign.SurfaceGui.TextLabel.Text = string.format("%03d", number)
      doorModel.Lock.Transparency = locked and 0 or 1

      doorModel.Sensor.Touched:Connect(function(hit)
      local humanoid = hit.Parent:FindFirstChild("Humanoid")
      if humanoid and doorModel:GetAttribute("Open") == false then
      if not locked then
      door.Open(doorModel)
      elseif humanoid.Parent:FindFirstChild("Key") then
      doorModel.Lock:Destroy()
      humanoid.Parent.Key:Destory()
      door.Open(doorModel)
      end

      end
      end)

      doorModel.Parent = roomModel

      return doorModel
      end
      return door

    • @vezern.
      @vezern. Год назад

      It was because of the Destory, it wasn't Destroy 👍

  • @DupeStudios
    @DupeStudios 21 день назад

    Just saving my spot 14:47

  • @umm-id4em
    @umm-id4em Месяц назад

    no errors but the key doesnt move with the drawers when opened

  • @coolestxdude
    @coolestxdude 2 года назад

    Hi, First. Really love your content you're producing!

  • @DrakiMona
    @DrakiMona Год назад

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

  • @Scrach240
    @Scrach240 2 года назад

    can you do entitys?

  • @DOOMSLAYER1230
    @DOOMSLAYER1230 2 года назад

    What are both of the sound ids

  • @abbiwashere
    @abbiwashere 14 дней назад

    thats good
    but im making the rooms so im taking these inspirations

  • @spngrg99
    @spngrg99 Год назад

    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

  • @auevi
    @auevi Год назад

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

  • @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?

    • @ZECH-iu5nf
      @ZECH-iu5nf 2 месяца назад

      I have the same problem

    • @MelmarWasTaken
      @MelmarWasTaken 2 месяца назад

      @@ZECH-iu5nf i tried fixing it but never worked out so i set the chances of locked doors to 99999 but the monsters never spawned

  • @CloversRandomVideos
    @CloversRandomVideos 24 дня назад

    19:45 When I go to pick up the key It disappears and does not go into me inventory. I've been looking back and forward through all the scripts for over 2 hours and there is, no errors/typos. what the hell do I do.
    The script:
    local item = {}
    function item.Interact(player, prompt, template, itemName)
    if player.Character then
    if itemName == "Key" then
    local tool = workspace.Items.Key:Clone()
    tool.Parent = player.Backpack
    end
    prompt.Enabled = false
    template:Destroy()
    end
    end
    function item.New(location, itemName)
    local itemObject = workspace.Items:FindFirstChild(itemName)
    if itemObject then
    local itemHandle = itemObject.Handle:Clone()
    itemHandle.Position = location.WorldPosition
    local weld = Instance.new("WeldConstraint")
    weld.Part0 = itemHandle
    weld.Part1 = location.Parent
    weld.Parent = itemHandle
    itemHandle.Parent = location
    local prompt = Instance.new("ProximityPrompt")
    prompt.ActionText = ""
    prompt.MaxActivationDistance = 6
    prompt.Parent = location
    prompt.Triggered:Connect(function(player)
    item.Interact(player, prompt, itemHandle, itemName)
    end)
    end
    end
    return item

  • @flision99
    @flision99 2 года назад

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

    • @flision99
      @flision99 2 года назад

      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.

  • @The_Observer_ENR
    @The_Observer_ENR 2 года назад

    Adds a Chair me Oh damm time to add chairs

  • @lyftfn7870
    @lyftfn7870 Год назад

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

  • @GamerlazaMPGandBuffaGaming
    @GamerlazaMPGandBuffaGaming 2 года назад

    Oh and 1+ subscriber added

  • @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?

  • @FR_Anim
    @FR_Anim 16 дней назад

    i got an error that said key is not a valid member of folder when i press e on it

    • @Mr.RanklesTheSeeker
      @Mr.RanklesTheSeeker 14 дней назад

      same! It just dissapears from the folder when i press Run

    • @FR_Anim
      @FR_Anim 14 дней назад

      @@Mr.RanklesTheSeeker already fix the problem here is the script if you still have the problem local RunService = game:GetService("RunService")
      local ServerStorage = game:GetService("ServerStorage")
      -- Check if the Key exists in workspace.Items and create a backup in ServerStorage
      local originalKey = workspace:FindFirstChild("Items") and workspace.Items:FindFirstChild("Key")
      if originalKey then
      originalKey = originalKey:Clone()
      originalKey.Parent = ServerStorage -- Store a backup of the original Key in ServerStorage
      print("Original Key cloned to ServerStorage.")
      else
      warn("Key not found in workspace.Items at the start.")
      end
      -- Continuously monitor the Items folder to ensure the Key is always present
      RunService.Stepped:Connect(function()
      if not workspace:FindFirstChild("Items") then
      warn("Items folder is missing from workspace.")
      return
      end
      -- Check if the Key is missing from workspace.Items
      if not workspace.Items:FindFirstChild("Key") then
      if ServerStorage:FindFirstChild("Key") then
      local keyClone = ServerStorage.Key:Clone()
      keyClone.Parent = workspace.Items
      print("Key restored to workspace.Items!")
      else
      warn("No backup Key found in ServerStorage.")
      end
      end
      end) just insert a script in the serverscriptservice and paste it inside of it

    • @ajusy1884
      @ajusy1884 9 дней назад

      @@Mr.RanklesTheSeekerIt might be because you have CanCollide set to false in the key’s handle, because that makes it fall through the map and disappear.