How to make gui bar decrease accordingly to stamina?

I’m trying to make a gui bar that decreases accordingly to the stamina that the player has, but I can’t manage to deplete the gui bar according to the player’s stamina.
robloxapp-20201215-1016009.wmv (1.1 MB)
Here’s the part of the local script:

ReplicatedStorage.RemoteEvents.StaminaUpdate.OnClientEvent:Connect(function(Stamina,MaxStamina)
	Players.LocalPlayer.PlayerGui.Stamina.StaminaBar.Size = UDim2.new(0.1,(Stamina/MaxStamina) * 410,0,31)
	
end)

Server:

Players.PlayerAdded:Connect(function(Player)
	local Character = Player.Character or Player.CharacterAdded:Wait()
	local Humanoid = Character.Humanoid
	local Stamina = Instance.new("IntValue",Player)
	Stamina.Value = MaxStamina
	Stamina.Name = "Stamina"
	local Animator = Instance.new("Animator",Humanoid)
	
	Stamina.Changed:Connect(function(Property)
		ReplicatedStorage.RemoteEvents.StaminaUpdate:FireClient(Player,Stamina.Value,MaxStamina)
	end)
end)

RunService.Heartbeat:Connect(function()
	for i,Player in pairs(Players:GetChildren()) do
		if not Player:FindFirstChild("Stamina") then
			return 
		end
		local Stamina = Player.Stamina
		local Name = Player.Name
		
		if not SprintingPlayers[Name] then
			if Stamina.Value > MaxStamina then
				Stamina.Value = MaxStamina
			elseif
				Stamina.Value < MaxStamina then
				Stamina.Value = Stamina.Value + StaminaRegeneration
			
			end
		else
			if Stamina.Value >= SprintStaminaCost then
				Stamina.Value = Stamina.Value - SprintStaminaCost
				
			else
				Player.Character.Humanoid.WalkSpeed = SprintingPlayers[Name]
				SprintingPlayers[Name] = nil
			end
		end
	end
end)

What can I do to improve this?

Maybe trying to using TweenSize ? I am not sure to undestand what you want to make

Hi I included a video in the original post so you can get a better idea. Basically the bar doesn’t go down to 0 when my stamina runs out.

Maybe becose of the size of the bar ? Print in the console the Stamina/MaxStamina on the ClientEvent and send a screen

You mean like this?

Do print(Stamina/MaxStamina) and make a video when you run to decreases (need to see the console) the player stamina

Is there a way to record the output using studio? I don’t have any screen recording software

