Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script:WaitForChild("Wave")
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local UserInput = game:GetService("UserInputService")
- Punch1 = script.Punch1
- Punch2 = script.Punch2
- local Debounce = false
- local Damage = script.Damage
- local CanPunch = false
- UserInput.InputBegan:connect(function(Key)
- if Key.KeyCode == Enum.KeyCode.Z and CanPunch == false then
- CanPunch = true
- local RandomAttack = math.random(1,2)
- if RandomAttack == 1 then
- local Attack1 = Character:FindFirstChild("Humanoid"):LoadAnimation(Punch1)
- Attack1:Play()
- wait(.45)
- local Wave1 = script.Wave:Clone()
- Wave1.Size = Vector3.new(8,8,2)
- Wave1.CFrame = Character:FindFirstChild("RightLowerArm").CFrame
- Wave1.Orientation = Character:FindFirstChild("HumanoidRootPart").Orientation
- Wave1.Parent = Character:FindFirstChild("RightLowerArm")
- local VEL1 = Instance.new("BodyVelocity")
- VEL1.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- VEL1.Velocity = Character:FindFirstChild("HumanoidRootPart").CFrame.lookVector * 100
- VEL1.Parent = Wave1
- local Wave2 = script.Wave:Clone()
- Wave2.Size = Vector3.new(6,6,1)
- Wave2.CFrame = Wave1.CFrame * CFrame.new(0,0,-6)
- Wave2.Parent = Wave1
- local VEL2 = Instance.new("BodyVelocity")
- VEL2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- VEL2.Velocity = Character:FindFirstChild("HumanoidRootPart").CFrame.lookVector * 100
- VEL2.Parent = Wave2
- local Wave3 = script.Wave:Clone()
- Wave3.Size = Vector3.new(4,4,.5)
- Wave3.CFrame = Wave2.CFrame * CFrame.new(0,0,-6)
- Wave3.Parent = Wave2
- local VEL3 = Instance.new("BodyVelocity")
- VEL3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- VEL3.Velocity = Character:FindFirstChild("HumanoidRootPart").CFrame.lookVector * 100
- VEL3.Parent = Wave3
- local Point = script.Point:Clone()
- Point.Size = Vector3.new(2,2,.25)
- Point.CFrame = Wave3.CFrame
- Point.Parent = Wave3
- local VEL4 = Instance.new("BodyVelocity")
- VEL4.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- VEL4.Velocity = Character:FindFirstChild("HumanoidRootPart").CFrame.lookVector * 100
- VEL4.Parent = Point
- Point.Touched:connect(function(Hit)
- if Hit.Parent == Character or Hit.Parent.Parent == Character then
- print(Character)
- elseif Hit.Parent ~= Character and Debounce == false then
- local Humanoid = Hit.Parent:FindFirstChild("Humanoid")
- if Humanoid and Debounce == false then
- Debounce = true
- Humanoid.Health = Humanoid.Health - Damage.Value
- end
- local HumanoidRP = Hit.Parent:FindFirstChild("HumanoidRootPart")
- if HumanoidRP then
- local Vel = Instance.new("BodyVelocity")
- Vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- Vel.Velocity = Character:FindFirstChild("HumanoidRootPart").CFrame.lookVector * 50
- Vel.Parent = HumanoidRP
- wait(.5)
- Vel:Destroy()
- end
- wait(.5)
- Debounce = false
- end
- end)
- for i=0,20,1 do
- Wave1.Size = Wave1.Size + Vector3.new(2,2,.5)
- Wave1.Orientation = Wave1.Orientation + Vector3.new(0,0,30)
- Wave2.Size = Wave2.Size + Vector3.new(2,2,.5)
- Wave2.Orientation = Wave2.Orientation + Vector3.new(0,0,30)
- Wave3.Size = Wave3.Size + Vector3.new(2,2,.5)
- Wave3.Orientation = Wave3.Orientation + Vector3.new(0,0,30)
- Point.Size = Point.Size + Vector3.new(.75,.75,.75)
- wait()
- end
- Wave1:Destroy()
- elseif RandomAttack == 2 then
- local Attack2 = Character:FindFirstChild("Humanoid"):LoadAnimation(Punch2)
- Attack2:Play()
- wait(.45)
- local Wave1 = script.WaveOther:Clone()
- Wave1.Size = Vector3.new(8,.2,8)
- Wave1.CFrame = Character:FindFirstChild("RightLowerArm").CFrame * CFrame.new(0,3,0)
- Wave1.Orientation = Character:FindFirstChild("HumanoidRootPart").Orientation + Vector3.new(0,90,0)
- Wave1.Parent = Character:FindFirstChild("RightLowerArm")
- local VEL1 = Instance.new("BodyVelocity")
- VEL1.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- VEL1.Velocity = Character:FindFirstChild("HumanoidRootPart").CFrame.upVector * 10
- VEL1.Parent = Wave1
- local Wave2 = script.WaveOther:Clone()
- Wave2.Size = Vector3.new(6,.2,6)
- Wave2.CFrame = Wave1.CFrame * CFrame.new(0,3,0)
- Wave2.Parent = Wave1
- local VEL2 = Instance.new("BodyVelocity")
- VEL2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- VEL2.Velocity = Character:FindFirstChild("HumanoidRootPart").CFrame.upVector * 10
- VEL2.Parent = Wave2
- local Wave3 = script.WaveOther:Clone()
- Wave3.Size = Vector3.new(4,.2,4)
- Wave3.CFrame = Wave2.CFrame * CFrame.new(0,3,0)
- Wave3.Parent = Wave2
- local VEL3 = Instance.new("BodyVelocity")
- VEL3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- VEL3.Velocity = Character:FindFirstChild("HumanoidRootPart").CFrame.upVector * 10
- VEL3.Parent = Wave3
- Wave1.Touched:connect(function(Hit)
- if Hit.Parent == Character or Hit.Parent.Parent == Character then
- print(Character)
- elseif Hit.Parent ~= Character then
- local Humanoid = Hit.Parent:FindFirstChild("Humanoid")
- if Humanoid then
- local HumanoidRP = Hit.Parent:FindFirstChild("HumanoidRootPart")
- if HumanoidRP then
- local Vel = Instance.new("BodyVelocity")
- Vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- Vel.Velocity = HumanoidRP.CFrame.lookVector * -50
- Vel.Parent = HumanoidRP
- wait(.5)
- Vel:Destroy()
- end
- end
- end
- end)
- for i=0,10,1 do
- Wave1.Size = Wave1.Size + Vector3.new(2,.1,2)
- Wave2.Size = Wave2.Size + Vector3.new(1.5,.1,1.5)
- Wave3.Size = Wave3.Size + Vector3.new(1,.1,1)
- wait()
- end
- Wave1:Destroy()
- local Arm = Character:FindFirstChild("Body Colors")
- Arm.RightArmColor = BrickColor.new("Cocoa")
- end
- wait(2)
- CanPunch = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment