#Combat system problem

1 messages · Page 1 of 1 (latest)

subtle vessel
#

Its a module script

dawn venture
#

Combat_Handler refers to the dictionary at the top, but it doesnt have an Animations list, only a MeleeAnims list

#

change CombatHandler.Animations to CombatHandler.MeleeAnims and it should work?

#

try GetKeyframes instead, no capital F

#

and no problem :)

#

try using a #

#

so #keyframes

#

since 'keyframes' is the table of keyframes, but #keyframes gives you how many keyframes are in that table

subtle vessel
#

Oh yeah thats right changed it to , due to another error 30 min ago

dawn venture
#

ahh okay

subtle vessel
#

Thats the reason i changed it to ,

#

Since it pops up with a error w the #

dawn venture
#

put a comma after the 1

#

,

subtle vessel
#

Thankyou so so much

dire stoneBOT
#

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

dawn venture
#

no prob bob

#

good code for 2 months in btw :) other than the bugs but that is normal

subtle vessel
#

Im a animator and offered a dude to make him a combat system which is why i needed it done

dawn venture
#

ahhh nice

subtle vessel
dawn venture
#

cool cool

#

well glad i could help!

subtle vessel
# dawn venture well glad i could help!

Yo hello! last question they're using a kinda big model which makes the anim seem kinda slow is there any way to change the speed of the script and if so where would that be??

dawn venture
#

you can use AnimationTrack:AdjustSpeed() to change the animation speed

#

uhh

subtle vessel
dawn venture
#

instead of your last line in the getAnimation function

#

do

#
local animTrack = Humanoid.Animator:LoadAnimation(Combat_Handler.MeleeAnims[sequence])
animTrack:AdjustSpeed(2) -- whatever speed you want, 2 is 2x speed
return animTrack, length
subtle vessel
dawn venture
#

you might need to do the adjustspeed line when you're actually playing it, it doesnt usually like doing it until the animation track has fully loaded

dire stoneBOT
#

studio** You are now Level 13! **studio

subtle vessel
dawn venture
#

whenever you play the animation track

#

is this your script?

subtle vessel
dawn venture
#

oh, right

subtle vessel
#

First time trying it out so been trying to watch sum tuts etc to get a understanding on what to do

dawn venture
#

understandable

#

i think you should keep learning stuff, there are tutorials on how to use animation stuff out there

subtle vessel
#

And ofc done lots more but wont sit hear and mention all of it to y