LocalScript not finding Gui Instance even if it's clearly there

I have no clue why it ain’t finding the ViewportFrame but it’s clearly there.

Output: Infinite yield possible on 'Players.VERSION_22110183.PlayerGui.\x53\x63\x72\x65\x65\x6E\x47\x75\x69:WaitForChild("ViewportFrame")'

Script: script["Parent"]:WaitForChild("ViewportFrame")["CurrentCamera"]=workspace["CurrentCamera"]

Could you please provide a readable version, I’m not going to be able to help you this way.

script["Parent"]:WaitForChild("ViewportFrame")["CurrentCamera"]=workspace["CurrentCamera"]

Is the viewportframe named ViewportFrame?

Yep, i’m 100% sure it’s named ViewportFrame.

little note, not decoding the script/error makes people not want to help you
why would they put effort in when you didn’t?

try :FindFirstChildWhichIsA(‘ViewportFrame’)

Still doesn’t find the viewport frame. This issue is also in my other games.

I’ve also been getting this observableValue undefined warning in output, it comes from the client and i’ve been getting it on my other games.

This is an issue related to some roblox update and to my knowledge doesn’t break anything in your game and a lot of people have gotten it including me.

Now to get to your issue, you haven’t exactly provided much for us to go with. Could you please provide us with some screenshots/anything else that could help?

Well i found out the cause.

It was because i named the ViewportFrame to hexadecimal so the script read the name as “ViewportFrame” instead of the hexadecimal name. All i had to do was to encode the hexadecimal name (not decode).

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