How to achieve running effect like this through scripting

How to achieve running effect like the in video.
https://gyazo.com/1d12b037cc3b1d9a5cdbfb4e2c904aa5

Credit to Polyhex from this twitter down below.
https://twitter.com/tylermcbride

this is my script
–ServerScript–
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player)
local Char = player.Character
local Huma = Char:WaitForChild(“Humanoid”)
local Humanroot = Char:WaitForChild(“HumanoidRootPart”)
local RunE = game.ServerStorage:WaitForChild(“RunEffectFIX”)
local RunE2 = RunE:Clone()
local DD = false

RunE2.Parent = game.Workspace
RunE2.CFrame = Humanroot.CFrame + Humanroot.CFrame.UpVector * -2.5
game.Debris:AddItem(RunE2,0.2)
wait(3)

game.ReplicatedStorage.RemoteEvent2.OnServerEvent:Connect(function(player)
	local Char = player.Character
	local Huma = Char:WaitForChild("Humanoid")
	local Humanroot = Char:WaitForChild("HumanoidRootPart")
	local RunE = game.ServerStorage:WaitForChild("RunEffectFIX")
	local RunE2 = RunE:Clone()
	local DD = true
end)

–LocalScript–
local Player = game:GetService(“Players”).LocalPlayer
local Char = Player.Character or Player.CharacterAdded:Wait()
local Human = Char:WaitForChild(“Humanoid”)
local cooldown = 5
local Debounce = false
local HumanoidRootPart = Char:WaitForChild(“HumanoidRootPart”)
local Ti = Char:WaitForChild(“LowerTorso”)
local LF = Char:WaitForChild(“LeftFoot”)
local RF = Char:WaitForChild(“RightFoot”)
local offset = Vector3.new()
local Re = game.ReplicatedStorage.RemoteEvent
local Re2 = game.ReplicatedStorage.RemoteEvent2
while true do

wait ()

if Human.MoveDirection == Vector3.new(0,0,0) then

Human.WalkSpeed = 7

Re2:FireServer(Player)

else

Human.WalkSpeed = Human.WalkSpeed + 0.5

if Human.WalkSpeed >= 18 then

Re:FireServer(Player)

end

if Human.WalkSpeed >= 60 then

Human.WalkSpeed = 60

end

end

end

Btw, This is my first post. Pls helpme solve this problem. Thank you

1 Like

Hey, well I am very late to this topic but there is a similar post where you can find how to do the same.

Here is the link to that similar post.