You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want to redirect the player’s velocity into a certain direction. Basically, I want to launch the player into a certain direction but at the same speed that they were moving at.
What is the issue? Include screenshots / videos if possible!
I don’t know the calculations for it.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried looking for solutions, but all I found was how to launch the player into a certain direction at a specific velocity. I want to launch the player into a certain direction at the SAME velocity, not a different one.
local direction = ... --// Unit vector btw
local rootPart = character.HumanoidRootPart
local force = 10 * rootPart.AssemblyMass
rootPart:ApplyImpulse(rootPart.AssemblyLinearVelocity * direction * force)
So, I’m trying to make a vault function that holds your speed and moves the player in the LookVector of their rootpart. I tried the code above, but this happens. Any idea how I can fix this? I can send the vault code if you need.