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 3 years ago
Edited 3 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 — 3y

1 answer

Log in to vote
1
Answered by 3 years ago

Try this,

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

Answer this question