Universal Script 📌
3.1k Views
1.6k Executions

Guest 1337 r15

Universal Script 📌
Justahackertwin
JustahackertwinPublished 10
10 months 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

Recommend to use this bundle for better animation https://www.roblox.com/bundles/139053228737235/R6 sub to me pls https://www.youtube.com/@Noli-i6l

View Raw
-- SERVICES
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer

-- ANIMATION IDS
local IDLE_ANIM        = "rbxassetid://106005604050931"
local INJURED_IDLE     = "rbxassetid://73905365652295"
local WALK_ANIM        = "rbxassetid://93828075851290"
local RUN_ANIM         = "rbxassetid://70636286183373"

local BUTTON1_ANIM     = "rbxassetid://105310177683245"
local BUTTON2_ANIM     = "rbxassetid://110979677723900"

-- BUTTON IMAGES
local BUTTON1_IMAGE = "rbxassetid://137576632569674"
local BUTTON2_IMAGE = "rbxassetid://86535502112498"
local BUTTON3_IMAGE = "rbxassetid://132640025048316"

-- SPEED SETTINGS
local DEFAULT_WALKSPEED = 7
local SPRINT_WALKSPEED = 25

-- STAMINA SETTINGS
local MAX_STAMINA = 100
local STAMINA_DRAIN = 20
local STAMINA_REGEN = 15

-- INTERNAL STATE
local stamina = MAX_STAMINA
local sprinting = false

-- LOAD ANIMATION
local function LoadAnimation(humanoid, id, looped)
	local anim = Instance.new("Animation")
	anim.AnimationId = id
	local track = humanoid:LoadAnimation(anim)
	track.Looped = looped
	return track


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
16
0
Approved 2 minutes ago
Universal Script 📌
24.0k
82.2k
Bumped 3 minutes ago
Universal Script 📌
25
0
Approved 6 minutes ago
Universal Script 📌
6
0
Approved 12 minutes ago
Universal Script 📌
5.7k
17.4k
Bumped 1 hour ago
Universal Script 📌
94
8
Approved 3 hours ago
Universal Script 📌
333.5k
40.2k
Bumped 3 hours ago