Position of legs updates too slow

Ok so I’m tryna make footplanting IK on roblox
but the position of the foot updates so slow it can’t even catch up to the position I wanted it to be in

Desired rest position:
image

What I get when I’m walking:
image

What i’m saying is the legs should update to the correct rest position but instead I what I got is the legs are behind the character

See the problem on the video? It’s not going to the desired rest position

I was thinking maybe the position updates too slow because it’s roblox duhhh
so is there any other alternative ways to update position faster?
or anything that could solve this

1 Like

is the code being run on the server? when i made my own footplanting script, i had to make it on the client due to server latency

2 Likes

make it run on runservice.stepped, it fires every time before the render frame

1 Like

Besides the recommendations already posted, double check the priority of the animations, make sure your “Idle” animation does not have “Core” priority (you cna check it in the animation editor in an avatar rig), otherwise your walking animation would not be able to override the legs position of the idle. Alternatively make sure your walking anim is also Core priority.

the code i used is entirely on serverscript,

also I made a replica of the footplantscript that used renderstepped by making some stuff local and sending the value to the footplant serverscript by using events.

I deleted the replica since it’s still the same problem, it was probabaly the events being fired too fast.

Is your footplanting script 100% client-sided? if yuh, how?

it uses pairs(players:GetChilren) to get every player every renderstep, and then using the player and it’s character, make it’s required math and updates the motor6d, i have no idea if it’s the most optimized way, but it’s the best looking one I found imo