#Error in my code please help

1 messages · Page 1 of 1 (latest)

pliant hawk
#

Attached I have a pic of the code that isnt working and I dont know why please help

shadow edge
#

Instead of the id, you have to put: "rbxassetid://youranimidhere"
in order for your animation to load

pliant hawk
#

one sec

#

i have this

shadow edge
#

Its "data.punch.animation" not "data.punch.animations"

#

Thats why it returns nil

pliant hawk
#

🤦‍♂️

#

thanks

shadow edge
#

Np

pliant hawk
#

I get no error messages now however my anims arent playing would u happen to have any idea why?

magic shellBOT
#

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

pliant hawk
#

for a bit of context the numbers are counting my left clicks and play the anim on the count

shadow edge
#

I would prefer you showing me the script first

pliant hawk
#

the top is directly underneath the previous screenshot and line 69 is the end

shadow edge
#

Put below line 36 this:
animTrack.Priority = Enum.AnimationPriority.Action

pliant hawk
#

oh that yeah the anims by default are on Action

#

I use Moon animator

shadow edge
pliant hawk
#

uh, I made the anims in a different world, then exported them

#

but I used a default rig if thats what u mean

shadow edge
#

I cant exactly figure the problem.
Did you published to Roblox with the game and the anim creator are the same?

pliant hawk
#

Yes

#

and its okay no worries maybe ill remake the anims

shadow edge
#

Im quite clueless here

#

Try to set a higher priority

pliant hawk
#

ill paste the code u sent

shadow edge
#

Replace Action with Action4

pliant hawk
#

it unfortunately didnt help

#

but thank you for ur help with my original issue

shadow edge
#

Yeah np

shadow edge
#

try using hum.Animator:LoadAnimation()

#

In line 36

pliant hawk
#

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

shadow edge
pliant hawk
shadow edge
#

You can still use it in Studio but not for localscript