Humanoids are walking in the air after using a BodyVelocity to knock then back after an attack. This effect has been working flawlessly for many months, I simply parent a BodyVelocity to the HRP of the character then destroy it very quickly.
My game has been live for a couple months without this issue and suddenly it comes up, even without an update.
As you can see, NetoworkOnwership stays with the server (colored boxes). No parts are anchored ever and the humanoid is just not walkign on the ground! You can see in the server that all parts in the map are selected and its not walking on an invisible part. In fact, at the end of the video its randomly falls down to the ground and then tries to attack me.
Well I think a possible fix would be to use a humanoid:GetPropertyChangedSignal(“FloorMaterial”) listener and then check if its equal to Enum.Material.Air, and if it is, use a raycast down to find the floor position
Game looks really cool! (possible help>I think you should look at the R6 and R15 Humanoids depending on the game. Make sure you set their position at the floor when they spawn.(Via script)
the mob is already chasing and fighting just fine before this happens. The issue comes into play about 20% of the time after parenting a BodyVelocity to the Characters HRP.
I use r15 and I have looked through the whole character in Studio when the issue happens and there are no weird parts inside it that would cause this as far as I know.
In the video you can see the character suddenly falls for no reason too. It looks like there isan invisible part there but there isn’t.
Keep in mind also the video proves that NetworkOnwership is never in possession of the player.
Are you receiving any errors from the code in the mob or whatever?
If you are receiving errors, try to fix them. That should be the error.
If you don’t have any errors etc, let me know. I’ll try to give more help.
Yeah, if there isn’t any errors, but an error is occuring(ingame) then it’s for sure beyond.
You should probably show at least show some of your script otherelse people cannot really help you unless they know how this works.