How to Make a Doors Game - #1 Generating Rooms
Вставка
- Опубліковано 31 тра 2024
- 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
I was actually so impressed on how easy this was! I thought it be way harder! Amazing video!
same
@@MrBeets24 its been over a year...
@@YourDailyMemes-jc2gw yea
Always excited when a new series drops! Entertaining like always! Keep up the good work man!
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!
despite me not wanting to make a doors game, there is no better tutor than you gnome ,i wish u great success :D
Would of never of expected GnomeCode to make a game like this! Excited to make a game like doors
same
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
100%
@@wolfgamer272 n e r d
Smh make ur own game instead of copying peoples games who worked hard on making a creative and immersive experience
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 :)
Adding and changing the Lighting will make you game even more horrifying
Hi I cant scale the parts It doesnt work can you help me?
same!
This man for real made me understand module scripts and returns as easy as that.
Thank you gnome code
this is amazing. actually the first tutorial i find that actually works so thank you.
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
Honestly this helps a lot with me trying to make a Hardcore Doors game. Thank you so much!
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
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
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!
Make that 2
it didnt work for me
@@thereallightspeedmake that 3
make that four
also to anybody reading this pls continue the chain
Never expected you to make this. Excited to see how you come up for the logic.
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.
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"
@@linkyboiii14sg63 maybe you didn't add part name "Exit"?
@@qaisnetwork ohh thanks bro ill try it now
Not Work : (
@@linkyboiii14sg63 same for me
This is the first script i have ever written and its so so so SOOO helpful!! Thank you so much
This tutorial series is perfect! Especially with Halloween coming up this month.
Halloween hasn't started yet
@@lol_average5808 I never said that, I said it's coming up this month.
LOLL
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 😄😁
Why are you doing multiple games at once
I’m a small game dev and I’m trying to get out as many games as possible
@@Puzzledmusel86 Don't overwork yourself
I’m not
OMG!! I Never expected that you did a good DOORS tutorial with not free models.
I waited so long for this. Thank you!
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
i was too lazy to write the code thanks mate
It's pivot wrong with capitalation?
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
Hey gnomecode you do NOT KNOW HOW MUCH I NEEDED THIS. Much thanks from the Netherlands 🇳🇱
How could he possibly know?
@@lol_average5808 he can read minds i know it
Man, this is great can’t wait for the next one!
I CANT'T WAIT FOR THE NEXT ONE MAN, THANK YOU
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 :)
What game are you making?
"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.
@@raffaelevenkusscalzi4679 what?
What the world needed him the most he came back!
When not what
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.
I was subbed since 2018 and you are still up for new things and I really like this!
Very helpful! Thanks for all the effort you put into these videos!
Help it didnt work for me
Make sure Ur exit and entrance parts are right
@@thatonecat4459 thanks you are superman
Cant wait for part 2!
Me neither! 😅
part 2 is after part 1
@@lol_average5808 omg it is
Can't wait for episode 2!
Honestly, GnomeCode is the Brackeys of roblox studio tutorials. These tutorials are literally the best tutorials out there, thank you man.
Agreed
If your rooms overlap, make sure both the exit doors of all your rooms and entrance doors are both on the same side.
how do you make the rooms infinite? like, without lagging the person?
@@thehedgehogfromnhnc im guessing generate another room once the player opens a door and delete the previous rooms
@@xinsalait_397 ok
@@thehedgehogfromnhnc or a render distance limiter
my rooms overlap the room after the starting room after that the rest is fine why does this happen
Probably won't use this for doors but I was always curious how generated rooms worked.
This is the only very complicated script for me that works, THANK YOU SO MUCH!
Keep going man! This series is going to be amazing!:)
Minecraft Education Edition New update! Hour of Code 2021 TimeCraft
uhmm
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!
thats a great idea
I'll do it!
i got spooked out of my own game
@@devilscripter9265 thats a very good sign
Do it yourself.
It's funny how literally yesterday I wanted to make a doors game... Perfect timing like always Gnome!
Omg noble is here
@@pewpewxdx12 Hi
Thank you, I really enjoy DOORS the game, but its so cool to have your own customizable doors game! Thank you
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!
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!
thats what i needed
gnomecode definitely saw this
@@devilscripter9265 100% saw this cus he hearted it and room rarity is in the next episode
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 !
It’s not working
@@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
@@KingsRBLX3 maybe you scripted something wrong?
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!!!
For people who's rooms are stacking make sure in the module under the parent you put "return newRoom" and not prevRoom.
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
for me it does not generate i think
@@A300fromoverlappingrooms send me the script
@@A300fromoverlappingrooms lemme check
@@A300fromoverlappingrooms or idk
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)
what is this
bruh no one asked for your code
cant wait for the next part!
THIS IS EXACTLY WHAT I'VE BEEN LOOKING FOR! THANK YOU
Also for the next episode can show how to make hiding spots.
NNNNNNNNNN OOOOOOOO
@GnomeCode is not working
I like this tutorial because it teaches us to CODE it, and we don't use a kit.
Tutorial was great! Now just waiting for part 2 to follow up on 😁😁
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.
Im very much immune from that because im not using doors im using windows
@sussyamongsus8671 lol
its not working edit: ITS WORKING PERFERCTLY NOW I ONLY WAS SO DUMB AND WRITTEN PRIVOT INSTEAD OF PIVOT
Ol
Good for you !
Cap
@@DebtPlaysno?
Just found your channel, video has not even started and I subscribed, looking at your other videos this seems like a channel for me
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?
rename every entrance as exit and every exit as entrance
@@user-dw7rt4oc8h that broke it more
@@InvertDoge it worked with me sorry
@@user-dw7rt4oc8h thanks for trying to help regardless
@@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
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.
Yea thats a good idea
You're an absolute life saver, thank you so much!!
super underrated channel, you just earned a new sub!
I did the scripts but the rooms didnt clone
You can show the scripts at the end, would really help with finding bugs. I did everything correctly and rooms don't generate.
@thekittenisonfire Nvm I fixed the problem, the problem was that I created models for doors so I needed to change few lines a bit.
@@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.
Did everything right didn’t generate rooms either. If you fixed it Or found out how please tell
@@ailerox6417 same
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
yes yes yes I WAS WAITING FOR THIS U ARE THE G
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
I have the same Issue
rotate the entrance, it may be the problem
same
Put server script into workspace, it should work.
same
This really change our Developing skills thank you.
Don't give up mate, that was my first day to use soft soft and i will work on it for a long ti!
NOTE: It doesn't work because its outdated
Thank you for telling
nooooooooooooooooo
It isnt outdated lol. Nothing in the script is deprecated
I will commit checking if your theory is true
it literally works, y'all are just not writing the code properly
I liked my own comment
Nobody cares
@@eyenid7610 i know that
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
tambem sou brasileiro kkkkkkkkk
i already know this is gonna be good
I've been waiting years for an actually working room generating tutorial for so long
DUDE i have been scrolling for these tutorials TY TY TY TY TY!
This video is well needed
Dude this is awesome how are you not super popular?
They are so good! Can't wait to publish the game!
YOUR VIDEOS ARE SOO COOL YOU DESERVE MORE SUBSCRIBERS
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!
thanks for the tutorial! it really helped alot!😄
I`ve always wanted to make my own doors fangame ever since it released. Now I can finally fulfill my dream :D
me neither!
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.
Thank you very much! this worked perfectly
Thanks learned so much, make more!! Part 2
I've always wondered how to do this, thanks so much!
Am"bush"
A-"bush
AYOO?
Omg Thank you so much! Generation is working! Again thanks!
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
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!
works great! Thanks!
omg thankyou for the cool tutorials! now I could make my own doors game!!
Amazing Tutorial!!
Thx for the tutorial I really like it !
Thanks for the video!
Thank you so much! Im trying to make a rooms remade game this really helped!
Thank You! Im new into roblox coding and i wanted to do something like this for months now!, and now i finally can!
Comment for support)
Nice work, thank you!
Heeyy! Good tutorial! tysm for this part 1!
thank you so much at first it didnt worked but i checked the scripts and i forgot something i will subscribe
im having issues because the rooms merge into each other should i just not at turn rooms or are you going to make a tutorial on deleting rooms that are far away?
Thanks you gnome code god ! With you all is possible :D !!!!!
Wow your videos are cool man i liked them
You Are the best for me.i hope you continue this content
woah that was really cool 🤩🤩