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

I corrected my script, but it still doesn't work, what do I do?

script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Enabled = true end

I corrected my script for my start menu, but it STILL doesn't work' is it bad chance or is it just...a bad script again? I corrected it With Lula, but It still doesn't work when I trublion it on command bar on Roblox Studio.Of I try end not true end, will it work if I try end?

script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Enabled = 
end

Or:

script.Parent.MouseButton1Click:Connect(function()
2	    script.Parent.Parent.Visible = not script.Parent.Parent.Visibile
3	end)

2 comments

0

end has it's own line. do NOT put it in with another line

0

Okay, thank you!

2 answers

✓ Accepted answer

Don't use Enabled. Do this.

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Parent.Visibility = not script.Parent.Parent.Visibility -- Basically it's visibility will be the opposite.
end) 

6 comments

0

It's Enabled, not "Visibility".

0

I tried doing Visibility, and it also works I believe.

0

But I saw it in an AlvinBlox tutorial, so it can be deprecated now.

0

It's Visible though. And why not use Enabled?

0

I can't find anything on the wiki for "Visbility"

0

LMAO HOW AM I ACCEPTED

script.Parent.MouseButton1Click:Connect(function() 
	script.Parent.Parent.Enabled = true
end

Im geussin you were enabling it

2 comments

0

you forgot to put the close parenthesis next to end: end)

0

Ok thank you!

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