Ad
Log in to vote
0

Cannot make a TextLabel Invisible/Visible. Can you help? [closed]

Asked by 4 days ago
local b = script.Parent

local a = true


b.MouseButton1Down:Connect(function()

    b.Position = UDim2.new(0.009, 0,0.446, 0)
end)

b.MouseButton1Up:Connect(function()

    b.Position = UDim2.new(0.009, 0,0.429, 0)
    script.Parent.Sound:Play()



end)

b.MouseEnter:Connect(function()
    b.ImageColor3 = Color3.new(1, 0.215686, 0.215686)
    game.StarterGui.PurchaseGUI.ImageLabel["13433400"].TextLabel.Visible = true
end)

b.MouseLeave:Connect(function()
    b.ImageColor3 = Color3.new(1, 0, 0)
    game.StarterGui.PurchaseGUI.ImageLabel["13433400"].TextLabel.Visible = false
end)
0
Just because you paste a script and question doesn't mean we don't know what context it is. Is it a local script? Server Script? What are you trying to achieve? What is your goal? At least apply one of these things to make us help you. Pasting a script isn't gonna help us any better. Dovydas1118 1410 — 4d
0
Can you be more specific? YandH015 9 — 4d

Closed as Non-Descriptive by Dovydas1118 and Benbebop

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 days ago

Im not sure if what your goal is but I think I can help.

There are two ways of doing this, you can enable or disable the Screen GUI or change the border pixel size and transparency for the TextLabel itself.

Option 1)

ScreenGUI.Enabled = false

Option 2)

TextLabel.BorderSizePixel = 0
TextLabel.BackgroundTransparency = 100
Ad