Universal Script 📌
4.3k Views
276 Executions

Custom Animations

Universal Script 📌
gaspXcripter
gaspXcripterPublished 5
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

literally just changes your animations for the ones you put

View Raw
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local animations = {
    idle = 80979207,  -- RAHPLACE
    walk = 80979216,  -- replace 
    jump = 80979216,  -- replace 
    fall = 80979216   -- replace 
}

local function playAnimation(animId)
    local anim = Instance.new("Animation")
    anim.AnimationId = "rbxassetid://" .. animId
    local track = humanoid:LoadAnimation(anim)
    track.Priority = Enum.AnimationPriority.Action
    track:Play()
    return track
end

for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do
    track:Stop()
end

local tracks = {}

tracks.idle = playAnimation(animations.idle)

humanoid.Running:Connect(function(speed)

    for _, t in pairs(tracks) do if t and t.IsPlaying then t:Stop() end end
    if speed > 0 then
        tracks.walk = playAnimation(animations.walk)
    else
        tracks.idle = playAnimation(animations.idle)
    end
end)

humanoid.StateChanged:Connect(function(_, state)


Comments

21
Log in to join the conversation. Login
incredibledingledon's profile picture
incredibledingledon4 months ago

is ts clientsided

1
InfiniteSunnySideup's profile picture
InfiniteSunnySideup1 year ago

where can i get r6 animation ids?

1
gaspXcripter's profile picture
gaspXcripterUploader1 year ago

@InfiniteSunnySideup gears... some gears

2
InfiniteSunnySideup's profile picture
InfiniteSunnySideup1 year ago

@Pwner ok pwned

1
Guest_IV's profile picture
Guest_IV1 year ago

i vouch that ai

1
iplaywarzone5's profile picture
iplaywarzone51 year ago

hooly ai tuff

1
gaspXcripter's profile picture
gaspXcripterUploader1 year ago

@iplaywarzone5 no funi😭😭😡😡😡🤬🤬😠😠

1
Guest_IV's profile picture
Guest_IV1 year ago

@iplaywarzone5 ur right

1
Gerson_Boom's profile picture
Gerson_Boom1 year ago

is that r15 only?

1
gaspXcripter's profile picture
gaspXcripterUploader1 year ago

@Gerson_Boom i actually didint test it on r15 so i cant answer that.... ye it works on r6

1
gaspXcripter's profile picture
gaspXcripterUploader1 year ago

@Gerson_Boom HOLY * I JUST REALIZED IS GERSON BOOM

1
purplesstrat's profile picture
purplesstrat1 year ago

tuff

1
gaspXcripter's profile picture
gaspXcripterUploader1 year ago

@purplesstrat tuff

1
purplesstrat's profile picture
purplesstrat1 year ago

tuff

1