so I create a linear velocity for the strike movement ability but I also have a double jump ability.
how to make it that the player can double jump while he is doing the strike ability?
double jump push player up with assembly linear velocity.
here is striker linear velocity
local Camera = workspace.CurrentCamera
local CameraDirection = (Camera.CFrame.LookVector * Vector3.new(1, 0, 1)).Unit
local StrikeDirection = (CameraDirection * Vector3.new(1, 0, 1)).Unit + Vector3.new(0, -0.75, 0) -- Camera Direction but Down 45 degrees
self.Humanoid.AutoRotate = false
self.HRP.CFrame = CFrame.new(self.HRP.Position, self.HRP.Position + CameraDirection)
if self.LinearVelocity then
self.LinearVelocity:Destroy()
self.LinearVelocity = nil
end
local LinearVelocity = Instance.new("LinearVelocity")
LinearVelocity.Attachment0 = self.HRP.RootAttachment
LinearVelocity.VectorVelocity = StrikeDirection * self.Speed
LinearVelocity.Parent = self.HRP
LinearVelocity.MaxForce = math.huge
LinearVelocity.Name = "StrikerVelocity"
self.LinearVelocity = LinearVelocity