Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

"Worked" shows up in output but the now enabled script dosent work?

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!

2 answers

✓ Accepted answer

you wrote it wrong.

local function OnClick()
	game.StarterGui.Script.Enabled = false
	print("worked")
end
game.StarterGui.Script.Disabled = false

2 comments

0

You wrote it wrong too. Script don't have 'enabled', it only have Disabled

0

That is wrong aswell. Disabled or Enabled may exist JACK!

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

This discussion is preserved as it was. New answers, comments, and votes are closed.