Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Color = 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
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
- if humanoid~=nil and humanoid ~= hum and hum ~= nil then
- -- final check, make sure sword is in-hand
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm ~= nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
- tagHumanoid(humanoid, vPlayer)
- --Fireaxe by DMS, also contains gore
- o1 = Instance.new("Tool")
- o1.Name = "Fire Axe"
- o1.Parent = randomthing
- o1.TextureId = "http://"
- o1.GripForward = Vector3.new(-1, -0, -0)
- o1.GripPos = Vector3.new(0, 0, -1.5)
- o1.GripRight = Vector3.new(0, 1, 0)
- o1.GripUp = Vector3.new(0, 0, 1)
- o8 = Instance.new("Part")
- o8.Name = "Handle3"
- o8.Parent = o1
- o8.BrickColor = BrickColor.new("Bright red")
- o8.Rotation = Vector3.new(0, 0, 90)
- o8.RotVelocity = Vector3.new(1, 1, 1)
- o8.Velocity = Vector3.new(-1.20448732, 1.60594177, -0.401454449)
- o8.CFrame = CFrame.new(14.9719515, 2.20015371, -41.701828, -1.98951966e-013, 0, -1, 1.51524538e-015, 1, 0, 1, 1.51521658e-015, 1.98951966e-013)
- o8.FormFactor = Enum.FormFactor.Plate
- o8.Size = Vector3.new(1, 2.4000001, 1)
- o8.BottomSurface = Enum.SurfaceType.Weld
- o8.RightSurface = Enum.SurfaceType.Weld
- o8.Color = Color3.new(0.768628, 0.156863, 0.109804)
- o9 = Instance.new("SpecialMesh")
- o9.Parent = o8
- o9.Scale = Vector3.new(1, 0.699999988, 0.400000006)
- o9.MeshType = Enum.MeshType.Torso
- o10 = Instance.new("Weld")
- o10.Parent = o8
- o10.Part0 = o8
- o10.Part1 = o5
- o11 = Instance.new("Part")
- o11.Name = "Handle2"
- o11.Parent = o1
- o11.BrickColor = BrickColor.new("Light stone grey")
- o11.Rotation = Vector3.new(-90, -90, 0)
- o11.CFrame = CFrame.new(14.9552279, 1.72465932, -39.4019165, 1.50998545e-007, 1.31134158e-007, -1, 1, -8.74227979e-008, 1.50998531e-007, -8.74227766e-008, -1, -1.31134158e-007)
- o11.Size = Vector3.new(1, 3.60000014, 1)
- o11.TopSurface = Enum.SurfaceType.Weld
- o11.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o12 = Instance.new("SpecialMesh")
- o12.Parent = o11
- o12.Scale = Vector3.new(0.400000006, 1.10000002, 0.400000006)
- o13 = Instance.new("Part")
- o13.Name = "Handle"
- o13.Parent = o1
- o13.BrickColor = BrickColor.new("Light stone grey")
- o13.Transparency = 1
- o13.Rotation = Vector3.new(-90, 0, -90)
- o13.CFrame = CFrame.new(14.9551058, 1.584782, -40.1127167, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- o13.FormFactor = Enum.FormFactor.Plate
- o13.Size = Vector3.new(2, 0.800000012, 4)
- o13.BottomSurface = Enum.SurfaceType.Smooth
- o13.TopSurface = Enum.SurfaceType.Smooth
- o13.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o14 = Instance.new("Weld")
- o14.Parent = o13
- o14.Part0 = o13
- o14.Part1 = o11
- o1.Parent = game.Players.LocalPlayer.Backpack
- local prev
- local parts = o1:GetChildren()
- for i = 1,#parts do
- if (parts[i].className == "Part") then
- if (prev ~= nil)then
- local weld = Instance.new("Weld")
- weld.Part0 = prev
- weld.Part1 = parts[i]
- weld.C0 = prev.CFrame:inverse()
- weld.C1 = parts[i].CFrame:inverse()
- weld.Parent = prev
- end
- prev = parts[i]
- end
- end
- local Tool = o1;
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- enabled = false
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- wait(1)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- Tool.Equipped:connect(onEquippedLocal)
- r = game:service("RunService")
- local damage = 0
- local slash_damage = 14
- sword = o1.Handle
- Tool = o1
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
- SlashSound.Parent = sword
- SlashSound.Volume = 1
- local UnsheathSound = Instance.new("Sound")
- UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
- UnsheathSound.Parent = sword
- UnsheathSound.Volume = 1
- 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 = "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 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
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
- if humanoid~=nil and humanoid ~= hum and hum ~= nil then
- -- final check, make sure sword is in-hand
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm ~= nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
- tagHumanoid(humanoid, vPlayer)
- humanoid:TakeDamage(damage)
- wait(1)
- untagHumanoid(humanoid)
- end
- end
- end
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- function attack()
- damage = slash_damage
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- attack()
- wait(1)
- Tool.Enabled = true
- end
- function onEquipped()
- UnsheathSound:play()
- end
- o1.Activated:connect(onActivated)
- o1.Equipped:connect(onEquipped)
- connection = sword.Touched:connect(blow)
Add Comment
Please, Sign In to add comment