Universal Script 📌
6.4k Views
1.7k Executions

Sprint Button and Stamina Bar v2

Universal Script 📌
AzScripter
AzScripter1M views
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Features: - Run button as in thumbnail - can be exhausted - Stamina Bar - can customize the script Updated: - if the player respawns the script still works - fixed an issue where holding the sprint button until the stamina bar runs out can still sprint if the player is still holding the button Updated v2: - Add Acceleration - Add Sound Effect (" You can delete the sound effect if you don't like it ") Fixed Default Footstep Deleted.

View Raw
-- Script By @AzizAnzofficiall on Youtube
-- ScriptBlox Account @AzScripter

local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer
local cam = workspace.CurrentCamera

local blurEffect = Instance.new("BlurEffect")
blurEffect.Size = 0
blurEffect.Parent = cam

local walkSpeed = 5
local sprintSpeed = 25
local accelRate = 20
local decelRate = 15
local maxStamina = 100
local staminaDrainRate = 20
local staminaRegenRate = 20
local fovSprint = 85
local fovNormal = 70
local fovExhausted = 50
local fadeSpeed = 10
local flashInterval = 0.3

local sprintButtonYOffset = 60

local stamina = maxStamina
local sprinting = false
local isFlashing = false
local isExhausted = false
local isShaking = false
local isCameraShaking = false

local currentFOVState = "normal"
local currentWalkSpeed = walkSpeed

local gui = Instance.new("ScreenGui")


Comments

4
Log in to join the conversation. Login
nntags's profile picture
nntags9 months ago

does this work on pc?

1
Top1GlobalPogi's profile picture
Top1GlobalPogi1 year ago

Very fun to use

1
AzScripter's profile picture
AzScripterUploader1 year ago

Ty!

1
Luauisbluu's profile picture
Luauisbluu1 year ago

Wow is a good script man

1

Tags

More universal scripts

See all
Universal Script 📌
3.7k
184.5k
Bumped 2 hours ago
Script hub
264
23
3 hours ago
Universal Script 📌
28.5k
663.4k
Bumped 5 hours ago
Script hub
13.7k
2.7k
Bumped 7 hours ago
Key System
Paid
Script hub
263.6k
88.1k
Bumped 8 hours ago
Key System
Universal Script 📌
2.8k
9.4k
Bumped 8 hours ago
Universal Script 📌
549
37
Approved 8 hours ago
Universal Script 📌
575
33
Approved 8 hours ago