Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Machete by DMS same as fire axe just a machete
- o1 = Instance.new("Tool")
- o2 = Instance.new("Part")
- o3 = Instance.new("CylinderMesh")
- o5 = Instance.new("Part")
- o6 = Instance.new("CylinderMesh")
- o7 = Instance.new("Part")
- o8 = Instance.new("SpecialMesh")
- o9 = Instance.new("Part")
- o10 = Instance.new("BlockMesh")
- o11 = Instance.new("Part")
- o12 = Instance.new("BlockMesh")
- o13 = Instance.new("Part")
- o14 = Instance.new("SpecialMesh")
- o15 = Instance.new("Part")
- o16 = Instance.new("SpecialMesh")
- o17 = Instance.new("Part")
- o18 = Instance.new("SpecialMesh")
- o19 = Instance.new("Part")
- o20 = Instance.new("SpecialMesh")
- o21 = Instance.new("Part")
- o22 = Instance.new("CylinderMesh")
- o23 = Instance.new("Part")
- o24 = Instance.new("SpecialMesh")
- o25 = Instance.new("Part")
- o26 = Instance.new("CylinderMesh")
- o27 = Instance.new("Animation")
- o28 = Instance.new("Animation")
- o29 = Instance.new("Animation")
- asd = Instance.new("Sound")
- asds = Instance.new("Sound")
- asd.Name = "Hit"
- asd.Parent = o2
- asd.SoundId = "rbxassetid://214755079"
- asd.Volume = 1
- asds.Name = "SlashSound"
- asds.Parent = o2
- asds.SoundId = "rbxassetid://101164100"
- asds.Volume = 1
- o1.Name = "Machete"
- o1.GripForward = Vector3.new(1, -4.31581502e-005, 3.26636873e-005)
- o1.GripRight = Vector3.new(-3.26636837e-005, 9.29513244e-010, 0.99999994)
- o1.GripUp = Vector3.new(4.31581502e-005, 1, 4.80190998e-010)
- o2.Name = "Handle"
- o2.Parent = o1
- o2.Material = Enum.Material.SmoothPlastic
- o2.BrickColor = BrickColor.new("Black")
- o2.Position = Vector3.new(-12.0166664, 0.944444001, -1.11112702)
- o2.FormFactor = Enum.FormFactor.Symmetric
- o2.Size = Vector3.new(1, 1, 1)
- o2.CFrame = CFrame.new(-12.0166664, 0.944444001, -1.11112702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o3.Parent = o2
- o3.Scale = Vector3.new(0.333333343, 0.833333313, 0.333333343)
- o5.Parent = o1
- o5.Material = Enum.Material.SmoothPlastic
- o5.BrickColor = BrickColor.new("Really black")
- o5.Position = Vector3.new(-12.0166664, 1.38888705, -1.11112702)
- o5.FormFactor = Enum.FormFactor.Symmetric
- o5.Size = Vector3.new(1, 1, 1)
- o5.CFrame = CFrame.new(-12.0166664, 1.38888705, -1.11112702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o6.Parent = o5
- o6.Scale = Vector3.new(0.444444448, 0.055555556, 0.444444448)
- o7.Parent = o1
- o7.Material = Enum.Material.SmoothPlastic
- o7.Position = Vector3.new(-11.7944441, 2.41665602, -1.11112702)
- o7.Rotation = Vector3.new(-90, 0, -90)
- o7.FormFactor = Enum.FormFactor.Symmetric
- o7.Size = Vector3.new(1, 1, 2)
- o7.CFrame = CFrame.new(-11.7944441, 2.41665602, -1.11112702, 0, 1, 0, 0, 0, 1, 1, 0, 0)
- o7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.Parent = o7
- o8.Scale = Vector3.new(0.111111112, 0.166666672, 1)
- o8.MeshType = Enum.MeshType.Wedge
- o9.Parent = o1
- o9.Material = Enum.Material.SmoothPlastic
- o9.Position = Vector3.new(-11.9611101, 3.52775002, -1.11112702)
- o9.FormFactor = Enum.FormFactor.Symmetric
- o9.Size = Vector3.new(1, 1, 1)
- o9.CFrame = CFrame.new(-11.9611101, 3.52775002, -1.11112702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o10.Parent = o9
- o10.Scale = Vector3.new(0.277777791, 0.222222224, 0.111111112)
- o11.Parent = o1
- o11.Material = Enum.Material.SmoothPlastic
- o11.Position = Vector3.new(-11.9888878, 2.41665602, -1.11112702)
- o11.FormFactor = Enum.FormFactor.Symmetric
- o11.Size = Vector3.new(1, 2, 1)
- o11.CFrame = CFrame.new(-11.9888878, 2.41665602, -1.11112702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.Parent = o11
- o12.Scale = Vector3.new(0.222222224, 1, 0.111111112)
- o13.Parent = o1
- o13.Material = Enum.Material.SmoothPlastic
- o13.Position = Vector3.new(-11.7666664, 3.52775002, -1.11112702)
- o13.Rotation = Vector3.new(90, 0, -90)
- o13.FormFactor = Enum.FormFactor.Symmetric
- o13.Size = Vector3.new(1, 1, 1)
- o13.CFrame = CFrame.new(-11.7666664, 3.52775002, -1.11112702, 0, 1, 0, 0, 0, -1, -1, 0, 0)
- o13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o14.Parent = o13
- o14.Scale = Vector3.new(0.111111112, 0.111111112, 0.222222224)
- o14.MeshType = Enum.MeshType.Wedge
- o15.Parent = o1
- o15.Material = Enum.Material.SmoothPlastic
- o15.Position = Vector3.new(-11.9611101, 3.69442606, -1.11112702)
- o15.Rotation = Vector3.new(90, 0, -90)
- o15.FormFactor = Enum.FormFactor.Symmetric
- o15.Size = Vector3.new(1, 1, 1)
- o15.CFrame = CFrame.new(-11.9611101, 3.69442606, -1.11112702, 0, 1, 0, 0, 0, -1, -1, 0, 0)
- o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o16.Parent = o15
- o16.Scale = Vector3.new(0.111111112, 0.277777791, 0.111111112)
- o16.MeshType = Enum.MeshType.Wedge
- o17.Parent = o1
- o17.Material = Enum.Material.SmoothPlastic
- o17.Position = Vector3.new(-12.1277781, 3.33331394, -1.11112702)
- o17.Rotation = Vector3.new(-90, 0, 90)
- o17.FormFactor = Enum.FormFactor.Symmetric
- o17.Size = Vector3.new(1, 1, 1)
- o17.CFrame = CFrame.new(-12.1277781, 3.33331394, -1.11112702, 0, -1, 0, 0, 0, 1, -1, 0, 0)
- o17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o18.Parent = o17
- o18.Scale = Vector3.new(0.111111112, 0.055555556, 0.611111104)
- o18.MeshType = Enum.MeshType.Wedge
- o19.Parent = o1
- o19.Material = Enum.Material.SmoothPlastic
- o19.Position = Vector3.new(-12.1277781, 2.22220802, -1.11112702)
- o19.Rotation = Vector3.new(90, 0, 90)
- o19.FormFactor = Enum.FormFactor.Symmetric
- o19.Size = Vector3.new(1, 1, 2)
- o19.CFrame = CFrame.new(-12.1277781, 2.22220802, -1.11112702, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- o19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o20.Parent = o19
- o20.Scale = Vector3.new(0.111111112, 0.055555556, 0.805555582)
- o20.MeshType = Enum.MeshType.Wedge
- o21.Parent = o1
- o21.Material = Enum.Material.SmoothPlastic
- o21.BrickColor = BrickColor.new("Really black")
- o21.Position = Vector3.new(-12.0166664, 0.50000298, -1.11112702)
- o21.FormFactor = Enum.FormFactor.Symmetric
- o21.Size = Vector3.new(1, 1, 1)
- o21.CFrame = CFrame.new(-12.0166664, 0.50000298, -1.11112702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o21.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o21.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o21.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o21.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o22.Parent = o21
- o22.Scale = Vector3.new(0.388888896, 0.055555556, 0.388888896)
- o23.Parent = o1
- o23.Material = Enum.Material.SmoothPlastic
- o23.Position = Vector3.new(-12.1277781, 3.69442606, -1.11112702)
- o23.Rotation = Vector3.new(90, 0, 90)
- o23.FormFactor = Enum.FormFactor.Symmetric
- o23.Size = Vector3.new(1, 1, 1)
- o23.CFrame = CFrame.new(-12.1277781, 3.69442606, -1.11112702, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- o23.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o23.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o23.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o23.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o23.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o23.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o24.Parent = o23
- o24.Scale = Vector3.new(0.111111112, 0.055555556, 0.111111112)
- o24.MeshType = Enum.MeshType.Wedge
- o25.Name = "CHOPPART"
- o25.Parent = o1
- o25.Material = Enum.Material.SmoothPlastic
- o25.BrickColor = BrickColor.new("Black")
- o25.Transparency = 1
- o25.Position = Vector3.new(-12.0116653, 2.68785763, -1.08112705)
- o25.FormFactor = Enum.FormFactor.Symmetric
- o25.Size = Vector3.new(0.689999998, 2.38999987, 0.200000003)
- o25.CFrame = CFrame.new(-12.0116653, 2.68785763, -1.08112705, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o25.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o25.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o25.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o25.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o25.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o26.Parent = o25
- o26.Scale = Vector3.new(0.333333343, 0.833333313, 0.333333343)
- o27.Name = "Chop"
- o27.Parent = o1
- o27.AnimationId = "rbxassetid://32659699"
- o28.Name = "Slice"
- o28.Parent = o1
- o28.AnimationId = "rbxassetid://28090109"
- o29.Name = "Whack"
- o29.Parent = o1
- o29.AnimationId = "http://www.roblox.com/Asset?ID=94161088"
- o1.Parent = game.Players.LocalPlayer.Backpack
- for i,v in pairs (o1:GetChildren()) do
- if v:IsA("Animation") then
- elseif v:IsA("Sound") then
- else
- v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- v.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- v.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- end
- end
- repeat wait() until o1:FindFirstChild("Handle")
- local Welds = {}
- function ClearOldWelds(tbl)
- for _,v in pairs(tbl) do
- if v:IsA('Weld') then
- v:Destroy()
- end
- end
- end
- function Equipped()
- for i,v in pairs (o1:GetChildren()) do
- if v:IsA("Animation") then
- elseif v:IsA("Sound") then
- else
- v.Anchored = false
- end
- end
- local Handle = o1:FindFirstChild('Handle')
- if not Handle then return end
- local tble = Handle:GetChildren()
- for _,v in pairs(o1:GetChildren()) do
- if v:IsA('Part') or v:IsA('WedgePart') and v ~= Handle then
- local c1
- for _1,v1 in pairs(Welds) do
- if _1 == v then
- c1 = v1
- break
- end
- end
- if not c1 then
- Welds[v] = v.CFrame:inverse()*Handle.CFrame
- v.Anchored = true
- c1 = Welds[v]
- end
- local Weld = Instance.new('Weld')
- Weld.Part0 = Handle
- Weld.Part1 = v
- Weld.C0 = CFrame.new()
- Weld.C1 = c1
- Weld.Parent = Handle
- end
- end
- ClearOldWelds(tble)
- Handle.Anchored=false
- end
- Equipped()
- o1.Equipped:connect(Equipped)
- Tool = o1
- Handle = Tool:WaitForChild("Handle")
- Players = game:GetService("Players")
- Debris = game:GetService("Debris")
- InsertService = game:GetService("InsertService")
- function onEquipped(mouse2)
- mouse2.KeyDown:connect(onkeyDown)
- mouse = mouse2
- end
- o1.Equipped:connect(onEquipped)
- WhackAnim = Tool:WaitForChild("Whack")
- ChopAnim = Tool:WaitForChild("Chop")
- SliceAnim = Tool:WaitForChild("Slice")
- SlashSound = Handle:WaitForChild("SlashSound")
- HitSound = Handle:WaitForChild("Hit")
- Damage = 10
- ReloadTime = .4
- Kills = 0
- function TagHumanoid(humanoid, player) --registers you actually Hitting the guy
- HitSound:Play()
- local Creator_Tag = Instance.new("ObjectValue")
- Creator_Tag.Name = "creator"
- Creator_Tag.Value = player
- Debris:AddItem(Creator_Tag, 2)
- Creator_Tag.Parent = humanoid
- end
- function onkeyDown(key)
- if Tool.Enabled then
- if key == "q" then
- Slice = Humanoid:LoadAnimation(SliceAnim)
- if Slice then
- Slice:Play()
- SlashSound:Play()
- wait(1)
- SlashSound:Play()
- end
- Tool.Enabled = true
- end
- end
- if Tool.Enabled then
- if key == "e" then
- Chop = Humanoid:LoadAnimation(ChopAnim)
- if Chop then
- Chop:Play()
- SlashSound:Play()
- end
- Tool.Enabled = true
- end
- end
- end
- function UntagHumanoid(humanoid)
- for i, v in pairs(humanoid:GetChildren()) do
- if v:IsA("ObjectValue") and v.Name == "creator" then
- v:Destroy()
- end
- end
- end
- function Blow(Hit)
- if Hit.Name == "Head" then
- Hit.Anchored= false Hit.Size = Vector3.new(2, 0.2, 1)
- Hit.BrickColor = BrickColor.new("Maroon")
- o1 = Instance.new("Sound")
- o1.Parent = Hit
- o1.SoundId = "rbxassetid://429400881"
- o1:Play()
- end
- if Hit.Name == "Right Arm" then
- o11.Name = "CHOPPART"
- o11.Parent = workspace
- o11.BrickColor = BrickColor.new("Maroon")
- o11.Position = Hit.Position
- o11.Rotation = Vector3.new(-180, 1.29089606, 180)
- o11.FormFactor = Enum.FormFactor.Symmetric
- o11.Size = Vector3.new(1, 2, 1)
- o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.Color = Color3.new(0.458824, 0, 0)
- Hit:Destroy()
- o1 = Instance.new("Sound")
- o1.Parent = o11
- o1.SoundId = "rbxassetid://429400881"
- o1:Play()
- end
- if Hit.Name == "Left Arm" then
- o11 = Instance.new("Part")
- o11.Name = "GOREPART"
- o11.Parent = workspace
- o11.BrickColor = BrickColor.new("Maroon")
- o11.Position = Hit.Position
- o11.Rotation = Vector3.new(-180, 1.29089606, 180)
- o11.FormFactor = Enum.FormFactor.Symmetric
- o11.Size = Vector3.new(1, 2, 1)
- o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.Color = Color3.new(0.458824, 0, 0)
- Hit:Destroy()
- o1 = Instance.new("Sound")
- o1.Parent = o11
- o1.SoundId = "rbxassetid://429400881"
- o1:Play()
- end
- if Hit.Name == "Right Leg" then
- Hit:Destroy()
- o1 = Instance.new("Sound")
- o1.Parent = o11
- o1.SoundId = "rbxassetid://429400881"
- o1:Play()
- end
- if Hit.Name == "Left Arm" then
- o11 = Instance.new("Part")
- o11.Name = "GOREPART"
- o11.Parent = workspace
- o11.BrickColor = BrickColor.new("Maroon")
- o11.Position = Hit.Position
- o11.Rotation = Vector3.new(-180, 1.29089606, 180)
- o11.FormFactor = Enum.FormFactor.Symmetric
- o11.Size = Vector3.new(1, 2, 1)
- o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.Color = Color3.new(0.458824, 0, 0)
- Hit:Destroy()
- o1 = Instance.new("Sound")
- o1.Parent = o11
- o1.SoundId = "rbxassetid://429400881"
- o1:Play()
- end
- if Hit.Name == "Left Leg" then
- Hit:Destroy()
- o1 = Instance.new("Sound")
- o1.Parent = o11
- o1.SoundId = "rbxassetid://429400881"
- o1:Play()
- end
- if Hit.Name == "Left Arm" then
- o11 = Instance.new("Part")
- o11.Name = "GOREPART"
- o11.Parent = workspace
- o11.BrickColor = BrickColor.new("Maroon")
- o11.Position = Hit.Position
- o11.Rotation = Vector3.new(-180, 1.29089606, 180)
- o11.FormFactor = Enum.FormFactor.Symmetric
- o11.Size = Vector3.new(1, 2, 1)
- o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.Color = Color3.new(0.458824, 0, 0)
- Hit:Destroy()
- o1 = Instance.new("Sound")
- o1.Parent = o11
- o1.SoundId = "rbxassetid://429400881"
- o1:Play()
- end
- if Hit.Name == "Torso" then
- o11 = Instance.new("Part")
- o2 = Instance.new("Part")
- o2.Name = "GOREPART"
- o2.Parent = workspace
- o2.BrickColor = BrickColor.new("Maroon")
- o2.Position = Hit.Position
- o2.Rotation = Vector3.new(-180, 1.29089832, 180)
- o2.CanCollide = true
- o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.Size = Vector3.new(2, 1, 1)
- o2.LeftSurface = Enum.SurfaceType.Weld
- o2.RightSurface = Enum.SurfaceType.Weld
- o2.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o1 = Instance.new("Part")
- o1.Name = "GOREPART"
- o1.Parent = workspace
- o1.BrickColor = BrickColor.new("Maroon")
- o1.Position = Hit.Position
- o1.Rotation = Vector3.new(-180, 1.29089832, 180)
- o1.CanCollide = true
- o1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o1.Size = Vector3.new(2, 1, 1)
- o1.LeftSurface = Enum.SurfaceType.Weld
- o1.RightSurface = Enum.SurfaceType.Weld
- o1.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Hit:Destroy()
- o1 = Instance.new("Sound")
- o1.Parent = o11
- o1.SoundId = "rbxassetid://429400881"
- o1:Play()
- end --registers the Hit, deals damage to the player, and if the humanoid has 0 health a kill is added into the killstreak.
- if Hit and Hit.Parent then
- local character = Hit.Parent
- local humanoid = character:FindFirstChild("Humanoid")
- if Humanoid and Humanoid ~= humanoid and humanoid and Humanoid.Health > 0 and humanoid.Health > 0 then
- local Right_Arm = Character:FindFirstChild("Right Arm")
- if Right_Arm then
- local Joint = Right_Arm:FindFirstChild("RightGrip")
- if (Joint and (Joint.Part0 == Handle or Joint.Part1 == Handle)) then
- humanoid:TakeDamage(Damage) --deal regular damage or instakill normal health players if a ninja
- UntagHumanoid(humanoid)
- TagHumanoid(humanoid, Player)
- end
- end
- end
- end
- end
- function Activated() --when you swing
- if Tool.Enabled then
- Tool.Enabled = false
- Whack = Humanoid:LoadAnimation(WhackAnim)
- if Whack then
- Whack:Play()
- SlashSound:Play()
- end
- wait(ReloadTime)
- Tool.Enabled = true
- end
- end
- function Equipped(mouse) --get everything settled up
- Character = Tool.Parent
- Player = Players:GetPlayerFromCharacter(Character)
- Humanoid = Character:FindFirstChild("Humanoid")
- Torso = Character:FindFirstChild("Torso")
- if not Humanoid or not Torso then
- return
- end
- if not Tool.Enabled then
- wait(ReloadTime)
- Tool.Enabled = true
- end
- end
- function Unequipped()
- if Whack then
- Whack:Stop()
- end
- if Slice then
- Slice:Stop()
- end
- if Chop then
- Chop:Stop()
- end
- end
- Mouse_Icon = "rbxasset://textures/GunCursor.png"
- Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
- Tool = o1
- Mouse = nil
- function UpdateIcon()
- if Mouse then
- Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
- end
- end
- function OnEquipped(ToolMouse)
- Mouse = ToolMouse
- UpdateIcon()
- end
- function OnChanged(Property)
- if Property == "Enabled" then
- UpdateIcon()
- end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Changed:connect(OnChanged)
- Tool.Activated:connect(Activated)
- Tool.Equipped:connect(Equipped)
- Tool.Unequipped:connect(Unequipped)
- Tool.CHOPPART.Touched:connect(Blow)
Add Comment
Please, Sign In to add comment