Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Custom Animation for a Custom Player Model Does Absolutely Nothing?

Asked by 5 years ago
Edited 5 years ago
local animate = c.Animate
animate.walk.WalkAnim.AnimationId = "rbxassetid://1979534518"
animate.run.RunAnim.AnimationId = "rbxassetid://1979534518"

Been trying to solve this issue for multiple weeks now, animation simply doesn't play. No output errors, and the Animate script values are updated when I check in-game. The animation simply does not play. There is a selection screen where you change character models, I don't know if it is trying to run the Animate script that has been running when the player originally spawns in or what...

I even tried changing both the Run and Walk animations, even both at the same time, and nothing I do works.

1 answer

Log in to vote
1
Answered by 5 years ago

To start off a few things with your current code:

  1. You never loaded the walking animation or Running Animation
  2. You never Played the animation when moving or so.
  3. You HAVE to OWN the animation in order for it to work
  4. the Animation Priority should be Action or Roblox's Animation will Overlap

How do I load an animation and play it?

Assuming this is a **normal* Animation object, you have to :LoadAnimation on a Humanoid

if this is a local script and it should be:

local plr = game.Players.LocalPlayer
local Char = plr.Character or plr.CharacterAdded:Wait()
local Hum = Char.Humanoid

local Run = c.Animate.RunAnim
local Walk = c.Animate.WalkAnim

local LoadRun = Hum:LoadAnimation(Run) -- Loads the running animation

LoadRun:Play() -- Plays the Run Animation

How can I change the priority? You have to load or import your animation, press settings and then press priority and then press action and then re-export it!

Hopefully, this helped with your problem.

Chances are your issue is Number 4 with the priority.

Best of luck to you developer! Check your priority also make sure you export it too.

Ad

Answer this question