#Combat system problem
1 messages · Page 1 of 1 (latest)
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
Oh yeah thats right changed it to , due to another error 30 min ago
ahh okay
Thankyou so so much
** You are now Level 2! **
no prob bob
good code for 2 months in btw :) other than the bugs but that is normal
Im a animator and offered a dude to make him a combat system which is why i needed it done
ahhh nice
Yeah a friend of mine named madpoint done coding for 6 years just didnt feel like bothering him since we work at the same studio and he were busy
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??
Yeah lol
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
Anything thats need changing
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
** You are now Level 13! **
So where exactly should i put it just draw a lind under or sum
No sadly im not good enough to code a whole combat system on my own
oh, right
First time trying it out so been trying to watch sum tuts etc to get a understanding on what to do
understandable
i think you should keep learning stuff, there are tutorials on how to use animation stuff out there
Yeah i will keep doing so but already ish learned bezier curve and stuff and made a horror game with actual good jumpscares etc
And ofc done lots more but wont sit hear and mention all of it to y