Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make GUI transparency 0 by clicking on a part?

Asked by 4 years ago
Edited 4 years ago

I am trying to make a collection game, where by clicking on character you get it's GUI image. What I have been trying to do is make the ImageLabel transparency 0 by using ClickDetector inside of a part. The problem is that my image still stays invisible. I put the ImageLabel in ScreenGui which is also in StarterGui. I made a script and thats how it looks:

script.Parent.ClickDetector.MouseClick:Connect(function(Player)
    game.StarterGui.Unlocks.UnlockedList.Cub.ImageTransparency=0
end)

Edit: The ImageLabel is also in Frame

0
use MouseButton1Click Lightning_Game27 232 — 4y

Answer this question