I'm making a system where when you touch a part, it senses your inventory. This part all works fine. But I made a button, and when you click that, the text button (which has inventory items) text won't become visible. I set it to transparency one, and made a script that goes like this:
function OnClicked(C) local Screen = script.Parent.Parent.Screen.Example.TextTransperancy Screen.Transperancy = 0 wait(5) Screen.Transperancy = 1 end script.Parent.ClickDetector.MouseClick:connect(OnClicked)
Any solutions/fixes that can be made?
The answer is grammar. The reason it won't work is because you are changing a value called Transperancy. The actual name is Transparency.
You have misspelled the word "Transparency"
function OnClicked(C) local Screen = script.Parent.Parent.Screen.Example.TextTransperancy Screen.Transparency = 0 wait(5) Screen.Transparency = 1 end script.Parent.ClickDetector.MouseClick:connect(OnClicked)
Next time try using the TAB key to auto-complete your code.