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 😭🙏)
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
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?*)
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.
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!
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?
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
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
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
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
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?
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?
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
@@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
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?
@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!