So I'm very new to Lua. Just started learning like a few days ago. And I've been experimenting on roblox studio, I'm trying to make something that goes from transparent on click, then goes back to it's original state again on click. This is how far I've come
local hi = game.Workspace.Part.Open.MouseClick:Connect(function(click) local goner = game.Workspace.Part goner.Transparency = 0.5 end)
It may look simple to many of you people but for me it isn't. I'm making this straight from my mind and please don't make fun of me. I'm very new, everyone starts somewhere right?
Maybe try something like this.
local value = true local goner = game.Workspace. Part game.Workspace. Part.Open.MouseClick:Connect(function(click) if value == true then goner.Transparency = 0.5 value = false else goner.Transparency = 0 value = true end end)