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

HungerGui not a valid member of PlayerGui, even though the HungerGui is in PlayerGui?

Asked by 6 years ago

I'm really confused...

It gave me this error. 11:33:43.131 - HungerGui is not a valid member of PlayerGui 11:33:43.131 - Stack Begin 11:33:43.132 - Script 'Players.DeterminedTorres_RBX.PlayerGui.Intro.LocalScript', Line 6 11:33:43.132 - Stack End

Then... I checked in PlayerGui, and noticed that HungerGui is there. What's going on?

Anything wrong with the code? (I put in a excerpt of it)

local ContentProvider = game:GetService("ContentProvider")
script.Parent.Frame:TweenPosition(UDim2.new(0, 0,1, 0), "Out", "Quad", .5)
script.Parent.Frame2:TweenPosition(UDim2.new(0, 0,-1, 0), "Out", "Quad", .5)
--script.Parent.LoadingBar:TweenPosition(UDim2.new(0, 0,0.3, 0), "In", "Quad", .5)
wait(2)
game.Players.LocalPlayer.PlayerGui.HungerGui.BlueFrame:TweenPosition(UDim2.new(0.603, 0,1.5, 0), "Out", "Quad", .5)
game:GetService("StarterGui"):SetCoreGuiEnabled("All", false)
0
Are you sure its all spelled right? Stephenthefox 94 — 6y
0
Yes it is. DeterminedTorres_RBX 2 — 6y
0
It could be the case of that the script fired before it loaded; to fix this, simply use `WaitForChild`. :D http://wiki.roblox.com/index.php?title=WaitForChild TheeDeathCaster 2368 — 6y

Answer this question