I don't know how to explain it but long story short I'm setting a string value to be the path of the ui frame and then making it not visib;e in another script. But when I try to do it, it says it's not there even though I can see it. It's a local script and I'm able to see it on the client side.
#Trying to find Ui in a script - Saying not there
1 messages · Page 1 of 1 (latest)
try defining each and having them :WaitForChild()
for example:
local screengui = game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui")
local container = screengui:WaitForChild("Container")
and so on
that's because the script runs before the UI is replicated to PlayerGui. If you use :WaitForChild() the script will wait for the UI replication and it should fix your error
The solution above my message works as a fix