Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
DjMusa2 81
5 years ago
Edited 5 years ago
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)
0
end has it's own line. do NOT put it in with another line DuckMaster11211 13 — 5y
0
Okay, thank you! DjMusa2 81 — 5y

2 answers

Log in to vote
-3
Answered by
Mr_Unlucky 1085 Moderation Voter
5 years ago
Edited 5 years ago

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) 
0
It's Enabled, not "Visibility". User#19524 175 — 5y
0
I tried doing Visibility, and it also works I believe. Mr_Unlucky 1085 — 5y
0
But I saw it in an AlvinBlox tutorial, so it can be deprecated now. Mr_Unlucky 1085 — 5y
0
It's Visible though. And why not use Enabled? User#19524 175 — 5y
View all comments (2 more)
0
I can't find anything on the wiki for "Visbility" green271 635 — 5y
0
LMAO HOW AM I ACCEPTED Mr_Unlucky 1085 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
script.Parent.MouseButton1Click:Connect(function() 
    script.Parent.Parent.Enabled = true
end

Im geussin you were enabling it

0
you forgot to put the close parenthesis next to end: end) awesomeipod 607 — 5y
0
Ok thank you! DjMusa2 81 — 5y

Answer this question