#💬 clueless_tinyʹs Feedback

1 messages · Page 1 of 1 (latest)

lucid larkBOT
shy skiff
#

looks nicee

#

would you mind sharing the knockback mechanic ? i cant replicate it that smooth

inland field
#

yeah actually

#

im also relatively new to this too

#

and took a lot of nagging on other developers to get a good way

inland field
#

this is all in a module btw

#

lol i just wrote entire essay on ragdoll method

#

im so stupid

#

uh what you wanna do

inland field
# shy skiff would you mind sharing the knockback mechanic ? i cant replicate it that smooth

is check if the player that the knockback is being applied to, is a player. If they are then fire to them to do velocity on client side. If its an npc and a player is applying it, then set network ownership of the humanoidroot part of the NPC to the player, then fire to the player (attacker) to apply it to the NPC. And as a failsafe, after firing to the player to do it, still do it on the server. It basically means if something happens or the player is too laggy, it will just run normally on the server but not so smooth

#

but if everything is fine and the player does apply it, it takes priority kinda, so no need to worry about cancelling or anything

#

basically the green outline means the player is controlling it

#

its a but buggy in the video, but you can see what a bit of experimenting does like in the video this post is originally attached to

shy skiff
shy skiff
#

wait

#

you're not twin

shy skiff
#

but i was never able to make it look smooth and delay free like you did, thats why I asked for your logic lol

#

i assume its bc of network ownership, but what do you use to apply vel to the HRP ?

inland field
#

instead of running just once on the server, which does have delay

inland field
#

and it adds LINEAR velocity

#

you get the idea

#

minus some other larger snippets for replication above all of this

shy skiff
shy skiff
#

thanks a lot

#

you're explaing xell

#

well

#

i'm gonna try to replicate that

inland field
inland field
#

then when its bug free and finished

#

move on to client rep

shy skiff
shy skiff
#

i'll take your advice thanks a lot