As you can see, for some reason a VectorForce with a Force of (0,500,0) isn’t enough to lift the character up, is there any reason why and if so how could I make it so that the player will move upwards, but very slowly?
This made my character move upwards, however only for a short amount of time. How can I make it so that the force is always working? Also, does workspace gravity affect this. Thanks
I think you can use BodyVelocity for that. (didn’t test this yet)
not so sure if this works just an idea
local bv = Instance.new("BodyVelocity")
bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
bv.Velocity = HRP.CFrame.UpVector * 50 -- You can change the multiplicator value
bv.Parent = HRP
game.Debris:AddItem(bv, 1)
Setting the Velocity properties (AssemblyLinearVelocity etc) is generally not recommended as it will only get applied for that once instant, then just get overwritten with whatever the current velocity happens to be. It also changes velocity in a non-physical way
In your clip the velocity changes right away because there’s still gravity, so you’ll move at (0,10,0) for one single frame, then gravity just takes back over and has you drop back to the floor.
Using a LinearVelocity constraint gives you a way to keep something moving at a constant velocity. Seems like that’s what you wanted and you’ve figured it out. You can lower the MaxForce on your LinearVelocity so that it takes longer to reach your target speed (but if it’s too low then it will never reach your target speed).
The only down side is if anything makes you go faster than your LinearVelocity’s target speed, then it will make you slow down to your target again. This behavior might be strange for something like a jetpack.
Using the VectorForce would still work, you really just needed a value higher than (0,500,0). And with this, the force just gets applied unconditionally. You’ll keep accelerating unless there’s another force to slow you down.
Oh you’re right. The Humanoid has additional forces acting on it that would also overwrite the velocity directly. Switching the Humaonid state to “Physics” should disable these forces. Still, it’s better to use a constraint to set velocity rather than setting it directly.
EDIT: I figured it out, but when I turn this on it effectively completely stops my character. How can I make it so that the humanoid has no forces acting on it, but yet also my character to work normally?