I was really hoping he would design the rooms on camera too, kinda ruined my motivation but the tutorials have been incredible! Cant wait to see how this pans out
@BenGodot Жыл бұрын
What do you mean?
@Erolsaurus Жыл бұрын
@@BenGodot He means building the rooms on camera.
@andy-gamer10 ай бұрын
Do u lack creativity or something
@doomsdomain9 ай бұрын
@@andy-gamer Yes i do
@thescaryscream59635 ай бұрын
Did you watch part one first?@EnderSnak
@FishyBoiFN12 жыл бұрын
I love how frequently you upload these new parts! It helps me alot with making this game while being short on time!
@ExperimentedBacon Жыл бұрын
just setting a stamp to remind myself: 5:20 Love your stuff! Keep up the great work!
@doinic092 жыл бұрын
0:20 "Just did some mining off camera, not too much."
@EverythingsBrent3 ай бұрын
true broXD
@the_endermanelio3 ай бұрын
TRUE
@PonkoKnight2 жыл бұрын
I can't wait to see how this game is going to be at the end. Enjoying the whole series so far.
@swiimer-the-topphat2 жыл бұрын
same
@YaserProz2 ай бұрын
@@swiimer-the-topphat same
@dr3amst0ryb0omАй бұрын
@@YaserProz same
@IULITM2 жыл бұрын
Wow, that's great! Keep up the good work!
@BoniDev2 жыл бұрын
Hi IULITMx !
@zeroplix2 жыл бұрын
IULITMx!
@tkn1ght4932 жыл бұрын
ayo, Why are you here wasnt expecting you lol
@Trazor_2 жыл бұрын
yo waddup
@jenjen27762 жыл бұрын
yo
@Untitled_User3 ай бұрын
For all of those struggling with building overlaps, I found that for some doors, I had either the entrance or exit facing the wrong way, so the next room would be placed inside the previous room. Hope this helps 2 years later!
@saiedwlblzknxlekfrn3ourfb2 ай бұрын
did the code work correctly for u or did u have to change bits cos its old?
@Untitled_User2 ай бұрын
@@saiedwlblzknxlekfrn3ourfb It works still.
@lancerdoesgames2 ай бұрын
yay it works now thanks
@mixn8tr15 күн бұрын
thats what happened with me haha, 1 year later and about 50% more coding knowledge i can do it (also more patience) thanks for spreading the word man!
@PyramidDown12 күн бұрын
thank you, i was having problems with that for ages
@disposablebody33792 жыл бұрын
Bro this is exactly what I needed! I was worried I wouldn't be able to release my game before Halloween, but you got it here quick. Thanks!
@azutreo2 жыл бұрын
In my opinion, for tutorials like this, I feel like spreading the usage of Attributes would be extremely beneficial for teaching this new generation of developers as attributes help narrow down the divide between artists and programmers; it allows almost anyone on the team to declare HasStairs to true or Direction to Left or Right.
@TheRageCommenter Жыл бұрын
100%
@S7vie Жыл бұрын
LSPLASH used Attributes for rooms, for example ["Weight"].
@randomchannel-kh7oc3 ай бұрын
thanks, i fixed the error where it doesn't know the room info is there
@PollenJH2 ай бұрын
@@randomchannel-kh7oc same here, learnt something new as well
@monkeymanolaiba61172 жыл бұрын
This is AWSOME and I can't wait for episode 3! I love your tutorials! ❤
@Pix_Ule2 жыл бұрын
guys, the orientation of the exit and entrance is EXTREMELY IMPORTANT otherwise everything will just glitch out. to check it, just right click on the entrance or exit and select "show orientation indicator"
@thatdogewithvr Жыл бұрын
Which way is the orientation supposed to face?
@Pix_Ule Жыл бұрын
i think it should be facing the same orientation as all the other models and parts
@HeldByStrings Жыл бұрын
what happens with rooms that change orientation; Nvm, I got all Figured out, just make parts face the WAY to the exit.
@Nicolas99998 Жыл бұрын
Man you saved my ass❤❤
@Treviolation8 ай бұрын
@@Nicolas99998 💀
@Inktrom2 жыл бұрын
Let's say the truth: GnomeCode is the best delevoper!
@mayronmontoya9 күн бұрын
not really
@TheRealKensterBoosteryt2 жыл бұрын
When he says” hello my fellow gnomes!” That is the best part Edit: thx for 35 likes!
@godzil72 жыл бұрын
correct
@theunknowns9992 жыл бұрын
I'm actually not super late to a video
@despwned_PL2 жыл бұрын
I agree
@JJJ-ti2ys2 жыл бұрын
True
@RevolutionSpiff2 жыл бұрын
Agreed
@creepermccreationsАй бұрын
this is why were subscribed to gnomecode, amazing content
@star_smells64512 жыл бұрын
Gnomecode, ever since I found you via the piggy stuff, You've been amazing! You've helped me understand so many things And I can't THANKYOU enough! I am so excited to see where the rest of these videos go, you have a amazing future ahead!
@forwhateverreason. Жыл бұрын
Good tutorial! It gives me just enough information that if I make a mistake in the code or in orientation I can fix it with relative ease.
@koainanis58402 жыл бұрын
You made so awesome tutorials, you have a clear voice and on the most videos i learned a lot of coding. Thank you for your work. Did you plan more tutorials on this series ? I love this game.
@seojun15122 жыл бұрын
Korean?
@C00LTYPER Жыл бұрын
ngl this is the best tutorial i have seen in years
@FreddyFazGlitch2 жыл бұрын
This series is great! Can't wait for the next part :)
@Punchie-ThePro2 жыл бұрын
I got 2 15 second ads that I couldn’t skip and I was not happy that I wasn’t able to watch gnomecode
@12Duckz2 жыл бұрын
Love these videos gnome! Keep up the great work ❤
@musztardagamer69742 жыл бұрын
Really Thanks bro. Im waiting for the 3part
@me_ghxst Жыл бұрын
Idea: Instead of making it repeat the function until it finds a random room that obeys the rules (which could take a while depending on "luck"), it would be better if we just created an array and inserted all the rooms that follow the rules, and then select a random room of the ones inside the array. For example: Local possible_rooms = {}; for _, room in pairs(workspace.Rooms:GetChildren()) do if room == obbey the rules and all that stuff then table.insert(possible_rooms, v) end; end; local selected_room = possible_rooms[math.random(1,#possible_rooms)]; I hope this is understandable.
@syntaxicalecho8281 Жыл бұрын
Makes sense. Might also help with speed.
@akiprox7 Жыл бұрын
what
@syntaxicalecho8281 Жыл бұрын
@@akiprox7 Essentially, what he's saying is instead of repeatedly selecting a random room until you find a valid one, instead just select a random valid room by storing all the valid rooms in one array, then picking one from that array.
@jaydonNEWi Жыл бұрын
1: lua does not need ";" 2: i tried to convert it to my vars but it did not work.
@me_ghxst Жыл бұрын
@@jaydonNEWi 1. It really doesn't, I just got used to it. 2. That simply means you don't know what you're doing or how to insert that code to your script.
@DavidPlayz10002 жыл бұрын
bro please ep 3. i need this or i will cry
@derplover41572 жыл бұрын
won't it be impossible to get the art gallery in your code currently? if the random weight is between 1 - ? then how will the 0.1 weight of the gallery be < or = than the minimum in the randomizer (1)?
@GnomeCode2 жыл бұрын
Lol! Somebody is actually paying attention. That is an excellent point...
@CATSAMMEL2 жыл бұрын
true
@fireflygamez3 ай бұрын
"i just did some off camera mining" ahh start also great work! keep it up :)
@qdizzlebanana3 күн бұрын
So how DO I get those rooms? I am very stuck on what to do because I don't have them and have no clue on how to get them
@mythosarchive Жыл бұрын
bruh i literally followed the script and the script just died it stopped generating rooms 😭 literally it is just the startroom edit: i appreciate you taking you sweet time to make the script tho yo my respects brother
@zaydtruck3496 Жыл бұрын
Me too
@Ryveex Жыл бұрын
Same
@Gumworm Жыл бұрын
Go to view and press output and then run it to see the error
@MrocznyOpiekun11 ай бұрын
Did you fix it?
@mythosarchive11 ай бұрын
@@MrocznyOpiekun i remember i just modified it and since i suck then thats why, anyways i canceled that game already lol please dont feel like offended by my comment tho with the "bruh"
@gdm45_yt25 күн бұрын
This REALLY HELPED, SOOO MUCH THX
@MounirDevGaming Жыл бұрын
is there a video of you making the rooms ? i want to see the stairs part
@zootedkk_ Жыл бұрын
yeah same idk how to make those
@MounirDevGaming Жыл бұрын
@@zootedkk_ i already finished and published my own doors version . just think about it for a little bit and you will be able to make them
@Gooseyplayz3 ай бұрын
@@MounirDevGaming What's your game called?
@InvigoratedClones2 жыл бұрын
I have been waiting for this! Thanks gnomecode!
@W0odCool2 жыл бұрын
If you want something super rare to spawn, You might have a problem with putting the weight under 1, It cant go under 1 cuz gnomecode did something wrong so if you want it to be rarer, Make the other room value's higher.
@Aurora_SpringАй бұрын
For anyone wondering why it won’t spawn anything with a weight below 1 is because room.random:NextInteger can only generate whole numbers, meaning it would never pick a room that has a weight less than 1. If you want it to work with numbers less than 1 or with decimals in general then you need to use room.random:NextNumber to general values with decimals (floating-point numbers).
@WearWQLF2 жыл бұрын
Another great Video for my doors at home Thank you GnomeCode For your great Work !
@OMGREALDUMMYFROMDVN Жыл бұрын
Fun fact: You can make the room generation chances manually with duplicating the rooms, meaning they have more chance. The less duplicated the room is, the rarier it is.
@forwhateverreason. Жыл бұрын
This can clutter the workspace which can get annoying quickly so sometimes it’s better to code it in for games like this with many many rooms.
@arandomartist4341 Жыл бұрын
this isn't generation tho, it's just a room, no changes basically. which defeats the point of making every run to be unique
@OMGREALDUMMYFROMDVN Жыл бұрын
@@arandomartist4341 It's generation that picks which room not manually it's literally the same as coding in
@Tedious2363 ай бұрын
ik this comment was almost 2 years ago but you should not do this because it would make the game alot more unorganised when you could just script some basic rarities and have no additional lag or clutter
@senn1l63872 жыл бұрын
at 17:30 I think it's best not to use float number because what you get from randomWeight (19:00) is always an integer
@dominicdurant50752 жыл бұрын
but he changes it next episode
@jtcrafty92042 жыл бұрын
Can you make a part in the series where it has rooms that only generate once at the same number doors? (Room 50 for example)
@kthulu22 жыл бұрын
he definitely will since that’s a core part of the game
@jtcrafty92042 жыл бұрын
@@kthulu2 ya
@rosamariamaldonado63972 жыл бұрын
Yeah
@ImReallyLemoBloxROFL2 жыл бұрын
Just create that room, put it in a folder, give the info in the info script, add a room counter, and add an if statement. Should be able to do that
@jtcrafty92042 жыл бұрын
@@ImReallyLemoBloxROFL Have you done it before?
@Pan-TSB2 күн бұрын
0:20 "no armour? dont worry, Ill get us armour."
@DaRealVoided2 жыл бұрын
Hey GnomeCode. Please help me, I have 3 errors Syntax Error: (33,3) Expected identifier when parsing expression, got ‘or’ Syntax Error: (33, 6) incompleted statement: expected assignment or a function call Syntax Error (34, 3) expected identifier when parsing expression, got ‘then’ Please help me🙏
@XtraContent2 жыл бұрын
Hey Gnome Code, I have a problem. When I set the variables for the "direction", "hasStairs" and "prevHadStairs" (8:58 - 10:07) it stops the script and says there is none. Which is true because I didn't set the variables to some of the rooms (like you said to). This is preventing me form continuing, any help would be appreciated. ✂EDIT: I also have a problem where the prevRoom Becomes nil after a while
@XtraContent2 жыл бұрын
@thekittenisonfire I fixed it too, i forgor the long room 💀
@blueishblueberry2 жыл бұрын
@Figure the T poser WAIT you guys mean the "attempt to index nil with "Stairs" ?? pleas tell how to solve
@beandevv2 жыл бұрын
@@blueishblueberry i have the same problem... 17:59:56.819 ServerScriptService.Server.RoomModule:17: attempt to index nil with 'Stairs' - Server - RoomModule:17
@blueishblueberry2 жыл бұрын
@@beandevv I kinda found the problem it was becuase I didnt add the start room to the room info module script
@blueishblueberry2 жыл бұрын
@@beandevv quick tip when watching gnomce code or other youtubers that eplain code, you dont wanna skip any part
@PurplixGaming2 жыл бұрын
GnomeCode: *uploads a new video* Me: :O Also me: *Finishes the video* Also also me: Waaaaaaaah
@RobinDeTrollBoy Жыл бұрын
Uhh it's broken on line 14 of Room script it says attempt to index nil with Direction I double checked all the codes 5 times and not even a single capitalization was wrong can you please help?
@nooblecool Жыл бұрын
make sure startroom is in roominfo
@kplinger10 ай бұрын
@@nooblecool I have a similar issue with the variables, but mine says Room:16: attempt to index nil with 'Name' which is the variable that checks for prevHadStairs
@rinaldsledins73074 ай бұрын
im having the same problem but i cant find a fix
@mailmonkey3 ай бұрын
@@rinaldsledins7307 Check the spelling of the rooms is exactly the same on the table and in the folder
@fire.maniac.2 жыл бұрын
Been watching you since a long time. You make the best tutorials!!!
@GnomeCode2 жыл бұрын
Thanks for sticking around!
@notcardi2 жыл бұрын
@@GnomeCode part 3 when
@fire.maniac.2 жыл бұрын
@@notcardi true 👀
@galaxydoesstuff107 Жыл бұрын
When i starter doing The Filtering rooms types and When i run The game The rooms didnt generate
@boschhotpointfan83542 жыл бұрын
Your room design looks beautiful.
@ApprovedShip Жыл бұрын
well, you don't have to eliminate all of the generation bugs, just make it super rare. when it happens, you could just add an entity that teleports you to the next room (referring to glitch)
@HaileyStudios12139 ай бұрын
How can I make a specific room generate at a specific number, for example how can I make a blue room appear at door 75 and nowhere else?
@coolbudYT9 ай бұрын
Maybe make the loop go until that number and then you do what in part 1 spawn the room and then make another loop after that?
@BreenyBurple9 ай бұрын
@@coolbudYT can u show me the codes
@FwGAmes13 ай бұрын
Every thing was great until i got a message in the output saying:Reqested module expirienced an error while loading.Can someone please explain
@FwGAmes13 ай бұрын
Guys in the output it says Requested module expirienced an error while loading.When i click on it it takes me on the first line of the Server script
@diegovalosunaАй бұрын
@@FwGAmes1 happened to me and watched the video apperently i placed the locals of the weights and randomroom after when it was supposed to be used
@TheNiceGuy-t9x Жыл бұрын
I don’t know why but when he was adding the scripts for the rules my rooms stopped generating and I don’t know why. Can someone help me
@ashthegeek Жыл бұрын
same problem
@squareheadboxhead6963 ай бұрын
Open output and run the script you can open output in view at the top of the screen in between plugins and test
@reyalfrstyplash2 жыл бұрын
Wow Great Work! Keep Making Tutorial Your AWESOME!
@kaikai2887 Жыл бұрын
Hey GnomeCode, loved this video but i have one problem. My turns and stair rooms are overlapping on each other. I checked the front orientation so many times but it still does not work. Please help me fix this error.
@Fulion222 Жыл бұрын
same
@MasterGX_YT11 ай бұрын
Same, I’ve even tried making a new game to restart and it keeps overlapping
@BUKOYAY23 күн бұрын
left click or right click(im dysexiual or smth) and then click (Show Orenation Indicator)
@BUKOYAY23 күн бұрын
on the entrance and exit only
@BlankD_Out3 күн бұрын
Are they by chance only overlapping on the start room? cause if so I have the same problem, so far I only figured out that it is setting prevRoom to StartRoom twice.
@kokagaming692 жыл бұрын
Man, when I saw this I was like “He made another one!?!” And clicked on it immediately. Lol
@Kaizentry2 жыл бұрын
After generating a bunch of rooms they still cross through eachother, just a lot less often. I was thinking of doing something like deleting the 6th oldest room. I also need to make my stairs a bit higher since they barley graze the floors and ceilings or straight up covers the entire room. 💀
@PurplixGaming2 жыл бұрын
Are your start positions and end positions lined up if not then that might be causing the issue because I had an issue like this aswell?
@Kaizentry2 жыл бұрын
@@PurplixGaming mine line up perfectly fine, it's just the rooms that turn right and left cause it to generate in a full circle.
@fire.maniac.2 жыл бұрын
@@Kaizentry you scripted something wrong then
@Kaizentry2 жыл бұрын
@@fire.maniac. nope I did everything exactly as said, I'm just saying some of these things are inevitable with the right and left snakes.
@PumpyGT2 жыл бұрын
@@Kaizentry I'm going to bet that these have something to do with your builds
@LittenXDD2 жыл бұрын
this is a GOD tutorial, it really is something hard but nothing impossible
@Cr4ZyCaptain25 күн бұрын
everything is working fine for me other than it only spawns a few rooms and in the output it comes up with "ServerScriptService.Server.Room:14: attempt to index nil with 'Direction'" i dont know how to fix these can anyone please help me? Edit: Fixed it i just had rooms that were misspelled in the table script and also had rooms that were in the "Rooms" folder that werent inside the table yet
@gdm45_yt25 күн бұрын
you probably have another line of code that creates a room in server delete it and you should be fine! same happend to me
@Cr4ZyCaptain25 күн бұрын
@@gdm45_yt local room = require(script.Room) local PrevRoom = workspace.StartingRoom room.Generate(PrevRoom) for i=1, 100 do PrevRoom = room.Generate(PrevRoom) end. thats what i have in my server script also know its not generating a hundred rooms because the original starting room got deleted
@Cr4ZyCaptain25 күн бұрын
@@gdm45_yt local room = require(script.Room) local PrevRoom = workspace.StartingRoom room.Generate(PrevRoom) for i=1, 10 do PrevRoom = room.Generate(PrevRoom) end. thats what i have inside the server script also its not generating the amount of rooms i want it to now
@Cr4ZyCaptain25 күн бұрын
@@gdm45_yt its also not generating the amount of rooms i asked for now aswell because the original starting room got deleted and do yk which line of code it is that creates a room?
@gdm45_yt24 күн бұрын
@Cr4ZyCaptain its usually a prevRoom = room.generate(prevRoom) thats not in the for i=1, amount of rooms braket
@IDI_NULL Жыл бұрын
everything works, but sometimes at like the first few rooms, they tend to spawn inside of eachother. Please help Edit: i figured it out! apparently in the server script i put prevRoom= room.Generate(prevRoom) twice
@DarkTheDeveloper Жыл бұрын
Oh, I forgot to remove that line of code too Thanks!
@cokomishi Жыл бұрын
lol this was my issue as well, youre a godsend, was about to give up
@ruslansmirnov9006 Жыл бұрын
not only you have to deal with corners when generating labyrinths, but also manage their traceability - the potential possibility to reach the exit, in short
@stroyosh46702 жыл бұрын
Episode twooooo!
@notduck21102 жыл бұрын
🥚
@Averageidiot10142 жыл бұрын
ayee its Stroyosh!!
@Idontexistyet2 жыл бұрын
Yay first, gnome is the best Roblox studio YT
@zimmeritton2 жыл бұрын
can u give us the models of the rooms u made? i try to make them but they are always too long and the tutorial is pretty much not working for me :(
@5d4a52 жыл бұрын
yes can you make the models to creator marketplace pls?
@hcenhvtuisvtsrjvthnrkhvy92532 жыл бұрын
Hi gnomecode! I like your videos a lot! You have taught me a lot of coding. For your next tutorial series can you do a game like specter 2? Please reply yes or no.
@solstimimi Жыл бұрын
gnome code ded :skull:
@gabrygabby77382 жыл бұрын
Best yt channel
@zipper69692 жыл бұрын
my script keeps getting an error message, it says " ServerScriptService.Server.Room:9: attempt to perform arithmetic (add) on number and nil" even though on line 9 i didnt type anything wrong somebody help
@limitedsbr68482 жыл бұрын
UP
@Gooseyplayz3 ай бұрын
@@limitedsbr6848 wdym by up?
@Gooseyplayz3 ай бұрын
@@limitedsbr6848 wdym by up
@SnakeyartАй бұрын
same
@grovast31672 жыл бұрын
It's always a great day when you upload a vid!:)
@blueberry_fox20092 жыл бұрын
can you make a tutorial showing how special rooms? Like the figure, seek and halt.
@reyalfrstyplash2 жыл бұрын
YEAH
@Diamentional Жыл бұрын
@@reyalfrstyplash CAUGHT YOU! THIS IS HOW U MAKE THOSE TUTORIALS
@reyalfrstyplash Жыл бұрын
@@Diamentional what?
@Diamentional Жыл бұрын
@@reyalfrstyplash i love ur doors dev videos and i found out how u make em
@reyalfrstyplash Жыл бұрын
@@Diamentional ok!
@U20132 Жыл бұрын
I didnt even have to finish the video, IT ALREADY WORKS XD
@U20132 Жыл бұрын
Still, im finishing it
@ballchange112 жыл бұрын
I had some trouble with rooms spawning on top of eachother, and stairs hardly generated correctly. If you could do a quick bit on how you made each of the off-camera rooms that would be p cool 👍
@GnomeCode2 жыл бұрын
Same rules apply as the rooms I created in ep 1. Just make sure you have the entrance/exit parts all facing the same way using the OrientationIndicator
@TarokaWaste2 жыл бұрын
@@GnomeCode Hello my fellow gnome is it normal that when i take the weight value on one of my rooms under 1 it dosent spawn?
@name-fr8rx2 жыл бұрын
@@GnomeCode I did this, but some rooms keep spawning in the center of the exit parts and sort of overlapping. It's a bit like a corner of the door takes up the corner of the exit and it keeps doing that sometimes. Also two rooms keep spawning at the starter room. Any idea what I should do?
@RealDippy2 жыл бұрын
@@name-fr8rx same I’m confused on what to do
@name-fr8rx2 жыл бұрын
@@RealDippy Ok so I found a solution but you may not necessarily like it. I decided to just get rid of the left & right turns entirely because everything is lined up on the indicator so I just got rid of them, and also got rid of the stairs. So it kind of just relies on the snakes and my imagination to make it interesting. As for two spawning at the starter room, you wanna get rid of the room.Generate(prevRoom) on the second line in the script. Hope I helped! If you need any more help, just send me your script and I'll see what's wrong.
@Nex_2B2 жыл бұрын
Bruh I always forget these are tutorials, I usually treat your videos as if I'm watching fundy showing off some random thing he made.
@SchrubbiHD2 жыл бұрын
Could you also add X-Sections? so 4 different directions. So its more like a maze rather than a long path.
@paopaothemaocow2 жыл бұрын
just make your own and change the property in the table to "XSection" or something
@PurplixGaming2 жыл бұрын
An 'x' or a '+' because a '+' is way easier.
@dallor714 Жыл бұрын
@@PurplixGaming essentially the same thing
@опр-б1г2 ай бұрын
send all scripts in this video pls!
@iamabigbrain2 жыл бұрын
Hey GnomeCode (and possible others who are having the same problem) i don't know why but there was been an error that has popped up recently which is the following: ServerScriptService.Server.Room:12: attempt to index nil with 'Direction' (or something along those lines) this means that my generation isn't working properly and does some odd stuff. i would really like some help. thank you
@blakedaniels7022 жыл бұрын
It means you havnt listed your all the room names in the Roominfo module script
@reyalfrstyplash2 жыл бұрын
@@blakedaniels702 yeah
@tuc31315 Жыл бұрын
I had this same issue, and what blake describes might work, but even after fixing it, i still got the same exact problem.
@tuc31315 Жыл бұрын
Nevermind, I just spelt one of my rooms wrong lol
@reyalfrstyplash Жыл бұрын
@@tuc31315 i know the problem
@jsnotlout33122 жыл бұрын
I once made a random Road generator, These kind of systems are super fun to make!
@a60_hotelplus2 жыл бұрын
Bruh. I need the models but I can't create it. But I'll attempt! :3
@redlight0502 Жыл бұрын
Me too
@RoGuyYT5 ай бұрын
@@redlight0502 Rip. Yall wasted your time bc I published a free version of the rooms
@redlight05023 ай бұрын
😅
@BUKOYAY23 күн бұрын
WHERES THE LINK?
@scbLMAO_main3 ай бұрын
setting a reminder for myself: 21:20
@VeryUniqueHandle2 жыл бұрын
We need a whole video just on the keyboard asmr
@kauesun-roblox42652 жыл бұрын
incase if this script on the video doesnt work as expected (if it works then ill delete this comment) room(module): 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 Server: local room = require(script.Room) local prevRoom = workspace.StartRoom for i= 1, 15 do prevRoom = room.Generate(prevRoom) end
@adianschannel5 ай бұрын
thank you so much my savior ❤
@FlaminFish7504 ай бұрын
this was last videos
@mariobruhplayingames4 ай бұрын
it doesnt work?
@IncredibleKai1083 ай бұрын
THANK YOUU
@funnehbread Жыл бұрын
at 13:58 when you were testing it it worked for you but for me it said this in the output: ServerScriptService.Server.Room:16: attempt to index nil with 'Stairs' EDIT: now i have problem with something else: ServerScriptService.Server.Room:9: attempt to perform arithmetic (add) on number and nil
@Mushy76 Жыл бұрын
Same
@Mushy76 Жыл бұрын
in roominfo add startroom
@funnehbread Жыл бұрын
@@Mushy76 did it already
@AngusTheDoge Жыл бұрын
@@Mushy76 I did that and it is still not working
@AngusTheDoge Жыл бұрын
Same
@rundro48082 жыл бұрын
I remember watching your first teddy tutorial when it came out I enjoy your vids Gnome
@5d4a52 жыл бұрын
GnomeCode can you add a model in creator marketplace for the rooms so people that are bad at building/beginners can use them please?
@NotHenGamer2 жыл бұрын
yeah
@HeldByStrings Жыл бұрын
also making doors style rooms is very easy (We do not talk about the stairs)
@BUKOYAY23 күн бұрын
@@HeldByStrings ofc
@HeldByStrings22 күн бұрын
@@BUKOYAY What inclined you to reply to a year old comment.
@sebalby342 жыл бұрын
cant wait for the new episode im alreadty excited!
@platnik26802 жыл бұрын
Great work mate!
@artem-kt2gh2 жыл бұрын
TYSMMM, was waiting for this!
@dude-thats-w1ld2 жыл бұрын
I am making a game with random gen. THANK YOU MAN I NEED THIS
@GamingMakesFun2 жыл бұрын
I've been waiting for this!
@JExetor5 ай бұрын
14:33:47.795 ServerScriptService.Server.Room:17: attempt to index nil with 'Stairs' - Server - Room:17 How to fix
@zynestine2 жыл бұрын
13:58 i got an error that says "ServerScriptService.Server.Room:14: attempt to index nil with 'direction'" how do i fix it? i have everything spelled correctly
@zynestine2 жыл бұрын
someone please respond because i really want to create my own custom doors recreation
@louissiew78602 жыл бұрын
I had the same result, but insteead of direction it said name. basically "ServerScriptService.Server.Room:14: attempt to index nil with 'Name". I honestly don't know why, try checking the code and see if you misspelled or missed anything.
@agameboy2 жыл бұрын
try adding a table in roominfo for the starting room with no variables, as i got a index nil with "stairs" and this method worked for me like this: ["StartRoom"] = { }
@zynestine2 жыл бұрын
@@agameboy i did that it still didnt work
@lightlightpiper2 жыл бұрын
alright so I had the issue i found out one of my curved rooms was mispelled in the RoomInfo script and i fixed it and i no longer have the error and everything works fine
@iamguiii2 жыл бұрын
No WAIT you are doing toturial doors game, bro you're very good at what you do I'm inspired by you !!!
@FlaminFish7503 ай бұрын
if your rooms are still colliding with each other here are the things you need to do. 1.check the orientation of the exit and entrance 2. make sure the entrances and exits are properly name. entrance is the door without the frames and walls and exit door is the door with the walls
@trafficaly3 ай бұрын
I did this yet it will spawn correctly but not correctly facing each other. It'll spawn in a path that does not collide with itself however the room is at an angle and is not connected to the room properly, do you know why?
@FlaminFish7503 ай бұрын
@@trafficalywdym by it does not face each other?
@Virtus64729 күн бұрын
for some reason for the first room, it generates 2 rooms inside each other but that doesn't happen for the rest of the rooms
@gdm45_yt25 күн бұрын
you probably have another line of code that creates a room in server delete it and you should be fine! same happend to me
@Planetary-18 ай бұрын
13:13, tho this method works well, it might not be the best for more and larger amounts of rooms. Like hundreds or thousands, even infinity So how can we fix this? If we had it so generates a new room only if we touch the end of the room. Then if the amount of rooms is equal to 5, then delete the oldest room. Which fun fact, doors actually use this method. And I made my own, it took less then a day to script everything and build everything, it was quite easy but very head aching, many errors consistently happens which leaves me 35 minutes of me figuring out why and how. Which when compared with your method and this method Your method only goes through a zigzag in one direction.. and can start making the rooms predictable if set to an infinite amount of rooms While this method can generate infinite amounts with no lag cause the player has the touch at the end of the room to generate a new one. Which can now allow it to go in a full loop without rooms clipping cause old rooms are removed, and so it can be forever and infinite..
@Guy-46008 ай бұрын
Can you send the script?
@IsaacPlayzYT9597 ай бұрын
Pls send script
@TCGamingLive3 ай бұрын
Can you copy and paste the entire Room script from your game and paste it into the comments or something because I messed up on a part and I don't know where. Only a least 2 to 5 roooms generate only when my room count number is set to 250. I don't get it.
@doinic092 жыл бұрын
I'm pretty sure how doors does the generation is it only has like 5 rooms at a time and constantly deletes the back room to prevent lag
@boschhotpointfan83542 жыл бұрын
1:43 ignore this saving my spot and taking a break since I finished the first video.
@zenamorphosis2852 Жыл бұрын
Thank you so much! I’m doing very well, your tutorials are amazing!
@ruslansmirnov9006 Жыл бұрын
lua scripts are not the best suitable tool for generating anything that large
@redfire8262 жыл бұрын
Keep them coming!! Thank you!!
@Blue-Coding2 жыл бұрын
THE GENERATION OUT SMARTED ME WITH THE LOOPS IT GENERATED A CORNER THEN A HALL WAY THEN ANOTHER CORNER THEN REPEATED IT OVER
@jsnotlout33122 жыл бұрын
15:11 Garden She Cameo Lets goooooo
@hoodratthizzkid43162 жыл бұрын
Gnomecode uploading is the best thing ever! Will next episode have monsters btw?
@GamingMakesFun2 жыл бұрын
No, the next episode will have doors, he said it at the end of the video. although I'm also looking forward to the "adding monsters" episode!
@Pkygamez7 Жыл бұрын
it is not generating rooms now cuz of this error: ▶ Script 'ServerScriptService.Server.Room', Line 33 - function Getrandom (x4997) - Studio - Room:33
@Jassimathgenius3 ай бұрын
you added a spacw after getrandom Avoid giving spaces in bracket syntax
@JustinC742 жыл бұрын
Yess ive been waiting for this
@ElijiahFlowsanims10 ай бұрын
This is useful! you've earned a sub fr fr
@meew12 жыл бұрын
Yes! Part #2!!!! I love you
@CreamsCartsYTАй бұрын
Saving this for later: 7:15
@RichRish12109 Жыл бұрын
Do you know what to do if there are no errors, but the rooms still spawn inside each other?