I have a script that SHOULD make the chosen Gui Text become a little more transparent 1/10 of a second when I say the key text.. it has no errors but won't work. I've tried a Server Side Script and a Local Script.. but it still won't work. Any help?
A = script.Parent
admin = { "SecretShadowLeague" }
game.Players.PlayerAdded:connect(function(nP)
for _,v in pairs(admin) do
if nP.Name == v then
nP.Chatted:connect(function(msg)
if msg == "Computer Load O1" then
A.O1.TextTransparency = 0.9
wait(0.1)
A.O1.TextTransparency = 0.8
wait(0.1)
A.O1.TextTransparency = 0.7
wait(0.1)
A.O1.TextTransparency = 0.6
wait(0.1)
A.O1.TextTransparency = 0.5
wait(0.1)
A.O1.TextTransparency = 0.4
wait(0.3)
A.O1.TextTransparency = 0.3
wait(0.1)
A.O1.TextTransparency = 0.2
wait(0.1)
A.O1.TextTransparency = 0.1
wait(0.1)
A.O1.TextTransparency = 1
end
end)
end
end
end)
Any help?

1 comment
Please try titling your question more appropriately. "This won't work" is not a question, and doesn't tell us anything about what you're asking. Please change it.