|
| 08 Apr 2017 04:36 PM |
I have made my own animation with an R15 rig and it's not playing when I use Play() It has an AnimationController, doesn't work with a Humanoid either, and there is no output so I know it loaded successfully.
Does anyone have ideas?
local animList = require(script.Parent.animAssetsModule)
local function MoveAndUse(AI1, AI2, Anim, Stage,...)
local firstAI, secondAI, Stage = workspace:Find First Child A I 1 , - ^^^ Keeps censoring the line above ^^^ workspace:FindFirstChild(AI2), workspace:FindFirstChild(Stage)
local AnimationController = Instance.new("Humanoid", firstAI) local tempAnim = Instance.new("Animation", game:GetService("ServerStorage").Assets.anims:FindFirstChild("%temp%")) tempAnim.AnimationId = (animList[Anim]) local Track = AnimationController:LoadAnimation(tempAnim)
Track:Play() wait(3) AnimationController:destroy() tempAnim:destroy() |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2017 04:54 PM |
| Can't find anything on youtube or scripting helpers :/ |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Apr 2017 05:28 PM |
If it can help. the script and the module are both in a folder in serverscriptservice
heres what the module looks like: local Assets = { ["punch"] = "https://www.roblox.com/Asset?ID=728298279",
} return Assets
|
|
|
| Report Abuse |
|
|
|
| 08 Apr 2017 05:50 PM |
| Do custom animations not work on R15 models?.. |
|
|
| Report Abuse |
|
|
| |
|
hasang1
|
  |
| Joined: 09 Nov 2012 |
| Total Posts: 903 |
|
|
| 08 Apr 2017 08:41 PM |
If it doesn't work with R15, very likely it was NOT made for R15 or the rig you are trying to animate is not exactly R15. Either way, re-make the animation with the rig you are trying to use. (NOTE: This is assuming the code doesn't have an error, which I didn't check for)
"HOME SWEET HOME" -my PC |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2017 08:03 AM |
| I'm using the same rig I animated it with, using the animation editor. |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2017 09:44 AM |
| Should I just use the old rig to animate? |
|
|
| Report Abuse |
|
|