#Animation Playing with sword
62 messages · Page 1 of 1 (latest)
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
the last 5 lines i just randomly put hoping it would fix it
When viewing output does it say sanitized ID?
would it be possibly to hop in a call and share my screen with you?
When you play the game
** You are now Level 2! **
okay take your time
i took animations since im not an animator
let me check again
yeah im pretty sure i do
let me try and get a new animation code and put it in
It wont work unless its your own animation that you published
Or its a group animation
Idk why it doesnt say sanitized ID if ur using someone elses
wait so i cant publish someone elses animation?
Did you publish someone elses animation? if so it should work.
yeah i went to toolbox and took someone elses animation and published it
and took the only 2 animations from it that i needed
yeah idk why it isnt tho
like wdym
Theres a instance in humanoid thats named animator
So Humanoid.Animator
Then use that in place of humanoid when you say :play()
And also :LoadAnimation
sorry if my questions sound dumb i rlly have no coding experince
Its fine
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
Just do local Animator = humanoid.animator
it says Players.jesusiskinng.Backpack.Tool.Attack:4: attempt to index nil with 'animator'
On which line
i made room and put it on the 4th line
But it errors on the fourth line?
yeah
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
alr and also its not like a big game im working on its just a test area
Kk
whats your roblox user