-- ANimation

local Sound = script:WaitForChild("Haoshoku Sound")

UIS.InputEnded:Connect(function(Input)
	if Input.KeyCode == Enum.KeyCode.E and Debounce == 1 and Tool.Equip.Value == true then
		Debounce = 2
		Sound:Play()
		if Mochi == true then
			script.Transform:FireServer()
			script.Parent.DargonOn.Value = true
			for i = 1,20 do
				wait()
				plr.Character.Humanoid.CameraOffset = Vector3.new(
					math.random(-3,3),
					math.random(-3,3),
					math.random(-3,3)
				)
			end
			plr.Character.Humanoid.CameraOffset = Vector3.new(0,0,0)
			Mochi = false
		else
			script.UnTransform:FireServer()
			script.Parent.DargonOn.Value = false
			for i = 1,20 do
				wait()
				plr.Character.Humanoid.CameraOffset = Vector3.new(
					math.random(-3,3),
					math.random(-3,3),
					math.random(-3,3)
				)
			end
			plr.Character.Humanoid.CameraOffset = Vector3.new(0,0,0)
			Mochi = true
		end
wait(1)
Debounce = 1
	end
end)
