So I’m trying to make a timer that shows up on the screen. The problem is that the timer doesn’t go back up when the countdown is done.
I tried turning Visible to false and just setting the position but it still doesn’t go up.
game.ReplicatedStorage:WaitForChild("Timer").OnClientEvent:Connect(function(Time)
script.Parent.Countdown:TweenPosition(UDim2.new(script.Parent.Countdown.Position.X.Scale,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Elastic)
for i = Time,1,-1 do
script.Parent.Countdown.TextLabel.Text = tostring(i)
wait(1)
end
--The code that doesn't work
script.Parent.Countdown:TweenPosition(UDim2.new(script.Parent.Countdown.Position.X.Scale,-0.25,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Elastic)
--
end)
The countdown itself works but the code going up doesn’t. I also don’t get any errors.
You accidentally put the -0.25 in the X offset part instead of the Y scale which I assume you were aiming for. You’ve tweened a quarter of a pixel to the left, rather than 25% upwards. Oops!
Thank you so much for your help! flame and I have been working on a game for 5-6 months, this was one of the last bugs we had to fix before testing! Once again, thank you so much!