Hi,using custom walking sytem
here code of attack anims and etd.
local i = script.idle
local a = script.attack
local e = script.equip
local hum = game.Players.LocalPlayer.Character:WaitForChild(“Humanoid”)
local run_sc = game.Players.LocalPlayer.Character:WaitForChild(“Bruh”)
local idle = hum:LoadAnimation(i)
local equip = hum:LoadAnimation(e)
local attack = hum:LoadAnimation(a)
local pl = script.Parent
local handl = pl.Handle
local eq_sound = handl.equip
local eq_supp = handl.zap
local sw_sound = handl.swing
local sw_supp = handl.laser
–wait(0.2) swin
–wait(0.5) equip supp
pl.Equipped:Connect(function()
hum.WalkSpeed = 0
run_sc.Enabled = false
pl.Enabled = false
equip:Play()
idle:Play()
eq_sound:Play()
wait(0.5)
eq_supp:Play()
wait(1)
pl.Enabled = true
hum.WalkSpeed = 11
run_sc.Enabled = true
end)
pl.Unequipped:Connect(function()
equip:Stop()
idle:Stop()
attack:Stop()
end)
pl.Activated:Connect(function()
attack:Play()
run_sc.Enabled = false
pl.Enabled = false
hum.WalkSpeed = 0
wait(0.2)
sw_sound:Play()
wait(0.6)
sw_supp:Play()
wait(1.7)
pl.Enabled = true
run_sc.Enabled = true
hum.WalkSpeed = 11
end)
and here code of sprinting system:
(script in startercharacterscript)
local y = Enum.KeyCode.LeftShift
local UIS = game:GetService(“UserInputService”)
local RUN = Instance.new(“Animation”)
RUN.AnimationId = “rbxassetid://18440884465”
local Player = game.Players.LocalPlayer
local trackin = Player.Character.Humanoid:LoadAnimation(RUN)
UIS.InputBegan:Connect(function(input)
if input.KeyCode == y then
if Player.Character.Humanoid.MoveDirection.Magnitude > 0 then
Player.Character.Humanoid.WalkSpeed = 17
trackin:Play()
end
end
end)
UIS.InputEnded:Connect(function(input)
if input.KeyCode == y then
Player.Character.Humanoid.WalkSpeed = game.StarterPlayer.CharacterWalkSpeed
trackin:Stop()
end
end)
if you need more info then reply me