Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a part visible with a single ScreenGui button?

I have a tool and I want to make one part of the tool named PartA be visible when the ScreenGui button is clicked and invisible as well when it is clicked for the second time.

1 answer

partA = game.Workspace.PartA
gui = script.Parent
partA.Transparency = 0
gui.MouseButton1Down:connect(function()
	partA.Transparency = 1
end)
	

It's that simple.

This discussion is preserved as it was. New answers, comments, and votes are closed.