How should I go about making friction not affect the player while their dashing?
Here’s what I mean:
(Edit) I don’t think it’s necessary but I should probably add the code lol
local UIS = game:GetService("UserInputService")
if not game.Players.LocalPlayer.Character then
game.Players.LocalPlayer.CharacterAdded:Wait()
end
local Character = game.Players.LocalPlayer.Character
local DashSpeed = 50
UIS.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.LeftShift then
-- Character.Humanoid.WalkSpeed = 0
Character.HumanoidRootPart.AssemblyLinearVelocity = Character.Humanoid.MoveDirection * 100
end
end)
I don’t think turning off friction on the floor until the player’s done is a good idea, because there are going to be some larger levels with a lot more platforms.
Could I maybe lift the player slightly off the ground, and then lock their y axis movement? Because I don’t know how I would do that
Any help is appreciated! <3