#How to play an animation on a player that is getting stunned?

1 messages · Page 1 of 1 (latest)

manic narwhal
#

I'm really confused as to how to add an animation on a player that gets hit. Can I add it via the server or should I do it by client, and if so, How?

manic narwhal
dawn cargo
#

@manic narwhal

#

what if person A stuns someone, and then shortly after person B stuns the same person

#

but they get .IsStunned.Value = false from the first stun from person A, even though person B's stun is still going

#

think about that

manic narwhal
manic narwhal
dawn cargo
#

ah

manic narwhal
#

so how would i play the anim on the dummy

dawn cargo
#

check if the humanoid hit is of a player or nonplayer

#

if it's of a player fire to their client

#

if not then play animation on server

manic narwhal
#

ah ok

#

thank you

manic narwhal
#

cause now that i think abt it the attacking system works (roughly) the same way, and i haven't run into this problem (although it only comes from one player)

dawn cargo
manic narwhal
dawn cargo
#

yea

#

all of ur stuff is better off as a table imo

#

u dont need values for this stuff

manic narwhal
#

oh thats out of my depth 😭

#

sorry im really new and i can't really wrap my head around modules 😭

dawn cargo
#

np

dawn cargo
#

for what im talking about

dawn cargo
#

just like a function

manic narwhal
#

yea but its too confusing to write stuff in so i try to avoid them

dawn cargo
#

that's ok

#

i didnt use modules for a year when i began

manic narwhal
#

oh ok

#

i'll try the folder solution and ill see how it goes

dawn cargo
#

can i see a video of this light attack if u got it working

#

😁

manic narwhal
#

is it because its bad...?

dawn cargo
#

no

#

i just like seeing this kind of stuff

#

and people working on it

#

it's exciting

manic narwhal
#

the hitboxes script is really cancerous cause its my first time writing it

dawn cargo
#

the code is chopped tho yea but i forgive u cuz ur new

manic narwhal
#

the input is even worse

dawn cargo
#

that's ok

#

the more u work with the code the greater understanding youll have of it and youll start seeing paths to solutions the more u work on it

manic narwhal
#

true

dawn cargo
#

i honestly got burnt out cuz i was doing skills too and i ran into a problem and i found myself having been stuck on this probelm for MONTHS

manic narwhal
#

there are a lot of things i havent even started to understand and i kinda don't get how i should improve

dawn cargo
#

and since then i just quit coding xD

manic narwhal
#

😭

#

i followed a buncha tutorials, then they didnt teach me what i needed so i decided to do it myself

dawn cargo
#

but that's mainly because i was handling stuns, cancelling attacks, force launching attacks upon hits - pretty much like how blox fruits does it

manic narwhal
#

that sounds really complicated

dawn cargo
#

it's not really so much complicated, but when all of that stuff mixes together

#

then it becomes a little bit much to handle (at least for a noob like me)

manic narwhal
#

the blocking code was such a weird thing to learn and combining it with all the other junk was really annoying

dawn cargo
#

ye ive never done blocking

lean anvilBOT
#

studio** You are now Level 10! **studio

manic narwhal
#

its all math 😭

dawn cargo
#

rly?

#

hmm

#

dont u literally just check if someone is blocking then u do reduced damage

manic narwhal
#

yea smth with dotproducts

dawn cargo
#

and for actually using the block it's like any other ability

#

yea ion think u need all that unless im imaginging something different

dawn cargo
manic narwhal
#

so that attacks will be negated from the front if blocking, but will get hit from behind

dawn cargo
#

ohh lol

#

my goofy ahh woulda just done a hitbox in front of the character to check if the opponent is behind or in front

manic narwhal
#

that was the first thing i did but i thought about it and it seems like it would be a little laggy / it would get counted as behind from the front if the hitbox is too large

dawn cargo
#

well i wouldnt be using touched

#

id use getpartboundsinbox

#

which is like raycasting but an actual box with a given size and cframe

#

and it's an instant check

manic narwhal
#

oh 😭

#

ok good to know

dawn cargo
#

so i can instantly check who is behind and who is front of X character

manic narwhal
dawn cargo
#

oh that's dope

#

i thought it was gonna be light powers lol

manic narwhal
#

it seems to work ok im just praying it isn't too heavy on ping

dawn cargo
#

wdym

manic narwhal
#

yea no its really basic as it is rn i dont have the capacity to script that rn lol

manic narwhal
dawn cargo
dawn cargo
#

i wouldnt worry about that if ur beginner

#

just focus on getting stuff working

manic narwhal