How to Make a Doors Game - #1 Generating Rooms

  Рет қаралды 559,890

GnomeCode

GnomeCode

Күн бұрын

Пікірлер: 2 200
@lemedeez
@lemedeez 2 жыл бұрын
Honestly, GnomeCode is the Brackeys of roblox studio tutorials. These tutorials are literally the best tutorials out there, thank you man.
@S0M3_GUY
@S0M3_GUY 2 жыл бұрын
Agreed
@matthanhaze9247
@matthanhaze9247 2 ай бұрын
griffpatch of roblox
@Welcometolifeanddeath
@Welcometolifeanddeath Ай бұрын
@@matthanhaze9247 yes
@Gravisiii
@Gravisiii 12 сағат бұрын
If there were an awards for best Roblox Studio creators or helpers, I’ll definitely vote for him
@KhalidBro
@KhalidBro 2 жыл бұрын
despite me not wanting to make a doors game, there is no better tutor than you gnome ,i wish u great success :D
@Cyancloud13
@Cyancloud13 3 ай бұрын
This aged well
@ksfffsdf
@ksfffsdf 2 ай бұрын
@@Cyancloud13 ong
@Cyancloud13
@Cyancloud13 2 ай бұрын
@@ksfffsdf what
@LiquidFlamesYT
@LiquidFlamesYT Ай бұрын
@@ksfffsdf lol u messaged 2 years ago, heres a ping!
@ksfffsdf
@ksfffsdf Ай бұрын
@@LiquidFlamesYT wait huh
@CarvedMan
@CarvedMan 2 жыл бұрын
I was actually so impressed on how easy this was! I thought it'd be way harder! Amazing video!
@MrBeets24
@MrBeets24 9 ай бұрын
same
@Nah_Youtube
@Nah_Youtube 9 ай бұрын
@YourDailyMemes-jc2gw yea
@leratontombela
@leratontombela 3 ай бұрын
Yes
@CoolPixelated
@CoolPixelated 2 ай бұрын
Same here lol
@koki3292
@koki3292 2 жыл бұрын
This man for real made me understand module scripts and returns as easy as that. Thank you gnome code
@thefilipinoman21423
@thefilipinoman21423 Жыл бұрын
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.
@LAVALAMPSCOOKINGSHOW
@LAVALAMPSCOOKINGSHOW 7 күн бұрын
Game name?
@thefilipinoman21423
@thefilipinoman21423 7 күн бұрын
@LAVALAMPSCOOKINGSHOW halls of cleithrophobia
@thefilipinoman21423
@thefilipinoman21423 7 күн бұрын
@LAVALAMPSCOOKINGSHOW it's the one with the infinity symbol
@LAVALAMPSCOOKINGSHOW
@LAVALAMPSCOOKINGSHOW 5 күн бұрын
@@thefilipinoman21423 Ty!
@Umbreon_0110
@Umbreon_0110 2 жыл бұрын
Would of never of expected GnomeCode to make a game like this! Excited to make a game like doors
@lgumas403
@lgumas403 2 жыл бұрын
same
@wolfgamer272
@wolfgamer272 2 жыл бұрын
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
@tutorialoplenty2927 2 жыл бұрын
100%
@BlueGray202
@BlueGray202 2 жыл бұрын
@@wolfgamer272 n e r d
@Jynx_lol
@Jynx_lol 2 жыл бұрын
Smh make ur own game instead of copying peoples games who worked hard on making a creative and immersive experience
@Castlecrasher200
@Castlecrasher200 2 жыл бұрын
Hey gnomecode you do NOT KNOW HOW MUCH I NEEDED THIS. Much thanks from the Netherlands 🇳🇱
@lol_average5808
@lol_average5808 2 жыл бұрын
How could he possibly know?
@damonkegang5697
@damonkegang5697 2 жыл бұрын
@@lol_average5808 he can read minds i know it
@Talguy2
@Talguy2 Ай бұрын
im also duch
@Pruttesvin
@Pruttesvin 2 жыл бұрын
Always excited when a new series drops! Entertaining like always! Keep up the good work man!
@mundimutatio3746
@mundimutatio3746 2 жыл бұрын
If your rooms overlap, make sure both the exit doors of all your rooms and entrance doors are both on the same side.
@thefilipinoman21423
@thefilipinoman21423 2 жыл бұрын
how do you make the rooms infinite? like, without lagging the person?
@xinsalait_397
@xinsalait_397 2 жыл бұрын
@@thefilipinoman21423 im guessing generate another room once the player opens a door and delete the previous rooms
@thefilipinoman21423
@thefilipinoman21423 2 жыл бұрын
@@xinsalait_397 ok
@SunStastic
@SunStastic Жыл бұрын
@@thefilipinoman21423 or a render distance limiter
@aRARARAR-lf1px
@aRARARAR-lf1px Жыл бұрын
my rooms overlap the room after the starting room after that the rest is fine why does this happen
@bugydigital
@bugydigital Жыл бұрын
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!
@KingsRBLX3
@KingsRBLX3 Жыл бұрын
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 !
@KingsRBLX3
@KingsRBLX3 Жыл бұрын
It’s not working
@toomie8
@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
@DoorsBlox Жыл бұрын
@@KingsRBLX3 maybe you scripted something wrong?
@Player-te2xf
@Player-te2xf 2 жыл бұрын
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
@linkyboiii14sg63 2 жыл бұрын
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
@qaisnetwork 2 жыл бұрын
@@linkyboiii14sg63 maybe you didn't add part name "Exit"?
@linkyboiii14sg63
@linkyboiii14sg63 2 жыл бұрын
@@qaisnetwork ohh thanks bro ill try it now
@razuz2783
@razuz2783 2 жыл бұрын
Not Work : (
@tubeby2106
@tubeby2106 2 жыл бұрын
@@linkyboiii14sg63 same for me
@coneheadvr1
@coneheadvr1 2 жыл бұрын
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
@thereallightspeed 2 жыл бұрын
Make that 2
@DenoLigata
@DenoLigata Жыл бұрын
it didnt work for me
@BladesOfJustice
@BladesOfJustice 8 ай бұрын
@@thereallightspeedmake that 3
@DAVIDXUE-p5f
@DAVIDXUE-p5f 8 ай бұрын
make that four
@DAVIDXUE-p5f
@DAVIDXUE-p5f 8 ай бұрын
also to anybody reading this pls continue the chain
@cheesemaster-ck7gp
@cheesemaster-ck7gp 11 ай бұрын
for some reason my rooms arent generating, i checked the script and did everything you said.
@spookyminecraftartist7436
@spookyminecraftartist7436 5 ай бұрын
Same I have try doing this script many times to end up with the same thing!
@granitbuzalja6059
@granitbuzalja6059 4 ай бұрын
What do we do if anyone has an answer please 😢😢😢?
@WormTex245
@WormTex245 4 ай бұрын
@@granitbuzalja6059 hmmm I guess the variables are defined incorrectly looking at the script
@WormTex245
@WormTex245 4 ай бұрын
@@granitbuzalja6059 wait no ur code might be inccorect u might need to fix it it might be ur module script that is wrong u can copy and paste the script in the begining I guess It works for me
@arpitkumar-i9k
@arpitkumar-i9k 4 ай бұрын
mine as well
@Kaizentry
@Kaizentry 2 жыл бұрын
Probably won't use this for doors but I was always curious how generated rooms worked.
@Cowboy_Hat202
@Cowboy_Hat202 2 жыл бұрын
its not working edit: ITS WORKING PERFERCTLY NOW I ONLY WAS SO DUMB AND WRITTEN PRIVOT INSTEAD OF PIVOT
@TankplayzPowers
@TankplayzPowers Жыл бұрын
Ol
@zaydtruck3496
@zaydtruck3496 Жыл бұрын
Good for you !
@DebtPlays
@DebtPlays Жыл бұрын
Cap
@Cowboy_Hat202
@Cowboy_Hat202 Жыл бұрын
@@DebtPlaysno?
@mozipuggamer
@mozipuggamer 4 ай бұрын
Privot? Harry, is that you? You're a wizard Harry.
@rejectedstorm
@rejectedstorm 2 жыл бұрын
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!
@mr_bob_brick
@mr_bob_brick 2 жыл бұрын
thats what i needed
@devilscripter9265
@devilscripter9265 2 жыл бұрын
gnomecode definitely saw this
@goose9955
@goose9955 2 жыл бұрын
@@devilscripter9265 100% saw this cus he hearted it and room rarity is in the next episode
@juanayuto4826
@juanayuto4826 3 ай бұрын
Hey, i did everything like you said in the video, correctly put mayus and everything, but that second room never appears. Do you know what the issue is?
@Pan-TSB
@Pan-TSB 16 күн бұрын
you are officially one of the best youtubers of existence. take my sub as an offering of more service.
@uppast420am
@uppast420am 2 жыл бұрын
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
@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
@njo-
@njo- 7 ай бұрын
@@aeea3306 true madness was put into this man, but he screamed into the void.
@WaqyuGames
@WaqyuGames 2 жыл бұрын
Very helpful! Thanks for all the effort you put into these videos!
@PipeBallsOFFICIAL
@PipeBallsOFFICIAL 2 жыл бұрын
Help it didnt work for me
@WaqyuGames
@WaqyuGames 2 жыл бұрын
Make sure Ur exit and entrance parts are right
@nika1506n0
@nika1506n0 2 жыл бұрын
@@WaqyuGames thanks you are superman
@Screech112
@Screech112 Жыл бұрын
HI @GnomeCode, when I run that test, my random Generated startroom was spawning IN the startroom. So not right next to the start room. What is wrong with my code?
@daminquet12
@daminquet12 Жыл бұрын
is the entrance and exit named correctly? just look at the tutorial more carefully
@sanaazmalaysia2128
@sanaazmalaysia2128 3 ай бұрын
I have the same problem!
@Scrafl
@Scrafl 2 жыл бұрын
YOUR VIDEOS ARE SOO COOL YOU DESERVE MORE SUBSCRIBERS
@jupiter1337
@jupiter1337 2 жыл бұрын
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
@pixelatedluisyt 2 жыл бұрын
thats a great idea
@The_NoobDeveloper
@The_NoobDeveloper 2 жыл бұрын
I'll do it!
@devilscripter9265
@devilscripter9265 2 жыл бұрын
i got spooked out of my own game
@ZylexAmik
@ZylexAmik 2 жыл бұрын
@@devilscripter9265 thats a very good sign
@ImJustinn
@ImJustinn 2 жыл бұрын
Do it yourself.
@Wurfeln
@Wurfeln 2 жыл бұрын
Never expected you to make this. Excited to see how you come up for the logic.
@theprince9608
@theprince9608 2 жыл бұрын
Gnomecode… you’ve doomed us all There will be nothing but doors games on the main page D o o r s S i m u l a t o r .
@Maksim-q1k
@Maksim-q1k 3 ай бұрын
When I pressed run it said PrimaryPart of folder LongRoom is valid member😢 11:43
@trainfunwithmason7946
@trainfunwithmason7946 2 ай бұрын
this is because it says your "LongRoom" is a folder. change the room to a model by ungrouping it (ctrl + u) then group it into a model. (ctrl + g)
@YeorgeX
@YeorgeX Жыл бұрын
For people who's rooms are stacking make sure in the module under the parent you put "return newRoom" and not prevRoom.
@danishisrealfr
@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
@A300fromoverlappingrooms Жыл бұрын
for me it does not generate i think
@danishisrealfr
@danishisrealfr Жыл бұрын
​@@A300fromoverlappingrooms send me the script
@danishisrealfr
@danishisrealfr Жыл бұрын
@@A300fromoverlappingrooms lemme check
@danishisrealfr
@danishisrealfr Жыл бұрын
@@A300fromoverlappingrooms or idk
@Buildosaurus
@Buildosaurus Жыл бұрын
Scripts: --------------------------------------- Room module script: --------------------------------------- local room = {} room.random = Random.new() function 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.Entrance.Transparency = 1 newRoom.Exit.Transparency = 1 newRoom.Parent = workspace.GeneratedRooms return newRoom end return room -------------------------------------- Server script -------------------------------------- local room = require(script.Room) local prevRoom = workspace.StartRoom room.Generate(prevRoom) for i=1, 10 do prevRoom = room.Generate(prevRoom) end
@GnomeCode
@GnomeCode Жыл бұрын
Hi, you can delete line 4 of your main server script. You don't need the room.Generate(prevRoom) on its own, as you now have the loop instead
@Buildosaurus
@Buildosaurus Жыл бұрын
@@GnomeCode Oh ok I'll delete that and thanks!
@jhenluks7090
@jhenluks7090 3 ай бұрын
omg bro thanks
@scetching7856
@scetching7856 Ай бұрын
WARNING! this script does not work. Watch the video instead of using it.
@wewwawwew-jm4sn
@wewwawwew-jm4sn 16 күн бұрын
@@scetching7856 these scripts do work however you need to fill in the blanks
@grovast3167
@grovast3167 2 жыл бұрын
Keep going man! This series is going to be amazing!:)
@nurunnayiroh2489
@nurunnayiroh2489 2 жыл бұрын
Minecraft Education Edition New update! Hour of Code 2021 TimeCraft
@devilscripter9265
@devilscripter9265 2 жыл бұрын
uhmm
@Buildosaurus
@Buildosaurus Жыл бұрын
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?
@костян3310-н9л
@костян3310-н9л Жыл бұрын
rename every entrance as exit and every exit as entrance
@InvertDoge
@InvertDoge Жыл бұрын
@@костян3310-н9л that broke it more
@костян3310-н9л
@костян3310-н9л Жыл бұрын
@@InvertDoge it worked with me sorry
@InvertDoge
@InvertDoge Жыл бұрын
@@костян3310-н9л thanks for trying to help regardless
@InvertDoge
@InvertDoge Жыл бұрын
@@костян3310-н9л i think i figured out to fix it, just make sure the rooms are on the same y level, that fixed it somehow
@GoldAnimations
@GoldAnimations 2 жыл бұрын
I like this tutorial because it teaches us to CODE it, and we don't use a kit.
@thatoneavgeek_1
@thatoneavgeek_1 5 ай бұрын
out of all the tutorials on how to make doors, this is the best! Thanks!
@hakuruyu
@hakuruyu 3 ай бұрын
my rooms fangame isn't gonna be a rooms fangame anymore after i follow this tutorial
@NACH0_NACH0S
@NACH0_NACH0S 9 ай бұрын
It spawns all the rooms Right in front of the start room. Please HELP
@KolopiOff777
@KolopiOff777 4 ай бұрын
create a room with a bend
@good_noodlewastaken
@good_noodlewastaken 2 жыл бұрын
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
@2squaredtriangle Жыл бұрын
What game are you making?
@raffaelevenkusscalzi4679
@raffaelevenkusscalzi4679 Жыл бұрын
"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
@2squaredtriangle Жыл бұрын
@@raffaelevenkusscalzi4679 what?
@Skweebles
@Skweebles 2 жыл бұрын
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
@XYWZExtreme
@XYWZExtreme 2 жыл бұрын
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
@aeea3306
@aeea3306 Жыл бұрын
I've been waiting years for an actually working room generating tutorial for so long
@CaffeinatedCombatant
@CaffeinatedCombatant 2 жыл бұрын
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
@sim3780 2 жыл бұрын
Yea thats a good idea
@leohoang7153
@leohoang7153 2 жыл бұрын
I did the scripts but the rooms didnt clone
@mikugameuse8414
@mikugameuse8414 3 ай бұрын
Yea me Too
@stoneyizme
@stoneyizme 7 күн бұрын
same
@kyledaboi1745
@kyledaboi1745 2 жыл бұрын
can someone help? at 11:36 i have a error which says ServerScriptService.Server.Room:10: attempt to index nil with 'Exit' what does this mean? edit: nvm im dumb
@ProGamer_9190
@ProGamer_9190 2 ай бұрын
How did you fix it?
@kyledaboi1745
@kyledaboi1745 2 ай бұрын
@ i never did😭
@doncomputer5931
@doncomputer5931 2 жыл бұрын
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.
@ThatRareDonut
@ThatRareDonut Жыл бұрын
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
@Cizoxzpolski Жыл бұрын
I have the same Issue
@iforgormyname
@iforgormyname Жыл бұрын
rotate the entrance, it may be the problem
@MelOdy-uk8dv
@MelOdy-uk8dv Жыл бұрын
same
@ixylovespies
@ixylovespies Жыл бұрын
Put server script into workspace, it should work.
@KingAliTheFourth
@KingAliTheFourth Жыл бұрын
same
@YaserProz
@YaserProz 3 ай бұрын
heres the modulescript (Server script will be added ltr) 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
@YaserProz
@YaserProz 3 ай бұрын
local room = require(script.Room) local prevRoom = workspace.StartRoom for i=1, 10 do prevRoom = room.Generate(prevRoom) end
@brocktastrophe
@brocktastrophe 3 ай бұрын
@@YaserProz OH MY GOODNESS!!!! TYSM!!!!! it didn't work for me, but NOW IT DOES!!! Major Respect bro
@YaserProz
@YaserProz 3 ай бұрын
@@brocktastrophe No Problem my Guy!
@YaserProz
@YaserProz 2 ай бұрын
@@EminPlaying203 ???
@EminPlaying203
@EminPlaying203 2 ай бұрын
@@YaserProz oops my bad I did that
@martin_cz6504
@martin_cz6504 Жыл бұрын
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
@Dotzic Жыл бұрын
what is this
@Quadrilly
@Quadrilly Жыл бұрын
bruh no one asked for your code
@MRMCBANBAN
@MRMCBANBAN 7 ай бұрын
@@Quadrilly fr
@sanaazmalaysia2128
@sanaazmalaysia2128 3 ай бұрын
Is this EVEN IN THE VIDEO!??🤨
@sanaazmalaysia2128
@sanaazmalaysia2128 3 ай бұрын
NO RIGHT??🤨
@TheTeamFast_Tom
@TheTeamFast_Tom 11 ай бұрын
@GnomeCode is not working
@sir.fangagain9307
@sir.fangagain9307 7 ай бұрын
Fr the rooms won’t generate
@IsaacPlayzYT959
@IsaacPlayzYT959 7 ай бұрын
Did u set the orientation point correctly of the entrance and exit
@sir.fangagain9307
@sir.fangagain9307 7 ай бұрын
@@IsaacPlayzYT959 yes, they were both the same direction
@IsaacPlayzYT959
@IsaacPlayzYT959 7 ай бұрын
Oh
@IsaacPlayzYT959
@IsaacPlayzYT959 7 ай бұрын
@@sir.fangagain9307 where they the correct direction
@MelissaCoddington-sp1ze
@MelissaCoddington-sp1ze 3 ай бұрын
Don't know if you're going to see this but I'm having a problem, it's saying that it can't read the generate part of the script and I can't figure out how to fix it. Got everything I can think of and it just will not work! PLZ HELP
@Gooseyplayz
@Gooseyplayz 18 күн бұрын
This may be obvious to some people but for people who don't know. You can keep the startRoom Exit at 0.5 transparency in the studio. You just have to go into the server script, and type "workspace.[Your start room name].Transparency = 1" It's pretty simple but in case you didn't know
@RoyalRae1
@RoyalRae1 11 ай бұрын
NOTE: It doesn't work because its outdated
@michealjeylou8590
@michealjeylou8590 10 ай бұрын
nooooooooooooooooo
@nebuladlux
@nebuladlux 10 ай бұрын
It isnt outdated lol. Nothing in the script is deprecated
@dr.albitros4242
@dr.albitros4242 10 ай бұрын
I will commit checking if your theory is true
@a3dxyz075
@a3dxyz075 10 ай бұрын
it literally works, y'all are just not writing the code properly
@michealjeylou8590
@michealjeylou8590 10 ай бұрын
@@a3dxyz075 it not work for me
@lemonie.
@lemonie. Жыл бұрын
I liked my own comment
@eyenid7610
@eyenid7610 Жыл бұрын
Nobody cares
@lemonie.
@lemonie. Жыл бұрын
@@eyenid7610 i know that
@mayronmontoya
@mayronmontoya 24 күн бұрын
i disliked my reply...
@IDI_NULL
@IDI_NULL Жыл бұрын
the room generator works, but sometimes it can glitch and some rooms can spawn inside of eachother. can you help me with this? i swear, i copied the code exactly.
@Ossianatur
@Ossianatur Жыл бұрын
By the way i have an idea for the future episodes so whenever you open a door 2 more rooms generate and after around 5 rooms later the rooms behind you get destroyed its for less lag and its how doors generating works
@BlankD_Out
@BlankD_Out 18 күн бұрын
FYI to anyone having any problems as in the the prevRoom.Exit.CFrame make sure its not "Cframe" and is "CFrame" instead, uppercase F.
@RusherRBLX
@RusherRBLX 2 ай бұрын
I didn't work at the beginning but that was because I forgot to add the randomroom script. This video helped me a lot for my game! Thank you!
@Ikmauki
@Ikmauki Жыл бұрын
You are the best youtuber.. You the best, better than rest. I will subscribe
@LightBulbOn
@LightBulbOn 3 ай бұрын
This turned out to be SO GOOD! Thank you!!!
@Planetary-1
@Planetary-1 8 ай бұрын
This works well, but here is a problem, it doesn't remove old rooms, in doors. When you enter a new door, it generates a new room before the door even opens, and it deletes a few or some old rooms to clean up space for more rooms, like say you want an infinite amount of rooms, just have it so when the player hits the most newest rooms door. It will generate another room before the door opens and delete the oldest room then it should work I've already created a basic layout of a Roblox game, it is really good, room generation works splendidly.
@itsstanplayz-105
@itsstanplayz-105 Жыл бұрын
Hi GnomeCode. For some reason, when I went to run the scene, the building just fell apart. Do you know how to help with this?
@itsstanplayz-105
@itsstanplayz-105 Жыл бұрын
@TrewVR thanks a lot mate!
@Dotzic
@Dotzic Жыл бұрын
Anchor your buildings :)
@RedbloxPlays
@RedbloxPlays 3 ай бұрын
Your The best GnomeCode also the First Ep i have done good everything Thanks for the help :D
@Arabyc930
@Arabyc930 5 ай бұрын
hey gnome, watching this a bit later in time. I just completed the tower defense series and i just wanna say, you are amazing at explaining things! I hope you have a good day:)
@G4MBL1NG
@G4MBL1NG 3 ай бұрын
When i pressed run after the scripts, it's not showing me the rooms, its just the same start room floating, nothing chained together infront of it and nothing spawned, im not sure what i did wrong here.. 11:29
@sdjoltystudio
@sdjoltystudio 3 ай бұрын
same happened with me
@Polish_General123
@Polish_General123 3 ай бұрын
Same
@Hyper_robloxYT
@Hyper_robloxYT 23 күн бұрын
Same
@Blobfish-py7qc
@Blobfish-py7qc 4 ай бұрын
question for you. How did LSPLASH make his textures? If you don't know that's OK.
@Reeid0263
@Reeid0263 2 жыл бұрын
Honestly this helps a lot with me trying to make a Hardcore Doors game. Thank you so much!
@Rad_Pie
@Rad_Pie Жыл бұрын
I used this to help me with gnome jam 2023 with the roads 👁👄👁
@verbiix
@verbiix 2 жыл бұрын
Thanks for this tutorial! But how do you make it so that the previous rooms disappear so that lag won't happen?
@waterrouter3247
@waterrouter3247 2 жыл бұрын
it's simple after you add doors
@AkitaLovesYou
@AkitaLovesYou Ай бұрын
Hello!! I was attempting to localize the mistake in my code, and for some reason, even tho i copied the same script, it didn't set the entrance as the the primary part, so i had to manually do it. If someone is having a problem like this adding primary parts manually can save you.
@qquackers8779
@qquackers8779 Жыл бұрын
This is the first script i have ever written and its so so so SOOO helpful!! Thank you so much
@waggerra
@waggerra 2 жыл бұрын
How can I make sure that between each generated room, I put a checkpoint? Thanks
@Mamyschn1_3
@Mamyschn1_3 Ай бұрын
hey is this tutorial outdated? i was trying to make one of these myself and the rooms just spawned on top of each other when i followed the script exactly Edit: it was one character being lowercase that caused it
@CeresCanAnimate
@CeresCanAnimate Жыл бұрын
I like to use 0.5 studs because it lets you get detailed rooms, but not too detailed.
@CeresCanAnimate
@CeresCanAnimate Жыл бұрын
next thing you know, the script doesn't work
@DenoLigata
@DenoLigata Жыл бұрын
same dude nothing worked it was a scam
@CeresCanAnimate
@CeresCanAnimate 7 ай бұрын
@@DenoLigata HOW DID I GUESS THAT
@thefunnymelons
@thefunnymelons 4 ай бұрын
@@DenoLigata its not a scam when you didnt lose anything, and its because your trash .
@mattSXTN
@mattSXTN Жыл бұрын
super underrated channel, you just earned a new sub!
@snipeshot7822
@snipeshot7822 2 жыл бұрын
hey, i did everything right, i triple checked the script, and the rooms still arnt loading when i playtest/run. help me please?
@PartyOrange-a
@PartyOrange-a 14 күн бұрын
idk what to do. I have checked my script many times and fin nothing wrong, Yet my rooms keep spawning on top of eachother. If someone has a possible answer, please let me know! EDIT: GUYS PLEASE REMEMBER TO MAKE YOU START ROOMS EXIT TO BE FACING OUTWARDS
@Jim199x-q5i
@Jim199x-q5i 12 күн бұрын
rotate ur exit part 180 degrees
@PartyOrange-a
@PartyOrange-a 11 күн бұрын
@@Jim199x-q5i yeah i did that already but thanks anyways
@konvro
@konvro 5 ай бұрын
I remember when I was using this tutorial 1 year ago, and I knew almost nothing, now I can easily add many things that just come into my mind, for example function that generate last room.
@godzijade6478
@godzijade6478 Жыл бұрын
it is normal if for the server script it said " Room is not a valid member of Script "ServerScriptService.Script" ?
@Superior98
@Superior98 2 жыл бұрын
My rooms don’t generate when I click play and I followed all of the instructions very carefully
@D3v1l_hyh
@D3v1l_hyh Жыл бұрын
I got error at the script line: newRoom:PivotTo(prevRoom.Exit.CFrame) the error is: ServerScriptService.Server.Room:10: attempt to index nil with ‘exit’
@PlushieemonKidz
@PlushieemonKidz 3 ай бұрын
mine says that too
@Danny123-w9g
@Danny123-w9g 3 ай бұрын
same
@a60_hotelplus
@a60_hotelplus 2 жыл бұрын
There is big bug when room break and this guide doesn't work. I was angry and thought that GnomeCode is bad. But this bug has bugfix. Just select rooms and click at the "Anchor" button! That works!
@AstraaRoblox
@AstraaRoblox Жыл бұрын
I'm having trouble with the room generating, I Made the folders, And named them, I Did the scripts. I Added them in, But when i try to test the game, The rooms don't Generate.
@nolhanmangin5939
@nolhanmangin5939 8 ай бұрын
This is Amazing, i do wish that there would be a way to control the rooms that follows the previous one and control the rarity of the rooms
@octozinho123
@octozinho123 10 ай бұрын
I tested it, and its saying that "NextIntenger is not a valid member of Random", could someone help me ?
@RealDippy
@RealDippy 10 ай бұрын
I think you put “room.random.NextInteger” instead of room.random:NextInteger
@dexu_yt_2
@dexu_yt_2 4 ай бұрын
do Random:NextInteger() instead of Random.NextInteger()
@dexu_yt_2
@dexu_yt_2 4 ай бұрын
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
@BloxKitten
@BloxKitten Жыл бұрын
I recommend for anybody making a room to use a avatar so you can get the right proportions.
@ilikeorangejuice23
@ilikeorangejuice23 Жыл бұрын
for the people that are too lazy to script even with short scripts SERVER SCRIPT local room = require(script.Room) local prevRoom = workspace.StartRoom for i=1, 10 do prevRoom = room.Generate(prevRoom) end MODULE SCRIPT 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
@BreenyBurple
@BreenyBurple Жыл бұрын
thx düd
@owald41242
@owald41242 Жыл бұрын
Thank you very much, i watched this video over and over again, because did not work. seems like EVERY time i forgot 1 line of code. Hope you have very nice christmas and new year, best luck for you
@john20143
@john20143 5 ай бұрын
thank you
@the_endermanelio
@the_endermanelio 3 ай бұрын
I know im watching like 2 years late, but thank you so much dude. I wish you the best in life!
@PortalBound_Offic
@PortalBound_Offic 3 ай бұрын
@@the_endermanelio same XD
@uru4123
@uru4123 2 жыл бұрын
This is the only very complicated script for me that works, THANK YOU SO MUCH!
@alicenialouza4356
@alicenialouza4356 13 күн бұрын
Thank you very much, I have a project for a game inspired by doors called skylands and this tutorial helped me a lot.
@iamtherealptfsaviation
@iamtherealptfsaviation 3 ай бұрын
im going for all non generated since you have to make so many rooms to script while non generated is 1 room non scripted and the other one are non scripted too i just think its simpler for non-generated rooms in my opinion
@shibey8655
@shibey8655 3 ай бұрын
then it would be boring
@iamtherealptfsaviation
@iamtherealptfsaviation 2 ай бұрын
@@shibey8655i agree but for a begginer thats better
@screamingraptor4087
@screamingraptor4087 2 жыл бұрын
question... why does it say: Entrance is not a valid member of Model "Model" ? it would have been helpful that you put the scripts in chat!
@poIum
@poIum Жыл бұрын
The "Model" dont have an "Entrance"
@GoldenNoob-
@GoldenNoob- 4 ай бұрын
thanks, something weird is that i did the script, it didn't worked but when i copy pasted the exact same thing from someone in the comments, it worked that time... maybe coding hates me after all
@nanobyte4867
@nanobyte4867 Жыл бұрын
Lsplash: *takes a long time to release doors floor 2* Me (and half the people here): Fine. I’ll do it myself.
@popeyetheanimator
@popeyetheanimator Ай бұрын
They released floor 2
@GamesoGaming
@GamesoGaming Ай бұрын
@@popeyetheanimator this was 1 year ago
@popeyetheanimator
@popeyetheanimator Ай бұрын
@GamesoGaming I know, sometimes people respond after 1 year
@WarrenDaEagle_Live
@WarrenDaEagle_Live Жыл бұрын
This really change our Developing skills thank you.
@Docoman_NarrowOne
@Docoman_NarrowOne Жыл бұрын
Do you know how to generate a room when opening a door, like doors, doors has that generation, generating a room every time we open a door, do you know how to do it?
@HowToDoThatYTChannel
@HowToDoThatYTChannel 24 күн бұрын
Hello! I Quit from roblox studio and went onto scratch here i am commenting on a MacBook Air from 2012 you took me out of scratch and back into roblox studio Thanks!
@holy_cow1
@holy_cow1 2 жыл бұрын
4:03 when i hold down shift it includes baseplate its really annoying.. how come for you it didnt select baseplate?
@Bennyy4388
@Bennyy4388 2 жыл бұрын
You have to lock baseplate
@hihihihihihihihihihlololol
@hihihihihihihihihihlololol 4 ай бұрын
If your looms are overlapping, try increase the exit part size (what worked for me)
@corruptedinkroblox2267
@corruptedinkroblox2267 Жыл бұрын
im using this for a rooms fangame and its not working but i did everything right. EVERYTHING RIGHT up until testing phase
@A_RandomMax
@A_RandomMax Жыл бұрын
If it doesnt work its because you made something bad
@MultieMalik
@MultieMalik Жыл бұрын
@@A_RandomMax bro you want something of what
@smol_man
@smol_man 9 ай бұрын
@GnomeCode whenever i try to generate 1000 rooms , (i need a 1000) the first 2 rooms spawn inside eachother directly, how do i fix this? (like the first 2 rooms both connect to the first exit of StartRoom) everything after works perfectly, btw maybe handy to note, i also got all the scripts of episode 2 in my scripts
@cartersuperplays
@cartersuperplays 4 ай бұрын
try rotating the exit part in your start room 180 degrees
@jeezwhy2015
@jeezwhy2015 2 жыл бұрын
How do you call a function By multipule Rooms?
@trashymichaelrosen5860
@trashymichaelrosen5860 4 ай бұрын
how would i make it so that there is an end room?
@Chester-mz2ep
@Chester-mz2ep 6 ай бұрын
Not related to the video but the AI scripting is really nice, half the code in the video I didn't even have to manually write cause it knew exactly what I wanted to write
Complex Room Generation - Doors Game Tutorial #2
22:43
GnomeCode
Рет қаралды 184 М.
Busting 8 New Myths In Doors The Content Update
11:10
Gana Gaming
Рет қаралды 269 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
I tried remaking Roblox DOORS in 1 HOUR...
2:50
Gamer M8
Рет қаралды 1,5 МЛН
Item Respawns & Multiplayer Tweaks - Doors Tutorial #14
16:26
I GOT ROBLOX DOORS HOTEL HELL ACHIEVEMENT.. FINALLY!!
46:47
Thinknoodles
Рет қаралды 2,1 МЛН
Minecraft Choose Your FIGHTER...
3:59:47
JoofyLooby
Рет қаралды 389 М.
Specific Rooms & Dynamic Loading - Doors Tutorial #8
15:30
GnomeCode
Рет қаралды 23 М.
I remade DOORS in 24 HOURS
5:12
DevDucksey
Рет қаралды 115 М.
Making Sally Not Mid In Roblox Doors CONTENT Update.
8:55
cheddar balls
Рет қаралды 76 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН