When my Animation runs the game crashes. It is a custom animation and there is HumanoidRootPart in the model.

Code:

local animController = Instance.new("AnimationController")
animController.Parent = script.Parent
local animation = Instance.new("Animation")
animation.Parent = script.Parent
animation.AnimationId = "http://www.roblox.com/Asset?ID=265275897"
local animTrack = animController:LoadAnimation(animation)
animTrack:Play()

2 comments

0

Try it in a different place.

0

a different game?