How to make a Rooms Fangame (stop watching this please)
Вставка
- Опубліковано 28 сер 2024
- So im re-making this series but much more better.
Next episode will be making entity movement!
Tags
Rooms, Rooms low detailed, Interminable Rooms, aiohwa, how to make a rooms fangame
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
Good song choice, Really helped me FOCUS
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)
Thanks, now I can make X’s Rooms: Recoded with this
you have to move the text its covering up the "Main" modifications which cause the game not to realize that its gotta 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
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 your video is amazing! I subbed and I'm going to follow the entire tutorial! Thank you for this masterpiece!
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.
bro put limbo music to make us F O C U S
I usually don’t watch tutorials but im watching allat 🔥🔥🔥
Good thing i know how to make a locker but im waiting for part 3
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?
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.
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
Bruh the song is fire when you play it at 0.5x speed
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!
BRo u got the same subs as me im sure urs will increasemore
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.
I remember making my rooms game using his kit.
6:20 feels familiar
Finaly We Get The Fr One
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!!
Dude this helps a lot now i can make my own fan game!
Memories.. Man.. OH ALSO THIS MIGHT BE USEFUL FOR MY FREN TY :3
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
Now we need tutorial about entities, tables, closets etc.
He already made part two which covers entity’s and part three which covers closets
Music from the level LIMBO from geometry dash
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
uhh, I can only open the door but the room generation doesn't work
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
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
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
I-its.... you.... its.... ITS.... ITS BACK!!1111
Move door script pls i cant see with bad quality
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
8:47 The subtitles were covering what you were typing, can you tell me what it was?
WHAT
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!
will this compete with nex's kit?!?!?!?!
nice tutorial
The song got me like:
🗝 🗝
🗝 🗝
🗝 🗝
🗝 🗝
FOCUS..
on making the fangame
door don't
work
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
It works but the door just *Falls* but i will keep it Thanks!
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?
door won't work
I lost hope when i did all correct, i copied room gen script and pasted but when i open door, it opens but room dont generate!!!!
@aihowa copy and paste door script
please
YIPPPEEEEEE
edit: can yall stop bitching about errors 😭
hey in 8:45 how is the comand you put because your text is blocking
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
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?
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
error: Workspace.StartRoom.Door.Main:6: invalid argument #1 to 'Connect' (RBXScriptSignal expected, got function) - Server - Main:6
can somebody help me? the door Noise Won't play
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?
its... FUCKING... BACK.
No way i can make a rooms fangame without kits!1!1!1!
I don’t see a button that shows the E to click on the door….
use a proximityprompt
I did
can we change the lobby and the door to make it better? :D
DAMN!!!!, The freaking door wont open bruh
3:01 it’s the limbo song that when the keys move
Yeah it makes you *F O C U S* to this guide.
6:21
9:43
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
Thank you for this
Sup Im makin a rooms fangame with this tutorial
EVERYTHING IS DONE RIGHT BUT IT DOESN'T WORK
6:22 origin of FOCUS (u-10 hoax)
bro it originates from Nighthawk22 💀
bro i love u i try gnomo code tutorial but dont worked im gonna try this
finally one wihout kits
@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-*
the text for main is in the freaking way
I still can't get the door open-_- -_- -_- -_- -_- -_-
make a kit bruh-_-
I'm not going to copy your commands all from scratch so that in the end NONE OF them work.
@@INTERMINABLE_ROOMS_SPAWNER atleast try opening output for the error
@@aiohwa I've already put, everything, everything you ordered, the old kit didn't work, and neither did this one, man. Just make a simple kit, is that easy for you?
That I'll never be able to do things I wanted to, I hate myself
@@INTERMINABLE_ROOMS_SPAWNER I don't plan on making a kit since people on the toolbox will just repost my models and I wouldn't be able to do anything about it
@@aiohwa ok bye
hey! i'm making a rooms game called intergalactic rooms! but the door script is not working. how do I fix it?🤔
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
how do i change room size without causing collision?
IM MAD>:( 8:41 THE SUBTITLES ARE BLOCKING THE SCRIPT SO I CANT SEE IT. please fix:(
game.ReplicatedStorage.Door_Open:Fire()
The door wont open, can you copy the door open script??
i tried but the door doesnt open
Thank
You best man!
They say that you have a kit do you know what it’s link?
so, ive just made everything perfectly, but, when i try to change the doornumber value to 1, it still generates a-001 infinitely, but everything else works tho
i would recommend going over the room generation part where it says like "if doornum.value < 10 then" that part of the video
i edited pinned comment, it has the full room gen code
@@aiohwa k tysm it works now
no problem@@user-jw4fd5wx9w
love it
i dont like how some of the text covers the script at 8:34
can you put the script of min 4:13 ? the vid is a bit blurry i cant see it at all
my door didn't work
aihowa copy and paste door script please
my door wont work and i followed the code your kit is broken
hey what does the 8:46 new script line say? i cannot read it with the letters
the one line you copy for both Main scripts
game.ReplicatedStorage.Door_Open:Fire()
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
Hey aiohwa I can’t get the door to turn or make sound but I did the script and every step
nice
it could generate only 1 room tho
The generation doesn't work
Im so confused
Even i put folder named Gemerated
Doesn't work.
ik this is late reply but Generated is right spelling. see if it works
I wanted to know how the 60 system works, can anyone help me?
the damn geometry dash music is getting me 😭😭😭😭
focus
@@aiohwa hey blud i can barely see the text you added at 8:45 what is it?
@@r2w-z9o it say game.ReplicatedStorage.Door_Open:Fire()
@@r2w-z9o if what I said doesn't work try decapitalizing the letters in door_open (did I make a new word)
@@aiohwa it still doesn't work but thank you
Rooms Generation Is Not Work. Help. I've copied the script in the comment pin And Not Work
Hey, can you just like post all the scripts because typing them in is just annoying and can cause errors a lot of the time, thanks in advance
i tried using the door script and it wont work i wonder if i use a packs script will the whole thing break
i got room gen set up and stuff
the thingy keeps saying stuff like Workspace.Startroom.door.Main:12: Expected ')' (to close '(' at column 128), got '='
My door is not opening again :( and i checked everything