Universal Script 📌
1.5k Views
151 Executions

Sprint Button and Stamina Bar v1

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 go to my profile to get version 2.

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 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 gui = Instance.new("ScreenGui")
gui.Name = "SprintSystem"
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")


Comments

2
Log in to join the conversation. Login
SyrexGenesisX's profile picture
SyrexGenesisX1 year ago

Thanks

1
zivoria's profile picture
zivoria1 year ago

AI

1

Tags

More universal scripts

See all
Universal Script 📌
3.8k
184.5k
Bumped 3 hours ago
Script hub
339
31
4 hours ago
Universal Script 📌
28.6k
663.4k
Bumped 6 hours ago
Script hub
13.7k
2.7k
Bumped 8 hours ago
Key System
Paid
Script hub
263.6k
88.1k
Bumped 8 hours ago
Key System
Universal Script 📌
2.9k
9.5k
Bumped 9 hours ago
Universal Script 📌
611
38
Approved 9 hours ago
Universal Script 📌
645
36
Approved 9 hours ago