Hiding in Closets - Doors Tutorial #6

DISCORD ► / discord
TWITCH ► / gnomecode
TWITTER ► / gnomecoderblx
WEBSITE ► gnome.codes/
TIMESTAMPS ►
00:00 Intro
00:40 Placing templates
01:33 Creating basic closet
06:11 Creating closet module
14:48 Exiting the closet
20:16 Creating doors
23:00 Scripting doors
26:53 Changing rotation orientation
28:00 Adding sound
28:50 Testing virtual server
30:25 Changing character orientation
31:20 Player camera
35:00 Outro

Пікірлер: 359

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

    Gnome thank you so much for making this series! I've quickly learned a lot, and we're just getting started!

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

    Im so happy that this series have went so far!!!

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

    i love that you're trying your best to make videos quickly. Keep up the good work!

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

    wow I din't expect this to be so quick! keep up the amazing work gnomecode I see you are working very very hard

  • @Player-te2xf
    @Player-te2xf Жыл бұрын

    Thank you so much GnomeCode :D. I don't play doors but, I always watch your new series videos because they are interesting to see how you've improved since your first series, like a lot you've gotten better at coding, editing videos, and interesting. I hope you continue to make series :D

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

    Please do more of these tutorials, not only is this improving my scripting skills, but it also helps me create a dream fan game. Keep up the awesome work!

  • @theoriginalandtrueamazonman

    @theoriginalandtrueamazonman

    Жыл бұрын

    same

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

    Finally, you dont know how long ive been trying to find a tutorial like this. Thanks.

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

    bro i love this serie so much thanks for this serie i love you!

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

    Even tho I’m not making a doors type game, these videos are always so helpful!

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

    GnomeCode was one of my first roblox KZreadr and i love him because he have a nice and clear voice. and he explain all very clear ! I learned so much from all of his videos ! Thank you GnomeCode for you hard work ! Give him all your support !

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

    I'm gonna try and make a game like doors and ill definitely use this tutorial to help me! Keep up the good work Gnomecode!

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

    I'm very excited to see you script the monster next episode. Will you also add a time limit before you die while you're in one of the closets from doors?

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

    These tutorials are awesome! I wasn't even expecting a tutorial today! and also your my favourite Roblox scripting youtuber! I'm glad your doing a tutorial on doors and I can't wait until next episode for the entities!

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

    I love your tutorials! I've been using this tutorial so far to create a similar to doors game but without enemies and more exploration/badge based. I would love it if you could have certain rooms spawn at certain numbers? (like room 50 and 100 in doors)

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

    Best episode so far! Can't wait for monsters to come :)

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

    As a scripter, I just watch these cause they are entertaining and I love how easy it is for beginners to understand this

  • @halalouis3814

    @halalouis3814

    Жыл бұрын

    same

  • @Gary_Pyles

    @Gary_Pyles

    Жыл бұрын

    I’m a beginner, but I just watch these when I’m bored, because it doesn’t really work for me.

  • @Morale883
    @Morale8837 ай бұрын

    Please make more of these they are so fun as little projects to do, I also am using them to learn scripting because I find it easier to learn while making a game and not while learning specific functions

  • @DevBlue.
    @DevBlue.4 ай бұрын

    I been trying to script for the past 7 years and i really just lose motivation but your series has motivated me enough to atleast get decent at scripting and now I have created 3 projects which have had over 100k visits!

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

    So cool cant wait for the pad lock puzzle part which is in door 50 😅

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

    I love how the start room is still a grey box, but now it’s a slightly more polished grey box.

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

    Gnome code! Thanks for being there to teach me how to script! I have also been following the tower defense series as ive been following this one! You make these tutorials simple and easy! You even show common mistakes most people would make! Thanks for your help Gnome code! (edit) HURRY UP WITH THE NEXT EPISODE PLZ! (EDIT 2.0) GNOME CODE PLEASE HURRY ITS OVER A WEEK SINCE THIS EPISODEEEEE...

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

    Yay ! A other video of Gnome Code !!! :D

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

    These tutorials just keep getting better and better. I still think back to the teddy series and see that you've improved alot over that time, not just in scripting but also in the editing of the videos. Keep up the great work.

  • @GnomeCode

    @GnomeCode

    Жыл бұрын

    Thank you! That's what I love about making these series, both me and my followers can grow and improve together

  • @godzil7

    @godzil7

    Жыл бұрын

    @@GnomeCode i need help my furniture wont generate after i did the open script where it moves out of the main room thing

  • @godzil7

    @godzil7

    Жыл бұрын

    @@GnomeCode i mean my rooms wont generate

  • @godzil7

    @godzil7

    Жыл бұрын

    @GoodBrainSalad* my furniture open script isnt generating rooms

  • @DuolingoExtra

    @DuolingoExtra

    Жыл бұрын

    @@godzil7 Can you paste your code here and what does says in output?

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

    It’s unbelievable how fast gnomecode is rapidly making these tutorial videos, amazing work gnomecode!

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

    what i would love next would be a game teleporter system like doors has, that would be very useful for my game! also will there be a cutscene tutorial later?

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

    Yess gnomecode can't wait for the Teddy chase haha or will or be a new character like that easter akin from Teddy 🐻

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

    Good job yet again Gnomecode!

  • @GnomeCode

    @GnomeCode

    Жыл бұрын

    Cheers Dusty

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

    Also for the room generation it only spawns in rooms you are close to and the other rooms 7 doors back get destroyed this will help prevent lag when the you start adding more functionality to the game

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

    Thank you so much for this things!!

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

    Gnome code is the best code explainer no cap

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

    cant wait for the entitys!

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

    you are so talented! I've been watching you since the 2d series and always come to you when I need help with something. Great work, keep it up! Ps: Road to 100k!!

  • @GnomeCode

    @GnomeCode

    Жыл бұрын

    Wow that's a long time ago! Thanks for sticking around

  • @zLeqitCxde

    @zLeqitCxde

    Жыл бұрын

    @@GnomeCode you're awesome!

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

    I love how GnomeCode releases his videos so quickly! Thanks, I've really learned a lot from this series so far!

  • @GnomeCode

    @GnomeCode

    Жыл бұрын

    Thanks for the good vibes!

  • @fyregaming4396

    @fyregaming4396

    Жыл бұрын

    yea, quickly...

  • @BaconBoyVN1234

    @BaconBoyVN1234

    Жыл бұрын

    quickly *literally the part 5 was release in 8 days ago.*

  • @michaelmartins6132

    @michaelmartins6132

    Жыл бұрын

    @@BaconBoyVN1234 8 days is rather quick

  • @BaconBoyVN1234

    @BaconBoyVN1234

    Жыл бұрын

    @@michaelmartins6132 no

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

    Probably in the 8th episode, you could make 'dark rooms' and maybe 'spiders in drawers'. Basically rooms have a BoolValue in them called DarkRoom, and every room there is a chance for it to be true or false. If its true, all lights are off. If its false, all lights are on. Spider explanation: Drawers have a bool value too called SpiderInside, for every drawer spawned, there is a chance for it to be true or false. If its true, there is a spider model inside that jumps to your head because you may make an attachment on the face that you made (instance . new) If its false, no spiders of course.

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

    Awesome content, Also you should make more (How to scrpt tutorials)👍

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

    The best tutorial

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

    Keep the good work!

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

    you can also use tweenservice to teleport player to closet, and looks doors

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

    i cannot thank you enough for these tutorials. I actually now feel like I will make a good game for once. None of the other tutorials i tried worked, but yours is the only one that did!(im actually being honest here ;-;) but theres just one tiny problem. entering the closet works, everything works, its fine. but the problem is when im entering and leaving, only the left door does the tweening animation, the right door is just frozen. did i make a typo or smth? also heres my closet script for anyone that wants it: local TweenService = game:GetService("TweenService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local events = ReplicatedStorage:WaitForChild("Events") local moveCamEvent = events:WaitForChild("MoveCam") local closet = {} function closet.MoveHinge(hinge, direction) local openAngle = -110 local goalCFrame = hinge.CFrame *CFrame.Angles(0, math.rad(openAngle*direction), 0) local doorTween = TweenService:Create(hinge, TweenInfo.new(0.5),{CFrame=goalCFrame}) doorTween:Play() end function closet.MoveDoors(model, direction) model.Primary.Open:Play() closet.MoveHinge(model.LeftHinge, 1 *direction) closet.MoveHinge(model.RightHinge, -1 *direction) task.wait(0.5) end function closet.PlayerLeave(player, model) local character = player.Character if not character then return end closet.MoveDoors(model, 1) character:PivotTo(model.Outside.CFrame * CFrame.Angles(0, math.rad(180), 0)) character.Humanoid.WalkSpeed = 16 character.Humanoid.JumpPower = 0 closet.MoveDoors(model, -1) model.hasPlayer.Value = nil end function closet.PlayerEnter(player, model) local character = player.Character if not character then return end model.hasPlayer.Value = player character.Humanoid.WalkSpeed = 0 character.Humanoid.JumpPower = 0 character:PivotTo(model.Outside.CFrame) moveCamEvent:FireClient(player, model.Outside.CFrame) closet.MoveDoors(model, 1) character:PivotTo(model.Inside.CFrame) moveCamEvent:FireClient(player, model.Inside.CFrame) closet.MoveDoors(model, -1) end function closet.New(template) local model = workspace.Furniture.Closet:Clone() model:PivotTo(template.CFrame) model.Parent = template.Parent local hasPlayer = Instance.new("ObjectValue") hasPlayer.Name = "hasPlayer" hasPlayer.Parent = model local outsidePrompt = Instance.new("ProximityPrompt") outsidePrompt.ActionText = "Enter Closet" outsidePrompt.MaxActivationDistance = 5 outsidePrompt.Parent = model.Outside local insidePrompt = outsidePrompt:Clone() insidePrompt.ActionText = "Leave Closet" insidePrompt.MaxActivationDistance = 2 insidePrompt.Parent = model.InsidePrompt outsidePrompt.Triggered:Connect(function(player) if hasPlayer.Value == nil then outsidePrompt.Enabled = false closet.PlayerEnter(player, model) end end) insidePrompt.Triggered:Connect(function(player) if hasPlayer.Value == player then insidePrompt.Enabled = false closet.PlayerLeave(player, model) insidePrompt.Enabled = true outsidePrompt.Enabled = true end end) template:Destroy() end return closet

  • @stefan_-yc4zs
    @stefan_-yc4zs Жыл бұрын

    You have something miss to make in tower defense game 1: make skins for towers and crates in shop and equit skin or unequit skin 2:adding seasons, events 3: the slots of towers if you equit a tower to show the towers on the slot to know what tower you equit 4: vote modes 5: show random maps to vote it and the start button to start istant 6: change button to change the maps to vote 7: the finnaly boss hp bar 8: in menu on shop to show the first lvl tower stats 9: music at menu and the finnal boss music 10: died enemys sounds 11: tower shot effect 12: the shot hit zombie effect 13: show on the tower total damage and total money spend on it 14: making enemy than stun towers for seconds 15: the died finnaly boss animation

  • @Alexis-pf7mf
    @Alexis-pf7mf19 сағат бұрын

    I have an idea for the next part!, itll be basically just the crouching and vents since i really want to do rooms where you need to find the vent to go to the other section in the room then leading u to de exit

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

    Can you do an episode on the monsters? I love this series

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

    Hi! Can you publish the game like you did with the others? I really want to play it and add things. You make great tutorials and you are the only one that makes understandable tutorials!

  • @Jarate_expert

    @Jarate_expert

    Жыл бұрын

    he cannot publish the game and if you ask why then think about it

  • @Yu-Gi-Oh36508
    @Yu-Gi-Oh36508 Жыл бұрын

    you should do a video on how to let the code know which door you are on and delete old doors and only gen a few doors ahead

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

    Congrats on the 70k

  • @GnomeCode

    @GnomeCode

    Жыл бұрын

    Thanks Ham

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

    I haven't watched all of the videos yet, but do you remove the rooms behind you at a certain point? For example, there will always been 2 rooms behind you and 1 room infront of you at each given time, and the room you're currently in.

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

    the way you made the closet is way more complicated than how they made it because it was made as a animation in doors

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

    Thanks man you're pro

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

    If you wanna add a exit and enter sound do this: Under the PlayerEnter, do model.Primary.(Your Enter Sound):Play() And then under the PlayerLeave, do model.Primary.(Your Exit Sound):Play()

  • @TheMaxGuy

    @TheMaxGuy

    11 ай бұрын

    he literally did that in the video

  • @arandomguywithfriends

    @arandomguywithfriends

    11 ай бұрын

    @@TheMaxGuy he didnt

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

    I’m 2 days late but I just finished the tutorial and it is EPIC! I’m so excited to see what’s coming next

  • @GoofyKitty_
    @GoofyKitty_4 ай бұрын

    Can you make a tutorial on the Seek Chase and/or door 50

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

    Is there a way I can Just make the Hiding in closets without needing the past Modules and templates you made with all the other furniture :) It would help alot but love your videos !

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

    Hey Gnome Code, I am having some issues and need your help. So uh, I have done exactly like the video, but for some reason, the closet doesn't have the Promoxity Prompt,also I don't want to have the furniture in part 4. Is that the reason the scripts don't work?

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

    Can't Wait for the Monster's Soon also I watched this 6 day's ago

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

    finally, entity time

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

    hey im watching the tower defence game tutorial and my animations aren't working im thinking that is the animationFolder part because i dont have one and if i had where do i put it in? also do i put the walk inside it? edit: there is a bunch of people with the same problem on the episode 3 idk if they already solved it

  • @7870javier
    @7870javier Жыл бұрын

    Hey GnomeCode, I was wondering if the next tutorial could be how to make custom rooms like door 50, door 100, are not in the rooms folder basicly like how to make door 100 as a stage thats not in the rooms folder can you?

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

    I have to take a break as soon I finish the part Well… I will wait for the next part

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

    cool video! just wondering how can i make the player have the press W to get out like in the real game instead of another prompt?

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

    Your tutorials are the best I've seen on youtube! you helped me a lot with the tutorials on "how to make a game like DOORS" GnomeCode. PS: good luck with the next videos

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

    Will you add some entity like rush ambush figure seek glitch hide eyes halt Timothy jack A-60 and shadow?

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

    Yesss babby

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

    I can hear gnomecode typing and his room😂

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

    Cqn you make it so entering the closet is smoother perhaps by using a tween thingy?

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

    Finally!

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

    average gnome code W

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

    I think your doors is way better than real roblox doors good job :)

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

    cool closets!!! we waiting new video =))) thank you for cool content!

  • @GnomeCode

    @GnomeCode

    Жыл бұрын

    Glad you like them!

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

    Nice, I wonder when monsters will be made

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

    will you add an animation in the next video (if its a monster like rush, ambush, screech, e.t.c)

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

    when will the new chapter come out? I need to make entities like Jack, Rush, Seek, Ambush and Figure

  • @Arch-bx8wz
    @Arch-bx8wz Жыл бұрын

    I'm making a Doors fan-game and these tutorials have been a big help Edit: wait so is part 7 making an entity like rush or ambush?

  • @ItzJustTeam

    @ItzJustTeam

    Жыл бұрын

    he said so. if he made closets, then said the next episode is about making a monster... well then we know which one

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

    Also good job

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

    Gnome Code do u know how i could i make like when u enter the closet ur camera rotates like doors, could u give me an example script please. Edit: i hope he answers :(

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

    you are a best

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

    Hey GnomeCode!, The next video will you start making the monsters?

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

    I love you GnomeCode i joined your discord and i wished that i can boost the server

  • @justacuber800
    @justacuber8006 ай бұрын

    It works even with toolbox wardrobes?

  • @user-kh2sg4by9s
    @user-kh2sg4by9s Жыл бұрын

    now you can make rush, but please make to he spawns every 9-14 rooms like original

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

    awesome

  • @Arch-bx8wz
    @Arch-bx8wz Жыл бұрын

    btw if you want an authentic doors game with this then make a script to lock the camera into first person and make it so they can't jump

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

    Good evening GnomeCode

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

    You should try to make rooms fangame tutorial

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

    i still didn't watched the full tutorial, but if he didn't talk about the glitch where if you leave the closed right after entering the door glitches, to fix it just make the outside prompt hold duration 0.6, since the inside prompt is a copy of the outside prompt you don't need to change it

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

    When is the episode for Rush/Ambush or Halt like monsters?

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

    Doors for everyone!

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

    Omga so good

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

    Yay

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

    How i can make a custom ProximityPrompt Gui?

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

    I don't even follow the tutorials I just watch them cuz I learn stuff I never knew before lol

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

    hey gnome code i wanted to ask you to make a tutorial on how to make a Randomly Generated Droids type game

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

    Can you make a ragdoll universe ragdoll so basically what i want is a player can move the ragdoll

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

    Even if for some reason my doors wont open, i still watch each episode

  • @LeftyWithPuppetEditz

    @LeftyWithPuppetEditz

    Жыл бұрын

    My closet won’t open even tho I watched his tutorials

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

    @GnomeCode how to make animation play when getting inside and leaving from

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

    Can you tell me how to find the humanoid of a player who activated a proximity prompt.

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

    now is the rush

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

    So I used moveTo make a more realistic player placing insted of pivotto

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

    YESS

  • @Shimyshimyjimy_oc

    @Shimyshimyjimy_oc

    Жыл бұрын

    Been waiting for this one for a bit

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

    How do you make combat in roblox Studio

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

    Hey codingableGnome, My prompt ain't appearing, what do i do?