How to Make a Doors Game - #1 Generating Rooms
Welcome to my new series on making a Doors style game. Let me know in the comments what you'd like to see next!
DISCORD ► / discord
TWITCH ► / gnomecode
TWITTER ► / gnomecoderblx
WEBSITE ► gnome.codes/
TIMESTAMPS ►
0:00 Intro
01:12 Creating Rooms
06:24 Room Module Script
09:50 Server Script
11:33 Testing
11:52 Multiple Rooms
14:30 Summary
15:02 Outro
Пікірлер: 1 800
I love your tutorial videos! It’s so exiting when it finally works after all the time of scripting. You’ve just earned a free sub!
@thereallightspeed
Жыл бұрын
Make that 2
@user-qt8iu5bm2x
4 ай бұрын
it didnt work for me
this is amazing. actually the first tutorial i find that actually works so thank you.
I was trying to make a randomly generated obby and this helped me so much! I had no experience in stuff like that and it taught me alot of it!
I was actually so impressed on how easy this was! I thought it be way harder! Amazing video!
@MrBeets24
18 күн бұрын
same
@YourDailyMemes-jc2gw
12 күн бұрын
@@MrBeets24 its been over a year...
@Nah_Youtube
6 күн бұрын
@@YourDailyMemes-jc2gw yea
Always excited when a new series drops! Entertaining like always! Keep up the good work man!
hey this is awesome! over the past month, i've been making my own script from scratch that randomly generates rooms and i took a totally different approach than you did. Your work is def cleaner than mine thou lol
@aeea3306
Жыл бұрын
What did you do? I made a script that cycles through a folder of rooms and picks a random one to place on a room spawn part and then deletes that part but idk how to end it and after it gets to the 30th room it just breaks and places more than one room on the spawn part and then everything mixes into everything
despite me not wanting to make a doors game, there is no better tutor than you gnome ,i wish u great success :D
This man for real made me understand module scripts and returns as easy as that. Thank you gnome code
Two days after I started making my own game of doors this popped up! These tutorials are so much fun, when I was new I did your tower defense tutorial and It taught me so many things. I can't wait for more of these :)
@devilscripter9265
Жыл бұрын
Adding and changing the Lighting will make you game even more horrifying
@YasinGamesPlayz
Жыл бұрын
Hi I cant scale the parts It doesnt work can you help me?
@ImDefNotTyler
Ай бұрын
same!
Thank you so much for all these cool tutorials! If it weren't for you I truly wouldn't be trying to learn how to code. I've always been creative, but the only way I thought I could express my creativity was through art, but you really inspired me to take coding and making games as a profession! Thank you.
@linkyboiii14sg63
Жыл бұрын
umm bro every single time I type "newRoom:PivotTo(prevRoom.Exit.CFrame)" nothing happens the rooms don't clone and the output prints, " attempt to index nil with 'Exit' - Server - Room:10"
@qaisnetwork
Жыл бұрын
@@linkyboiii14sg63 maybe you didn't add part name "Exit"?
@linkyboiii14sg63
Жыл бұрын
@@qaisnetwork ohh thanks bro ill try it now
@razuz2783
Жыл бұрын
Not Work : (
@tubeby2106
Жыл бұрын
@@linkyboiii14sg63 same for me
Honestly this helps a lot with me trying to make a Hardcore Doors game. Thank you so much!
I CANT'T WAIT FOR THE NEXT ONE MAN, THANK YOU
You are the best! I am currently trying to make a lot of games at once and your tutorials help me out so much with making my games! Keep up the good work 😄😁
@PhnxKap
Жыл бұрын
Why are you doing multiple games at once
@Puzzledmusel86
Жыл бұрын
I’m a small game dev and I’m trying to get out as many games as possible
@PumpyGT
Жыл бұрын
@@Puzzledmusel86 Don't overwork yourself
@Puzzledmusel86
Жыл бұрын
I’m not
For this doors series, (which i love by the way ) will you ever cover making glitch? like a system to check if all assets and the room loaded properly and quickly, otherwise the monster glitch
This is the first script i have ever written and its so so so SOOO helpful!! Thank you so much
I was subbed since 2018 and you are still up for new things and I really like this!
Would of never of expected GnomeCode to make a game like this! Excited to make a game like doors
@lgumas403
Жыл бұрын
same
@wolfgamer272
Жыл бұрын
Same but there is currently a problem tho, fan-made games are getting ban for one reason: illegal items usages, or more specific, someone found the backdoor to roblox Door and took some asset of the game itself :p so best way to go is make it very original :pppp just to avoid getting into crossfire
@tutorialoplenty2927
Жыл бұрын
100%
@BlueGray202
Жыл бұрын
@@wolfgamer272 n e r d
@Jynx_lol
Жыл бұрын
Smh make ur own game instead of copying peoples games who worked hard on making a creative and immersive experience
This tutorial series is perfect! Especially with Halloween coming up this month.
@lol_average5808
Жыл бұрын
Halloween hasn't started yet
@VirtuGuy
Жыл бұрын
@@lol_average5808 I never said that, I said it's coming up this month.
@devilscripter9265
Жыл бұрын
LOLL
I waited so long for this. Thank you!
Honestly, GnomeCode is the Brackeys of roblox studio tutorials. These tutorials are literally the best tutorials out there, thank you man.
@S0M3_GUY
Жыл бұрын
Agreed
Hey gnomecode you do NOT KNOW HOW MUCH I NEEDED THIS. Much thanks from the Netherlands 🇳🇱
@lol_average5808
Жыл бұрын
How could he possibly know?
@damonkegang5697
Жыл бұрын
@@lol_average5808 he can read minds i know it
Very helpful! Thanks for all the effort you put into these videos!
@PipeBallsOFFICIAL
Жыл бұрын
Help it didnt work for me
@thatonecat4459
Жыл бұрын
Make sure Ur exit and entrance parts are right
@nika1506n0
Жыл бұрын
@@thatonecat4459 thanks you are superman
Dude this is awesome how are you not super popular?
Can't wait for episode 2!
Never expected you to make this. Excited to see how you come up for the logic.
What the world needed him the most he came back!
@ae-co5ue
Жыл бұрын
When not what
Man, this is great can’t wait for the next one!
This is the only very complicated script for me that works, THANK YOU SO MUCH!
the king has returned again. i really love your series on creating different experiences especially trendy ones and explaining them well! really helps me learn how to code and easy to follow along as well! big up
thank you for making these easy to understand tutorials! i would honestly never be able to make my dream horror game if it werent for you :)
@2squaredtriangle
6 ай бұрын
What game are you making?
@raffaelevenkusscalzi4679
6 ай бұрын
"easy to understand". anyways please qhat the fuck o i need to do to make a vent based horrah gaem please help. is one of my best ideas i have.
@2squaredtriangle
6 ай бұрын
@@raffaelevenkusscalzi4679 what?
Tutorial was great! Now just waiting for part 2 to follow up on 😁😁
Just found your channel, video has not even started and I subscribed, looking at your other videos this seems like a channel for me
Probably won't use this for doors but I was always curious how generated rooms worked.
Cant wait for part 2!
@Fletch12345
Жыл бұрын
Me neither! 😅
@lol_average5808
Жыл бұрын
part 2 is after part 1
@DeTotally
Жыл бұрын
@@lol_average5808 omg it is
super underrated channel, you just earned a new sub!
OMG!! I Never expected that you did a good DOORS tutorial with not free models.
If your rooms overlap, make sure both the exit doors of all your rooms and entrance doors are both on the same side.
@thehedgehogfromnhnc
Жыл бұрын
how do you make the rooms infinite? like, without lagging the person?
@xinsalait_397
Жыл бұрын
@@thehedgehogfromnhnc im guessing generate another room once the player opens a door and delete the previous rooms
@thehedgehogfromnhnc
Жыл бұрын
@@xinsalait_397 ok
@SunStastic
Жыл бұрын
@@thehedgehogfromnhnc or a render distance limiter
@aRARARAR-lf1px
8 ай бұрын
my rooms overlap the room after the starting room after that the rest is fine why does this happen
You should make another horror game more like an adventurous horror game with completing puzzles, like trespass if you know what that is. Would love to see/play it and thank you for the uploads gnomeking really appreciate it!
@pixelatedluisyt
Жыл бұрын
thats a great idea
@The_NoobDeveloper
Жыл бұрын
I'll do it!
@devilscripter9265
Жыл бұрын
i got spooked out of my own game
@ZylexAmik
Жыл бұрын
@@devilscripter9265 thats a very good sign
@ImJustinn
Жыл бұрын
Do it yourself.
im not watching because i want to make one, im watching because i want to see him code, a few months ago i used this tutorial for my game, and it really made me learn coding, and now i can make a full game with unique entities and all that, thank you for this tutorial, you really kickstarted my whole game.
bro you have no idea how much this helped me i was remaking doors and was about to give up but then i saw this video tysm!!!
Keep going man! This series is going to be amazing!:)
@nurunnayiroh2489
Жыл бұрын
Minecraft Education Edition New update! Hour of Code 2021 TimeCraft
@devilscripter9265
Жыл бұрын
uhmm
Hey gnome code I'm really looking forward to the part where you make rooms that are rarer than others (if you are making one that is) Anyways welcome back to youtube!
@uniquebananabob
Жыл бұрын
thats what i needed
@devilscripter9265
Жыл бұрын
gnomecode definitely saw this
@goose9955
Жыл бұрын
@@devilscripter9265 100% saw this cus he hearted it and room rarity is in the next episode
THIS IS EXACTLY WHAT I'VE BEEN LOOKING FOR! THANK YOU Also for the next episode can show how to make hiding spots.
@devilscripter9265
Жыл бұрын
NNNNNNNNNN OOOOOOOO
I like this tutorial because it teaches us to CODE it, and we don't use a kit.
yes yes yes I WAS WAITING FOR THIS U ARE THE G
YOUR VIDEOS ARE SOO COOL YOU DESERVE MORE SUBSCRIBERS
For people who's rooms are stacking make sure in the module under the parent you put "return newRoom" and not prevRoom.
@danishisrealfr
Жыл бұрын
Thank you so much! I didn't put it to prevRoom I put it as room and I didn't notice he changed it to newRoom! or idk
@A300fromoverlappingrooms
11 ай бұрын
for me it does not generate i think
@danishisrealfr
11 ай бұрын
@@A300fromoverlappingrooms send me the script
@danishisrealfr
11 ай бұрын
@@A300fromoverlappingrooms lemme check
@danishisrealfr
11 ай бұрын
@@A300fromoverlappingrooms or idk
Yes. The legend has returned. I hope the new series goes well for you! Me (and alot of people) thought you were going to do an RPG next, but this? This is one step ahead! I look forward to following along with the videos and making my own "doors" game!
DUDE i have been scrolling for these tutorials TY TY TY TY TY!
Thank you, I really enjoy DOORS the game, but its so cool to have your own customizable doors game! Thank you
thank you for the tutorial! ive been trying to make a doors fangame for a few days now but have not been able to get the rooms to randomly generate. also for anyone: you might wanna refrain from using doors models in the toolbox as using them might result in Lsplash taking your game down if your game gets popular enough.
@sussyamongsus8671
Жыл бұрын
Im very much immune from that because im not using doors im using windows
@TankplayzPowers
6 ай бұрын
@sussyamongsus8671 lol
Hi GnomeCode, awesome tutorial! I'm having one issue: After the entire tutorial, it still spawns 2 rooms inside eachother at the start. I don't know if this happened for you as well, as it would be impossible to see due to the walls and roofs being the same colours. I painted my short room red and the long one blue, and there's always one of both inside of eachother at the start, and behind them 8 or 9 more rooms correctly spawned. How do I fix this?
@user-dw7rt4oc8h
Жыл бұрын
rename every entrance as exit and every exit as entrance
@InvertDoge
Жыл бұрын
@@user-dw7rt4oc8h that broke it more
@user-dw7rt4oc8h
Жыл бұрын
@@InvertDoge it worked with me sorry
@InvertDoge
Жыл бұрын
@@user-dw7rt4oc8h thanks for trying to help regardless
@InvertDoge
Жыл бұрын
@@user-dw7rt4oc8h i think i figured out to fix it, just make sure the rooms are on the same y level, that fixed it somehow
It's funny how literally yesterday I wanted to make a doors game... Perfect timing like always Gnome!
@pewpewxdx12
Жыл бұрын
Omg noble is here
@NobleKanna
Жыл бұрын
@@pewpewxdx12 Hi
cant wait for the next part!
Could you make a video on fighting mechanics? I've been trying to create a fighting system for a while now (blocking, attacking, charging attacks, stabbing and armor) Armor has different heaviness, which relates to speed, there's different weapons that do different damage with stabs, swings, etc. However, I've been stuck on just using animations and being able to deal damage. I feel like the blocking part would be simple, though.
@sim3780
Жыл бұрын
Yea thats a good idea
You can show the scripts at the end, would really help with finding bugs. I did everything correctly and rooms don't generate.
@fan0
Жыл бұрын
@thekittenisonfire Nvm I fixed the problem, the problem was that I created models for doors so I needed to change few lines a bit.
@ailerox6417
Жыл бұрын
@@fan0 Good to hear mate, except for me I do EXACTLY what he does but literally nothing works. It happens to me way too many times and it just stops me from improving at making games. Nevermind, a minute after writing this, I realized I just had to rename the scripts. Still happens to me a lot though.
@BlunderbussGamer
Жыл бұрын
Did everything right didn’t generate rooms either. If you fixed it Or found out how please tell
@BlunderbussGamer
Жыл бұрын
@@ailerox6417 same
This video is well needed
Hey GnomeCode! Great tutorial! Just one issue, in the "Server" Script, after I put the code and made sure that I wrote it right, the rooms don't generate. It still stays as 1 single room. If you or anybody knows how to fix the issue, please let me know! Thanks! :D
@Cizoxzpolski
Жыл бұрын
I have the same Issue
@iforgormyname
Жыл бұрын
rotate the entrance, it may be the problem
@MelOdy-uk8dv
Жыл бұрын
same
@ixylovespies
Жыл бұрын
Put server script into workspace, it should work.
@KingAliTheFourth
8 ай бұрын
same
I did the scripts but the rooms didnt clone
this is awesome and I’m so glad you are making doors videos, keep up the good work from the subscribe somewhere between 1,000 - 2,000
I've been waiting years for an actually working room generating tutorial for so long
its not working edit: ITS WORKING PERFERCTLY NOW I ONLY WAS SO DUMB AND WRITTEN PRIVOT INSTEAD OF PIVOT
@TankplayzPowers
6 ай бұрын
Ol
@zaydtruck3496
5 ай бұрын
Good for you !
@DebtPlays
4 ай бұрын
Cap
@Cowboy_Hat202
4 ай бұрын
@@DebtPlaysno?
local Tool = script.Parent local AnimationR15 = script:WaitForChild("AnimationR15, 1") local AnimationR6 = script:WaitForChild("AnimationR6, 1") Tool.Acivated:Connect(function() local Chracter = Tool.Parent if Chracter then local Humanoid = Chracter:FindFirstChildWhichIsA("Humanoid") if Humanoid then local LoadedAnim = nil if Humanoid.RihTybe == Enum.HumanoidRigType.R15 and AnimationR15 then LoadedAnim =Humanoid:loadAnimation(AnimationR15) elseif Humanoid.RigType == Enum.HumanoidRigType.R6 and AnimationR6 then LoadedAnim = Humanoid:LoadAnimation(AnimationR6) end if LoadedAnim then LoadedAnim:Play() end end end end)
@Dotzic
Жыл бұрын
what is this
@Quadrilly
7 ай бұрын
bruh no one asked for your code
I had a bit of trouble in the first, but then I realised I was the one not listening to you but now I’m good! Thanks for your amazing work !
@TM8TO_King
Жыл бұрын
It’s not working
@toomie8
Жыл бұрын
@@shadowdoesthings6883 i spent like 2 hours yesterday finding tutorials on a lotta roblox studio stuff and I think none of them r working rn bc of updates so don't worry abt ur not doing anything wrong its jus that they updated a lot of roblox studio
@DoorsBlox
Жыл бұрын
@@TM8TO_King maybe you scripted something wrong?
Tysm this helped me a lot I always wanted to make a doors game and I’m not really good at coding Tysm for posting this!
@GnomeCode is not working
This really change our Developing skills thank you.
You're an absolute life saver, thank you so much!!
NOTE: It doesn't work because its outdated
@soccersandals8388
2 ай бұрын
Thank you for telling
@michealjeylou8590
Ай бұрын
nooooooooooooooooo
@nebuladlux
Ай бұрын
It isnt outdated lol. Nothing in the script is deprecated
@dr.albitros4242
Ай бұрын
I will commit checking if your theory is true
@thxirdyy075
Ай бұрын
it literally works, y'all are just not writing the code properly
I liked my own comment
@eyenid7610
5 ай бұрын
Nobody cares
@lemonie.
5 ай бұрын
@@eyenid7610 i know that
i already know this is gonna be good
omg thankyou for the cool tutorials! now I could make my own doors game!!
i was actually in the middle of designing my own basic infinite generation doors game when this popped up. it looks a lot better than the one I designed.
Don't give up mate, that was my first day to use soft soft and i will work on it for a long ti!
Thank you so much! Im trying to make a rooms remade game this really helped!
I've always wondered how to do this, thanks so much!
@Adrien29tv
Жыл бұрын
Am"bush" A-"bush AYOO?
thank you so much Gnome Code! you literally saved me a lot of time looking for a good tutorial, your tutorial was very explanatory and I really enjoyed it! if my english is bad it's because i'm brazilian and i'm using google translator lol
@geradordedicas
9 ай бұрын
tambem sou brasileiro kkkkkkkkk
A tds tutorial now a doors tutorial.. Thats awesome You spent your time here..
Thank you very much! this worked perfectly
Finally I can make an generation I never was able to find a room generation tutorial
thanks for the tutorial! it really helped alot!😄
First GnomeCode makes a TDS tutorial, and now he pulls up with a Doors one.. Goddamn I like this
They are so good! Can't wait to publish the game!
Thank you, I am making a game, and I followed your tutorial, as the generation would be similar. Thank you!
ty! this gonna be the first tutorial I ever use!
Thanks learned so much, make more!! Part 2
thank you so much at first it didnt worked but i checked the scripts and i forgot something i will subscribe
woah this is cool, btw when your done with the series can you maybe try to make a tutorial on making a 3d platformer?
Thank You! Im new into roblox coding and i wanted to do something like this for months now!, and now i finally can!
HE CAME BACK!
I`ve always wanted to make my own doors fangame ever since it released. Now I can finally fulfill my dream :D
@Cursed_Showdown
Жыл бұрын
me neither!
I love this! I got a suggestion for the next tutorials The keys and tools aswell as the cross hair then after that AI
@PabTSM-OfficialChannel
Жыл бұрын
crosshairs are literally just an image at the center of your screen
Finally a tutorial that doesn't mediocrely grab a free model for the content and actually explains what the scripts do instead of just lifelessly typing
great tutorial! could you possibly have a tutorial for more wacky rooms not looping into eachother?
Thx for the tutorial I really like it !
IT WORKED I BEEN TRYING FOR LIKE 999 HOURS, IDC IT WORKED!
LETS FUCKING GOOOOOOOOOOOOO BEST TUTORIAL SERIES EVER
You Are the best for me.i hope you continue this content
9:42 copy and paste local room = {} room.random = Random.new() function room.Generate(prevRoom) local possibleRooms = workspace.Rooms:GetChildren() local randomRoom = possibleRooms[room.random:NextInteger(1, #possibleRooms)] local newRoom = randomRoom:Clone() newRoom.PrimaryPart = newRoom.Entrance newRoom:pivotTo(prevRoom.Exit.CFrame) newRoom.Parent = workspace.GeneratedRooms return newRoom end return room
@CatnipOfDestiny
3 ай бұрын
i was too lazy to write the code thanks mate
@robloxguest725
Ай бұрын
It's pivot wrong with capitalation?
You are the best youtuber.. You the best, better than rest. I will subscribe