I need help to fix this error

So when I was writing code I came across an error that I don’t understand

repeat wait() until game:IsLoaded()
wait(1)
while true do
	wait(0.1)
	script.Parent.Text = game.ServerStorage:FindFirstChild('Status').Value
end

error:

Players.richithebest123.PlayerGui.MainGui.TextLabel.LocalScript:5: attempt to index nil with 'Value'  -  Client - LocalScript:5

(I used the screenshot for more help because Status is in the serverStorage.)

Due to FilteringEnabled, the client cannot acces ServerStorage or ServerScriptService
You will have to put the status elsewhere, such as ReplicatedStorage or invoke a remote function to get the value.

2 Likes

Thank you for the help, have a nice day