local UIS = game:GetService('UserInputService')
local Player = game.Players.LocalPlayer
local Character = Player.Character
UIS.InputBegan:connect(function(input)--When a player has pressed LeftShift it will play the animation and it will set the normal walking speed (16) to 35.
if input.KeyCode == Enum.KeyCode.LeftShift then
Character.Humanoid.WalkSpeed = 32
local Anim = Instance.new('Animation')
Anim.AnimationId = 'rbxassetid://11872298900'
PlayAnim = Character.Humanoid:LoadAnimation(Anim)
PlayAnim:Play()
end
end)
UIS.InputEnded:connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftShift then
Character.Humanoid.WalkSpeed = 17
PlayAnim:Stop()
end
end)
Yes i want my new animation to be my default one. Also the collision could be caused by the ACS system
(Advanced Combat System). The problem is that i doesnāt know how to remove the ACSās one, is there another way?
I resolved this bug turning the animation tilted in the opposite way that there is in the game.
I donāt know why this happens but i managed to resolve it somehow