GUI parameter set by script to true, but it still invisible

  1. What do you want to achieve? Keep it simple and clear!
    Well so, i’m using an module script in replicated storage for all client commands, and i have toggleGUI function, it says what GUI.Enabled = true, but in same time gui is not enabled lol.
  2. What is the issue? Include screenshots / videos if possible!

    image
    image
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? Well i tryed to add some debugs, so i figured which one function caused error

Function:

function ClientFunctions:ToggleGUI(player, GUI, toggle)
	print("toggle fired")
	print(GUI)
	print(toggle)
	if player.PlayerGui:FindFirstChild(GUI) then
		print("found gui")
		player.PlayerGui[GUI].Enabled = toggle
		print(player.PlayerGui[GUI].Enabled)
	end
end

Please tell us what GUI and toggle is, as that is what you are looking for in the PlayerGui.

GUI BillGUI.
Toggle is sent from server or client, but in this situation toggle is true
image

Alright, i figured error myself. I was enabling it by server, and then disabling it by client, so it didn’t show up anymore after 1 finish.

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