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```
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!
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ā