Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I force the stamina bar to go up even if holding shift still?

Asked by 3 years ago

Ok so, I have the script and everything works amazingly, but theres one big problem. When the stamina bar gets to 0 and you're still holding shift instead of it going back up and the FOV reverting back it stays down and you stay in the runnning fov but walking. I want the FOV to go back to normal and the players Stamina to go up even if they're holding shift. Here's the code

01--//Varaiables\\--
02local camera = game.Workspace.CurrentCamera
03local TweeningService = game:GetService("TweenService")
04local UIS = game:GetService("UserInputService")
05local Bar = script.Parent:WaitForChild('Border'):WaitForChild("Bar")
06local player = game.Players.LocalPlayer
07local walk = 14
08local run = 18
09local power = 10
10local sprinting = false
11repeat wait() until game.Players.LocalPlayer.Character
12local character = player.Character
13local runService = game:GetService('RunService')
14 
15--//Tweens\\--
View all 78 lines...

Answer this question