I have a script where when you click on a part, the screen gui will change transparency but it is not working on the screen but it is in properties. Please help. I have Gui under StarterGui. Script:
local CD = script.Parent
local Image = game.StarterGui.ScreenGui.Frame.ImageLabel
Image.ImageTransparency = 0
CD.MouseClick:connect(function(click)
Image.ImageTransparency = Image.ImageTransparency + 1
end)

8 comments
tells me Player is a nil value at line 5
Is your script Local Script? Is it inside the Screen Gui? Because it needs to meet those two criteria
now it says infinite yield possible at line 9
That is because the objects you have on the explorer does not match the objects in the script. Change the names on the script to the names of the explorer and then it will work
What would I put on line 8???
Take a look at my comments in my script. If still does not work, send me an image of your explorer
thanks so much, sorry im a bit stupid :P
No problem man