Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why is my output saying: 'attempt to index nil with Play'?

The output says: 'attempt to index nil with Play'

My code:

These are just the main parts (no ends because not needed for question)

local fireAnim = Instance.new('Animation')
fireAnim.Parent = framework.viewmodel
fireAnim.Name = 'Fire'
fireAnim.AnimationId = framework.module.fireAnim
fireAnim = framework.viewmodel.AnimationController.Animator:LoadAnimation(fireAnim)

if input.UserInputType == Enum.UserInputType.MouseButton1 then
	fireAnim:Play()
end

1 answer

fireAnim =

That's the issue ^

2 comments

0

wat

0

This is a single line just that is too long to fill the space.

This discussion is preserved as it was. New answers, comments, and votes are closed.