Just do F9 or make a screen shot

 10:33:01.200  0.901  -  Client  -  SprintingClient:35
  10:33:01.201  0.905  -  Client  -  SprintingClient:35
  10:33:01.233  0.909  -  Client  -  SprintingClient:35
  10:33:01.234  0.913  -  Client  -  SprintingClient:35
  10:33:01.266  0.917  -  Client  -  SprintingClient:35
  10:33:01.266  0.921  -  Client  -  SprintingClient:35
  10:33:01.267  0.925  -  Client  -  SprintingClient:35
  10:33:01.294  0.929  -  Client  -  SprintingClient:35
  10:33:01.328  0.933  -  Client  -  SprintingClient:35
  10:33:01.328  0.937  -  Client  -  SprintingClient:35
  10:33:01.356  0.941  -  Client  -  SprintingClient:35
  10:33:01.356  0.945  -  Client  -  SprintingClient:35
  10:33:01.390  0.949  -  Client  -  SprintingClient:35
  10:33:01.390  0.953  -  Client  -  SprintingClient:35
  10:33:01.422  0.957  -  Client  -  SprintingClient:35
  10:33:01.422  0.961  -  Client  -  SprintingClient:35
  10:33:01.460  0.965  -  Client  -  SprintingClient:35
  10:33:01.460  0.969  -  Client  -  SprintingClient:35
  10:33:01.498  0.973  -  Client  -  SprintingClient:35
  10:33:01.499  0.977  -  Client  -  SprintingClient:35
  10:33:01.499  0.981  -  Client  -  SprintingClient:35
  10:33:01.529  0.985  -  Client  -  SprintingClient:35
  10:33:01.530  0.989  -  Client  -  SprintingClient:35
  10:33:01.556  0.993  -  Client  -  SprintingClient:35
  10:33:01.588  0.997  -  Client  -  SprintingClient:35
  10:33:01.588  1.001  -  Client  -  SprintingClient:35
  10:33:01.622  1  -  Client  -  SprintingClient:35
  10:33:03.108  0.993  -  Client  -  SprintingClient:35
  10:33:03.108  0.986  -  Client  -  SprintingClient:35
  10:33:03.146  0.979  -  Client  -  SprintingClient:35
  10:33:03.147  0.972  -  Client  -  SprintingClient:35
  10:33:03.147  0.965  -  Client  -  SprintingClient:35
  10:33:03.178  0.958  -  Client  -  SprintingClient:35
  10:33:03.178  0.951  -  Client  -  SprintingClient:35
  10:33:03.206  0.944  -  Client  -  SprintingClient:35
  10:33:03.239  0.937  -  Client  -  SprintingClient:35
  10:33:03.240  0.93  -  Client  -  SprintingClient:35
  10:33:03.272  0.923  -  Client  -  SprintingClient:35
  10:33:03.272  0.916  -  Client  -  SprintingClient:35
  10:33:03.305  0.909  -  Client  -  SprintingClient:35
  10:33:03.305  0.902  -  Client  -  SprintingClient:35
  10:33:03.339  0.895  -  Client  -  SprintingClient:35
  10:33:03.339  0.888  -  Client  -  SprintingClient:35
  10:33:03.372  0.881  -  Client  -  SprintingClient:35
  10:33:03.372  0.874  -  Client  -  SprintingClient:35
  10:33:03.407  0.867  -  Client  -  SprintingClient:35
  10:33:03.407  0.86  -  Client  -  SprintingClient:35
  10:33:03.407  0.853  -  Client  -  SprintingClient:35
  10:33:03.455  0.846  -  Client  -  SprintingClient:35
  10:33:03.455  0.839  -  Client  -  SprintingClient:35
  10:33:03.488  0.832  -  Client  -  SprintingClient:35
  10:33:03.489  0.825  -  Client  -  SprintingClient:35
  10:33:03.522  0.818  -  Client  -  SprintingClient:35
  10:33:03.522  0.811  -  Client  -  SprintingClient:35
  10:33:03.557  0.804  -  Client  -  SprintingClient:35
  10:33:03.557  0.797  -  Client  -  SprintingClient:35
  10:33:03.591  0.79  -  Client  -  SprintingClient:35
  10:33:03.591  0.783  -  Client  -  SprintingClient:35
  10:33:03.624  0.776  -  Client  -  SprintingClient:35
  10:33:03.625  0.769  -  Client  -  SprintingClient:35
  10:33:03.643  0.762  -  Client  -  SprintingClient:35
  10:33:03.644  0.755  -  Client  -  SprintingClient:35
  10:33:03.694  0.748  -  Client  -  SprintingClient:35
  10:33:03.694  0.741  -  Client  -  SprintingClient:35
  10:33:03.739  0.734  -  Client  -  SprintingClient:35
  10:33:03.739  0.727  -  Client  -  SprintingClient:35
  10:33:03.739  0.72  -  Client  -  SprintingClient:35
  10:33:03.802  0.713  -  Client  -  SprintingClient:35
  10:33:03.802  0.706  -  Client  -  SprintingClient:35
  10:33:03.832  0.699  -  Client  -  SprintingClient:35
  10:33:03.832  0.692  -  Client  -  SprintingClient:35
  10:33:03.871  0.685  -  Client  -  SprintingClient:35
  10:33:03.872  0.678  -  Client  -  SprintingClient:35
  10:33:03.906  0.671  -  Client  -  SprintingClient:35
  10:33:03.906  0.664  -  Client  -  SprintingClient:35
  10:33:03.939  0.657  -  Client  -  SprintingClient:35
  10:33:03.939  0.65  -  Client  -  SprintingClient:35
  10:33:03.971  0.643  -  Client  -  SprintingClient:35
  10:33:03.972  0.636  -  Client  -  SprintingClient:35
  10:33:04.006  0.629  -  Client  -  SprintingClient:35
  10:33:04.006  0.622  -  Client  -  SprintingClient:35
  10:33:04.006  0.615  -  Client  -  SprintingClient:35
  10:33:04.038  0.608  -  Client  -  SprintingClient:35
  10:33:04.072  0.601  -  Client  -  SprintingClient:35
  10:33:04.073  0.594  -  Client  -  SprintingClient:35
  10:33:04.105  0.587  -  Client  -  SprintingClient:35
  10:33:04.105  0.58  -  Client  -  SprintingClient:35
  10:33:04.139  0.573  -  Client  -  SprintingClient:35
  10:33:04.139  0.566  -  Client  -  SprintingClient:35
  10:33:04.172  0.559  -  Client  -  SprintingClient:35
  10:33:04.172  0.552  -  Client  -  SprintingClient:35
  10:33:04.207  0.545  -  Client  -  SprintingClient:35
  10:33:04.207  0.538  -  Client  -  SprintingClient:35
  10:33:04.239  0.531  -  Client  -  SprintingClient:35
  10:33:04.239  0.524  -  Client  -  SprintingClient:35
  10:33:04.271  0.517  -  Client  -  SprintingClient:35
  10:33:04.272  0.51  -  Client  -  SprintingClient:35
  10:33:04.322  0.503  -  Client  -  SprintingClient:35
  10:33:04.322  0.496  -  Client  -  SprintingClient:35
  10:33:04.322  0.489  -  Client  -  SprintingClient:35
  10:33:04.354  0.482  -  Client  -  SprintingClient:35
  10:33:04.355  0.475  -  Client  -  SprintingClient:35
  10:33:04.386  0.468  -  Client  -  SprintingClient:35
  10:33:04.386  0.461  -  Client  -  SprintingClient:35
  10:33:04.412  0.454  -  Client  -  SprintingClient:35
  10:33:04.462  0.447  -  Client  -  SprintingClient:35
  10:33:04.462  0.44  -  Client  -  SprintingClient:35
  10:33:04.462  0.433  -  Client  -  SprintingClient:35
  10:33:04.507  0.426  -  Client  -  SprintingClient:35
  10:33:04.508  0.419  -  Client  -  SprintingClient:35
  10:33:04.508  0.412  -  Client  -  SprintingClient:35
  10:33:04.549  0.405  -  Client  -  SprintingClient:35
  10:33:04.549  0.398  -  Client  -  SprintingClient:35
  10:33:04.579  0.391  -  Client  -  SprintingClient:35
  10:33:04.579  0.384  -  Client  -  SprintingClient:35
  10:33:04.598  0.377  -  Client  -  SprintingClient:35
  10:33:04.598  0.37  -  Client  -  SprintingClient:35
  10:33:04.634  0.363  -  Client  -  SprintingClient:35
  10:33:04.634  0.356  -  Client  -  SprintingClient:35
  10:33:04.669  0.349  -  Client  -  SprintingClient:35
  10:33:04.669  0.342  -  Client  -  SprintingClient:35
  10:33:04.734  0.335  -  Client  -  SprintingClient:35
  10:33:04.735  0.328  -  Client  -  SprintingClient:35
  10:33:04.766  0.321  -  Client  -  SprintingClient:35
  10:33:04.766  0.314  -  Client  -  SprintingClient:35
  10:33:04.805  0.307  -  Client  -  SprintingClient:35
  10:33:04.805  0.3  -  Client  -  SprintingClient:35
  10:33:04.805  0.293  -  Client  -  SprintingClient:35
  10:33:04.837  0.286  -  Client  -  SprintingClient:35
  10:33:04.837  0.279  -  Client  -  SprintingClient:35
  10:33:04.868  0.272  -  Client  -  SprintingClient:35
  10:33:04.868  0.265  -  Client  -  SprintingClient:35
  10:33:04.893  0.258  -  Client  -  SprintingClient:35
  10:33:04.945  0.251  -  Client  -  SprintingClient:35
  10:33:04.945  0.244  -  Client  -  SprintingClient:35
  10:33:04.945  0.237  -  Client  -  SprintingClient:35
  10:33:04.972  0.23  -  Client  -  SprintingClient:35
  10:33:04.972  0.223  -  Client  -  SprintingClient:35
  10:33:05.013  0.216  -  Client  -  SprintingClient:35
  10:33:05.013  0.209  -  Client  -  SprintingClient:35
  10:33:05.055  0.202  -  Client  -  SprintingClient:35
  10:33:05.055  0.195  -  Client  -  SprintingClient:35
  10:33:05.082  0.188  -  Client  -  SprintingClient:35
  10:33:05.082  0.181  -  Client  -  SprintingClient:35
  10:33:05.082  0.174  -  Client  -  SprintingClient:35
  10:33:05.120  0.167  -  Client  -  SprintingClient:35
  10:33:05.120  0.16  -  Client  -  SprintingClient:35
  10:33:05.156  0.153  -  Client  -  SprintingClient:35
  10:33:05.156  0.146  -  Client  -  SprintingClient:35
  10:33:05.186  0.139  -  Client  -  SprintingClient:35
  10:33:05.187  0.132  -  Client  -  SprintingClient:35
  10:33:05.242  0.125  -  Client  -  SprintingClient:35
  10:33:05.243  0.118  -  Client  -  SprintingClient:35
  10:33:05.289  0.111  -  Client  -  SprintingClient:35
  10:33:05.290  0.104  -  Client  -  SprintingClient:35
  10:33:05.290  0.097  -  Client  -  SprintingClient:35
  10:33:05.321  0.09  -  Client  -  SprintingClient:35
  10:33:05.321  0.083  -  Client  -  SprintingClient:35
  10:33:05.354  0.076  -  Client  -  SprintingClient:35
  10:33:05.354  0.069  -  Client  -  SprintingClient:35
  10:33:05.379  0.062  -  Client  -  SprintingClient:35
  10:33:05.380  0.055  -  Client  -  SprintingClient:35
  10:33:05.430  0.048  -  Client  -  SprintingClient:35
  10:33:05.431  0.041  -  Client  -  SprintingClient:35
  10:33:05.478  0.034  -  Client  -  SprintingClient:35
  10:33:05.478  0.027  -  Client  -  SprintingClient:35
  10:33:05.478  0.02  -  Client  -  SprintingClient:35
  10:33:05.503  0.013  -  Client  -  SprintingClient:35
  10:33:05.503  0.006  -  Client  -  SprintingClient:35
  10:33:05.542  0.01  -  Client  -  SprintingClient:35
  10:33:05.542  0.014  -  Client  -  SprintingClient:35
  10:33:05.580  0.018  -  Client  -  SprintingClient:35
  10:33:05.605  0.022  -  Client  -  SprintingClient:35
  10:33:05.606  0.026  -  Client  -  SprintingClient:35
  10:33:05.638  0.03  -  Client  -  SprintingClient:35
  10:33:05.639  0.034  -  Client  -  SprintingClient:35
  10:33:05.671  0.038  -  Client  -  SprintingClient:35
  10:33:05.672  0.042  -  Client  -  SprintingClient:35
  10:33:05.704  0.046  -  Client  -  SprintingClient:35
  10:33:05.705  0.05  -  Client  -  SprintingClient:35
  10:33:05.739  0.054  -  Client  -  SprintingClient:35
  10:33:05.739  0.058  -  Client  -  SprintingClient:35
  10:33:05.771  0.062  -  Client  -  SprintingClient:35
  10:33:05.771  0.066  -  Client  -  SprintingClient:35
  10:33:05.806  0.07  -  Client  -  SprintingClient:35
  10:33:05.806  0.074  -  Client  -  SprintingClient:35
  10:33:05.806  0.078  -  Client  -  SprintingClient:35
  10:33:05.855  0.082  -  Client  -  SprintingClient:35
  10:33:05.855  0.086  -  Client  -  SprintingClient:35
  10:33:05.888  0.09  -  Client  -  SprintingClient:35
  10:33:05.888  0.094  -  Client  -  SprintingClient:35
  10:33:05.922  0.098  -  Client  -  SprintingClient:35
  10:33:05.922  0.102  -  Client  -  SprintingClient:35
  10:33:05.955  0.106  -  Client  -  SprintingClient:35
  10:33:05.955  0.11  -  Client  -  SprintingClient:35
  10:33:05.988  0.114  -  Client  -  SprintingClient:35
  10:33:05.988  0.118  -  Client  -  SprintingClient:35
  10:33:06.022  0.122  -  Client  -  SprintingClient:35
  10:33:06.022  0.126  -  Client  -  SprintingClient:35
  10:33:06.022  0.13  -  Client  -  SprintingClient:35
  10:33:06.073  0.134  -  Client  -  SprintingClient:35
  10:33:06.073  0.138  -  Client  -  SprintingClient:35
  10:33:06.113  0.142  -  Client  -  SprintingClient:35
  10:33:06.114  0.146  -  Client  -  SprintingClient:35
  10:33:06.140  0.15  -  Client  -  SprintingClient:35
  10:33:06.140  0.154  -  Client  -  SprintingClient:35
  10:33:06.171  0.158  -  Client  -  SprintingClient:35
  10:33:06.171  0.162  -  Client  -  SprintingClient:35
  10:33:06.171  0.166  -  Client  -  SprintingClient:35
  10:33:06.222  0.17  -  Client  -  SprintingClient:35
  10:33:06.222  0.174  -  Client  -  SprintingClient:35
  10:33:06.255  0.178  -  Client  -  SprintingClient:35
  10:33:06.255  0.182  -  Client  -  SprintingClient:35
  10:33:06.289  0.186  -  Client  -  SprintingClient:35
  10:33:06.289  0.19  -  Client  -  SprintingClient:35
  10:33:06.322  0.194  -  Client  -  SprintingClient:35
  10:33:06.322  0.198  -  Client  -  SprintingClient:35
  10:33:06.322  0.202  -  Client  -  SprintingClient:35
  10:33:06.373  0.206  -  Client  -  SprintingClient:35
  10:33:06.373  0.21  -  Client  -  SprintingClient:35
  10:33:06.404  0.214  -  Client  -  SprintingClient:35
  10:33:06.405  0.218  -  Client  -  SprintingClient:35
  10:33:06.438  0.222  -  Client  -  SprintingClient:35
  10:33:06.439  0.226  -  Client  -  SprintingClient:35
  10:33:06.439  0.23  -  Client  -  SprintingClient:35
  10:33:06.488  0.234  -  Client  -  SprintingClient:35
  10:33:06.489  0.238  -  Client  -  SprintingClient:35
  10:33:06.521  0.242  -  Client  -  SprintingClient:35
  10:33:06.521  0.246  -  Client  -  SprintingClient:35
  10:33:06.555  0.25  -  Client  -  SprintingClient:35
  10:33:06.555  0.254  -  Client  -  SprintingClient:35
  10:33:06.588  0.258  -  Client  -  SprintingClient:35
  10:33:06.588  0.262  -  Client  -  SprintingClient:35
  10:33:06.622  0.266  -  Client  -  SprintingClient:35
  10:33:06.622  0.27  -  Client  -  SprintingClient:35
  10:33:06.622  0.274  -  Client  -  SprintingClient:35
  10:33:06.671  0.278  -  Client  -  SprintingClient:35
  10:33:06.671  0.282  -  Client  -  SprintingClient:35
  10:33:06.706  0.286  -  Client  -  SprintingClient:35
  10:33:06.706  0.29  -  Client  -  SprintingClient:35
  10:33:06.738  0.294  -  Client  -  SprintingClient:35
  10:33:06.738  0.298  -  Client  -  SprintingClient:35
  10:33:06.771  0.302  -  Client  -  SprintingClient:35
  10:33:06.771  0.306  -  Client  -  SprintingClient:35
  10:33:06.771  0.31  -  Client  -  SprintingClient:35
  10:33:06.805  0.314  -  Client  -  SprintingClient:35
  10:33:06.839  0.318  -  Client  -  SprintingClient:35
  10:33:06.839  0.322  -  Client  -  SprintingClient:35
  10:33:06.872  0.326  -  Client  -  SprintingClient:35
  10:33:06.872  0.33  -  Client  -  SprintingClient:35
  10:33:06.905  0.334  -  Client  -  SprintingClient:35
  10:33:06.905  0.338  -  Client  -  SprintingClient:35
  10:33:06.938  0.342  -  Client  -  SprintingClient:35
  10:33:06.938  0.346  -  Client  -  SprintingClient:35
  10:33:06.972  0.35  -  Client  -  SprintingClient:35
  10:33:06.972  0.354  -  Client  -  SprintingClient:35
  10:33:07.005  0.358  -  Client  -  SprintingClient:35
  10:33:07.005  0.362  -  Client  -  SprintingClient:35
  10:33:07.005  0.366  -  Client  -  SprintingClient:35
  10:33:07.039  0.37  -  Client  -  SprintingClient:35
  10:33:07.072  0.374  -  Client  -  SprintingClient:35
  10:33:07.072  0.378  -  Client  -  SprintingClient:35
  10:33:07.105  0.382  -  Client  -  SprintingClient:35
  10:33:07.105  0.386  -  Client  -  SprintingClient:35
  10:33:07.139  0.39  -  Client  -  SprintingClient:35
  10:33:07.139  0.394  -  Client  -  SprintingClient:35
  10:33:07.172  0.398  -  Client  -  SprintingClient:35
  10:33:07.172  0.402  -  Client  -  SprintingClient:35
  10:33:07.205  0.406  -  Client  -  SprintingClient:35
  10:33:07.205  0.41  -  Client  -  SprintingClient:35
  10:33:07.239  0.414  -  Client  -  SprintingClient:35
  10:33:07.239  0.418  -  Client  -  SprintingClient:35
  10:33:07.273  0.422  -  Client  -  SprintingClient:35
  10:33:07.273  0.426  -  Client  -  SprintingClient:35
  10:33:07.305  0.43  -  Client  -  SprintingClient:35
  10:33:07.305  0.434  -  Client  -  SprintingClient:35
  10:33:07.338  0.438  -  Client  -  SprintingClient:35
  10:33:07.338  0.442  -  Client  -  SprintingClient:35
  10:33:07.372  0.446  -  Client  -  SprintingClient:35
  10:33:07.372  0.45  -  Client  -  SprintingClient:35
  10:33:07.405  0.454  -  Client  -  SprintingClient:35
  10:33:07.405  0.458  -  Client  -  SprintingClient:35
  10:33:07.439  0.462  -  Client  -  SprintingClient:35
  10:33:07.439  0.466  -  Client  -  SprintingClient:35
  10:33:07.472  0.47  -  Client  -  SprintingClient:35
  10:33:07.472  0.474  -  Client  -  SprintingClient:35
  10:33:07.504  0.478  -  Client  -  SprintingClient:35
  10:33:07.504  0.482  -  Client  -  SprintingClient:35
  10:33:07.538  0.486  -  Client  -  SprintingClient:35
  10:33:07.538  0.49  -  Client  -  SprintingClient:35
  10:33:07.539  0.494  -  Client  -  SprintingClient:35
  10:33:07.588  0.498  -  Client  -  SprintingClient:35
  10:33:07.588  0.502  -  Client  -  SprintingClient:35
  10:33:07.622  0.506  -  Client  -  SprintingClient:35
  10:33:07.622  0.51  -  Client  -  SprintingClient:35
  10:33:07.655  0.514  -  Client  -  SprintingClient:35
  10:33:07.655  0.518  -  Client  -  SprintingClient:35
  10:33:07.689  0.522  -  Client  -  SprintingClient:35
  10:33:07.689  0.526  -  Client  -  SprintingClient:35
  10:33:07.722  0.53  -  Client  -  SprintingClient:35
  10:33:07.722  0.534  -  Client  -  SprintingClient:35
  10:33:07.722  0.538  -  Client  -  SprintingClient:35
  10:33:07.755  0.542  -  Client  -  SprintingClient:35
  10:33:07.789  0.546  -  Client  -  SprintingClient:35
  10:33:07.789  0.55  -  Client  -  SprintingClient:35
  10:33:07.822  0.554  -  Client  -  SprintingClient:35
  10:33:07.822  0.558  -  Client  -  SprintingClient:35
  10:33:07.856  0.562  -  Client  -  SprintingClient:35
  10:33:07.856  0.566  -  Client  -  SprintingClient:35
  10:33:07.888  0.57  -  Client  -  SprintingClient:35
  10:33:07.888  0.574  -  Client  -  SprintingClient:35
  10:33:07.921  0.578  -  Client  -  SprintingClient:35
  10:33:07.921  0.582  -  Client  -  SprintingClient:35
  10:33:07.955  0.586  -  Client  -  SprintingClient:35
  10:33:07.955  0.59  -  Client  -  SprintingClient:35
  10:33:07.988  0.594  -  Client  -  SprintingClient:35
  10:33:07.988  0.598  -  Client  -  SprintingClient:35
  10:33:07.988  0.602  -  Client  -  SprintingClient:35
  10:33:08.022  0.606  -  Client  -  SprintingClient:35
  10:33:08.055  0.61  -  Client  -  SprintingClient:35
  10:33:08.055  0.614  -  Client  -  SprintingClient:35
  10:33:08.089  0.618  -  Client  -  SprintingClient:35
  10:33:08.089  0.622  -  Client  -  SprintingClient:35
  10:33:08.121  0.626  -  Client  -  SprintingClient:35
  10:33:08.122  0.63  -  Client  -  SprintingClient:35
  10:33:08.154  0.634  -  Client  -  SprintingClient:35
  10:33:08.155  0.638  -  Client  -  SprintingClient:35
  10:33:08.188  0.642  -  Client  -  SprintingClient:35
  10:33:08.188  0.646  -  Client  -  SprintingClient:35
  10:33:08.222  0.65  -  Client  -  SprintingClient:35
  10:33:08.223  0.654  -  Client  -  SprintingClient:35
  10:33:08.255  0.658  -  Client  -  SprintingClient:35
  10:33:08.256  0.662  -  Client  -  SprintingClient:35
  10:33:08.288  0.666  -  Client  -  SprintingClient:35
  10:33:08.288  0.67  -  Client  -  SprintingClient:35
  10:33:08.321  0.674  -  Client  -  SprintingClient:35
  10:33:08.321  0.678  -  Client  -  SprintingClient:35
  10:33:08.355  0.682  -  Client  -  SprintingClient:35
  10:33:08.355  0.686  -  Client  -  SprintingClient:35
  10:33:08.388  0.69  -  Client  -  SprintingClient:35
  10:33:08.388  0.694  -  Client  -  SprintingClient:35
  10:33:08.422  0.698  -  Client  -  SprintingClient:35
  10:33:08.422  0.702  -  Client  -  SprintingClient:35
  10:33:08.422  0.706  -  Client  -  SprintingClient:35
  10:33:08.472  0.71  -  Client  -  SprintingClient:35
  10:33:08.472  0.714  -  Client  -  SprintingClient:35
  10:33:08.504  0.718  -  Client  -  SprintingClient:35
  10:33:08.505  0.722  -  Client  -  SprintingClient:35
  10:33:08.539  0.726  -  Client  -  SprintingClient:35
  10:33:08.539  0.73  -  Client  -  SprintingClient:35
  10:33:08.572  0.734  -  Client  -  SprintingClient:35
  10:33:08.572  0.738  -  Client  -  SprintingClient:35
  10:33:08.605  0.742  -  Client  -  SprintingClient:35
  10:33:08.605  0.746  -  Client  -  SprintingClient:35
  10:33:08.638  0.75  -  Client  -  SprintingClient:35
  10:33:08.639  0.754  -  Client  -  SprintingClient:35
  10:33:08.671  0.758  -  Client  -  SprintingClient:35
  10:33:08.672  0.762  -  Client  -  SprintingClient:35
  10:33:08.704  0.766  -  Client  -  SprintingClient:35
  10:33:08.704  0.77  -  Client  -  SprintingClient:35
  10:33:08.738  0.774  -  Client  -  SprintingClient:35
  10:33:08.738  0.778  -  Client  -  SprintingClient:35
  10:33:08.771  0.782  -  Client  -  SprintingClient:35
  10:33:08.771  0.786  -  Client  -  SprintingClient:35
  10:33:08.771  0.79  -  Client  -  SprintingClient:35
  10:33:08.805  0.794  -  Client  -  SprintingClient:35
  10:33:08.838  0.798  -  Client  -  SprintingClient:35
  10:33:08.838  0.802  -  Client  -  SprintingClient:35
  10:33:08.872  0.806  -  Client  -  SprintingClient:35
  10:33:08.872  0.81  -  Client  -  SprintingClient:35
  10:33:08.905  0.814  -  Client  -  SprintingClient:35
  10:33:08.905  0.818  -  Client  -  SprintingClient:35
  10:33:08.939  0.822  -  Client  -  SprintingClient:35
  10:33:08.939  0.826  -  Client  -  SprintingClient:35
  10:33:08.971  0.83  -  Client  -  SprintingClient:35
  10:33:08.971  0.834  -  Client  -  SprintingClient:35
  10:33:09.005  0.838  -  Client  -  SprintingClient:35
  10:33:09.006  0.842  -  Client  -  SprintingClient:35
  10:33:09.006  0.846  -  Client  -  SprintingClient:35
  10:33:09.055  0.85  -  Client  -  SprintingClient:35
  10:33:09.055  0.854  -  Client  -  SprintingClient:35
  10:33:09.089  0.858  -  Client  -  SprintingClient:35
  10:33:09.089  0.862  -  Client  -  SprintingClient:35
  10:33:09.123  0.866  -  Client  -  SprintingClient:35
  10:33:09.123  0.87  -  Client  -  SprintingClient:35
  10:33:09.155  0.874  -  Client  -  SprintingClient:35
  10:33:09.155  0.878  -  Client  -  SprintingClient:35
  10:33:09.189  0.882  -  Client  -  SprintingClient:35
  10:33:09.189  0.886  -  Client  -  SprintingClient:35
  10:33:09.189  0.89  -  Client  -  SprintingClient:35
  10:33:09.239  0.894  -  Client  -  SprintingClient:35
  10:33:09.239  0.898  -  Client  -  SprintingClient:35
  10:33:09.271  0.902  -  Client  -  SprintingClient:35
  10:33:09.271  0.906  -  Client  -  SprintingClient:35
  10:33:09.305  0.91  -  Client  -  SprintingClient:35
  10:33:09.305  0.914  -  Client  -  SprintingClient:35
  10:33:09.306  0.918  -  Client  -  SprintingClient:35
  10:33:09.338  0.922  -  Client  -  SprintingClient:35
  10:33:09.338  0.926  -  Client  -  SprintingClient:35
  10:33:09.389  0.93  -  Client  -  SprintingClient:35
  10:33:09.389  0.934  -  Client  -  SprintingClient:35
  10:33:09.422  0.938  -  Client  -  SprintingClient:35
  10:33:09.422  0.942  -  Client  -  SprintingClient:35
  10:33:09.455  0.946  -  Client  -  SprintingClient:35
  10:33:09.455  0.95  -  Client  -  SprintingClient:35
  10:33:09.489  0.954  -  Client  -  SprintingClient:35
  10:33:09.489  0.958  -  Client  -  SprintingClient:35
  10:33:09.489  0.962  -  Client  -  SprintingClient:35
  10:33:09.538  0.966  -  Client  -  SprintingClient:35
  10:33:09.539  0.97  -  Client  -  SprintingClient:35
  10:33:09.571  0.974  -  Client  -  SprintingClient:35
  10:33:09.572  0.978  -  Client  -  SprintingClient:35
  10:33:09.605  0.982  -  Client  -  SprintingClient:35
  10:33:09.605  0.986  -  Client  -  SprintingClient:35
  10:33:09.639  0.99  -  Client  -  SprintingClient:35
  10:33:09.639  0.994  -  Client  -  SprintingClient:35
  10:33:09.639  0.998  -  Client  -  SprintingClient:35
  10:33:09.688  1.002  -  Client  -  SprintingClient:35
  10:33:09.688  1  -  Client  -  SprintingClient:35

From the moment I start running to when i stop and the stamina regenerates.

Yea, your bar for the stamina is too long (i am not fully sure but i should be that)

I doubt that’s the reason why lol.