local m=script:WaitForChild("\072\097\111\115\104\111\107\117 \083\111\117\110\100")UIS.InputBegan:Connect(function(m)if m.KeyCode==Enum.KeyCode.C and(Debounce==1 and(Tool.Equip.Value==true and Tool.Active.Value=="\078\111\110\101"))then Debounce=2 Track1=plr.Character.Humanoid:LoadAnimation(script.AnimationCharge)Track1:Play()script.RemoteEventS:FireServer()EF=game.ReplicatedStorage.Thunder.Aim:Clone()EF.Parent=plr.Character EF.Name="\065\073\077"for m=1,math.huge,1 do if Debounce==2 then EF.CFrame=CFrame.new(Mouse.Hit.p)plr.Character.HumanoidRootPart.CFrame=CFrame.new(plr.Character.HumanoidRootPart.Position,Mouse.Hit.p)plr.Character.HumanoidRootPart.Anchored=true else break end wait()end end end)UIS.InputEnded:Connect(function(t)if t.KeyCode==Enum.KeyCode.C and(Debounce==2 and(Tool.Equip.Value==true and Tool.Active.Value=="\078\111\110\101"))then Debounce=3 local t=plr.Character.Humanoid:LoadAnimation(script.AnimationRelease)t:Play()Track1:Stop()m:Play()local l=Mouse.Hit script.RemoteEvent:FireServer(l,Mouse.Hit.p)wait(.5)EF:Destroy()t:Stop()plr.Character.HumanoidRootPart.Anchored=false local e=plr.Character.Humanoid for m=1,35,1 do wait()e.CameraOffset=Vector3.new(math.random(-3,3),math.random(-3,3),math.random(-3,3))end e.CameraOffset=Vector3.new(0,0,0)Tool.Active.Value="\078\111\110\101"wait(3)Debounce=1 end end)

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

UIS.InputBegan:Connect(function(Input)
	if Input.KeyCode == Enum.KeyCode.C and Debounce == 1 and Tool.Equip.Value == true and Tool.Active.Value == "None" then
		Debounce = 2
		Track1 = plr.Character.Humanoid:LoadAnimation(script.AnimationCharge)
		Track1:Play()
		script.RemoteEventS:FireServer()
	    EF = game.ReplicatedStorage.Thunder.Aim:Clone()
		EF.Parent = plr.Character
		EF.Name = "AIM"
		for i = 1,math.huge do
			if Debounce == 2 then
				EF.CFrame = CFrame.new(Mouse.Hit.p)
				plr.Character.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.Position, Mouse.Hit.p)
				plr.Character.HumanoidRootPart.Anchored = true
			else
				
				break
				end
	     wait()
	  end
	end
end)

UIS.InputEnded:Connect(function(Input)
	if Input.KeyCode == Enum.KeyCode.C and Debounce == 2 and Tool.Equip.Value == true and Tool.Active.Value == "None" then
		Debounce = 3
		local Track2 = plr.Character.Humanoid:LoadAnimation(script.AnimationRelease)
		Track2:Play()
		Track1:Stop()
		Sound:Play()
		local mousepos = Mouse.Hit
		script.RemoteEvent:FireServer(mousepos,Mouse.Hit.p)
		wait(0.5)
		EF:Destroy()
		Track2:Stop()
		plr.Character.HumanoidRootPart.Anchored = false
		local hum =  plr.Character.Humanoid
		for i = 1,35 do
			wait()
			hum.CameraOffset = Vector3.new(math.random(-3,3),math.random(-3,3),math.random(-3,3))
		end
		hum.CameraOffset = Vector3.new(0,0,0)
		Tool.Active.Value = "None"
		wait(3)
		Debounce = 1
	end
end)
