#Why does my Ragdoll module sometimes make my rig flying on the air?

1 messages · Page 1 of 1 (latest)

manic rampart
#

Hello there,

I'm currently encounter a problem that whenever a rig is not a player and got ragdoll it sometimes will be flying while ragdoll for some reason...

shrewd rain
#

@manic rampart the only reason i can think this happens is if you're applying the ragdoll direction directly up

#

show me how you're calling the function

manic rampart
shrewd rain
#

by how many studs?

#

and does the body velocity never get deleted basically?

manic rampart
#

look at the code

#

task.delay(duration, obj.Destroy, obj)

shrewd rain
#

ye i've seen it

manic rampart
#

I think that is not the problem btw

shrewd rain
#

but in your case does the body velocity actually get deleted

manic rampart
#

the velocity will be deleted.

#

the velocity actually get deleted

#

I already checked

shrewd rain
#

then what is, you're telling the player to go up and it goes up

manic rampart
#

it just goes up

#

when ragdoll with knockback force

#

like it freezing on the air

shrewd rain
#

can i see a video on your specific one?

manic rampart
#

Here. This is the ref vid

manic rampart
shrewd rain
#

ik that's the ref video but i dont exactly get what you mean by freezing in the air

manic rampart
#

is a similiar problem that I'm currently facing

shrewd rain
#

the player literally just stops in the air?

manic rampart
#

they stop in the air

#

ragdoll

#

then comes down

#

later.

#

when ragdoll ended.

shrewd rain
#

they dont get frozen

manic rampart
#

I think I didn't look carefully

#

yeah

#

they might still be flying

shrewd rain
manic rampart
#

goes up

#

yes

shrewd rain
#

if possible a video on your specific problem would be very helpful

manic rampart
#

but sometimes the knockback doesn't even work

shrewd rain
#

so i know what i can do to fix

shrewd rain
manic rampart
#

mostly

#

my ragdoll have soo much issue

#

After it got like goes up for a few time then it keep staying in the physics service

#

idk how to fix

shrewd rain
#

as i said a video would help a lot

manic rampart
#

yeah

#

lemme record it

#

my pc is not good enough to record

#

is gonna be laggy

shrewd rain
manic rampart
#

Or do u want to go into the game and check by urself

#

is that fine?

manic rampart
#

alr

#

all good

manic rampart
#

So, whenever I ragdoll a rig character NOT player character, sometime the rig character got ragdoll and it keep flying up like the devforum ref vid I send u above. After a few times of flying up like that, the rig falls down and stop ragdoll then the humanoid state of the rig keep being Physics instead of Running (I assume that the ChangState method of the Humanoid failed to set the state of the rig Humanoid to GettingUp so I use a repeat loop to set the GettingUp state until the humanoid have that GettingUp state)

shrewd rain
#

when you run the repeat loop what happens then

#

does the humanoid state end up changing?

manic rampart
manic rampart
#

also imma upload the vid

#

@shrewd rain OK so after repeat loop it successfully changed to GettingUp state

shrewd rain
#

i meant when you say this "(I assume that the ChangState method of the Humanoid failed to set the state of the rig Humanoid to GettingUp so I use a repeat loop to set the GettingUp state until the humanoid have that GettingUp state)"

#

what results do you get

manic rampart
#

ok wait

#

hold on

manic rampart
#

to getting up

#

sometimes it don't

#

and yield the code

shrewd rain
#

do you have any idea why it might do that at the momment#

#

i still need the video

manic rampart
#

im debugging

#

@shrewd rain Thanks for helping

#

I think I got it

shrewd rain
#

np

final pike
#

debris service exists just for that

#

(off topic)

manic rampart
#

Fyi

final pike
manic rampart
#

I heard rumours said that debris slower then task.delay

final pike
#

?

#

Idk

#

But we dont even know if its slower😭😭💀

shrewd rain
#

it is

#

game.debris runs at 30hz while task.delay is 60hz

manic rampart
#

To find out