So i made a bounce move for my character. He’s supposed to fly towards the floor and bounce upwards as soon as he hits it. The “flying towards the floor” part works, but the bounce rarely does. When the bounce doesn’t work, the player just lands normally instead of being sent upwards a little. I would show a video showing the issue but the Devforum keeps on saying there’s an issue when i try to upload one. I’m pretty sure this issue is something physics related.
function Moveset:Tramp(TrampAnim: Animation, TrampReleaseAnim: Animation)
if self._Humanoid:GetState() == Enum.HumanoidStateType.Freefall and HasDJ and not IsTramping and not IsHovering and not IsDashing then
IsTramping = true
self._Root:ApplyImpulse(-self._Root.CFrame.UpVector * (120 * self._Root.AssemblyMass))
repeat
task.wait()
until self._Humanoid:GetState() ~= Enum.HumanoidStateType.Freefall
self._Root:ApplyImpulse(self._Root.CFrame.UpVector * (100 * self._Root.AssemblyMass))
IsTramping = false
end
end