I Am Having trouble in my script in which i disable a GUI at the beginning and it works as intended but when i try to re enable it later. It will enable itself but wont show up in game
This is what i originally did
game.StarterGui.VotingGui.Enabled = false
and then later in the script
game.StarterGui.VotingGui.Enabled = true
This is What I have in the Gui
If i am doing this wrong please tell me what i need to do in order to fix it
local Player = game.Players.LocalPlayer
local PlayerGui = Player.PlayerGui
PlayerGui.VotingGui.Enabled = false
-- Put your code here
PlayerGui.VotingGui.Enabled = true
If this works, make sure to mark it as a solution!