Hey there, so this REALLY simple script doesn't work for some reason. No errors.
script.Parent.MouseButton1Click:Connect(function() game.StarterGui.Menu.Frame.Black.ImageTransparency = 1 end)
yep, it's that basic but it doesn't work. how do i fix it??
I think your problem is happening because your calling these from StarterGui. When a player joins the game, any objects inside of StarterGui, will be duplicated and placed into a folder inside the player called PlayerGui.
So, how to fix this?
Im assuming your using a local script, so try this:
script.Parent.MouseButton1Click:Connect(function() local player = game.Players.LocalPlayer player.PlayerGui.Menu.Frame.Black.ImageTransparency = 1 end)
This script fetches the player using LocalPlayer, then it gets Black from the Frame inside the Menu Gui, which is inside the PlayerGui. Then it changes the image Transparency to one.
Hope this helps!
NOTE: LocalPlayer can only be activated on a local script, in case your wondering.