Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mouse = game.Players.LocalPlayer:GetMouse()
- used = false
- attacking = false
- smashing = false
- kick = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
- kick.SoundId = "rbxassetid://507150998"
- kick.Volume = 6
- kick1 = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
- kick1.SoundId = "rbxassetid://169380525"
- kick1.Volume = 6
- kick11 = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
- kick11.SoundId = "rbxassetid://165969964"
- kick11.Volume = 50
- function sensor(key)
- key = key:lower()
- if key == "e" then
- if not used then
- used = true
- local detect = Instance.new("Part", game.Players.LocalPlayer.Character)
- detect.Size = Vector3.new(1,1,4)
- detect:BreakJoints()
- detect.CanCollide = false
- detect.Transparency = 0.9
- detect.BrickColor = BrickColor.new("Really red")
- local weld = Instance.new("Weld", detect)
- weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
- weld.Part1 = detect
- weld.C0 = weld.C0 * CFrame.new(0,-1,0)
- local function attack(part)
- if not attacking then
- attacking = true
- local torso = part.Parent:findFirstChild("Torso")
- if torso ~= nil then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- if humanoid ~= nil then
- local weld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- humanoid.WalkSpeed = 0
- humanoid.JumpPower = 0
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.2)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.2,0,0)
- end
- kick:Play()
- used = true
- local bodyvelocity = Instance.new("BodyVelocity", torso)
- bodyvelocity.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 67
- bodyvelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- wait(1.4)
- local bodyposition = Instance.new("BodyPosition", torso)
- bodyposition.Position = torso.Position
- bodyposition.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bodyvelocity:destroy()
- wait(1)
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.2,0,0)
- end
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.2)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.2,0,0)
- end
- wait(1)
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.1)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.1,0,0)
- end
- local bodypositionme = Instance.new("BodyPosition", game.Players.LocalPlayer.Character.Torso)
- bodypositionme.Position = torso.Position
- bodypositionme.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- wait(1.1)
- for i = 1,5 do
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment