Loaded is not a valid member of script (attribute)

I have an attribute inside of my script called “loaded”, this is the first time i’m using an attribute and i get this error: Loaded is not a valid member of Script “ServerScriptService.SavingScript”
the attribute is in the script (like in properties).

Show code, and the explorer properties of this Script.

image

script.Loaded = true

You need to use Instance:SetAttribute() and Instance:GetAttribute()

e.g script:SetAttribute(“Loaded”, true)

2 Likes

Don’t you have to get the attribute first?

1 Like

oh god i suck lmao characterss

1 Like