local flap = script.Parent.Parent.Parent.Parent.Parent.test
local on = script.Parent
local off = script.Parent.Parent.TextButton2
flap.Transparency = 0
on.MouseButton1Click:Connect(function()
flap.Transparency = 1
end)
Pretty much I have a UI and I have this script under one of the buttons, not sure why the button doesn't work since I'm a new programmer.

1 comment
try local flap = game.Workspace.test