for i = 0, 10 do
game.StarterGui.Cloaking.Frame.CloakingTime.Size.Y = game.StarterGui.Cloaking.Frame.CloakingTime.Size.Y - (0; 18)
wait(1)
end
Well, I don't know how to subtract from UDim2.
for i = 0, 10 do
game.StarterGui.Cloaking.Frame.CloakingTime.Size.Y = game.StarterGui.Cloaking.Frame.CloakingTime.Size.Y - (0; 18)
wait(1)
end
Well, I don't know how to subtract from UDim2.
Try this
game.StarterGui.Cloaking.Frame.CloakingTime.Size=UDim2.new(0,0,0,game.StarterGui.Cloaking.Frame.CloakingTime.Size.Y.Offset-i)
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
oh also to make the cooldown appear smooth change wait(1) to wait(0.1) and change i=0,10 to i=0,10,0.1
it didn't work for me, the gui hasn't changed
Actually it is changing the size of the gui but it keeps the same I don't know why
What do you mean it keeps the same???
Well, when I look at the value of the size it is decreasing, but the bar continues the same size