#velocity spiking when getting off the ground

1 messages · Page 1 of 1 (latest)

acoustic pendant
#

Alright so, I've been messing around with this for quite some time now and I haven't been able to find a solution

I've tried these forces:
-LinearVelocity
-VectorForce
-Even BodyForce, I wanted to give a chance though it is deprecated

and I've also tried:
-Connecting a listener and deleting/decreasing the velocity when the player got off the ground
-Removing friction (did not end well)

This problem has been plaguing all my velocity making methods for some time, and I wanted to get some help about fixing it and the methods other people use to prevent this. Thank you for your time

amber notch
#

switch to unity

open cipher
#

because u aim to the ground 💔

#

can u send me the script?

acoustic pendant
#
        local player = infoTable.Player
        local hrp = player.Character.HumanoidRootPart
        local force = infoTable.Force
        
        local vectorForce = Instance.new("VectorForce")    
        vectorForce.Attachment0 = hrp.Forward
        
        vectorForce.ApplyAtCenterOfMass = true
        
        if infoTable.Forward then
            vectorForce.RelativeTo = Enum.ActuatorRelativeTo.Attachment0
            vectorForce.Force = Vector3.new(force,0,0)
        else
            vectorForce.RelativeTo = Enum.ActuatorRelativeTo.World
            vectorForce.Force = infoTable.Direction * force
        end
        
        vectorForce.Parent = hrp
        
        if infoTable.Duration then
            game:GetService("Debris"):AddItem(vectorForce,infoTable.Duration)
        end
#

in the video,

 infoTable.Forward = true
acoustic pendant
acoustic pendant
#

I have tried it before

#

does not fix this problem

#

I think its something to do with friction and how roblox handles velocity overall

open cipher
#

try linear velocity again

acoustic pendant
#

wh

#

thats not

#

😭

open cipher
#

infoTable is static?

acoustic pendant
#
{
   Player = player,
   Force = info.Force,
   Forward = true,
   Duration = 0.2,                    
}
#

this is the table in the video

acoustic pendant
open cipher
#

use linear velocity with the thing that make it unstoppable porterties

#

enabled

#

or make your own physics

acoustic pendant
open cipher
#

becuase linear velocity with that porterty dont account friction

acoustic pendant
#

fr?

#

okay I will test when I get home

#

@open cipher I dont think linear velocity has a property like that?

open cipher
acoustic pendant
#

okay thank you

open cipher
#

also change this to line

acoustic pendant
#

this might be it

acoustic pendant
#

did not work

#

I have nothing but my sorrow

#

and I want nothing more

#

it has been, still is, faithful to me

#

why should I begrudge it? Since during the hours...

#

when my soul crushed the depths of my heart

#

it was seated there beside me?

#

O' Sorrow, I have ended you see, by respecting you

#

because I am certain you will never leave me

#

Ah, I realize it! Your beauty lies in the force of your being

#

You are like those who never left the sad fireside corner of my poor black heart

#

O' my Sorrow, you are better than a well beloved

#

because I know that on the day of my final agony

#

you will be there, lying in my sheets, O' Sorrow

#

so that you might once again attempt to enter my heart

open cipher
#

use unity