So I created a script that lets you "dash" around the map. (you can use it if you want I'm cool with it)
local uis = game:GetService("UserInputService")
---
local Character
local Human
local HumanRoot
local del = false
---
game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
Character = char
Human = char:WaitForChild("Humanoid")
HumanRoot = char:WaitForChild("HumanoidRootPart")
end)
---
uis.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.E and not del then
del = true
---
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://6437478718"
---
local sound = Instance.new("Sound", workspace)
sound.SoundId = "rbxassetid://3064998420"
sound.Volume = 0.3
sound.PlayOnRemove = true
sound:Play()
sound:Destroy()
---
Human:FindFirstChildOfClass("Animator"):LoadAnimation(animation):Play(0.1)
---
HumanRoot.Velocity = HumanRoot.Velocity + HumanRoot.CFrame.XVector*130
---
wait(1)
del = false
elseif key.KeyCode == Enum.KeyCode.Q and not del then
---
del = true
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://6437507351"
---
local sound = Instance.new("Sound", workspace)
sound.SoundId = "rbxassetid://3064998420"
sound.Volume = 0.3
sound.PlayOnRemove = true
sound:Play()
sound:Destroy()
---
Human:FindFirstChildOfClass("Animator"):LoadAnimation(animation):Play(0.1)
---
HumanRoot.Velocity = HumanRoot.Velocity + HumanRoot.CFrame.XVector*-130
---
wait(1)
del = false
elseif key.KeyCode == Enum.KeyCode.X and not del then
---
del = true
local sound = Instance.new("Sound", workspace)
sound.SoundId = "rbxassetid://3064998420"
sound.Volume = 0.3
sound.PlayOnRemove = true
sound:Play()
sound:Destroy()
---
HumanRoot.Velocity = HumanRoot.Velocity + HumanRoot.CFrame.ZVector*130
---
wait(1)
del = false
end
end)
But when you are on the ground, the distance is way shorter because of friction. How would I remove this friction just for a second or bypass this problem?
