function Ability:cooldown(cooldownTime, _restingTimeAbility)
game.StarterGui.ScreenGui.TextLabel.BackgroundTransparency = 1
game.StarterGui.ScreenGui.TextLabel.BorderSizePixel = 3
game.StarterGui.ScreenGui.TextLabel.BorderColor3 = 232, 152, 22
for i = 1, cooldownTime do
print (_restingTimeAbility)
game.StarterGui.ScreenGui.TextLabel.Text = _restingTimeAbility
_restingTimeAbility = _restingTimeAbility - 1
wait(1)
end
end
So my code only changes the first thing it sees in my code. The code itself should work fine. Because it prints in output that I want. But it only changes one thing in the gui.
The script is a Script in my Workspace. //game.workspace.Script (Not a localscript) The Gui TextLabel is in startergui. //game.StarterGui.ScreenGui.TextLabel
Greetings from a programmer that's new in LUA :) and thanks in advance.

2 comments
So explain us a bit what do you need exactly ?
You're supposed to change the GUIs in PlayerGui, not StarterGui.