--Template
local Holder = Instance.new('StringValue',owner.Character.Head)
Holder.Name = 'Holder'
Holder.Value = 'DO NOT DESTROY | HOLDS ANIMATION SCRIPT'
local owner = game.Players.thepaperdot
script.Parent = Holder
local ArtificialHB = Instance.new('RemoteEvent',Holder)
local R1 = Instance.new('RemoteEvent', owner.Character)
R1.Name = "R1"
local R2 = Instance.new('RemoteEvent', owner.Character)
R2.Name = "R2"
local FPS = Instance.new('NumberValue',Holder)
FPS.Name = 'FPS'
FPS.Value = wait()
local Ctrl = 2
ArtificialHB.Name = 'AHB'
NLS([[local hum = owner.Character.Humanoid
local AHB = owner.Character:FindFirstChild('AHB',true)
local FPS = owner.Character:FindFirstChild('FPS',true)
table.foreach(hum:GetPlayingAnimationTracks(),function(_,track)track:Stop()end)
workspace.CurrentCamera.CameraSubject = owner.Character.Head
R1 = owner.Character.R1
R2 = owner.Character.R2
UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(Input, GameProcessed)
if GameProcessed then return else
if Input.KeyCode == Enum.KeyCode.Q then
R2:FireServer()
elseif Input.KeyCode == Enum.KeyCode.E then
R1:FireServer()
end
end
end)
while true do
wait(FPS.Value)
AHB:FireServer()
end
]],owner.Character)
--Function connectors
ArtificialHB.OnServerEvent:Connect(function(plr)
if owner.Character.HumanoidRootPart.Velocity.Magnitude>4 then
walk()
elseif owner.Character.HumanoidRootPart.Velocity.Magnitude<4 then
idle()
end
end)