Guis won't show up on join

Hello, the problem is, the image buttons show in studio and such, but when you join in game, it will be automatically set to invisible (visible = false).

We tried disabling the scripts and such, it still occured, we even tried re writing the code, same error. We even tried using CTRL + SHIFT + H and searching for Visible = false. Nothing was found.

Bool Check script:

local bool = script.Parent:WaitForChild("Settings"):WaitForChild("GuiLayout"):WaitForChild("HorizontalLayout")

bool.Changed:Connect(function()
	if bool.Value == false then
		script.Parent:WaitForChild("LivesButtonH").Visible = false
		script.Parent:WaitForChild("SettingsButtonH").Visible = false
		script.Parent:WaitForChild("ShopButtonH").Visible = false
		script.Parent:WaitForChild("SkillsButtonH").Visible = false
		--
		script.Parent:WaitForChild("LivesButtonV").Visible = true
		script.Parent:WaitForChild("SettingsButtonV").Visible = true
		script.Parent:WaitForChild("ShopButtonV").Visible = true
		script.Parent:WaitForChild("SkillsButtonV").Visible = true
	else
		script.Parent:WaitForChild("LivesButtonH").Visible = true
		script.Parent:WaitForChild("SettingsButtonH").Visible = true
		script.Parent:WaitForChild("ShopButtonH").Visible = true
		script.Parent:WaitForChild("SkillsButtonH").Visible = true
		--
		script.Parent:WaitForChild("LivesButtonV").Visible = false
		script.Parent:WaitForChild("SettingsButtonV").Visible = false
		script.Parent:WaitForChild("ShopButtonV").Visible = false
		script.Parent:WaitForChild("SkillsButtonV").Visible = false
	end
end)

Explorer Directory:

Video:

3 Likes

try disabling all of your scripts, if it stops going invisible, then enable half of the scripts, then use that to narrow down which script is the issue

Just attempted that right now, its still stays invisible.

not sure in that case
maybe there’s a weird plugin, or you ran a line in the command bar to hide them when the test starts?

Nope, no plugin that makes it invisible, and no command ran to make it invis (as shown in video, no command ran)

this doesn’t help with the issue but you should use GetDescendants() to make your code much cleaner

maybe the issue is that there is another script that makes the buttons invisible try checking your scripts where the buttons are present.

I’ve got this problem, For my problem, this is the solution, it maybe because you make it visible in the server side, but not the client side, try make it visible like this:

local player = game.Players.LocalPlayer
player.PlayerGui.MenuGui.LiveButtonV.Visible = true

or you can use remoteevents right?

1 Like

Yea, absolutely, I used remote event too but in case you dont want to use remote event that is prob the answer

1 Like

Did much more debugging, I have found out the problem.

My friend apparently put this;

when there was already another one set up.

1 Like

lol okay then, gl with the game!