
3.1k Views
1.6k Executions
Guest 1337 r15
Universal Script 📌
JustahackertwinPublished 10
10 months ago
Please login to perform these actions:Does it work?
No reports yetNo 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
-- 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
0Log in to join the conversation. Login
No comments yet. Be the first!






