as a sidenote play my rooms fangame here (its good btw) www.roblox.com/games/13396378249/THE-PERPETUAL-ROOMS-RENOVATION-UPDATE this is so much better!!!!!! also, people told me past 7:55 the subtitles are covering the code so here is just the full code for the "Room_Generation" script in serverscriptservice local Rooms = game.ServerStorage.Rooms local DoorNum = game.ReplicatedStorage.DoorNumber local LatestRoom = game.ReplicatedStorage.LatestRoom local StartRoom = game.ReplicatedStorage.StartRoom local Door_Event = game.ReplicatedStorage.Door_Open local function Generate() local NewRoom = Rooms:GetChildren()[math.random(1, #Rooms:GetChildren())]:Clone() local Text = NewRoom.label.SurfaceGui.TextLabel
if DoorNum.Value < 10 then Text.Text = "A-00".. DoorNum.Value elseif DoorNum.Value < 100 then Text.Text = "A-0".. DoorNum.Value elseif DoorNum.Value < 1000 then Text.Text = "A-".. DoorNum.Value end
NewRoom:PivotTo(LatestRoom.Value.exit.CFrame) NewRoom.Parent = workspace.Generated LatestRoom.Value = NewRoom end Door_Event.Event:Connect(function() DoorNum.Value += 1 Generate() end) (it took me 2 hours to make this video 😭🙏)
Hey, i'm having an issue where "exit" and "entrance" are not being cloned to the Generated Rooms I also have an issue where some of my rooms spawn sideways to the left
Try typing this script in: NewRoom.PrimaryPart = NewRoom.Entrance. This script basically sets the NewRoom's primary part as the entrance so the entrance can pivot to the exit, this will help your rooms be aligned and not messy. Also check if your exit or entrance is anchored because if it is not, the script cannot work correctly.
Hey so when I put in "local game.ReplicatedStorage.Door_Open:Fire()" It said that the 2 dots were code errors. And so far everything was working fine. Could you tell me a possible way to fix it please? Or is it just a skill issue?
EDIT: THE EXIT PART WAS UNANCHORED SO THAT'S WHY THAT ERROR WAS HAPPENING. Also good tutorial For some reason, I was opening doors which generated 1 room as usual but, when I open a few doors, the rooms stopped generating. In the output, it says that “Exit is not a valid member of this room” but I literally have the exit in the room and there is no typos.
could you help me? ik you didnt make the video and might not know how to fix but nobody is responding. basically, rooms arent generating at all. pls help if you can
@@SmilerRiot follow up: the "error" that i was getting before was line 19 of room_generation (LatestRoom.Value.exit.CFrame) basically it doesnt know where to pivot, therefor doesnt generate
also if you dont want the gen be curved you can use different method for the pivot, in startroom and other rooms you can put a invisible 1,1,1 sized block and call it "EndPart" and put it at the door pos but at the center. Then in the rooms you have to remove the door enter walls (3 of them) and done
Hey aiohwa, ive done everything like youve done but somehow the room generation isnt working.. the door opening is working but not the room generating i tried looking for red parts but there werent and also tried copying your version but same results do you know whats happening?
@@coulombe14rblx I think i found what you're talking about(sorry for being late!). Did you paste the string (game.ReplicatedStorage.Door_Open:Fire()) in the Main script that is in StartRoom? It may be the problem.
i got a problem whit red line, it say " ServerScriptService.Room_Generation:19: attempt to index nil with 'exit' " i type "exit" exacly like the video, idk how to fix it, pls tell me
I think I did something wrong because I've tried the scripts over and over again but they don't work, could anyone point out the possible mistakes I could be making below?
the generation script doesn't work. there's no errors so I'm assuming it just isn't being called? I copied the code off the pinned comment and did everything exactly so idk why it's not working, please help
I don’t really want to just copy like brain dead people so as a person who codes but can’t explain, I’ll explain the door code. You can see various variables on the top of the script, using the proximity prompt, the doorspawn, also getting a service called TweenService and the sound. So when the proximity prompt is triggered, we must connect it to a function and add a perimeter of the name “player”. So then, it gets the variables of the player’s character and the humanoid of the character. If the humanoid’s health is less than 1, it will return. Now, it will create a new Tween with a new Tween info. After that is done, we will play the tween animation, and the sound will be played, then it will wait a second. (*did I miss a line of code?*)
i tried to make a rooms game with this tutorial and i followed the steps until the door script but the door script i typed like you did it did not work
@@tornadoboigd I know i'm extremely late but did you paste the string (game.ReplicatedStorage.Door_Open:Fire()) in the Main script that is in StartRoom? It may be the problem
I Have Learned How To Make Animaions Whit TweenService And How To Tween The Character Body Parts And I Learned That From You At Your 600 Sub Special Live Stream Named "Making a IR: Recoded fangame [600 SUB SPECIAL!]" From That Live Stream I Was Able To Make Cool Animations And I Began Making Rooms Games And Grew Up Kinda! And Found Out How To Make Room Generation And I Was Getting Better At Understanding Code And I Myself Found Out Not To Long Ago How To Tween The Entites Through All The Rooms Whit Waypoints As Well!
I am aware that I already commented on this video, but I keep on getting this “attempt to index nil with ‘play’” message during the part where you open the door, does anyone know what’s going on?
By the way, your tutorials are very useful to me. I'm doing my Rooms here. It is at the prototype stage, but the alpha will be released only in April. Don't you want to check it out sometime?
@aiohwa at 8:40 your text covers the script your typing I managed to find out what you wrote but my rooms only generate once then it stops does anyone know the solution?? Thanks!
Can anyone help me? When I open the first door, it always gives me this error: “ServerScriptService.Room_Generation:19: attempt to index nil with ‘exit’” can anyone please help me?
yo can you help me with the error im having issues, with? its this "attempt to concatenate Enum with nil" it gives me this error when i try to open the door but it just wont open
so i have a problem with the tweening between the door animation and i was wondering how to make it pivot to the DoorOpen thingy and i opened the output no typos no errors yet the tween isn't working i tried unanchoring it; didn't work so pls tell me how it should be fixed EDIT: displaced a ":" with a "." and couldn't see the error HAH
i somehow got an error at the door opening script, could you copy and paste the it? edit: i got it working after multiple days of wondering edit 2: nevermind it doesnt work
There's an error on the {Cframe = dooropen.Cframe} And yes its the first { i don't know how to solve it Proof: { CFrame: CFrame } Expected Identifier, got'{'
if your rooms are only generating 2 times,you need to add the new line of code to BOTH of the main scripts,or else it wont fire the event when you open the 2nd room
Hey aiohwa I tried making the part "fabric" but all it dose is to make it grey I even turned 2022 Materials service to false and still doesn't work What do I do now?
what to do if there is no door animation and how to add it please help there is a button and it does nothing and there is no animation everything is there except the door animation
as a sidenote play my rooms fangame here (its good btw) www.roblox.com/games/13396378249/THE-PERPETUAL-ROOMS-RENOVATION-UPDATE
this is so much better!!!!!!
also, people told me past 7:55 the subtitles are covering the code so here is just the full code for the "Room_Generation" script in serverscriptservice
local Rooms = game.ServerStorage.Rooms
local DoorNum = game.ReplicatedStorage.DoorNumber
local LatestRoom = game.ReplicatedStorage.LatestRoom
local StartRoom = game.ReplicatedStorage.StartRoom
local Door_Event = game.ReplicatedStorage.Door_Open
local function Generate()
local NewRoom = Rooms:GetChildren()[math.random(1, #Rooms:GetChildren())]:Clone()
local Text = NewRoom.label.SurfaceGui.TextLabel
if DoorNum.Value < 10 then
Text.Text = "A-00".. DoorNum.Value
elseif DoorNum.Value < 100 then
Text.Text = "A-0".. DoorNum.Value
elseif DoorNum.Value < 1000 then
Text.Text = "A-".. DoorNum.Value
end
NewRoom:PivotTo(LatestRoom.Value.exit.CFrame)
NewRoom.Parent = workspace.Generated
LatestRoom.Value = NewRoom
end
Door_Event.Event:Connect(function()
DoorNum.Value += 1
Generate()
end)
(it took me 2 hours to make this video 😭🙏)
WERE BACK!!!1!1!1!!!!!!!1!1!1!
can you make this as a um kit plz :3
@@obywateljulo3436 dude u already got the code, just do it. No need for a kit.
@@obywateljulo3436learn how to script
@@obywateljulo3436 no im not making it as a kit when i made my stuff in models people just stole it and reuploaded it
the memories are flooding back
gd reference real
@@ImStubid385 FOCUS
Thanks, now I can make X’s Rooms: Recoded with this
this will really stop people saying “you can’t code”
yea some tean fans say i cant code when i can code better than them lmfao
@@aiohwa just show that you can code and their faces will be priceless 💀
@@Hurricane_Activity they already know i code well they just mad as hell lol
@@aiohwa XD
@@aiohwa 8:47 The subtitles were covering what you were typing, can you tell me what it was?
The door broke and i cant figure out what broke, everything is spelled correct. Can you comment me all the code please?
Wait how did I get a like
fr
Im having the same issue too
I can send the code if anyone wants
@@BoaDupczyci3los pls
bro put limbo music to make us F O C U S
Hey, i'm having an issue where "exit" and "entrance" are not being cloned to the Generated Rooms
I also have an issue where some of my rooms spawn sideways to the left
Try typing this script in: NewRoom.PrimaryPart = NewRoom.Entrance. This script basically sets the NewRoom's primary part as the entrance so the entrance can pivot to the exit, this will help your rooms be aligned and not messy. Also check if your exit or entrance is anchored because if it is not, the script cannot work correctly.
same but mine is generating in the start room
Bruh the song is fire when you play it at 0.5x speed
BRO WHY WONT PEOPLE TELL WHICH CFRAME DOES THE PART HAS TO FACE. THAT MAKES IT COMPLICATED TO MAKE ROOMS GENERATED.
Nvm I found out lol
@@Hazenrdpk2612 how?
@@e4p614 make sure the cframe is positioned correctly.
Hey so when I put in "local game.ReplicatedStorage.Door_Open:Fire()" It said that the 2 dots were code errors. And so far everything was working fine. Could you tell me a possible way to fix it please? Or is it just a skill issue?
EDIT: THE EXIT PART WAS UNANCHORED SO THAT'S WHY THAT ERROR WAS HAPPENING. Also good tutorial
For some reason, I was opening doors which generated 1 room as usual but, when I open a few doors, the rooms stopped generating. In the output, it says that “Exit is not a valid member of this room” but I literally have the exit in the room and there is no typos.
could you help me? ik you didnt make the video and might not know how to fix but nobody is responding.
basically, rooms arent generating at all. pls help if you can
@@Bertrayo Try checking for any typos and set the primary part of a room to the “entrance” model
@@SmilerRiot entrance is correctly named, and primary part is entrance, no errors either. but it just wont generate :(
@@SmilerRiot follow up: the "error" that i was getting before was line 19 of room_generation (LatestRoom.Value.exit.CFrame)
basically it doesnt know where to pivot, therefor doesnt generate
@@Bertrayo You need to put in “NewRoom:PivotTo(LatestRoom.Value.Exit.CFrame)
it took me a few days until I realized that you used bindable functions.
also if you dont want the gen be curved you can use different method for the pivot, in startroom and other rooms you can put a invisible 1,1,1 sized block and call it "EndPart" and put it at the door pos but at the center. Then in the rooms you have to remove the door enter walls (3 of them) and done
I usually don’t watch tutorials but im watching allat 🔥🔥🔥
error: Workspace.StartRoom.Door.Main:6: invalid argument #1 to 'Connect' (RBXScriptSignal expected, got function) - Server - Main:6
6:20 feels familiar
The vid:🚪
The song:🔑🔑🔑🔑🔑🔑🔑👁️
Hey aiohwa,
ive done everything like youve done but somehow the room generation isnt working..
the door opening is working but not the room generating
i tried looking for red parts but there werent and also tried copying your version but same results
do you know whats happening?
not really, sorry.
@@aiohwa oh ok
If you ever find out the issue pls tell me!
@@coulombe14rblx I think i found what you're talking about(sorry for being late!). Did you paste the string (game.ReplicatedStorage.Door_Open:Fire()) in the Main script that is in StartRoom? It may be the problem.
@@aiohwa I have a similar problem, the door does not open. Do you know what's happening?
i got a problem whit red line, it say " ServerScriptService.Room_Generation:19: attempt to index nil with 'exit' " i type "exit" exacly like the video, idk how to fix it, pls tell me
you didn't set the latest room value to start room
ooh
so i have to put all values to start room workspace to?
@@aiohwa
i fixed it i will give a super like to this video :D@@aiohwa
thanks@@maxius8151
Finaly We Get The Fr One
I remember making my rooms game using his kit.
The room generation script isn’t working but keeps mentioning lines 19 and 26, I typed them the same as the description and the video
It says ServerScriptService.Room_Generation:19: attempt to index nil with ‘exit’
Hi @aiohwa, will you do perpetual rooms refreshed leak?
or just wait for the game.
@@goober1144yes I'm waiting for the refreshed update i was asking
tysm for this tut! i glad that the door worked bc i was praying to god lol.
Good thing i know how to make a locker but im waiting for part 3
Bro your video is amazing! I subbed and I'm going to follow the entire tutorial! Thank you for this masterpiece!
I think I did something wrong because I've tried the scripts over and over again but they don't work, could anyone point out the possible mistakes I could be making below?
just open output window and see the errors
How can I make my camera shake when the monster is flying?
what
I need to make the screen shake when the monster flies by
@@aiohwa Like in Doors, when Rush or Ambush pass by, your screen shakes, he means that.
Move door script pls i cant see with bad quality
the do quality higher
W Video, Thx For The Help Good Luck On Reaching 2K😁
the generation script doesn't work. there's no errors so I'm assuming it just isn't being called? I copied the code off the pinned comment and did everything exactly so idk why it's not working, please help
Nevermind I forgot to make the event fire when the door was opened
you have to move the text its covering up the "Main" modifications which cause the game not to realize that its gotta generate
Now we need tutorial about entities, tables, closets etc.
He already made part two which covers entity’s and part three which covers closets
will this compete with nex's kit?!?!?!?!
I don’t really want to just copy like brain dead people so as a person who codes but can’t explain, I’ll explain the door code. You can see various variables on the top of the script, using the proximity prompt, the doorspawn, also getting a service called TweenService and the sound. So when the proximity prompt is triggered, we must connect it to a function and add a perimeter of the name “player”. So then, it gets the variables of the player’s character and the humanoid of the character. If the humanoid’s health is less than 1, it will return. Now, it will create a new Tween with a new Tween info. After that is done, we will play the tween animation, and the sound will be played, then it will wait a second. (*did I miss a line of code?*)
I didn’t explain it exactly, but the way to learn I recommend is to look back on the code you have written and try to understand it.
BRo u got the same subs as me im sure urs will increasemore
i tried to make a rooms game with this tutorial and i followed the steps until the door script but the door script i typed like you did it did not work
open output for the error so u can fix
Ok I will tomorrow
@@aiohwa I tried to make it for your tutorial and the starter room make a disaster I’m gonna use a kit
@@tornadoboigd I know i'm extremely late but did you paste the string (game.ReplicatedStorage.Door_Open:Fire()) in the Main script that is in StartRoom? It may be the problem
uhh, I can only open the door but the room generation doesn't work
I Have Learned How To Make Animaions Whit TweenService And How To Tween The Character Body Parts And I Learned That From You At Your 600 Sub Special Live Stream Named "Making a IR: Recoded fangame [600 SUB SPECIAL!]" From That Live Stream I Was Able To Make Cool Animations And I Began Making Rooms Games And Grew Up Kinda! And Found Out How To Make Room Generation And I Was Getting Better At Understanding Code And I Myself Found Out Not To Long Ago How To Tween The Entites Through All The Rooms Whit Waypoints As Well!
For some reason the door animation doesn't work when i open the door and it's just stuck there, how do i fix it? (i have no typos in the script.)
same problem here
how do i fix: line 20 of Room_Generation: attempt to index nill with "exit"?
8:47 The subtitles were covering what you were typing, can you tell me what it was?
WHAT
Yeah, why does it block it? We really need help here!
Music from the level LIMBO from geometry dash
Dude this helps a lot now i can make my own fan game!
8:44 What is the code? I can't see PLS reply! 😥 If anyone else knows please tell me!
Memories.. Man.. OH ALSO THIS MIGHT BE USEFUL FOR MY FREN TY :3
I am aware that I already commented on this video, but I keep on getting this “attempt to index nil with ‘play’” message during the part where you open the door, does anyone know what’s going on?
also theres a problem on the room generating script, its not error but the rooms just generate into the bottom, do you know a solution for this?
Next video is: How to make a Rooms Fangame Part 2: Entities (Rushers, Rebounders)
correc
And you will teach us how to make a Table Checkers
@@RushAllDOORS thats in part 5 i think
Okay 👌
By the way, your tutorials are very useful to me. I'm doing my Rooms here. It is at the prototype stage, but the alpha will be released only in April. Don't you want to check it out sometime?
@aiohwa at 8:40 your text covers the script your typing
I managed to find out what you wrote
but my rooms only generate once then it stops
does anyone know the solution??
Thanks!
What does it say? cuz I couldn't make it out lmao
Is it the door_open fire?
"game.ReplicatedStorage.Door_Open:Fire()"
*edit: I realised the edit-*
Apparently the label is not a valid member of the model Room_1, what does this mean and how can I fix it 💀
Why's the door not opening? It doesn't say I typed anything wrong. Oh it says it failed to load the animation.
Can anyone help me? When I open the first door, it always gives me this error: “ServerScriptService.Room_Generation:19: attempt to index nil with ‘exit’” can anyone please help me?
Since I already have a Rooms fangame, I probably wont need this (unless it also teaches you how to make locker checkers bcuz my game has NONE)
it's not even compatible with this tutorial
@@aiohwa Copy paste the code for door open pls, I typed it and it didnt work
bro what am i supposed to do with the "ServerScriptService.Room_Generation:19: attempt to index nil with 'Entrance'"
yo can you help me with the error im having issues, with? its this "attempt to concatenate Enum with nil" it gives me this error when i try to open the door but it just wont open
I-its.... you.... its.... ITS.... ITS BACK!!1111
so i have a problem with the tweening between the door animation and i was wondering how to make it pivot to the DoorOpen thingy and i opened the output no typos no errors yet the tween isn't working i tried unanchoring it; didn't work so pls tell me how it should be fixed
EDIT: displaced a ":" with a "." and couldn't see the error HAH
THE SUBTITLES ARE COVERING THE ROOM_1 MAIN SCRIPT
YEA
its... FUCKING... BACK.
I'm no longer having trouble!
Apparently it didn't like that I had label set to a model and not the part it was assigned to take the TextLabel from!!
I did the script for the door but whenever I open the door it just don’t open how do I fix this? I think I made the script wrong
Oh no
LIMBO
very cool, I somehow failed to make the door open, but its my first time ever using studio, so i will keep trying
i need help, i created one room and its fine, but then when i made two rooms they spawn in like a staircase. can someone help?
i somehow got an error at the door opening script, could you copy and paste the it?
edit: i got it working after multiple days of wondering
edit 2: nevermind it doesnt work
door code pls?
best tutorial ever
what does the "Door_Anim" do?
its the animation for when the door swings open
yes but how does it do that in the script when its not a model
8:50 is being blocked by the captions so i dont know what to add
probably
game.ReplicatedStorage.Door_Open:Fire()
turn off captions
Same thing here, they are blocking the text!
There's an error on the {Cframe = dooropen.Cframe}
And yes its the first { i don't know how to solve it
Proof: {
CFrame: CFrame
}
Expected Identifier, got'{'
type space and ) at the end
FOCUS..
on making the fangame
YIPPPEEEEEE
edit: can yall stop bitching about errors 😭
I copied the door code correctly and there are no typos or errors at all, the door animation is not working at all, neither is the sound
if your rooms are only generating 2 times,you need to add the new line of code to BOTH of the main scripts,or else it wont fire the event when you open the 2nd room
im sorry i dont understand but can you explain.
nice tutorial
how can i make it generate a specific amount of rooms?
The song got me like:
🗝 🗝
🗝 🗝
🗝 🗝
🗝 🗝
Thank you for this
Sup Im makin a rooms fangame with this tutorial
idk why room generated not work the error is
"Generated is not a valid member of Workspace" can someone tell me?
nvm is work idk how
can somebody help me? the door Noise Won't play
i spent almost an hour on the door code and i accidentally loaded his main page and erased my 38 minutes of typing code PLS GIVE US THE DOOR CODE
No way i can make a rooms fangame without kits!1!1!1!
What is the script for the 8:50 moment? the text on the front bothered me
i think it's
game.ReplicatedStorage.Door_Open:Fire()
how do i change room size without causing collision?
Why didn't my door animate?
Hey aiohwa
I tried making the part "fabric" but all it dose is to make it grey
I even turned 2022 Materials service to false and still doesn't work
What do I do now?
you have to change the color of the part
Oh thanks
can you put the script of min 4:13 ? the vid is a bit blurry i cant see it at all
my code isnt working and it doesnt say my animation didnt load there is something wrong with my game
I don’t see a button that shows the E to click on the door….
use a proximityprompt
I did
what to do if there is no door animation and how to add it please help there is a button and it does nothing and there is no animation everything is there except the door animation
The door opening thing ain't working for me.
When i open a door it generates but if i do it again it generates at the start pls help me.
can we change the lobby and the door to make it better? :D
hey in 8:45 how is the comand you put because your text is blocking
i think it's
game.ReplicatedStorage.Door_Open:Fire()
How do I group it? I wasn't able to see
aihowa copy and paste door script please
8:49 what is over the text ??
6:22 origin of FOCUS (u-10 hoax)
bro it originates from Nighthawk22 💀
Yo, can someone post the script in the comments? I did everything right and it doesnt work. AND IM REALLY MAD! THIS IS MY 4TH ATTEMPT!