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!

2 comments

0

Use the method WaitForChild, (script.Parent:WaitForChild("TotalSeconds")).

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?