Okay so, Im a beginner at scripting and I made a part with a SurfaceGui and 2 buttons (and a text label). I put the local script inside the part, a click detector and the Surface. I made this script…
local SheIs = game.Workspace.Prova1.SurfaceGui.SheIs local SheAre = game.Workspace.Prova1.SurfaceGui.SheAre local ClickDetector = game.Workspace.Prova1.ClickDetector ClickDetector.MouseClick:Connect(function() if SheIs then script.Parent.Transparency = 0.5 script.Parent.CanCollide = false elseif SheAre then SheAre.BackgroundColor3 = Color3.fromRBG (239, 78, 78) end end)
But its not working, I checked some posts about this but I have no idea of how to make the script work and idk what is wrong, there aren’t any errors at all.