i will send a pic, of how it is now
i put all guiâs off, and even if theyâre turned on i can only click on the locker which is ofc annoying
and it wonât open- as u see on the screen (i have 2 doors because i did one for open position and other close!)
Make a Folder instance, and put the locker inside it, and then change the lockers variable to reference it.
itâs in the folder(the locker is in the folder) and yeah-
crap- i didnât meant to click on the solution
Did you define the lockers variable in both scripts?
busy, and no- i am trying and itâs my first time doing an reference-
It just means that you have to do local lockers= (the folder you created)
and then the variable is refering to that folder
oh- lemme check you had it already in the scripts i suppose-
itâs defined oop i need to make more games fr
It wouldnât open anyways because the script stops reading in line 6 anyways because it errors, it says youâre trying to index will with GetChildren()
so you did something and it doesnât recognize the folder, check that everything is correct with itâs name , and maybe even do WaitForChild(Folder name)
okay i will do it, lmk for any other suggests
the GetChildren() is nil- so idk what else to replace there-
attempt to index nil with 'GetChildren'
means you tried to use the method on nothing, it needs to be called in an instance, paste the reference to the folder, because the problem is with that folder
welp- local lockersFolder = workspace:WaitForChild(âLockersFolderâ) like this?? (i am js guessing since i need to learn lua more)
Do you also get a warning? (yellow/orange text)
no only the red one 18:49:06.404 High school Locker @ 10 Dec 2023 18:49 auto-recovery file was created - Studio
18:49:08.216 ServerScriptService.Script:29: attempt to index nil with âOnServerEventâ - Server - Script:29
18:49:08.216 Stack Begin - Studio
18:49:08.216 Script âServerScriptService.Scriptâ, Line 29 - Studio - Script:29
18:49:08.216 Stack End - Studio
18:49:11.868 Players.Acespacesss.PlayerGui.ScreenGui.LocalScript:8: attempt to call missing method âGetChildrenâ of table - Client - LocalScript:8
18:49:11.869 Stack Begin - Studio
18:49:11.869 Script âPlayers.Acespacesss.PlayerGui.ScreenGui.LocalScriptâ, Line 8 - Studio - LocalScript:8
18:49:11.869 Stack End - Studio
18:50:07.987 Disconnect from ::ffff:127.0.0.1|53295 - Studio
18:53:36.382 High school Locker auto-recovery file was created - Studio i did kinda edit the code