
How to fix this?
code:
local sit = script.Parent.sit
local cheat = script.Parent.buttons.Cheat
local Shop = script.Parent.buttons.Shop
local Gui = script.Parent.buttons
local Plot = workspace:WaitForChild("Plots"):GetChildren()
local prox = Plot.WorkingSpace.Chair.Seat.ProximityPrompt
while wait() do
if prox.Enabled == false then
Gui.Visible = true
elseif prox.Enabled == true then
Gui.Visible = false
end
end```
1 Like
cam
2
This just means that on line 7, āchairā does not exist:m. Make sure youāve capitalized everything and spaced it correctly and the name matches. I hope this helps!
P.S. I added some code blocks to your text to make your post more neat. Please use them next time!
Everything is good i think
Oh and thereās the path:

Noah
4
Hold on-, What are you trying to achieve, there may be a much more efficient way of achieving what you want to achieve.
I want to the proximityprompt works
local Plot = workspace:WaitForChild(āPlotsā):GetChildren() all parts in folder plots
local prox = Plot.WorkingSpace.Chair.Seat.ProximityPrompt proximity for all plots
Noah
6
Can you describe that in more detail, I didnāt exactly understand.
Iām trying to make proximtyprompt for chair for all plots (There are 4 plots). All of plots itās in same folder soo I use local Plot = workspace:WaitForChild(āPlotsā):GetChildren() to get all plots from folder. Then i tried to make the proximityprompt for all plots with: local prox = Plot.WorkingSpace.Chair.Seat.ProximityPrompt but idk why in code is a error thatās say:
Attempt to index nil with āChairā
did you understand?
is it understandable?
Noah
9
Iām still kinda confused.
bruh
what you donāt understood?
Noah
11
I donāt understand what youāre trying to achieve.
system
Closed
12
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.