I have created a skinny stamina bar on the side of the players screen, and when they sprint with the shift key it decreases. The problem is that the GUI is decreasing the wrong way. The bar is decreasing from bottom to top instead of top to bottom. The below code is how the bar changes while sprinting. I know this is probably an easy fix but it seems like I'm not going anywhere with it. Any help would be much appreciated
replicatedStorage.RemoteEvents.StaminaUpdate.OnClientEvent:Connect(function(stamina, maxStamina)
players.LocalPlayer.PlayerGui.Stamina.Bar.Size = UDim2.new(0, 17, 0, (stamina / maxStamina) * 97)
end)
