How would you create this dash effect?

I want to create a dash effect like in this game:

I tried doing this but it doesn’t have the same effect:

local module = {}
local player = game.Players.LocalPlayer
local uis = game:GetService("UserInputService")

function module.movement(input, gameProcess)
	if gameProcess then return end
	if input.UserInputType == Enum.UserInputType.Keyboard then
		local velocity = Vector3.new(0, 0, 0)
		if input.KeyCode == Enum.KeyCode.A then
			velocity = velocity + Vector3.new(-5, 0, 0)
		end
		if input.KeyCode == Enum.KeyCode.D then
			velocity = velocity + Vector3.new(5, 0, 0)
		end

		local currentCF = player.Character:GetPivot()
		local nextCF = currentCF + velocity
		player.Character:PivotTo(nextCF)
	end
end

return module

Here is what it looks like in my game:

Not sure how I would go about doing this, any help would be appreciated.

an effect like the particles it produces or a script?

A script where the player moves left and right smoothly like in the video.

use an animation and tween their position i guess im not really good at manipulating the player

I would get the cframe of the humanoid root part. Lock the camera to a specific orientation behind it using :ToWorldSpace(). For the movement, that’s something else.

Doing that just gave the same effect.