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

My text labels/buttons wont disappear in this script?

Asked by 4 years ago
Edited 4 years ago

I have a Text Label, 3 Text buttons. and this script.

script.Parent.Mousebutton1Click:Connect(function() script.Parent.Parent.Visible = false end)

Whats not working?

0
Scripts are case-sensitive so instead of Mousebutton1Click do MouseButton1Click FrontsoldierYT 129 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago

Try this,

script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Visible = false
end)
Ad

Answer this question