#Animation Playing with sword

62 messages · Page 1 of 1 (latest)

subtle zodiac
#

So

#

Whats ur problem?

#

Is therr any error?

dull pulsar
#

no when i click play it gives no error

#

so what im trying to do is

#

i have a sword and when i click to attack i want it to play an animation

#

but it doesnt play one

#

it only does damage

#

but i want it to play an animation

subtle zodiac
#

First

dull pulsar
#

the last 5 lines i just randomly put hoping it would fix it

subtle zodiac
dull pulsar
#

would it be possibly to hop in a call and share my screen with you?

subtle zodiac
#

When you play the game

dull pulsar
#

no it doesnt

forest daggerBOT
#

studio** You are now Level 2! **studio

subtle zodiac
#

Sure but gimme a sec to full read ur code

#

And ask a few questions

dull pulsar
#

okay take your time

subtle zodiac
#

And have the proper code?

dull pulsar
dull pulsar
#

yeah im pretty sure i do

#

let me try and get a new animation code and put it in

subtle zodiac
#

Or its a group animation

#

Idk why it doesnt say sanitized ID if ur using someone elses

dull pulsar
subtle zodiac
#

Did you publish someone elses animation? if so it should work.

dull pulsar
#

yeah i went to toolbox and took someone elses animation and published it

#

and took the only 2 animations from it that i needed

dull pulsar
subtle zodiac
#

Animator

dull pulsar
#

like wdym

subtle zodiac
#

So Humanoid.Animator

dull pulsar
#

ohhh

#

so where would i put it

subtle zodiac
#

Then use that in place of humanoid when you say :play()

subtle zodiac
dull pulsar
#

sorry if my questions sound dumb i rlly have no coding experince

subtle zodiac
#

Its fine

dull pulsar
#

wait so where would i put Humanoid.Animator and :LoadAnimation

#

would i put it in its own line of code

#

or a replacement of another code

subtle zodiac
#

Just do local Animator = humanoid.animator

dull pulsar
#

it says Players.jesusiskinng.Backpack.Tool.Attack:4: attempt to index nil with 'animator'

subtle zodiac
#

On which line

dull pulsar
#

i made room and put it on the 4th line

subtle zodiac
dull pulsar
#

yeah

subtle zodiac
#

If so do
Local Players = game:GetService("Players)

Local Animator = Game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):WaitForChild("Animator")

#

Its prolly indexes with nil cuz animator hasnt loaded in when the script runs

#

If it doesnt work idk what to do

#

I gotta go work on my own game, if u still havemt figure it out if u can make me an editor on ur place I can see if i can help

dull pulsar
#

alr and also its not like a big game im working on its just a test area

subtle zodiac
#

Kk

dull pulsar
#

whats your roblox user