#Fall Animation
1 messages · Page 1 of 1 (latest)
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator") -- Must use Animator for R15
-- Replace with your animation ID
local fallAnim = Instance.new("Animation")
fallAnim.AnimationId = "rbxassetid://YOUR_ANIMATION_ID"
local fallTrack = animator:LoadAnimation(fallAnim)
-- Listen for state changes
humanoid.StateChanged:Connect(function(old, new)
if new == Enum.HumanoidStateType.Freefall then
if not fallTrack.IsPlaying then
fallTrack:Play()
end
elseif fallTrack.IsPlaying then
-- Stop the fall animation when not falling
fallTrack:Stop()
end
end)
that would owrk just make sure the priority is higher than core, so it actually plays
or you could change roblox's core animation script
Oh ok how
Someone asked me for help and deleted