Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

The text button text won't become visible then transparent. Any solutions?

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?

2 answers

The answer is grammar. The reason it won't work is because you are changing a value called Transperancy. The actual name is Transparency.

3 comments

0

lmaoooooooooooooooooooooooooo

0

brings back an old memory of when I spent half an hour trying to make a part invisible in front of my friend but it didn't work because I spelled it as Transperancy

0

lmaoooooooooooooooooooooooooo

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.