#Error in my code please help
1 messages · Page 1 of 1 (latest)
You cant play animation with id numbers only
Instead of the id, you have to put: "rbxassetid://youranimidhere"
in order for your animation to load
You have a typo in line 65
Its "data.punch.animation" not "data.punch.animations"
Thats why it returns nil
Np
I get no error messages now however my anims arent playing would u happen to have any idea why?
** You are now Level 2! **
for a bit of context the numbers are counting my left clicks and play the anim on the count
Did u set ur animation priority higher?
I would prefer you showing me the script first
Put below line 36 this:
animTrack.Priority = Enum.AnimationPriority.Action
You used the exact rigs for animation right?
uh, I made the anims in a different world, then exported them
but I used a default rig if thats what u mean
I cant exactly figure the problem.
Did you published to Roblox with the game and the anim creator are the same?
ill paste the code u sent
Replace Action with Action4
Yeah np
Oh yeah I forgot hum:LoadAnimation() is deprecated
try using hum.Animator:LoadAnimation()
In line 36
It didnt give me any errors but it also still isnt playing the animations lol
maybe u could help with something else?
ive been getting an error message "Http requests can only be executed by game server"
and yes i have HTTP requests enabled in the game settings
no I mean advicing you to use it for future animations
oh okay thanks
Http request only available for server script & while in game
You can still use it in Studio but not for localscript