Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mouse = game.Players.LocalPlayer:GetMouse()
- char = game.Players.LocalPlayer.Character
- rig = game.Players.LocalPlayer.Character.Torso
- stik = Instance.new("Part", rig)
- stik.Size = Vector3.new(0.5, 6.5, 0.5)
- stik.BrickColor = BrickColor.new("Burnt Sienna")
- stik.Material = "Wood"
- weld = Instance.new("Weld", stik)
- weld.Part0 = stik
- weld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- stik.CanCollide = false
- weld.C0 = weld.C0 * CFrame.Angles(1.5,0,0)
- weld.C0 = weld.C0 * CFrame.new(0,1.1,1.7)
- local function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- h.Health = h.Health -15
- hit:Play()
- end
- end
- hit = Instance.new("Sound", stik)
- hit.SoundId = "rbxassetid://201858024"
- hit.Volume = 3
- hit1 = Instance.new("Sound", stik)
- hit1.SoundId = "rbxassetid://280667448"
- hit1.Volume = 10
- hit1.Looped = true
- hit1.PlaybackSpeed = 5
- rig.Part.Touched:connect(onTouched)
- function ATTAK(key)
- key = key:lower()
- if key == "q" then
- for i = 1,10 do
- wait()
- weld.C0 = weld.C0 * CFrame.Angles(0,-0.1,0)
- weld.C0 = weld.C0 * CFrame.new(0,0.7,0)
- rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.15)
- rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0,0.15)
- end
- wait(0.1)
- for i = 1,20 do
- wait()
- weld.C0 = weld.C0 * CFrame.Angles(0,-1.5,0)
- end
- for i = 1,20 do
- wait()
- weld.C0 = weld.C0 * CFrame.Angles(0,1.5,0)
- end
- for i = 1,10 do
- wait()
- weld.C0 = weld.C0 * CFrame.Angles(0,0.1,0)
- weld.C0 = weld.C0 * CFrame.new(0,-0.7,0)
- rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,0.15)
- rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.15)
- end
- end
- if key == "e" then
- wait()
- for i = 1,10 do
- wait()
- rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.15)
- end
- wait(0.1)
- for i = 1,5 do
- wait()
- rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0,0.60)
- end
- wait(0.15)
- for i = 1,5 do
- wait()
- rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.30)
- end
- end
- if key == "r" then
- for i = 1,10 do
- wait()
- rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0,0.30)
- end
- wait(1)
- hit1:Play()
- char.Humanoid.WalkSpeed = 23
- char.Humanoid.JumpPower = 0
- for i = 1,125 do
- wait()
- char.Humanoid.CameraOffset = char.Humanoid.CameraOffset + Vector3.new(0,0.1,0)
- weld.C0 = weld.C0 * CFrame.Angles(0,-1.5,0)
- char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0 * CFrame.new(0,0,0.1)
- end
- for i = 1,125 do
- wait()
- weld.C0 = weld.C0 * CFrame.Angles(0,-1.5,0)
- end
- for i = 1,125 do
- wait()
- weld.C0 = weld.C0 * CFrame.Angles(0,1.5,0)
- end
- for i = 1,125 do
- wait()
- char.Humanoid.CameraOffset = char.Humanoid.CameraOffset + Vector3.new(0,-0.1,0)
- weld.C0 = weld.C0 * CFrame.Angles(0,1.5,0)
- char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0 * CFrame.new(0,0,-0.1)
- end
- hit1:Stop()
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.JumpPower = 50
- for i = 1,10 do
- wait()
- rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.30)
- end
- end
- end
- mouse.KeyDown:connect(ATTAK)
- --[[
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- h.Health = h.Health -1
- wait(2.00)
- end
- end
- script.Parent.Touched:connect(onTouched)
- ----------------------------------------------
- for i = 1,5 do
- wait()
- rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0,0.30)
- end
- for i = 1,5 do
- wait()
- rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(-0.35,0,0)
- end
- for i = 1,10 do
- wait()
- rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0.3,0)
- end
- --]]
Add Comment
Please, Sign In to add comment