Hello, ive been trying to make a custom movement system but the issue is that the direction is always the same instead of being based on the rotation on the character. How would i fix that?
Code that handles velocity:
self.Move = function(Velocity,Key)
Target.Character.PrimaryPart.Velocity += Velocity
end
What direction are you trying to move the player in? You could possibly use the properties of the root part’s CFrame. Such as upVector, rightVector, etc.
self.Move = function(Velocity,Key)
--//moves player in their looking direction
local direction = Target.Character.PrimaryPart.CFrame.LookVector*speed
Target.Character.PrimaryPart.Velocity += direction
end