Invisible frame despite having Visible property enabled

What is the issue? Everything in script seems to work fine as it’s intended to, except the fact that even if Visible property is enabled for the frame, it does not appear on screen (shown here):

ScreenGUIs are enabled for all these type of menus, as all other menus don’t work too and share a similar code to the one in the end of the post.

I have not stepped upon this game for past 2 months and only now I have realized that the frames stopped working - could this perhaps be a Roblox update that broke it? Could be, but UI in the main game (as this one shown in first pic is a tester ground game) still function well, so maybe I did last minute changes before taking a break (which could be a main frame I implemented for buttons as a parent, but even without the frame the buttons don’t function anymore, so I don’t believe this is the cause for this invisible frame issue). Tried looking for help in Devforum, there’s only one post regarding my issue and hasn’t been solved. ZIndex is not the problem here, nor are the Real lines.

Is this a script error at all??? Will appreciate any try in helping me out.

local Real = true

script.Parent.MouseButton1Click:Connect(function()
	if Real then
		game.StarterGui.Quests.Frame:TweenPosition(UDim2.new(0.019, 0, 0.359, 0),"Out","Quint",1,true)
		script.Parent.Rotation = 7
	else
		game.StarterGui.Quests.Frame:TweenPosition(UDim2.new(-0.2, 0, 0.359, 0),"Out","Quint",1,true)
		script.Parent.Rotation = 0
		Real = not Real
	end
end)```

Not sure if it helps, but isn’t your debounce set up incorrectly? Does this work?
And what is the hierarchy of your GUI in the Explorer window?

1 Like

Looking a little closer, is this a localscript or a serverscript. If it’s supposed to be dealing with a GUI in the player then isn’t that GUI in the player, not the Starterscripts?

1 Like

StarterGui gets cloned and then replicated into Player.PlayerGui so anything that effects StarterGui will not effect PlayerGui. Change the script to the following and it should work.

2 Likes

The debounce did not help, but here’s a part of all my GUI

image

Local script, it’s intended to be client sided, but I am not sure what you mean by second half lol

Read @desinied’s post, it explains it better. You aren’t affecting the GUI in the player, just in the StarterScript.

1 Like

Instead of game.StarterGui use game.Players.LocalPlayer.PlayerGui when changing properties of GUIs.

1 Like

Appreciate your help @desinied @Scottifly @hyva_banaan , game.Players.LocalPlayer.PlayerGui did indeed work

2 Likes

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