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

Trying to make a GUI click make a part transparent?

Asked by 1 year ago
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.

0
try local flap = game.Workspace.test masilasi2008 10 — 1y

1 answer

Log in to vote
0
Answered by 1 year ago

try local flap = game.Workspace.test

Ad

Answer this question