01 | local tool = script.Parent |
02 | local event = game.ReplicatedStorage.StrengthEvent |
03 | local debounce = false |
04 | local plr = game.Players.LocalPlayer |
05 | local waitGui = plr.PlayerGui:WaitForChild( "ScreenGui" ) |
06 | local gui = waitGui.Strength.TextTransparency |
07 |
08 | tool.Activated:Connect( function () |
09 | if not debounce then |
10 | debounce = true |
11 | for i = 1 , 0 , . 1 do |
12 | gui = i |
13 | wait() |
14 | end |
15 | wait() |
the gui doesn't appear... im not sure what to do e.e and i had to expand the title.
Your code has several problems.
gui = waitGui.Strength.TextTransparency
, well use waitGuit.Strength
.
for i = 1, 0, .1 do
, you cannot count down from 1
to 0
per 0.1
.
I fixed your code; Hope it helps.
01 | local tool = script.Parent |
02 | local event = game.ReplicatedStorage.StrengthEvent |
03 | local debounce = false |
04 | local plr = game.Players.LocalPlayer |
05 | local waitGui = plr.PlayerGui:WaitForChild( "ScreenGui" ) |
06 | local gui = waitGui.Strength |
07 |
08 | tool.Activated:Connect( function () |
09 | if not debounce then |
10 | debounce = true |
11 | for i = 0 , 1 , . 1 do |
12 | gui.TextTransparency = i |
13 | wait() |
14 | end |
15 | wait() |