So this script gets a local script in starter GUI, except when I click it the output says it worked, but the script dosent get disabled. However thogh, if theres a normal script in workspace with the code:
game.StarterGui.Script.Disabled = true
it works! how ever, if I use a click detector and use this script:
local function OnClick(hi) game.StarterGui.Script.Disabled = false print("worked") end script.Parent.ClickDetector.MouseClick:connect(OnClick)
it dosent work. please help!
you wrote it wrong.
local function OnClick() game.StarterGui.Script.Enabled = false print("worked") end game.StarterGui.Script.Disabled = false
You did wrong at line 3, why do you need to make the script.Disabled = false? You just make it Enabled.
Replace this to line 3 :
game.StarterGui.Script.Disabled = true
Hope I helped and bye! :3