#Combat system issue on line 68

1 messages · Page 1 of 1 (latest)

ivory terrace
#

(LocalScript) (Line 68)
As you can see in the pictures its giving me an error and im not sure why ive went through the script twice and nothing seem to work does anyone know what the issue might be?

vagrant pollen
#

Initialize lastTimeM1 to 0 at the top

#

Same with lastM1End

ivory terrace
#

Always be like that i miss the most open things lol

#

No errors

#

And in my eyes it all looks good

vagrant pollen
#

Well what is supposed to happen here?

ivory terrace
#

Did that make sense?

vagrant pollen
#

Well what happens when this code runs?

ivory terrace
#

Maybe ive done some typos i havent noticed

#

I can record a short video of what happens if needed

vagrant pollen
#

Is that code supposed to run if the “Action = “nil””?

vagrant pollen
ivory terrace
vagrant pollen
#

At the top you check if it is equal to the string nil, might be a typo or if you meant to do that

ivory terrace
#

The damage part works now anyways ima record the video rq

#

So as ive tried to do is if players are holding space down it should do a uptilt but that dosent work and the knockback i set to 10 i think it was isnt doing its thing either

#

Last hit supposed to do a bigger knockback aswell if you havent noticed by the code

vagrant pollen
#

Ok let’s start by debugging this

ivory terrace
#

Just noticed i missed a capital P

#

But thinks theres more to it

ivory terrace
#

Instead of giving the dummy knock back it happens to me aswell

vagrant pollen
#

Can you show me what you send through the data part in the remote?

#

Nvm it’s above

ivory terrace
#

Oh sorry didnt notice y typed

tidal orchidBOT
#

studio** You are now Level 4! **studio

ivory terrace
#

Its my first time dealing with a advanced system like this so i expected to run into issues

vagrant pollen
#

Ok put a print statement in all the if statements and see if any of them run

ivory terrace
#

Aight

#

The uptilt one didnt show but the other ones did

vagrant pollen
#

Ok that means it’s a issue with adding the velocity

ivory terrace
#

So how would i fix it?

vagrant pollen
#

Instead of BodyVelocity you can also use ApplyImpulse

Pretty sure BodyVelocity is depricated

vagrant pollen
#

HRP:ApplyImpulse(Force: Vector3)

#

I don’t work with velocity stuff often so sorry if I make any mistakes

ivory terrace
ivory terrace
vagrant pollen
#

Also make sure nothing is anchord on the dummy

ivory terrace
#

Why is everyone named mark geniuses at coding lol a dude i work with is named mark aswell and is a genius

vagrant pollen
#

Looks like in the video it is anchored

ivory terrace
#

Random but yeah lol

ivory terrace
vagrant pollen
#

They won’t be affected by physics so I would unanchor them

ivory terrace
#

Thats cuz i had to for making anims in blender

ivory terrace
vagrant pollen
#

Well that’s prob the problem 😆

#

Also sorry I have to go now since I’m not actually home rn, I could help later when I come back.

ivory terrace
vagrant pollen
#

You can dm me if you have any problems

vagrant pollen
#

LOL

#

They went zooming

ivory terrace
#

Its like the ground thats dragging them tried putting em into the air

vagrant pollen
#

Hope you fix it but I will be back in a little while, dm me if you have anymore problems 👍

ivory terrace
#

Ive got no clue why it happens lmfao but yeah i hope so too

#

Besides those dummys would have to be codes to something like that lmfao

#

So thats super werid