Part not being found by script

I need help with my price changing script, my script cannot find the “FoodPriceBoard”, despite the fact that it is in the correct spot, and is correctly named.

local surfaceGuiPart = game.Workspace.PriceBoards.FoodPriceBoard.SurfaceGui


Screenshot 2024-05-18 152117

The script is a localscript located in the StarterPlayerScripts.

try doing :WaitForChild(“FoodPriceBoard”) or something lieke that

yeah, okay that worked. Thanks, probably should’ve been able to figure that out myself lol

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.