Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Not a Valid Member help?

Asked by 8 years ago

Hi all, so I'm making this timer GUI, and it works 100% in studio, but when I test it in game, I run into this error:

'TotalSeconds is not a valid member of ScreenGui'

Below is the line it is erring at.

local ToTime = script.Parent.Parent.TotalSeconds.Value

Why does this work in studio but then err in the game player? Any help would be appreciated!

0
Use the method `WaitForChild`, (script.Parent:WaitForChild("TotalSeconds")). woodengop 1134 — 8y
0
Weird..., I get a lot of errors in game, but my guess is something in your script changes the parent of TotalSeconds and does not update your value? Xetrax 85 — 8y

Answer this question