local r=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local H=script.Parent local o=H:WaitForChild("\072\117\109\097\110\111\105\100")local S=false local d=o:LoadAnimation(script:WaitForChild("\065\110\105\109\097\116\105\111\110"))r.InputBegan:Connect(function(r)if r.KeyCode==Enum.KeyCode.C then if not S then S=true d:Play()else d:Stop()S=false end end end)
--Must be placed on StarterPlayer > StarterCharacterScripts
local UserInputService = game:GetService("UserInputService")
local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")
local isRunning = false
local Animation = Humanoid:LoadAnimation(script:WaitForChild("Animation"))

UserInputService.InputBegan:Connect(function(key)
	if key.KeyCode == Enum.KeyCode.C then
		if not isRunning then
			isRunning = true
			Animation:Play()
		else
			Animation:Stop()
			isRunning = false
		end
	end
end)
