-
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. -
What is the issue? Include screenshots / videos if possible!
- 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