if you want a seperate sound to play when you close a drawer, try putting these lines at 13-17 in the Furniture script: if drawer:GetAttribute("Open") then drawer.[YourCloseSound]:Play() else drawer.Move:Play() end make sure to remove the original drawer.Move:Play() from line 13, cheers!
@@GnomeCode Wow, thanks alot for responding, you made my day with this too! My developing is doing very well, i've learned alot from you! Thanks alot, Gnome!
Finally! Thanks a lot GnomeCode for making these awesome videos! I don't know what I'd do without them. Also, just a question, if you don't mind can you speed up production on these videos? It's okay if you can't, I know you have a tight schedule. Thanks!
local TweenService = game:GetService("TweenService") local furniture = {} function furniture.OpenDrawer(drawer) drawer:SetAttribute("Moving", true)
local isOpen = drawer:GetAttribute("Open") local direction = isOpen and 1 or -1
local cframe = drawer.CFrame * CFrame.new(0, 0, 1.5 * direction) local drawerTween = TweenService:Create(drawer, TweenInfo.new(0.5), {CFrame = cframe})
drawerTween:Play() drawerTween.Completed:Wait() drawer:SetAttribute("Moving", false) drawer:SetAttribute("Open", not isOpen) end function furniture.New(template, roomModel) local furnitureModel = workspace.Furniture:FindFirstChild(template.Name)
if furnitureModel then furnitureModel = furnitureModel:Clone() furnitureModel:PivotTo(template.CFrame)
if furnitureModel:FindFirstChild("Drawers") then for i, drawer in ipairs(furnitureModel.Drawers:GetChildren()) do drawer:SetAttribute("Open", false) drawer:SetAttribute("Moving", false)
prompt.Triggered:Connect(function() if drawer:GetAttribute("Moving") == false then
end end)
end end
furnitureModel.Parent = template.Parent template:Destroy() end end function furniture.FurnishRoom(roomModel) if roomModel:FindFirstChild("Furniture") then local templates = roomModel.Furniture:GetChildren() for i, part in ipairs(templates) do furniture.New(part, roomModel) end end end return furniture @@nika1506n0
ok guys BIG TIP READ!!!! if your bottom piece of the drawer part goes without the rest of the drawer, then you need to recheck if the other parts are Anchored. Sometimes things that are unanchored get anchored for some reason its a wierd studio glitch.... took me hours to figure out lol
BIG TIP READ! If u realize that the desk or drawers are to small for using E between each drawer, just increase the size of the primary part from the bottom and behind INSTEAD OF replacing every single room with drawers.
I hasn't good grammar because I am not english or russian, and this tip don't helped me, but you are awesome! You'll can help another people with good grammar!
I was actually looing forward to this episode of the tutorial, very cool stuff. I hope you keep doing this series until you've eventually made a whoooole Doors game
Cool Tutorial! But I have a problem with opening the drawers. I dont know why but some drawers open but the other ones dont whats the reason of this and how to fix this?
TIP: if you cannot see the prompts, you can try to put prompt.RequiresLineOfSight = false this means that the prompt no longer requires you to see it when you face it.
I proud of you, you don't make only drawers, you make another furniture. And this is good! By the way, this isn't original models and LSPLASH don't delete your games and my game. / Я горжусь тобой, ты не сделал только ящики, ты сделал другую мебель. И это хорошо! Кстати, это не оригинальные модели и LSPLASH не удалит ваши игры и мою игру.
Hey Gnome Code! You have helped me developing for a year! But of course, errors come in my way. When you reach a point, drawers stop working, Wich that makes locked doors impossible (next tutorial) I'll try to fix it by myself, if I can't I'll tell you Edit: I fixed it
You should actually generate it until the exit is within a range of ~250 studs. Else your room will appear with a delay and you might see what's behind the walls.
You might need to make a video showing how to make the rooms generate progressively and old rooms are deleted, and not all at once because the game doesn't like it when 1,000 rooms are furnished at once. 😨 (1,000 rooms because I'm making a game based on The Rooms)
Can the next series be on "How to make a game like Project Lazarus"? It has just a few main things: 1) Unlimited zombie wave system until everyone dies 2) Coins and chest for guns - everyone starts with pistol 3) We can equip 2 guns 4) Reviving others but if someone dies, they return to lobby and if the next round starts, they rejoin with no guns but all coins / if someone gets knocked down, they can only use pistol 5) Powerups: X2 Damage, Speed, Health, Revive speed, +1 gun (total 3) 6) thx
GnomeCode can you do a rush tutorial without tween service (probably bodygyro) and also do the looting stuff too, and in the next part can you do closets?
the proximity prompt won’t show up for the player, even though it exists in the explorer edit: the attachment was too far in, so the prompt wouldn’t show,
The furnitures goes outside of the room after it generates. I checked the code but it is the same than showed in this video. But the rest of your videos works and are great.
Question, why add a sound block to every drawer you make, instead of just referencing the sound block in a sounds folder or something? My concern is that if you had a dozen of these drawers, that's a dozen of those sound blocks that need to be loaded as well. Would that make a difference in how long it takes to generate?
We need to add a sound block to every drawer you make because the sound needs to be coming from that drawer. and no it wouldnt make a difference. sounds are SUPPERR easy to generate. the last thing they're gonna be is laggy cause of the sounds
Hey GnomeCode, I realised that my laptop takes lots of time to actually load the furniture (a few seconds), so I suggest you make a code optimization and better room generation (When you enter another room and there are more than 5-7 rooms, the last generated room is deleted). And one thing i notice is that setting the Primary to PrimaryPart helps as you don't need to find which one you messed up if the orientation is wrong
Hey gnomecode, I have a new series idea. You can make a "How to make a game like Bedwars" video, it might even get some views!!! complete with kits, beds, fun pvp, etc! I'd love to see a series like that in the future :D
I did all of the coding but now my rooms won’t load. The door spawns in the spawning room but then none of the rooms spawn and I dal to the ground so then I don’t know if my drawers work or not my door won’t do the opening animation so now I have to set it so I don’t collide with it and phase right through. Please help me with this issue 😢
I know I might be a year late but you could probably use this to make broken doors as well, just like in the actual game where it's doors that cannot be opened and that are either planked, broken or have no knob
I'm struggling with a bug, the proximity prompts don't show, and I tried everything I can to see what the problem is, the prompt spawns inside of toggle, but it never shows up, I also even tried to rebuild the drawers and desk to see if that would work, and I saw that the code was the same, so, is there a way to fix the bug? Pretty great tutorial, by the way. Edit: I fixed it, just had to make the toggle more far out, if anybody got the same one
How do we make a Sub-Room. Like the ones in Doors? same thing for Randomized Sub-Rooms. It would be have a door, that we can walk into, for a different part of the Room.
I'm having an error where when i put the attachments in the drawer it makes an error saying its not a valid member of part "Drawer.Drawers.Drawer" i don't know how to fix
I know I'm a year late but for some reason only the prompt is moving, not the drawer. I've been trying to fix this glitch for an hour, and have gotten no results. How do I?
Hi GnomeCode! How do you do so that all of them welds to all of them? Because for me, it just welds one of them Edit : And also how did you make that dark green line that connects all of the welds? Edit #2 : Otherwise i would be left clueless with “Attempt to index nil with SetAttribute” at line five and that could be the possible cause
hello so far from the first doors tutorial everything was great till this video last time i try it the drawer only open but dont close and now im trying it again it failed to open help pls
Another Doors Tutorial! Thank you so much for making these, keep up the amazing work!
More to come!
@@GnomeCode Happy to hear! :)
fr
@@GnomeCode UR GOATED MAN :)
@@GnomeCode thank you for cool content!
if you want a seperate sound to play when you close a drawer, try putting these lines at 13-17 in the Furniture script:
if drawer:GetAttribute("Open") then
drawer.[YourCloseSound]:Play()
else
drawer.Move:Play()
end
make sure to remove the original drawer.Move:Play() from line 13, cheers!
Thanks, for helping me on my journey to be a Developer since 2020, gnome!
Thanks for watching! I hope your developing is going well
@@GnomeCode Wow, thanks alot for responding, you made my day with this too! My developing is doing very well, i've learned alot from you! Thanks alot, Gnome!
@@GnomeCode Hey so apparently Roblox studio doesn't know what drawer is. Can you help? I Even rewrote the entire furniture module script...
This is helpful for more than just doors! Thanks
Finally! Thanks a lot GnomeCode for making these awesome videos! I don't know what I'd do without them. Also, just a question, if you don't mind can you speed up production on these videos? It's okay if you can't, I know you have a tight schedule. Thanks!
it's not working for me! help me pls I was scripting and rooms doesn't spawns, help me😭
@@nika1506n0 by me it doesnt open
local TweenService = game:GetService("TweenService")
local furniture = {}
function furniture.OpenDrawer(drawer)
drawer:SetAttribute("Moving", true)
local isOpen = drawer:GetAttribute("Open")
local direction = isOpen and 1 or -1
local cframe = drawer.CFrame * CFrame.new(0, 0, 1.5 * direction)
local drawerTween = TweenService:Create(drawer, TweenInfo.new(0.5), {CFrame = cframe})
drawerTween:Play()
drawerTween.Completed:Wait()
drawer:SetAttribute("Moving", false)
drawer:SetAttribute("Open", not isOpen)
end
function furniture.New(template, roomModel)
local furnitureModel = workspace.Furniture:FindFirstChild(template.Name)
if furnitureModel then
furnitureModel = furnitureModel:Clone()
furnitureModel:PivotTo(template.CFrame)
if furnitureModel:FindFirstChild("Drawers") then
for i, drawer in ipairs(furnitureModel.Drawers:GetChildren()) do
drawer:SetAttribute("Open", false)
drawer:SetAttribute("Moving", false)
local prompt = Instance.new("ProximityPrompt")
prompt.ActionText = ""
prompt.MaxActivationDistance = 5
prompt.Parent = drawer.Toggle
prompt.Triggered:Connect(function()
if drawer:GetAttribute("Moving") == false then
end
end)
end
end
furnitureModel.Parent = template.Parent
template:Destroy()
end
end
function furniture.FurnishRoom(roomModel)
if roomModel:FindFirstChild("Furniture") then
local templates = roomModel.Furniture:GetChildren()
for i, part in ipairs(templates) do
furniture.New(part, roomModel)
end
end
end
return furniture
@@nika1506n0
ok guys BIG TIP READ!!!! if your bottom piece of the drawer part goes without the rest of the drawer, then you need to recheck if the other parts are Anchored. Sometimes things that are unanchored get anchored for some reason its a wierd studio glitch.... took me hours to figure out lol
explain
This is honestly kinda funny because im using this tutorial for a science fair project😅 thanks for helping me lol
Wooo Hooo! Another epic part to this doors tutorial franchise! I hope for more soon
More on the way!
BIG TIP READ! If u realize that the desk or drawers are to small for using E between each drawer, just increase the size of the primary part from the bottom and behind INSTEAD OF replacing every single room with drawers.
I hasn't good grammar because I am not english or russian, and this tip don't helped me, but you are awesome! You'll can help another people with good grammar!
You should make a part two because stores had a updated
how did this actually work?
U saved me because without u tip, my proximity prompts doens't appeard
THANKS
I was actually looing forward to this episode of the tutorial, very cool stuff. I hope you keep doing this series until you've eventually made a whoooole Doors game
what nice timing gnome! was just watching your rig editing video (i failed) and your videos out. great job as always.
Sorry to hear you've been having problems with rigging, if you pop into our discord we may be able to help!
@@GnomeCode nah its fine, i might attempt it another time.
Amazing tutorial! I’m making a doors fan-game and your tutorials are helping me alot with my game so thank you ❤
its working for me help please
@@nika1506n0 ?
This series is the most entertaining of all roblox studio series ever!
Cool Tutorial! But I have a problem with opening the drawers. I dont know why but some drawers open but the other ones dont whats the reason of this and how to fix this?
YES FINALLY PART 4 TYSM
I got a suggestion! In the next video, can you make it so that certain rooms generate at certain doors? Like, door 50?
He will probably do that after the simple entities are made (rush, ambush, and maybe eyes)
@@doinic09 didn't expect to see you here, aren't you that guy in scp slayer's server?
YIPPEE
Really Like The Series Keep It Up!
Awesome
Thanks GnomeCode for another awesome video!!
THANK YOU SO MUCH YOU SHOULD EARN MUCH MORE SUBS!
this series has helped me for the whole series
How to solve the Toggle prompt?
Fix :
You need to put the toggle out of the drawer, and no put in
Yay! I was really looking forward to this! Thank you so much!
TIP:
if you cannot see the prompts, you can try to put prompt.RequiresLineOfSight = false
this means that the prompt no longer requires you to see it when you face it.
thanks man
where do i put the " prompt.RequiresLineOfSight = false"
@@whangaty3390 where do you think you put it? the part where you set the properties of the prompt.
@@RichRBLX sorry old comment I fixed it. The prompt wasn’t in the right place.
thanks
I proud of you, you don't make only drawers, you make another furniture. And this is good! By the way, this isn't original models and LSPLASH don't delete your games and my game. / Я горжусь тобой, ты не сделал только ящики, ты сделал другую мебель. И это хорошо! Кстати, это не оригинальные модели и LSPLASH не удалит ваши игры и мою игру.
YESS finally new video keep up the good work. your the goat!!
it's not working for me! help me pls I was scripting and rooms doesn't spawns, help me😭
I have been waiting for this for so long!!! Yay! Thanks!!!
You know its gonna be a good day when GnomeCode uploads
When the world needed him most he came back (:
Hey Gnome Code! You have helped me developing for a year! But of course, errors come in my way. When you reach a point, drawers stop working, Wich that makes locked doors impossible (next tutorial) I'll try to fix it by myself, if I can't I'll tell you
Edit: I fixed it
@@vanessa5552806 so, in the comments, there is one that says: "if you can't see the drawers, use this" try with that and you'll see
on the next episode, would you do the room generation? like a room only generated after opening a door
yeah, I think that would be a good idea considering it lags pretty much whenever you start the game with a low performance device
I figured a way to do that, but it makes room numbering more complicated
You should actually generate it until the exit is within a range of ~250 studs. Else your room will appear with a delay and you might see what's behind the walls.
Keep up the excellent work mate
aye i got hearted
Finally! Another Doors Episode!
You might need to make a video showing how to make the rooms generate progressively and old rooms are deleted, and not all at once because the game doesn't like it when 1,000 rooms are furnished at once. 😨
(1,000 rooms because I'm making a game based on The Rooms)
Bro me too XD
same
Can the next series be on "How to make a game like Project Lazarus"?
It has just a few main things:
1) Unlimited zombie wave system until everyone dies
2) Coins and chest for guns - everyone starts with pistol
3) We can equip 2 guns
4) Reviving others but if someone dies, they return to lobby and if the next round starts, they rejoin with no guns but all coins / if someone gets knocked down, they can only use pistol
5) Powerups: X2 Damage, Speed, Health, Revive speed, +1 gun (total 3)
6) thx
Omg thanks for this tutorial keep up the good work! :D
These tutorials helped a lot for my insight of things, thank you.
GnomeCode can you do a rush tutorial without tween service (probably bodygyro) and also do the looting stuff too, and in the next part can you do closets?
why rush WITHOUT tween service? and isnt bodygyro decrepitated
@@theguythatcodes hmm maybe your right but I kinda like bodygryo and body position
the proximity prompt won’t show up for the player, even though it exists in the explorer
edit: the attachment was too far in, so the prompt wouldn’t show,
Can you help me whit furniture spawning? Plss
Thank you so much bro i've been searching for the past 10 hours
This is the best tutorial ever bro
Thanks for the help 🙂 loving watching ur video can't wait for seek 😀
never coming soon
GnomeCode has another subscriber added! 🎉
The furnitures goes outside of the room after it generates. I checked the code but it is the same than showed in this video. But the rest of your videos works and are great.
Question, why add a sound block to every drawer you make, instead of just referencing the sound block in a sounds folder or something? My concern is that if you had a dozen of these drawers, that's a dozen of those sound blocks that need to be loaded as well. Would that make a difference in how long it takes to generate?
We need to add a sound block to every drawer you make because the sound needs to be coming from that drawer. and no it wouldnt make a difference. sounds are SUPPERR easy to generate. the last thing they're gonna be is laggy cause of the sounds
My drawers won't open I went through it and my script isn't wrong i press e and it doesnt do anything plz help
help
Hey GnomeCode, I realised that my laptop takes lots of time to actually load the furniture (a few seconds), so I suggest you make a code optimization and better room generation (When you enter another room and there are more than 5-7 rooms, the last generated room is deleted). And one thing i notice is that setting the Primary to PrimaryPart helps as you don't need to find which one you messed up if the orientation is wrong
Optimization usually occurs midway through development, but I feel for those people with potato pcs
add part and i give the script later
@@thedumbguy0w033 and mobile players...
Potato pc speaker here, Don't ever try to generate 1000 rooms. Thats all I have to say.
@@ProdByVRNE make it 10 thousand
Hey gnomecode, I have a new series idea. You can make a "How to make a game like Bedwars" video, it might even get some views!!! complete with kits, beds, fun pvp, etc! I'd love to see a series like that in the future :D
P.s. I know I've sent this before but, it would be a really nice tutorial :D
Thank u for posting these :D
my furniture wasnt generating, and i was working on it for over an hour. OVER A ("furniture") THING SPELLED ("FURNITRE")
i have a problem: when the drawers open it pop out only the bottom part and not the top, can anybody know why?
You Are My Gold! Thank You So Much I Love Your Videos !!!
I did all of the coding but now my rooms won’t load. The door spawns in the spawning room but then none of the rooms spawn and I dal to the ground so then I don’t know if my drawers work or not my door won’t do the opening animation so now I have to set it so I don’t collide with it and phase right through. Please help me with this issue 😢
did you ever fix this?
@@Goose88 i gave up on the game (no I didn’t :c )
@@GartenOfOST i fixed it. All I did was delete everything in the furniture script and rewrite it again paying more attention to the video
Keep up the good work!
i don't know what i'm doing wrong but i'm stuck at the first tutorial i follow so closely as possible do you have tips for me?
pls i want to make doors
@@fatcatofficial69 Can you say what problem you currently have?
The only tip is to follow more closely it's literally a straight copy-paste tutorial
Assuming there are no errors in your output window, make sure that the orientations of your entrance/exit parts are all correct.
same thing with me, i quit this series because first episode didnt work
Next can you teach us how to make a game like Sharkbite
I know I might be a year late but you could probably use this to make broken doors as well, just like in the actual game where it's doors that cannot be opened and that are either planked, broken or have no knob
one question? what is the "drawer" where the attachment point needs to be
I'm struggling with a bug, the proximity prompts don't show, and I tried everything I can to see what the problem is, the prompt spawns inside of toggle, but it never shows up, I also even tried to rebuild the drawers and desk to see if that would work, and I saw that the code was the same, so, is there a way to fix the bug? Pretty great tutorial, by the way.
Edit: I fixed it, just had to make the toggle more far out, if anybody got the same one
Thanks you, now i fixed the bug!
Your voice and intro reminds me of Stampy, he was my childhood
after a couple rooms, the furniture stops generating, whats going on?!!
i fixed
This series is so fun, sadly i gave up on the seccond episode because i don't have good building skill :(
4:41 saving my spot
good job gnomeCode
This was cool but when I did the script and played the rooms didn’t appear and I kinda need help with that since idk where I messed up
Yo exited for the realease and what you will call the game also can you make a short tutorial to show me how to make a swinging code
my drawers dont open.
the definition of "jammed"
no hate
dude me too
8:02 saving my spot
It's not working for me gnome code does it need every part of the drawer facing forward??
Can you teach how to make an animation for gui I need one for my game but like an appearance with Doors
Super cool! What would the monster be?
Best tutorials ever!!!!
i enjoy this tutorial
Timothy is next in part 6?
Thanks So Much!!!!!, I Love This Serie Make More!!!!
please continue this series!
Hey Gnomecode! i have a question why would you put templates if it's not gonna place them on all the template
i hope that when he does stuff like rush he will not mess up and will not just put a hitbox and will actually use raycasts like in doors
Keep it up bro
Running into an odd issue with the Attachments portion. The attachment won’t detect the face of the drawer model, acting as if it is not there.
You aren't selecting everything, that's why
One day i am going to make an entity in my spinoff version of doors name Gnomer
can wait for the monster!
you can make it so that if you were further from the door the room would delete
YESSSS PART 4
YES, ITS NEW VIDEO!!! THX GNOMECODE FOR COOL CONTENT!!!! =D
How do I activate my welds? They arent working and i cant check the box
Hey gnomecode, im having trouble with my code. The furniture isnt spawning, and there are no errors appearing. Any ways to fix this?
same with my try placing Print() functions through out the code to find where the error is
maybe your name of folder or furniture name isnt right with that you used in script?
that was for me the same you just need to rename the Templates to desk and drawer i think
question: Do u need the knobs on the drawers/desks?
edit: another question
question: the bottom drawer is moving around, how do I fix it
Cant wait for him to do entities, doors 50 + 100, an ending, etc.
Hi gnome code, so uhmm. i need help, im pretty sure i finished Furnishing the rooms, and it just doesnt load
Please reply. What episode do you think your gonna add monsters and what monster would you add first?
Gnomecode, will you make this game open source like you did for Teddy? If so that would be amazing!
yay part 4!!
How do we make a Sub-Room. Like the ones in Doors? same thing for Randomized Sub-Rooms.
It would be have a door, that we can walk into, for a different part of the Room.
Heelo i have a problem it says
Toggle is not a valid member of Part "Desk.Drawers.Part"
Pls help
Edit: i need really fast help witch this
Toggle needs a parent with the name of drawer not part
I'm having an error where when i put the attachments in the drawer it makes an error saying its not a valid member of part "Drawer.Drawers.Drawer" i don't know how to fix
I know I'm a year late but for some reason only the prompt is moving, not the drawer. I've been trying to fix this glitch for an hour, and have gotten no results. How do I?
Gnomecode can you make your volume higher?
Hi GnomeCode! How do you do so that all of them welds to all of them? Because for me, it just welds one of them
Edit : And also how did you make that dark green line that connects all of the welds?
Edit #2 : Otherwise i would be left clueless with “Attempt to index nil with SetAttribute” at line five and that could be the possible cause
what you want to do is press ctrl and alt and click the thing you wanna weld first, then do the others
@@unusualben so i do it manually?
@@fexryourfriend I can make a video to help you
@@unusualben sure
@@fexryourfriend k
Can you make another episode pls
I want to make entities
If you also needs the Furniture script, there you go:
local furniture = {}
function furniture.New(template, room_model)
local furniture_model = workspace.Furniture:FindFirstChild(template.Name)
if furniture_model then
furniture_model = furniture_model:Clone()
furniture_model:PivotTo(template.CFrame)
furniture_model.Parent = template.Parent
-- template:Destroy()
end
end
function furniture.FurnishRoom(room_model)
if room_model:FindFirstChild("Furniture") then
local templates = room_model.Furniture:GetChildren()
for i, part in ipairs(templates) do
furniture.New(part, room_model)
end
end
end
return furniture
also commented "template:Destroy()" also thinking that it was causing the problem.
THX YOU SO MUCH !!!! its help only for me i think lol ! but thx you so much it work now !
Now i can make my Horror game!
hello so far from the first doors tutorial everything was great till this video last time i try it the drawer only open but dont close and now im trying it again it failed to open help pls