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

The script I made does not work, it just says there and do nothing? Any fix?

I'm trying to make a button when you click on it, the self destruct script enables.

This is what I made.

game.Workspace.Insdestruct.ClickDetector.MouseClick:connect(onClicked)


function onClicked()
	workspace.Check1.Disabled = true
	workspace.Check2.Disabled = true
	workspace.Check3.Disabled = true
	workspace.DelTemp.Disabled = true
	workspace.InstantMelt.Disabled = false
end

Yes there is a clickdetector included.

When I click it, it doesn't do anything?

Can someone help me?

1 answer

✓ Accepted answer

Lua runs from top to bottom so put the function before calling it so put it above the mouse click code.

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