I want to make the character slow to a stop after walking/running. I guess you could say kind of like ice. If you don’t know what I mean here is an example of a game that uses this mechanic: Evade - Roblox
I have tried adding a body velocity when the player stops moving which doesn’t look very nice ( possibly just doing it wrong).
Don’t understand what you mean by this. But what I’m trying to say is when you stop moving forward (let go of “W” for example) you slide a bit before coming to a complete stop.
Alright then, make a new local cript and put it in StarterCharacterScripts and make the script this:
local uis = game:GetService("UserInputService")
uis.InputBegan:Connect(function(inp, processed)
if processed then return end
if inp.KeyCode == Enum.KeyCode.LeftControl then
humanoid.HipHeight = 0.3
end
end)
uis.InputEnded:Connect(function(inp)
if inp.KeyCode == Enum.KeyCode.LeftControl then
humanoid.HipHeight = 2
end
end)
This means it will activate if you press LeftControl