I am using a ragdoll system and plan to add a feature similar to Flee The Facility (FTF). If you have played FTF, you know that whenever you press the space bar while ragdolled, your character will flop in the direction of which you are moving towards and looking.
I am looking to do the same, although I’d like it to be like the ‘old flopping system’. I cannot really explain it that well in words, so I have this clip;
I'm a pro glitcher - Roblox Flee The Facility - YouTube Time stamp - 2:05
In the video above, the movement the player was achieving while ragdolled was a bug, although I’d like to make it a feature inside of my game. That kind of ragdoll movement is what I am trying to implement into my own game.
I have tried adding a VectorForce and setting its value to a positive Vector3 in the y-axis, as well as pausing and playing it quickly to replicate this. It does work 25% of the time, but it is just very inconsistent.
I have also tried doing the same with a LinearVelocity, but the character would more often than not just fly up instead of bobbing, as shown in the video.
This is what I used for both the VectorForce and the LinearVelocity.
Remote.OnServerEvent:Connect(function(player: Player) local vectorForce: VectorForce = player.Character.Head.vectorForce vectorForce.Force = Vector3.new(0,6000,0) vectorForce.Enabled = true task.wait(.05) vectorForce.Enabled = false vectorForce.Force = Vector3.new(0,0,0) end)
One last note is that I am currently only trying to make the character be able to ‘stay upright’. I can figure out how to implement x and z movement later.
Is there any consistent way to do this? Is there a calculation or trick which I could be using? I am not too experienced when it comes to velocities, so any help here would be greatly appreciated.