Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = Instance.new("Tool")
- local Model1 = Instance.new("Model")
- local Part2 = Instance.new("Part")
- local SpecialMesh3 = Instance.new("SpecialMesh")
- local Part4 = Instance.new("Part")
- local SpecialMesh5 = Instance.new("SpecialMesh")
- local Part6 = Instance.new("Part")
- local SpecialMesh7 = Instance.new("SpecialMesh")
- local Part8 = Instance.new("Part")
- local SpecialMesh9 = Instance.new("SpecialMesh")
- local Part10 = Instance.new("Part")
- local SpecialMesh11 = Instance.new("SpecialMesh")
- local Part12 = Instance.new("Part")
- local SpecialMesh13 = Instance.new("SpecialMesh")
- local Part14 = Instance.new("Part")
- local SpecialMesh15 = Instance.new("SpecialMesh")
- local Part16 = Instance.new("Part")
- local SpecialMesh17 = Instance.new("SpecialMesh")
- local Blade = Instance.new("Part")
- local SpecialMesh19 = Instance.new("SpecialMesh")
- local EndPiece = Instance.new("Part")
- local SpecialMesh21 = Instance.new("SpecialMesh")
- local HandGuard = Instance.new("Part")
- local SpecialMesh23 = Instance.new("SpecialMesh")
- local HandGuard2 = Instance.new("Part")
- local SpecialMesh25 = Instance.new("SpecialMesh")
- local Handle = Instance.new("Part")
- local SpecialMesh27 = Instance.new("SpecialMesh")
- local Hilt = Instance.new("Part")
- local SpecialMesh29 = Instance.new("SpecialMesh")
- local Hilt2 = Instance.new("Part")
- local SpecialMesh31 = Instance.new("SpecialMesh")
- local Sheath = Instance.new("Part")
- local SpecialMesh33 = Instance.new("SpecialMesh")
- local Texture34 = Instance.new("Texture")
- local Texture35 = Instance.new("Texture")
- local Texture36 = Instance.new("Texture")
- local Texture37 = Instance.new("Texture")
- local Texture38 = Instance.new("Texture")
- local Texture39 = Instance.new("Texture")
- tool.Name = "Katana"
- tool.Grip = CFrame.new(0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 1)
- Model1.Name = "Cloth"
- Model1.Parent = tool
- Part2.Name = "cloth1"
- Part2.Parent = Model1
- Part2.CFrame = CFrame.new(8.89884567, 2.74100494, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part2.Orientation = Vector3.new(0, 0, -90)
- Part2.Position = Vector3.new(8.89884567, 2.74100494, 2.74181032)
- Part2.Rotation = Vector3.new(0, 0, -90)
- Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part2.Size = Vector3.new(0.420896888, 0.0854082704, 0.242092505)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Really black")
- Part2.CanCollide = false
- Part2.Locked = true
- Part2.Material = Enum.Material.Fabric
- Part2.Reflectance = 0.60000002384186
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Really black")
- SpecialMesh3.Parent = Part2
- SpecialMesh3.MeshId = "rbxassetid://4568296395"
- SpecialMesh3.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh3.TextureId = "rbxassetid://4568343753"
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- Part4.Name = "cloth2"
- Part4.Parent = Model1
- Part4.CFrame = CFrame.new(8.98425388, 2.74100494, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part4.Orientation = Vector3.new(0, 0, -90)
- Part4.Position = Vector3.new(8.98425388, 2.74100494, 2.74181032)
- Part4.Rotation = Vector3.new(0, 0, -90)
- Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part4.Size = Vector3.new(0.420896888, 0.0854082704, 0.242092505)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Really black")
- Part4.CanCollide = false
- Part4.Locked = true
- Part4.Material = Enum.Material.Fabric
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Really black")
- SpecialMesh5.Parent = Part4
- SpecialMesh5.MeshId = "rbxassetid://4568296477"
- SpecialMesh5.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh5.TextureId = "rbxassetid://4568343753"
- SpecialMesh5.MeshType = Enum.MeshType.FileMesh
- Part6.Name = "cloth4"
- Part6.Parent = Model1
- Part6.CFrame = CFrame.new(8.98425388, 3.16128683, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part6.Orientation = Vector3.new(0, 0, -90)
- Part6.Position = Vector3.new(8.98425388, 3.16128683, 2.74181032)
- Part6.Rotation = Vector3.new(0, 0, -90)
- Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part6.Size = Vector3.new(0.41843909, 0.0854082704, 0.242092505)
- Part6.Anchored = true
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Really black")
- Part6.CanCollide = false
- Part6.Locked = true
- Part6.Material = Enum.Material.Fabric
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Really black")
- SpecialMesh7.Parent = Part6
- SpecialMesh7.MeshId = "rbxassetid://4568296667"
- SpecialMesh7.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh7.TextureId = "rbxassetid://4568343753"
- SpecialMesh7.MeshType = Enum.MeshType.FileMesh
- Part8.Name = "cloth3"
- Part8.Parent = Model1
- Part8.CFrame = CFrame.new(8.89884567, 3.16128683, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part8.Orientation = Vector3.new(0, 0, -90)
- Part8.Position = Vector3.new(8.89884567, 3.16128683, 2.74181032)
- Part8.Rotation = Vector3.new(0, 0, -90)
- Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part8.Size = Vector3.new(0.41843909, 0.0854082704, 0.242092505)
- Part8.Anchored = true
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Really black")
- Part8.CanCollide = false
- Part8.Locked = true
- Part8.Material = Enum.Material.Fabric
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Really black")
- SpecialMesh9.Parent = Part8
- SpecialMesh9.MeshId = "rbxassetid://4568296564"
- SpecialMesh9.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh9.TextureId = "rbxassetid://4568343753"
- SpecialMesh9.MeshType = Enum.MeshType.FileMesh
- Part10.Name = "cloth7"
- Part10.Parent = Model1
- Part10.CFrame = CFrame.new(8.89884567, 3.99877858, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part10.Orientation = Vector3.new(0, 0, -90)
- Part10.Position = Vector3.new(8.89884567, 3.99877858, 2.74181032)
- Part10.Rotation = Vector3.new(0, 0, -90)
- Part10.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part10.Size = Vector3.new(0.419053525, 0.0854082704, 0.242092505)
- Part10.Anchored = true
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Really black")
- Part10.CanCollide = false
- Part10.Locked = true
- Part10.Material = Enum.Material.Fabric
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Really black")
- SpecialMesh11.Parent = Part10
- SpecialMesh11.MeshId = "rbxassetid://4568297179"
- SpecialMesh11.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh11.TextureId = "rbxassetid://4568343753"
- SpecialMesh11.MeshType = Enum.MeshType.FileMesh
- Part12.Name = "cloth5"
- Part12.Parent = Model1
- Part12.CFrame = CFrame.new(8.89884567, 3.57972622, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part12.Orientation = Vector3.new(0, 0, -90)
- Part12.Position = Vector3.new(8.89884567, 3.57972622, 2.74181032)
- Part12.Rotation = Vector3.new(0, 0, -90)
- Part12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part12.Size = Vector3.new(0.41843909, 0.0854082704, 0.242092505)
- Part12.Anchored = true
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Really black")
- Part12.CanCollide = false
- Part12.Locked = true
- Part12.Material = Enum.Material.Fabric
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.brickColor = BrickColor.new("Really black")
- SpecialMesh13.Parent = Part12
- SpecialMesh13.MeshId = "rbxassetid://4568296759"
- SpecialMesh13.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh13.TextureId = "rbxassetid://4568343753"
- SpecialMesh13.MeshType = Enum.MeshType.FileMesh
- Part14.Name = "cloth8"
- Part14.Parent = Model1
- Part14.CFrame = CFrame.new(8.98425388, 3.99877858, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part14.Orientation = Vector3.new(0, 0, -90)
- Part14.Position = Vector3.new(8.98425388, 3.99877858, 2.74181032)
- Part14.Rotation = Vector3.new(0, 0, -90)
- Part14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part14.Size = Vector3.new(0.419053525, 0.0854082704, 0.242092505)
- Part14.Anchored = true
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.BrickColor = BrickColor.new("Really black")
- Part14.CanCollide = false
- Part14.Locked = true
- Part14.Material = Enum.Material.Fabric
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.brickColor = BrickColor.new("Really black")
- SpecialMesh15.Parent = Part14
- SpecialMesh15.MeshId = "rbxassetid://4568297272"
- SpecialMesh15.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh15.TextureId = "rbxassetid://4568343753"
- SpecialMesh15.MeshType = Enum.MeshType.FileMesh
- Part16.Name = "cloth6"
- Part16.Parent = Model1
- Part16.CFrame = CFrame.new(8.98425388, 3.57972622, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part16.Orientation = Vector3.new(0, 0, -90)
- Part16.Position = Vector3.new(8.98425388, 3.57972622, 2.74181032)
- Part16.Rotation = Vector3.new(0, 0, -90)
- Part16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part16.Size = Vector3.new(0.41843909, 0.0854082704, 0.242092505)
- Part16.Anchored = true
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.BrickColor = BrickColor.new("Really black")
- Part16.CanCollide = false
- Part16.Locked = true
- Part16.Material = Enum.Material.Fabric
- Part16.TopSurface = Enum.SurfaceType.Smooth
- Part16.brickColor = BrickColor.new("Really black")
- SpecialMesh17.Parent = Part16
- SpecialMesh17.MeshId = "rbxassetid://4568296864"
- SpecialMesh17.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh17.TextureId = "rbxassetid://4568343753"
- SpecialMesh17.MeshType = Enum.MeshType.FileMesh
- Blade.Name = "Blade"
- Blade.Parent = tool
- Blade.CFrame = CFrame.new(8.94124222, 6.77731228, 3.00909495, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Blade.Orientation = Vector3.new(0, 0, -90)
- Blade.Position = Vector3.new(8.94124222, 6.77731228, 3.00909495)
- Blade.Rotation = Vector3.new(0, 0, -90)
- Blade.Color = Color3.new(0.905882, 0.905882, 0.92549)
- Blade.Size = Vector3.new(4.37486982, 0.092781648, 0.729349792)
- Blade.Anchored = true
- Blade.BottomSurface = Enum.SurfaceType.Smooth
- Blade.BrickColor = BrickColor.new("Pearl")
- Blade.CanCollide = false
- Blade.Locked = true
- Blade.Material = Enum.Material.Glass
- Blade.Reflectance = 0.60000002384186
- Blade.TopSurface = Enum.SurfaceType.Smooth
- Blade.brickColor = BrickColor.new("Pearl")
- SpecialMesh19.Parent = Blade
- SpecialMesh19.MeshId = "rbxassetid://4568221814"
- SpecialMesh19.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh19.MeshType = Enum.MeshType.FileMesh
- EndPiece.Name = "EndPiece"
- EndPiece.Parent = tool
- EndPiece.CFrame = CFrame.new(8.94124222, 2.50505638, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- EndPiece.Orientation = Vector3.new(0, 0, -90)
- EndPiece.Position = Vector3.new(8.94124222, 2.50505638, 2.74181032)
- EndPiece.Rotation = Vector3.new(0, 0, -90)
- EndPiece.Color = Color3.new(0.937255, 0.721569, 0.219608)
- EndPiece.Size = Vector3.new(0.0516136326, 0.172659889, 0.252538145)
- EndPiece.Anchored = true
- EndPiece.BottomSurface = Enum.SurfaceType.Smooth
- EndPiece.BrickColor = BrickColor.new("Gold")
- EndPiece.CanCollide = false
- EndPiece.Locked = true
- EndPiece.Material = Enum.Material.Metal
- EndPiece.TopSurface = Enum.SurfaceType.Smooth
- EndPiece.brickColor = BrickColor.new("Gold")
- SpecialMesh21.Parent = EndPiece
- SpecialMesh21.MeshId = "rbxassetid://4568221898"
- SpecialMesh21.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh21.MeshType = Enum.MeshType.FileMesh
- HandGuard.Name = "HandGuard"
- HandGuard.Parent = tool
- HandGuard.CFrame = CFrame.new(8.94124222, 4.42581987, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- HandGuard.Orientation = Vector3.new(0, 0, -90)
- HandGuard.Position = Vector3.new(8.94124222, 4.42581987, 2.74181032)
- HandGuard.Rotation = Vector3.new(0, 0, -90)
- HandGuard.Color = Color3.new(0.937255, 0.721569, 0.219608)
- HandGuard.Size = Vector3.new(0.0553003214, 0.357608765, 0.462679356)
- HandGuard.Anchored = true
- HandGuard.BottomSurface = Enum.SurfaceType.Smooth
- HandGuard.BrickColor = BrickColor.new("Gold")
- HandGuard.CanCollide = false
- HandGuard.Locked = true
- HandGuard.Material = Enum.Material.Metal
- HandGuard.TopSurface = Enum.SurfaceType.Smooth
- HandGuard.brickColor = BrickColor.new("Gold")
- SpecialMesh23.Parent = HandGuard
- SpecialMesh23.MeshId = "rbxassetid://4568307999"
- SpecialMesh23.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh23.MeshType = Enum.MeshType.FileMesh
- HandGuard2.Name = "HandGuard2"
- HandGuard2.Parent = tool
- HandGuard2.CFrame = CFrame.new(8.94124222, 4.42581987, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- HandGuard2.Orientation = Vector3.new(0, 0, -90)
- HandGuard2.Position = Vector3.new(8.94124222, 4.42581987, 2.74181032)
- HandGuard2.Rotation = Vector3.new(0, 0, -90)
- HandGuard2.Color = Color3.new(0.937255, 0.721569, 0.219608)
- HandGuard2.Size = Vector3.new(0.0553003214, 0.462679356, 0.293091714)
- HandGuard2.Anchored = true
- HandGuard2.BottomSurface = Enum.SurfaceType.Smooth
- HandGuard2.BrickColor = BrickColor.new("Gold")
- HandGuard2.CanCollide = false
- HandGuard2.Locked = true
- HandGuard2.Material = Enum.Material.Metal
- HandGuard2.TopSurface = Enum.SurfaceType.Smooth
- HandGuard2.brickColor = BrickColor.new("Gold")
- SpecialMesh25.Parent = HandGuard2
- SpecialMesh25.MeshId = "rbxassetid://4568307893"
- SpecialMesh25.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh25.MeshType = Enum.MeshType.FileMesh
- Handle.Name = "Handle"
- Handle.Parent = tool
- Handle.CFrame = CFrame.new(8.94124222, 3.3701992, 2.74058151, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Handle.Orientation = Vector3.new(0, 0, -90)
- Handle.Position = Vector3.new(8.94124222, 3.3701992, 2.74058151)
- Handle.Rotation = Vector3.new(0, 0, -90)
- Handle.Color = Color3.new(0.458824, 0, 0)
- Handle.Size = Vector3.new(1.67928648, 0.159756482, 0.232875794)
- Handle.Anchored = true
- Handle.BottomSurface = Enum.SurfaceType.Smooth
- Handle.BrickColor = BrickColor.new("Maroon")
- Handle.CanCollide = false
- Handle.Locked = true
- Handle.Material = Enum.Material.Sand
- Handle.TopSurface = Enum.SurfaceType.Smooth
- Handle.brickColor = BrickColor.new("Maroon")
- SpecialMesh27.Parent = Handle
- SpecialMesh27.MeshId = "rbxassetid://4568222002"
- SpecialMesh27.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh27.TextureId = "rbxassetid://4568344218"
- SpecialMesh27.MeshType = Enum.MeshType.FileMesh
- Hilt.Name = "Hilt"
- Hilt.Parent = tool
- Hilt.CFrame = CFrame.new(8.94124222, 4.30354452, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Hilt.Orientation = Vector3.new(0, 0, -90)
- Hilt.Position = Vector3.new(8.94124222, 4.30354452, 2.74181032)
- Hilt.Rotation = Vector3.new(0, 0, -90)
- Hilt.Color = Color3.new(0.937255, 0.721569, 0.219608)
- Hilt.Size = Vector3.new(0.19170779, 0.177575484, 0.256224811)
- Hilt.Anchored = true
- Hilt.BottomSurface = Enum.SurfaceType.Smooth
- Hilt.BrickColor = BrickColor.new("Gold")
- Hilt.CanCollide = false
- Hilt.Locked = true
- Hilt.Material = Enum.Material.Metal
- Hilt.TopSurface = Enum.SurfaceType.Smooth
- Hilt.brickColor = BrickColor.new("Gold")
- SpecialMesh29.Parent = Hilt
- SpecialMesh29.MeshId = "rbxassetid://4568222332"
- SpecialMesh29.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh29.MeshType = Enum.MeshType.FileMesh
- Hilt2.Name = "Hilt2"
- Hilt2.Parent = tool
- Hilt2.CFrame = CFrame.new(8.94124222, 4.52044487, 2.74058151, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Hilt2.Orientation = Vector3.new(0, 0, -90)
- Hilt2.Position = Vector3.new(8.94124222, 4.52044487, 2.74058151)
- Hilt2.Rotation = Vector3.new(0, 0, -90)
- Hilt2.Color = Color3.new(0.937255, 0.721569, 0.219608)
- Hilt2.Size = Vector3.new(0.142551929, 0.106913954, 0.215671256)
- Hilt2.Anchored = true
- Hilt2.BottomSurface = Enum.SurfaceType.Smooth
- Hilt2.BrickColor = BrickColor.new("Gold")
- Hilt2.CanCollide = false
- Hilt2.Locked = true
- Hilt2.Material = Enum.Material.Metal
- Hilt2.TopSurface = Enum.SurfaceType.Smooth
- Hilt2.brickColor = BrickColor.new("Gold")
- SpecialMesh31.Parent = Hilt2
- SpecialMesh31.MeshId = "rbxassetid://4568222411"
- SpecialMesh31.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh31.MeshType = Enum.MeshType.FileMesh
- Sheath.Name = "Sheath"
- Sheath.Parent = tool
- Sheath.CFrame = CFrame.new(8.94124222, 6.81540871, 3.03121519, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Sheath.Orientation = Vector3.new(0, 0, -90)
- Sheath.Position = Vector3.new(8.94124222, 6.81540871, 3.03121519)
- Sheath.Rotation = Vector3.new(0, 0, -90)
- Sheath.Size = Vector3.new(4.71465969, 0.108757302, 0.851624966)
- Sheath.Anchored = true
- Sheath.BottomSurface = Enum.SurfaceType.Smooth
- Sheath.CanCollide = false
- Sheath.Locked = true
- Sheath.Material = Enum.Material.SmoothPlastic
- Sheath.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh33.Parent = Sheath
- SpecialMesh33.MeshId = "rbxassetid://4568222503"
- SpecialMesh33.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
- SpecialMesh33.MeshType = Enum.MeshType.FileMesh
- Texture34.Parent = Sheath
- Texture34.Texture = "rbxassetid://4568344297"
- Texture34.Face = Enum.NormalId.Top
- Texture34.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
- Texture35.Parent = Sheath
- Texture35.Texture = "rbxassetid://4568344297"
- Texture35.Face = Enum.NormalId.Back
- Texture35.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
- Texture36.Parent = Sheath
- Texture36.Texture = "rbxassetid://4568344297"
- Texture36.Face = Enum.NormalId.Bottom
- Texture36.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
- Texture37.Parent = Sheath
- Texture37.Texture = "rbxassetid://4568344297"
- Texture37.Face = Enum.NormalId.Left
- Texture37.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
- Texture38.Parent = Sheath
- Texture38.Texture = "rbxassetid://4568344297"
- Texture38.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
- Texture39.Parent = Sheath
- Texture39.Texture = "rbxassetid://4568344297"
- Texture39.Face = Enum.NormalId.Right
- Texture39.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
- local a1,a2,Trail = Instance.new("Attachment"),Instance.new("Attachment"),Instance.new("Trail")
- a1.Parent = Blade
- a1.Position = Vector3.new(2.188, 0, -0.27)
- a2.Parent = Blade
- a2.Position = Vector3.new(-2.188, 0, 0.36)
- Trail.Parent = Blade
- Trail.Attachment0 = a1
- Trail.Attachment1 = a2
- Trail.LightInfluence = 1
- Trail.Transparency = NumberSequence.new(0.5,1)
- Trail.Lifetime = 1
- Trail.Enabled = false
- --
- local plr = owner
- local char = plr.Character
- local torso = char:FindFirstChild("Torso")
- local rootpart = char:FindFirstChild("HumanoidRootPart")
- local hum = char:FindFirstChildOfClass("Humanoid")
- if not char then warn("Character is missing.") return end
- if hum.RigType ~= Enum.HumanoidRigType.R6 then warn("Character must be R6 to use this script.") return end
- --
- for _,v in pairs(tool:GetDescendants()) do
- if v ~= Handle and v:IsA("Part") then
- v.Anchored = false
- local weld = Instance.new("Weld")
- weld.Part0 = Handle
- weld.Part1 = v
- weld.Parent = v
- weld.C0 = Handle.CFrame:Inverse()
- weld.C1 = v.CFrame:Inverse()
- end
- end
- Handle.Anchored = false
- tool.Parent = plr['Backpack']
- --
- local sheathmodel = nil
- local sheath_handle = nil
- local equipped = false
- local using = false
- local bleeding = false
- local bloody = false
- local damage = math.random(40,60)
- local animval = 1
- local dmg_type = 'slice'
- local swings = {3203891943,3203892072,3203892234,3203892370,3203892588,3203892719}
- local wallhits = {3203893315,3203893704,3203893934}
- --
- local hit = Instance.new("Sound")
- hit.SoundId = 'rbxassetid://3203895449' --3939937734
- hit.Volume = 0.6
- hit.Parent = Blade
- local hit2 = Instance.new("Sound")
- hit2.SoundId = 'rbxassetid://3203894821' --2017482557
- hit2.Volume = 0.6
- hit2.Parent = Blade
- local hit3 = Instance.new("Sound")
- hit3.SoundId = 'rbxassetid://3203895660' --344936319
- hit3.Volume = 0.6
- hit3.Parent = Blade
- local hitwall = Instance.new("Sound")
- hitwall.SoundId = 'rbxassetid://' .. wallhits[math.random(1,#wallhits)]
- hitwall.Volume = 0.6
- hitwall.Parent = Blade
- local swing = Instance.new("Sound")
- swing.SoundId = 'rbxassetid://338586299' --338586299
- swing.Volume = 0.4
- swing.Parent = Blade
- local swing2 = Instance.new("Sound")
- swing2.SoundId = 'rbxassetid://338586318' --338586318
- swing2.Volume = 0.5
- swing2.Parent = Blade
- local swing3 = Instance.new("Sound")
- swing3.SoundId = 'rbxassetid://338586331' --338586331
- swing3.Volume = 0.5
- swing3.Parent = Blade
- local equip = Instance.new("Sound")
- equip.SoundId = 'rbxassetid://274937234'
- equip.Volume = 0.5
- equip.PlaybackSpeed = 1
- equip.Parent = Blade
- local sheathe = Instance.new("Sound")
- sheathe.SoundId = 'rbxassetid://3211793833'
- sheathe.Volume = 0.5
- sheathe.PlaybackSpeed = 1
- sheathe.Parent = Blade
- --[[
- local finish_s = Instance.new("Sound")
- finish_s.SoundId = 'rbxassetid://3203887818'
- finish_s.Volume = 0.6
- finish_s.Parent = Blade
- ]]
- local bleeding = Instance.new("Sound")
- bleeding.SoundId = 'rbxassetid://360007673'
- bleeding.Volume = 0.5
- bleeding.Parent = Blade
- --
- local swing_anims = {33169596,204062532,218504594,186934910}
- local swing_animation = Instance.new("Animation")
- swing_animation.AnimationId = "rbxassetid://" .. swing_anims[math.random(1,#swing_anims)]
- local swing_anim = hum:LoadAnimation(swing_animation)
- --
- local blood_images = {931617584,1663434319,1391189545,4533673847,3236192667,2565888666,612591729,120362139,116830967,122022304,131339257,247766282,121678640,176677800,120361912,176678070,176678086,176677869} --305296807,256293532,148713503,176678030
- local e_s = 1
- function add_decal(f,t,obj)
- spawn(function()
- local texture = Instance.new("Texture")
- texture.Parent = obj
- texture.Face = f
- texture.Texture = 'rbxassetid://' .. t
- if f == 'Left' or f == 'Right' then
- texture.StudsPerTileV = obj.Size.Y + e_s
- if (obj.Size.X > obj.Size.Z) then
- texture.StudsPerTileV = obj.Size.Z + e_s
- elseif (obj.Size.Z > obj.Size.X) then
- texture.StudsPerTileU = obj.Size.X + e_s
- else
- texture.StudsPerTileU = obj.Size.X + e_s
- end
- elseif f == 'Front' or f == 'Back' then
- texture.StudsPerTileV = obj.Size.Y + e_s
- if (obj.Size.X > obj.Size.Z) then
- texture.StudsPerTileV = obj.Size.X + e_s
- elseif (obj.Size.Z > obj.Size.X) then
- texture.StudsPerTileU = obj.Size.Z + e_s
- else
- texture.StudsPerTileU = obj.Size.X + e_s
- end
- elseif f == 'Top' or f == 'Bottom' then
- texture.StudsPerTileV = obj.Size.X + e_s
- texture.StudsPerTileU = obj.Size.Z + e_s
- end
- end)
- end
- function add_blood(obj)
- local t1,t2,t3,t4,t5,t6 = blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)]
- add_decal('Top',t1,obj)
- add_decal('Bottom',t2,obj)
- add_decal('Left',t3,obj)
- add_decal('Right',t4,obj)
- add_decal('Front',t5,obj)
- add_decal('Back',t6,obj)
- end
- function make_bone(obj,targtorso)
- if obj.Name == 'Left Arm' or obj.Name == 'LeftUpperArm' then
- local bone = Instance.new("Part")
- bone.name = 'bone'
- bone.CanCollide = false
- bone.Anchored = false
- bone.CFrame = targtorso.CFrame
- bone.Size = targtorso.Size
- bone.Massless = true
- bone.Locked = true
- local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
- if not exists then
- game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
- game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
- game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
- local weld = Instance.new("Weld")
- weld.Part0 = bone
- weld.Part1 = targtorso
- weld.C1 = CFrame.new(-0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(90))
- weld.Parent = bone
- targtorso.Anchored = false
- bone.Parent = script
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = 'rbxassetid://1076136382'
- mesh.TextureId = 'rbxassetid://1076137938'
- mesh.Scale = Vector3.new(0.03,0.03,0.03)
- mesh.Parent = bone
- --
- local bone = Instance.new("Part")
- bone.Name = 'bone'
- bone.CanCollide = false
- bone.Anchored = false
- bone.CFrame = obj.CFrame
- bone.Size = obj.Size
- bone.Massless = true
- bone.Locked = true
- local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
- if not exists then
- game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
- game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
- game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
- local weld = Instance.new("Weld")
- weld.Part0 = bone
- weld.Part1 = obj
- weld.C1 = CFrame.new(0.13,0.26,0)
- weld.Parent = bone
- obj.Anchored = false
- bone.Parent = script
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = 'rbxassetid://36780032'
- mesh.TextureId = 'rbxassetid://36780292'
- mesh.Parent = bone
- elseif obj.Name == 'Right Arm' or obj.Name == 'RightUpperArm' then
- local bone = Instance.new("Part")
- bone.Name = 'bone'
- bone.CanCollide = false
- bone.Anchored = false
- bone.CFrame = targtorso.CFrame
- bone.Size = targtorso.Size
- bone.Massless = true
- bone.Locked = true
- local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
- if not exists then
- game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
- game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
- game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
- local weld = Instance.new("Weld")
- weld.Part0 = bone
- weld.Part1 = targtorso
- weld.C1 = CFrame.new(0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(-90))
- weld.Parent = bone
- targtorso.Anchored = false
- bone.Parent = script
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = 'rbxassetid://1076136382'
- mesh.TextureId = 'rbxassetid://1076137938'
- mesh.Scale = Vector3.new(0.03,0.03,0.03)
- mesh.Parent = bone
- --
- local bone = Instance.new("Part")
- bone.Name = 'bone'
- bone.CanCollide = false
- bone.Anchored = false
- bone.CFrame = obj.CFrame
- bone.Size = obj.Size
- bone.Massless = true
- bone.Locked = true
- local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
- if not exists then
- game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
- game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
- game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
- local weld = Instance.new("Weld")
- weld.Part0 = bone
- weld.Part1 = obj
- weld.C1 = CFrame.new(-0.13,0.26,0)
- weld.Parent = bone
- obj.Anchored = false
- bone.Parent = script
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = 'rbxassetid://36780156'
- mesh.TextureId = 'rbxassetid://36780292'
- mesh.Parent = bone
- elseif obj.Name == 'Left Leg' or obj.Name == 'LeftUpperLeg' then
- local bone = Instance.new("Part")
- bone.Name = 'bone'
- bone.CanCollide = false
- bone.Anchored = false
- bone.CFrame = targtorso.CFrame
- bone.Size = targtorso.Size
- bone.Massless = true
- bone.Locked = true
- local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
- if not exists then
- game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
- game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
- game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
- local weld = Instance.new("Weld")
- weld.Part0 = bone
- weld.Part1 = targtorso
- weld.C1 = CFrame.new(-0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
- weld.Parent = bone
- targtorso.Anchored = false
- bone.Parent = script
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = 'rbxassetid://1076136382'
- mesh.TextureId = 'rbxassetid://1076137938'
- mesh.Scale = Vector3.new(0.03,0.03,0.03)
- mesh.Parent = bone
- --
- local bone = Instance.new("Part")
- bone.Name = 'bone'
- bone.CanCollide = false
- bone.Anchored = false
- bone.CFrame = obj.CFrame
- bone.Size = obj.Size
- bone.Massless = true
- bone.Locked = true
- local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
- if not exists then
- game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
- game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
- game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
- local weld = Instance.new("Weld")
- weld.Part0 = bone
- weld.Part1 = obj
- weld.C1 = CFrame.new(0,0.09,0.13)
- weld.Parent = bone
- obj.Anchored = false
- bone.Parent = script
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = 'rbxassetid://36780156'
- mesh.TextureId = 'rbxassetid://36780292'
- mesh.Parent = bone
- elseif obj.Name == 'Right Leg' or obj.Name == 'RightUpperLeg' then
- local bone = Instance.new("Part")
- bone.Name = 'bone'
- bone.CanCollide = false
- bone.Anchored = false
- bone.CFrame = targtorso.CFrame
- bone.Size = targtorso.Size
- bone.Massless = true
- bone.Locked = true
- local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
- if not exists then
- game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
- game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
- game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
- local weld = Instance.new("Weld")
- weld.Part0 = bone
- weld.Part1 = targtorso
- weld.C1 = CFrame.new(0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
- weld.Parent = bone
- targtorso.Anchored = false
- bone.Parent = script
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = 'rbxassetid://1076136382'
- mesh.TextureId = 'rbxassetid://1076137938'
- mesh.Scale = Vector3.new(0.03,0.03,0.03)
- mesh.Parent = bone
- --
- local bone = Instance.new("Part")
- bone.Name = 'bone'
- bone.CanCollide = false
- bone.Anchored = false
- bone.CFrame = obj.CFrame
- bone.Size = obj.Size
- bone.Massless = true
- bone.Locked = true
- local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
- if not exists then
- game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
- game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
- game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
- local weld = Instance.new("Weld")
- weld.Part0 = bone
- weld.Part1 = obj
- weld.C1 = CFrame.new(0,0.09,0.13)
- weld.Parent = bone
- obj.Anchored = false
- bone.Parent = script
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = 'rbxassetid://36780195'
- mesh.TextureId = 'rbxassetid://36780292'
- mesh.Parent = bone
- elseif obj.Name == 'Head' then
- local bone = Instance.new("Part")
- bone.Name = 'bone'
- bone.CanCollide = false
- bone.Anchored = false
- bone.CFrame = targtorso.CFrame
- bone.Size = targtorso.Size
- bone.Massless = true
- bone.Locked = true
- local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
- if not exists then
- game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
- game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
- game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
- local weld = Instance.new("Weld")
- weld.Part0 = bone
- weld.Part1 = targtorso
- weld.C1 = CFrame.new(0,0.66,0)
- weld.Parent = bone
- targtorso.Anchored = false
- bone.Parent = script
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = 'rbxassetid://1076136382'
- mesh.TextureId = 'rbxassetid://1076137938'
- mesh.Scale = Vector3.new(0.03,0.03,0.03)
- mesh.Parent = bone
- --
- local bone = Instance.new("Part")
- bone.Name = 'bone'
- bone.CanCollide = false
- bone.Anchored = false
- bone.CFrame = obj.CFrame
- bone.Size = obj.Size
- bone.Massless = true
- bone.Locked = true
- local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
- if not exists then
- game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
- game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
- game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
- local weld = Instance.new("Weld")
- weld.Part0 = bone
- weld.Part1 = obj
- weld.C1 = CFrame.new(0,-0.23,0)*CFrame.Angles(0,math.rad(-90),0)
- weld.Parent = bone
- obj.Anchored = false
- bone.Parent = script
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = 'rbxassetid://1076136382'
- mesh.TextureId = 'rbxassetid://1076137938'
- mesh.Scale = Vector3.new(0.03,0.03,0.03)
- mesh.Parent = bone
- end
- end
- function break_limb(obj,rig,targtorso,targhum,dir)
- if not obj:FindFirstChild('Dismembered') and obj.Name ~= 'Torso' and obj.Name ~= 'HumanoidRootPart' and obj.Name ~= 'UpperTorso' and obj.Name ~= 'LowerTorso' then else return end
- local confirm = Instance.new("ObjectValue")
- confirm.Name = 'Dismembered'
- confirm.Parent = obj
- local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
- if bsc then
- bsc:Destroy()
- end
- bleed2(obj,targhum,false,5,false)
- add_blood(obj)
- make_bone(obj,targtorso)
- local kb = 25
- local bv = Instance.new("BodyVelocity")
- bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity = dir*kb+Vector3.new(0,kb,0)
- bv.Parent = obj
- game:GetService("Debris"):AddItem(bv,0.1)
- if rig == Enum.HumanoidRigType.R6 then
- local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
- if bsc then
- bsc:Destroy()
- end
- for i,v in pairs(targtorso:GetChildren()) do
- if v:IsA("Motor6D") then
- if obj.Name == 'Head' and v.Name == 'Neck' then
- v:Destroy()
- elseif obj.Name == 'Left Arm' and v.Name == 'Left Shouldver' then
- v:Destroy()
- elseif obj.Name == 'Right Arm' and v.Name == 'Right Shoulder' then
- v:Destroy()
- elseif obj.Name == 'Left Leg' and v.Name == 'Left Hip' then
- if obj.Parent:FindFirstChild("Right Leg") then
- targhum.WalkSpeed = targhum.WalkSpeed/2
- else
- targhum.WalkSpeed = 0
- end
- v:Destroy()
- elseif obj.Name == 'Right Leg' and v.Name == 'Right Hip' then
- if obj.Parent:FindFirstChild("Left Leg") then
- targhum.WalkSpeed = targhum.WalkSpeed/2
- else
- targhum.WalkSpeed = 0
- end
- v:Destroy()
- end
- end
- end
- elseif rig == Enum.HumanoidRigType.R15 then
- for i,v in pairs(obj:GetChildren()) do
- if v:IsA("Motor6D") then
- if (obj.Name == 'LeftUpperLeg' and obj.Parent:FindFirstChild("RightUpperLeg")) or (obj.Name == 'RightUpperLeg' and obj.Parent:FindFirstChild("LeftUpperLeg")) then
- targhum.WalkSpeed = targhum.WalkSpeed/2
- elseif obj.Name == 'RightUpperLeg' or obj.Name == 'LeftUpperLeg' then
- targhum.WalkSpeed = 0
- end
- v:Destroy()
- end
- end
- end
- local cb = Instance.new("Part")
- cb.Name = 'limb'
- cb.Transparency = 1
- cb.CanCollide = true
- cb.Anchored = false
- cb.CFrame = obj.CFrame
- cb.Size = obj.Size
- cb.Massless = true
- cb.Locked = true
- local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
- if not exists then
- game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
- end
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
- game:GetService("PhysicsService"):SetPartCollisionGroup(cb,'Limb Collide')
- game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
- local weld = Instance.new("Weld")
- weld.Part0 = cb
- weld.Part1 = obj
- weld.Parent = cb
- obj.Massless = true
- obj.Anchored = false
- cb.Parent = script
- end
- --
- function bleed(p)
- bleeding = true
- local ParticleEmitter0 = Instance.new("ParticleEmitter")
- local ParticleEmitter1 = Instance.new("ParticleEmitter")
- local ParticleEmitter2 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "Blood"
- ParticleEmitter0.Parent = p
- ParticleEmitter0.Speed = NumberRange.new(5, 10)
- ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
- ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
- ParticleEmitter0.Enabled = false
- ParticleEmitter0.LightEmission = 0.40000000596046
- ParticleEmitter0.LightInfluence = 1
- ParticleEmitter0.Texture = "rbxassetid://73547327"
- ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
- ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
- ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
- ParticleEmitter0.LockedToPart = true
- ParticleEmitter0.Rate = 1000
- ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
- ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter0.VelocitySpread = 360
- ParticleEmitter1.Name = "Blood2"
- ParticleEmitter1.Parent = p
- ParticleEmitter1.Speed = NumberRange.new(5, 14)
- ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
- ParticleEmitter1.Enabled = false
- ParticleEmitter1.LightEmission = 0.20000000298023
- ParticleEmitter1.LightInfluence = 1
- ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
- ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
- ParticleEmitter1.ZOffset = 1
- ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
- ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
- ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
- ParticleEmitter1.LockedToPart = true
- ParticleEmitter1.Rate = 1000
- ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter1.VelocitySpread = 360
- ParticleEmitter2.Name = "Blood3"
- ParticleEmitter2.Parent = p
- ParticleEmitter2.Speed = NumberRange.new(3, 7)
- ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
- ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
- ParticleEmitter2.Enabled = false
- ParticleEmitter2.LightEmission = 0.20000000298023
- ParticleEmitter2.LightInfluence = 1
- ParticleEmitter2.Texture = "rbxassetid://241779220"
- ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
- ParticleEmitter2.ZOffset = 0.5
- ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
- ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
- ParticleEmitter2.LockedToPart = true
- ParticleEmitter2.Rate = 1000
- ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
- ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter2.VelocitySpread = 360
- ParticleEmitter0.Enabled = true
- ParticleEmitter1.Enabled = true
- ParticleEmitter2.Enabled = true
- spawn(function()
- game:GetService("Debris"):AddItem(ParticleEmitter0,1)
- game:GetService("Debris"):AddItem(ParticleEmitter1,1)
- game:GetService("Debris"):AddItem(ParticleEmitter2,1)
- wait(.1)
- ParticleEmitter0.Enabled = false
- ParticleEmitter1.Enabled = false
- ParticleEmitter2.Enabled = false
- bleeding = false
- end)
- end
- function Attack()
- if not using and equipped then else return end
- using = true
- Animate('attack')
- wait(0.6)
- tool.Grip = CFrame.new(0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 1)
- hit_wall = false
- using = false
- end
- function Animate(mode)
- if mode == 'attack' then
- animval = animval + 1
- if animval > #swing_anims then animval = 1 end
- swing_animation.AnimationId = "rbxassetid://" .. swing_anims[animval]
- swing_anim = hum:LoadAnimation(swing_animation)
- if animval == 1 then
- dmg_type = 'stab'
- swing.PlaybackSpeed = math.random(95,105)/100
- swing.SoundId = 'rbxassetid://' .. tostring(swings[math.random(1,2)])
- swing:Play()
- swing_anim:Play(.05,1,1) -- front swing
- elseif animval == 2 then
- dmg_type = 'slice'
- tool.Grip = CFrame.new(0, 0, 0, -1, 8.74227766e-08, 0, -8.74227766e-08, -1, 0, 0, 0, 1)
- swing2.PlaybackSpeed = math.random(95,105)/100
- swing2.SoundId = 'rbxassetid://' .. tostring(swings[math.random(3,4)])
- swing2:Play()
- swing_anim:Play(.04,1,1.2) -- left swing
- elseif animval == 3 then
- dmg_type = 'slice'
- swing2.PlaybackSpeed = math.random(95,105)/100
- swing2.SoundId = 'rbxassetid://' .. tostring(swings[math.random(3,4)])
- swing2:Play()
- swing_anim:Play(.04,1,1) -- right swing
- elseif animval == 4 then
- dmg_type = 'slice2'
- swing3.PlaybackSpeed = math.random(95,105)/100
- swing3.SoundId = 'rbxassetid://' .. tostring(swings[math.random(5,6)])
- swing3:Play()
- swing_anim:Play(.04,1,1) -- right 360 spin
- end
- end
- end
- function CheckAlive()
- local result = false
- if (char and char.Parent and plr and plr.Parent and torso and torso.Parent and hum and hum.Parent and hum.Health > 0) then result = true; end
- return result
- end
- function GetChar()
- char = tool.Parent
- plr = game:GetService("Players"):GetPlayerFromCharacter(char)
- torso = char:FindFirstChild("Torso")
- hum = char:FindFirstChildOfClass("Humanoid")
- if (not CheckAlive()) then equipped = false; tool.Parent = workspace; return end
- end
- function Ragdoll(targchar,headless,insta)
- local pc = targchar
- local pc_torso
- for _,obj in pairs(pc:GetDescendants()) do
- obj.Archivable = true
- if obj:IsA("BasePart") or obj:IsA("UnionOperation") then
- obj.Massless = true
- obj.Locked = true
- obj.CanCollide = true
- end
- end
- if pc ~= nil then
- local hum = pc:FindFirstChild'Humanoid'
- local LArm = pc:FindFirstChild'Left Arm'
- local RArm = pc:FindFirstChild'Right Arm'
- local LLeg = pc:FindFirstChild'Left Leg'
- local RLeg = pc:FindFirstChild'Right Leg'
- local torso = pc:FindFirstChild'Torso'
- local head = pc:FindFirstChild'Head'
- local LUA = pc:FindFirstChild'LeftUpperArm'
- local LLA = pc:FindFirstChild'LeftLowerArm'
- local LH = pc:FindFirstChild'LeftHand'
- local RUA = pc:FindFirstChild'RightUpperArm'
- local RLA = pc:FindFirstChild'RightLowerArm'
- local RH = pc:FindFirstChild'RightHand'
- local LUL = pc:FindFirstChild'LeftUpperLeg'
- local LLL = pc:FindFirstChild'LeftLowerLeg'
- local LF = pc:FindFirstChild'LeftFoot'
- local RUL = pc:FindFirstChild'RightUpperLeg'
- local RLL = pc:FindFirstChild'RightLowerLeg'
- local RF = pc:FindFirstChild'RightFoot'
- local UT = pc:FindFirstChild'UpperTorso'
- local LT = pc:FindFirstChild'LowerTorso'
- if hum and LArm and RArm and LLeg and RLeg and head then
- pc_torso = torso
- hum.BreakJointsOnDeath = false
- if insta then
- if hum.RigType==Enum.HumanoidRigType.R6 then
- for _,v in pairs(torso:GetDescendants()) do
- if v:IsA('Motor6D') or v:IsA('Motor') or v:IsA('Weld') then
- v:Destroy()
- end
- end
- local vis = false
- local vis2 = false
- if not LArm:FindFirstChild('Dismembered') then
- local at1 = Instance.new("Attachment")
- at1.Parent = torso
- at1.Visible = vis
- at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
- at1.Position = Vector3.new(-1,1,0)
- local at1p2 = Instance.new("Attachment")
- at1p2.Parent = LArm
- at1p2.Visible = vis
- at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
- at1p2.Position = Vector3.new(.5,1,0)
- local bis = Instance.new("BallSocketConstraint")
- bis.Parent = LArm
- bis.Attachment0 = at1
- bis.Attachment1 = at1p2
- bis.LimitsEnabled = true
- bis.UpperAngle = 15
- bis.Visible = vis2
- bis.TwistLimitsEnabled = true
- bis.UpperAngle = -45
- bis.TwistLowerAngle = -45
- end
- if not RArm:FindFirstChild('Dismembered') then
- local at2 = Instance.new("Attachment")
- at2.Parent = torso
- at2.Visible = vis
- at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
- at2.Position = Vector3.new(1,1,0)
- local at2p2 = Instance.new("Attachment")
- at2p2.Parent = RArm
- at2p2.Visible = vis
- at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
- at2p2.Position = Vector3.new(-.5,1,0)
- local bis2 = Instance.new("BallSocketConstraint")
- bis2.Parent = RArm
- bis2.Attachment0 = at2
- bis2.Attachment1 = at2p2
- bis2.LimitsEnabled = true
- bis2.UpperAngle = 15
- bis2.Visible = vis2
- bis2.TwistLimitsEnabled = true
- bis2.UpperAngle = -45
- bis2.TwistLowerAngle = -45
- end
- if not RLeg:FindFirstChild('Dismembered') then
- local at3 = Instance.new("Attachment")
- at3.Parent = torso
- at3.Visible = vis
- at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
- at3.Position = Vector3.new(.5,-1,0)
- local at3p2 = Instance.new("Attachment")
- at3p2.Parent = RLeg
- at3p2.Visible = vis
- at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
- at3p2.Position = Vector3.new(0,1,0)
- local bis3 = Instance.new("BallSocketConstraint")
- bis3.Parent = RLeg
- bis3.Attachment0 = at3
- bis3.Attachment1 = at3p2
- bis3.LimitsEnabled = true
- bis3.UpperAngle = 180-15
- bis3.Visible = vis2
- end
- if not LLeg:FindFirstChild('Dismembered') then
- local at4 = Instance.new("Attachment")
- at4.Parent = torso
- at4.Visible = vis
- at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
- at4.Position = Vector3.new(-.5,-1,0)
- local at4p2 = Instance.new("Attachment")
- at4p2.Parent = LLeg
- at4p2.Visible = vis
- at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
- at4p2.Position = Vector3.new(0,1,0)
- local bis4 = Instance.new("BallSocketConstraint")
- bis4.Parent = LLeg
- bis4.Attachment0 = at4
- bis4.Attachment1 = at4p2
- bis4.LimitsEnabled = true
- bis4.UpperAngle = 180-15
- bis4.Visible = vis2
- end
- if not headless and not head:FindFirstChild('Dismembered') then
- local at5 = Instance.new("Attachment")
- at5.Parent = torso
- at5.Visible = vis
- at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
- at5.Position = Vector3.new(0,1,0)
- local at5p2 = Instance.new("Attachment")
- at5p2.Parent = head
- at5p2.Visible = vis
- at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
- at5p2.Position = Vector3.new(0,-.5,0)
- local bis5 = Instance.new("BallSocketConstraint")
- bis5.Parent = head
- bis5.Attachment0 = at5p2
- bis5.Attachment1 = at5
- bis5.LimitsEnabled = true
- bis5.UpperAngle = 75
- bis5.Visible = vis2
- bis5.TwistLimitsEnabled = true
- bis5.UpperAngle = -45
- bis5.TwistLowerAngle = -45
- else
- --head:BreakJoints()
- end
- end
- else
- hum.Died:Connect(function()
- if hum.RigType==Enum.HumanoidRigType.R6 then
- for _,v in pairs(torso:GetDescendants()) do
- if v:IsA('Motor6D') or v:IsA('Motor') or v:IsA('Weld') then
- v:Destroy()
- end
- end
- local vis = false
- local vis2 = false
- if not LArm:FindFirstChild('Dismembered') then
- local at1 = Instance.new("Attachment")
- at1.Parent = torso
- at1.Visible = vis
- at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
- at1.Position = Vector3.new(-1,1,0)
- local at1p2 = Instance.new("Attachment")
- at1p2.Parent = LArm
- at1p2.Visible = vis
- at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
- at1p2.Position = Vector3.new(.5,1,0)
- local bis = Instance.new("BallSocketConstraint")
- bis.Parent = LArm
- bis.Attachment0 = at1
- bis.Attachment1 = at1p2
- bis.LimitsEnabled = true
- bis.UpperAngle = 15
- bis.Visible = vis2
- bis.TwistLimitsEnabled = true
- bis.UpperAngle = -45
- bis.TwistLowerAngle = -45
- end
- if not RArm:FindFirstChild('Dismembered') then
- local at2 = Instance.new("Attachment")
- at2.Parent = torso
- at2.Visible = vis
- at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
- at2.Position = Vector3.new(1,1,0)
- local at2p2 = Instance.new("Attachment")
- at2p2.Parent = RArm
- at2p2.Visible = vis
- at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
- at2p2.Position = Vector3.new(-.5,1,0)
- local bis2 = Instance.new("BallSocketConstraint")
- bis2.Parent = RArm
- bis2.Attachment0 = at2
- bis2.Attachment1 = at2p2
- bis2.LimitsEnabled = true
- bis2.UpperAngle = 15
- bis2.Visible = vis2
- bis2.TwistLimitsEnabled = true
- bis2.UpperAngle = -45
- bis2.TwistLowerAngle = -45
- end
- if not RLeg:FindFirstChild('Dismembered') then
- local at3 = Instance.new("Attachment")
- at3.Parent = torso
- at3.Visible = vis
- at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
- at3.Position = Vector3.new(.5,-1,0)
- local at3p2 = Instance.new("Attachment")
- at3p2.Parent = RLeg
- at3p2.Visible = vis
- at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
- at3p2.Position = Vector3.new(0,1,0)
- local bis3 = Instance.new("BallSocketConstraint")
- bis3.Parent = RLeg
- bis3.Attachment0 = at3
- bis3.Attachment1 = at3p2
- bis3.LimitsEnabled = true
- bis3.UpperAngle = 180-15
- bis3.Visible = vis2
- end
- if not LLeg:FindFirstChild('Dismembered') then
- local at4 = Instance.new("Attachment")
- at4.Parent = torso
- at4.Visible = vis
- at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
- at4.Position = Vector3.new(-.5,-1,0)
- local at4p2 = Instance.new("Attachment")
- at4p2.Parent = LLeg
- at4p2.Visible = vis
- at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
- at4p2.Position = Vector3.new(0,1,0)
- local bis4 = Instance.new("BallSocketConstraint")
- bis4.Parent = LLeg
- bis4.Attachment0 = at4
- bis4.Attachment1 = at4p2
- bis4.LimitsEnabled = true
- bis4.UpperAngle = 180-15
- bis4.Visible = vis2
- end
- if not headless and not head:FindFirstChild('Dismembered') then
- local at5 = Instance.new("Attachment")
- at5.Parent = torso
- at5.Visible = vis
- at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
- at5.Position = Vector3.new(0,1,0)
- local at5p2 = Instance.new("Attachment")
- at5p2.Parent = head
- at5p2.Visible = vis
- at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
- at5p2.Position = Vector3.new(0,-.5,0)
- local bis5 = Instance.new("BallSocketConstraint")
- bis5.Parent = head
- bis5.Attachment0 = at5p2
- bis5.Attachment1 = at5
- bis5.LimitsEnabled = true
- bis5.UpperAngle = 75
- bis5.Visible = vis2
- bis5.TwistLimitsEnabled = true
- bis5.UpperAngle = -45
- bis5.TwistLowerAngle = -45
- else
- --head:BreakJoints()
- end
- end
- end)
- end
- elseif head and hum then
- pc_torso = pc:FindFirstChild("HumanoidRootPart")
- hum.BreakJointsOnDeath = false
- if insta then
- if hum.RigType==Enum.HumanoidRigType.R15 then
- for _,v in pairs(pc:GetDescendants()) do
- if v:IsA('Motor6D') or v:IsA('Motor') then
- v:Destroy()
- end
- end
- local vis = false
- local vis2 = false
- if not LF:FindFirstChild('Dismembered') then
- local bsc1 = Instance.new("BallSocketConstraint",LF)
- bsc1.Attachment0 = LF.LeftAnkleRigAttachment
- bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
- end
- if not LLL:FindFirstChild('Dismembered') then
- local bsc2 = Instance.new("BallSocketConstraint",LLL)
- bsc2.Attachment0 = LLL.LeftKneeRigAttachment
- bsc2.Attachment1 = LUL.LeftKneeRigAttachment
- end
- if not LUL:FindFirstChild('Dismembered') then
- local bsc3 = Instance.new("BallSocketConstraint",LUL)
- bsc3.Attachment0 = LUL.LeftHipRigAttachment
- bsc3.Attachment1 = LT.LeftHipRigAttachment
- end
- if not RF:FindFirstChild('Dismembered') then
- local bsc4 = Instance.new("BallSocketConstraint",RF)
- bsc4.Attachment0 = RF.RightAnkleRigAttachment
- bsc4.Attachment1 = RLL.RightAnkleRigAttachment
- end
- if not RLL:FindFirstChild('Dismembered') then
- local bsc5 = Instance.new("BallSocketConstraint",RLL)
- bsc5.Attachment0 = RLL.RightKneeRigAttachment
- bsc5.Attachment1 = RUL.RightKneeRigAttachment
- end
- if not RUL:FindFirstChild('Dismembered') then
- local bsc6 = Instance.new("BallSocketConstraint",RUL)
- bsc6.Attachment0 = RUL.RightHipRigAttachment
- bsc6.Attachment1 = LT.RightHipRigAttachment
- end
- if not LH:FindFirstChild('Dismembered') then
- local bsc7 = Instance.new("BallSocketConstraint",LH)
- bsc7.Attachment0 = LH.LeftWristRigAttachment
- bsc7.Attachment1 = LLA.LeftWristRigAttachment
- end
- if not LLA:FindFirstChild('Dismembered') then
- local bsc8 = Instance.new("BallSocketConstraint",LLA)
- bsc8.Attachment0 = LLA.LeftElbowRigAttachment
- bsc8.Attachment1 = LUA.LeftElbowRigAttachment
- end
- if not LUA:FindFirstChild('Dismembered') then
- local bsc9 = Instance.new("BallSocketConstraint",LUA)
- bsc9.Attachment0 = LUA.LeftShoulderAttachment
- bsc9.Attachment1 = UT.LeftCollarAttachment
- end
- if not RH:FindFirstChild('Dismembered') then
- local bsc10 = Instance.new("BallSocketConstraint",RH)
- bsc10.Attachment0 = RH.RightWristRigAttachment
- bsc10.Attachment1 = RLA.RightWristRigAttachment
- end
- if not RLA:FindFirstChild('Dismembered') then
- local bsc11 = Instance.new("BallSocketConstraint",RLA)
- bsc11.Attachment0 = RLA.RightElbowRigAttachment
- bsc11.Attachment1 = RUA.RightElbowRigAttachment
- end
- if not RUA:FindFirstChild('Dismembered') then
- local bsc12 = Instance.new("BallSocketConstraint",RUA)
- bsc12.Attachment0 = RUA.RightShoulderAttachment
- bsc12.Attachment1 = UT.RightCollarAttachment
- end
- if not LT:FindFirstChild('Dismembered') then
- local bsc13 = Instance.new("BallSocketConstraint",LT)
- bsc13.Attachment0 = LT.WaistRigAttachment
- bsc13.Attachment1 = UT.WaistRigAttachment
- end
- if not headless and not head:FindFirstChild('Dismembered') then
- local bsc14 = Instance.new("BallSocketConstraint",head)
- bsc14.Attachment0 = UT.NeckRigAttachment
- bsc14.Attachment1 = head.NeckRigAttachment
- bsc14.LimitsEnabled = true
- bsc14.UpperAngle = -75
- bsc14.TwistLimitsEnabled = true
- bsc14.UpperAngle = -45
- bsc14.TwistLowerAngle = -45
- else
- --head:BreakJoints()
- end
- end
- else
- hum.Died:Connect(function()
- if hum.RigType==Enum.HumanoidRigType.R15 then
- for _,v in pairs(pc:GetDescendants()) do
- if v:IsA('Motor6D') or v:IsA('Motor') then
- v:Destroy()
- end
- end
- local vis = false
- local vis2 = false
- if not LF:FindFirstChild('Dismembered') then
- local bsc1 = Instance.new("BallSocketConstraint",LF)
- bsc1.Attachment0 = LF.LeftAnkleRigAttachment
- bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
- end
- if not LLL:FindFirstChild('Dismembered') then
- local bsc2 = Instance.new("BallSocketConstraint",LLL)
- bsc2.Attachment0 = LLL.LeftKneeRigAttachment
- bsc2.Attachment1 = LUL.LeftKneeRigAttachment
- end
- if not LUL:FindFirstChild('Dismembered') then
- local bsc3 = Instance.new("BallSocketConstraint",LUL)
- bsc3.Attachment0 = LUL.LeftHipRigAttachment
- bsc3.Attachment1 = LT.LeftHipRigAttachment
- end
- if not RF:FindFirstChild('Dismembered') then
- local bsc4 = Instance.new("BallSocketConstraint",RF)
- bsc4.Attachment0 = RF.RightAnkleRigAttachment
- bsc4.Attachment1 = RLL.RightAnkleRigAttachment
- end
- if not RLL:FindFirstChild('Dismembered') then
- local bsc5 = Instance.new("BallSocketConstraint",RLL)
- bsc5.Attachment0 = RLL.RightKneeRigAttachment
- bsc5.Attachment1 = RUL.RightKneeRigAttachment
- end
- if not RUL:FindFirstChild('Dismembered') then
- local bsc6 = Instance.new("BallSocketConstraint",RUL)
- bsc6.Attachment0 = RUL.RightHipRigAttachment
- bsc6.Attachment1 = LT.RightHipRigAttachment
- end
- if not LH:FindFirstChild('Dismembered') then
- local bsc7 = Instance.new("BallSocketConstraint",LH)
- bsc7.Attachment0 = LH.LeftWristRigAttachment
- bsc7.Attachment1 = LLA.LeftWristRigAttachment
- end
- if not LLA:FindFirstChild('Dismembered') then
- local bsc8 = Instance.new("BallSocketConstraint",LLA)
- bsc8.Attachment0 = LLA.LeftElbowRigAttachment
- bsc8.Attachment1 = LUA.LeftElbowRigAttachment
- end
- if not LUA:FindFirstChild('Dismembered') then
- local bsc9 = Instance.new("BallSocketConstraint",LUA)
- bsc9.Attachment0 = LUA.LeftShoulderAttachment
- bsc9.Attachment1 = UT.LeftCollarAttachment
- end
- if not RH:FindFirstChild('Dismembered') then
- local bsc10 = Instance.new("BallSocketConstraint",RH)
- bsc10.Attachment0 = RH.RightWristRigAttachment
- bsc10.Attachment1 = RLA.RightWristRigAttachment
- end
- if not RLA:FindFirstChild('Dismembered') then
- local bsc11 = Instance.new("BallSocketConstraint",RLA)
- bsc11.Attachment0 = RLA.RightElbowRigAttachment
- bsc11.Attachment1 = RUA.RightElbowRigAttachment
- end
- if not RUA:FindFirstChild('Dismembered') then
- local bsc12 = Instance.new("BallSocketConstraint",RUA)
- bsc12.Attachment0 = RUA.RightShoulderAttachment
- bsc12.Attachment1 = UT.RightCollarAttachment
- end
- if not LT:FindFirstChild('Dismembered') then
- local bsc13 = Instance.new("BallSocketConstraint",LT)
- bsc13.Attachment0 = LT.WaistRigAttachment
- bsc13.Attachment1 = UT.WaistRigAttachment
- end
- if not headless and not head:FindFirstChild('Dismembered') then
- local bsc14 = Instance.new("BallSocketConstraint",head)
- bsc14.Attachment0 = UT.NeckRigAttachment
- bsc14.Attachment1 = head.NeckRigAttachment
- bsc14.LimitsEnabled = true
- bsc14.UpperAngle = -75
- bsc14.TwistLimitsEnabled = true
- bsc14.UpperAngle = -45
- bsc14.TwistLowerAngle = -45
- else
- --head:BreakJoints()
- end
- end
- end)
- end
- end
- end
- return pc,pc_torso
- end
- function Decap(obj)
- local targchar,targhead,targtorso,targhum,killval,hitval
- pcall(function()
- targchar = obj.Parent
- end)
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v and v.Character and obj:IsDescendantOf(v.Character) then
- targchar = v.Character
- end
- end
- pcall(function()
- targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
- end)
- pcall(function()
- targhead = targchar:FindFirstChild("Head")
- end)
- pcall(function()
- targhum = targchar:FindFirstChildOfClass("Humanoid")
- end)
- pcall(function()
- killval = targhum:FindFirstChild("killer")
- end)
- pcall(function()
- hitval = targhum:FindFirstChild("hit " .. targchar.Name .. " with katana by " .. plr.Name)
- end)
- if hum and hum.Health > 0 and targchar and targhead and targtorso and targhum and targhum ~= hum and hum and not killval --[[and not hitval]] and using then
- add_blood(obj)
- if not bloody then
- bloody = true
- add_blood(Blade)
- end
- local dir = ((targtorso.Position-rootpart.Position)*Vector3.new(1,0,1)).Unit
- break_limb(targhead,targhum.RigType,targtorso,targhum,dir)
- break_limb(obj,targhum.RigType,targtorso,targhum,dir)
- targhum:TakeDamage(1/0)
- if 0 > targhum.Health then
- bleeding:Play()
- local fakechar,faketorso
- local tempkillval = Instance.new("ObjectValue",targhum)
- tempkillval.Name = "killer"
- tempkillval.Value = plr
- pcall(function()
- Ragdoll(targchar,true,false)
- end)
- bleed2(targtorso,targhum,true,5,true)
- local kb = 35
- local bv = Instance.new("BodyVelocity")
- bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity = dir*kb+Vector3.new(0,kb,0)
- bv.Parent = targtorso
- game:GetService("Debris"):AddItem(bv,0.1)
- if dmg_type == 'slice' then
- hit.PlaybackSpeed = math.random(9,11)/10
- hit:Play()
- damage = math.random(25,35)
- elseif dmg_type == 'stab' then
- hit2.PlaybackSpeed = math.random(9,11)/10
- hit2:Play()
- damage = math.random(35,55)
- elseif dmg_type == 'slice2' then
- hit3.PlaybackSpeed = math.random(9,11)/10
- hit3:Play()
- damage = 1/0
- end
- --[[
- spawn(function()
- wait(0.25)
- finish_s:Play()
- end)
- ]]
- local decap_bleed = Instance.new("Sound")
- decap_bleed.SoundId = 'rbxassetid://244502094'
- decap_bleed.Volume = 0.5
- decap_bleed.Parent = targtorso
- decap_bleed:Play()
- local decap_head = Instance.new("Sound")
- decap_head.SoundId = 'rbxassetid://1255040462' --222406108
- decap_head.Volume = 1
- decap_head.Parent = targtorso
- decap_head:Play()
- local att = Instance.new("Attachment")
- att.Parent = targtorso
- att.Position = Vector3.new(0,targtorso.Size.Y/2,0)
- local blood_emitter = Instance.new("ParticleEmitter")
- blood_emitter.Name = "Blood2"
- blood_emitter.Parent = att
- blood_emitter.Speed = NumberRange.new(5, 14)
- blood_emitter.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
- blood_emitter.LightEmission = 0.20000000298023
- blood_emitter.LightInfluence = 1
- blood_emitter.Texture = "http://www.roblox.com/asset/?id=134531274"
- blood_emitter.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
- blood_emitter.ZOffset = 0
- blood_emitter.Size = NumberSequence.new(0.12499988079071,0)
- blood_emitter.Acceleration = Vector3.new(0, -20, 0)
- blood_emitter.Lifetime = NumberRange.new(0.5, 1.5)
- blood_emitter.Rate = 100000
- blood_emitter.SpreadAngle = Vector2.new(90, 90)
- blood_emitter.VelocitySpread = 90
- blood_emitter.Enabled = true
- spawn(function()
- wait(5)
- blood_emitter.Enabled = false
- game:GetService("Debris"):AddItem(blood_emitter,2)
- end)
- end
- end
- end
- function bleed2(frick,targhum,can_hurt,t,splat)
- spawn(function()
- if not frick:FindFirstChild("bleeding from kry's " .. tool.Name) then else return end
- local tempbleedval = Instance.new("ObjectValue")
- tempbleedval.Name = "bleeding from kry's " .. tool.Name
- tempbleedval.Parent = frick
- local bleeding = true
- local rig = targhum.RigType
- local limbs = {'Head','Left Arm','Right Arm','Left Leg','Right Leg','RightUpperLeg','LeftUpperLeg','RightUpperArm','LeftUpperArm','RightLowerLeg','LeftLowerLeg','RightLowerArm','LeftLowerArm','RightFoot','LeftFoot','RightHand','LeftHand'}
- spawn(function()
- wait(t)
- bleeding = false
- tempbleedval:Destroy()
- end)
- while bleeding and frick and frick.Parent do
- if --[[(targhum and targhum.Parent and targhum.Health > 0) or]] (not frick or not frick.Parent or not targhum or not targhum.Parent) then
- break
- end
- local max_limbs = 0
- local current_limbs = 0
- local gone_limbs = 0
- local targchar = targhum.Parent
- if rig == Enum.HumanoidRigType.R6 then
- max_limbs = 5
- elseif rig == Enum.HumanoidRigType.R15 then
- max_limbs = 13
- end
- for i,v in pairs(targchar:GetChildren()) do
- local found = false
- for i,n in pairs(limbs) do if n == v.Name then found = true; end; end;
- if found and not v:FindFirstChild("Dismembered") then
- current_limbs = current_limbs + 1
- end
- end
- gone_limbs = (max_limbs-current_limbs)
- if targhum and can_hurt then
- if gone_limbs >= 1 then
- targhum:TakeDamage(0.5*gone_limbs)
- else
- targhum:TakeDamage(0.5)
- end
- end
- spawn(function()
- local thing = Instance.new('Part')
- thing.Parent = workspace
- thing.Size = Vector3.new(0.1,0.1,0.1)
- thing.CFrame = frick.CFrame*CFrame.new(0,frick.Size.Y/2,0)
- if splat then
- thing.Transparency = 0
- elseif not splat then
- thing.Transparency = 1
- end
- thing.Color = Color3.fromRGB(75, 0, 0)
- thing.Material = Enum.Material.Glass
- thing.Name = "blood_drop"
- thing.CanCollide =false
- thing:BreakJoints()
- local mesh = Instance.new('SpecialMesh')
- mesh.MeshType = Enum.MeshType.Sphere
- mesh.Parent = thing
- --game:GetService("Debris"):AddItem(thing,5)
- local att1,att2 = Instance.new("Attachment"),Instance.new("Attachment")
- att1.Parent = thing
- att1.Position = Vector3.new(0,-(thing.Size.Y/2),0)
- att2.Parent = thing
- att2.Position = Vector3.new(0,(thing.Size.Y/2),0)
- if splat then
- local trail_drop = Instance.new("Trail")
- trail_drop.Parent = thing
- trail_drop.Attachment0 = att1
- trail_drop.Attachment1 = att2
- trail_drop.Color = ColorSequence.new(Color3.new(0.294118, 0, 0),Color3.new(0.294118, 0, 0))
- trail_drop.FaceCamera = true
- trail_drop.LightInfluence = 1
- trail_drop.Transparency = NumberSequence.new(0.1,1)
- trail_drop.Lifetime = 1
- trail_drop.MinLength = 0
- end
- local rawrxd = Instance.new('BodyForce')
- rawrxd.Parent = thing
- if splat then
- rawrxd.Force = frick.CFrame.upVector+Vector3.new(math.random(-5, 5)/10,3,math.random(-5, 5)/10)
- elseif not splat then
- rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
- end
- game:GetService("Debris"):AddItem(rawrxd,0.01)
- thing.Touched:connect(function(tou)
- if tou and tou.Parent and not tou:IsDescendantOf(targchar) and not tou.Parent:FindFirstChildOfClass("Humanoid") and not tou.Parent.Parent:FindFirstChildOfClass("Humanoid") and not tou.Parent:IsA("Accessory") and tou.Name ~= 'Handle' and tou.Parent.Name ~= 'Handle' and not tou.Parent:IsA("Tool") and not string.match(tou.Name:lower(),'blood_drop') and not string.match(tou.Name:lower(),'bullet') and not string.match(tou.Name:lower(),'bone') and not string.match(tou.Name:lower(),'gun mag') and not string.match(tou.Name:lower(),'limb') then
- local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+(0.02/2),thing.Position.Z)
- local Point1 = pos-Vector3.new(0.01,0.01,0.01)
- local Point2 = pos+Vector3.new(0.01,0.01,0.01)
- local Region = Region3.new(Point1,Point2)
- for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
- if Part.Name == "blood" then
- tou = Part
- end
- end
- thing:Destroy()
- if tou.Name == "blood" then
- local reee = tou.CFrame
- if tou.Transparency > -0.2 then
- tou.Transparency = tou.Transparency - 0.1
- end
- if tou.Size.X < 5 then
- tou.Size = tou.Size+Vector3.new(0.4,0,0.4)
- tou.CFrame = reee
- elseif tou.Size.X < 7.5 then
- tou.Size = tou.Size+Vector3.new(0.3,0,0.3)
- tou.CFrame = reee
- elseif tou.Size.X < 10 then
- tou.Size = tou.Size+Vector3.new(0.2,0,0.2)
- tou.CFrame = reee
- end
- elseif tou.CanCollide == true then
- local bloodlol = Instance.new('Part')
- if gone_limbs >= 1 then
- bloodlol.Size = Vector3.new(1*gone_limbs,0.2,1*gone_limbs)
- else
- bloodlol.Size = Vector3.new(1,0.2,1)
- end
- bloodlol.Name = "blood"
- bloodlol.Anchored = true
- bloodlol.CanCollide = false
- bloodlol.Material = Enum.Material.Glass
- bloodlol.Color = Color3.fromRGB(75, 0, 0)
- local mesh = Instance.new('SpecialMesh')
- mesh.MeshType = Enum.MeshType.Sphere
- mesh.Parent = bloodlol
- bloodlol.Parent = workspace
- bloodlol.CFrame = CFrame.new(pos)
- while bloodlol and bloodlol.Parent ~= nil do
- if bloodlol.Transparency < 1 then
- bloodlol.Transparency = bloodlol.Transparency + 0.05
- else
- bloodlol:Destroy()
- end
- wait(0.1)
- end
- end
- end
- end)
- end)
- wait(0.1)
- end
- tempbleedval:Destroy()
- end)
- end
- function Damage(obj)
- local targchar,targtorso,targhum,killval,hitval
- pcall(function()
- targchar = obj.Parent
- end)
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v and v.Character and obj:IsDescendantOf(v.Character) then
- targchar = v.Character
- end
- end
- pcall(function()
- targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
- end)
- pcall(function()
- targhum = targchar:FindFirstChildOfClass("Humanoid")
- end)
- pcall(function()
- killval = targhum:FindFirstChild("killer")
- end)
- pcall(function()
- hitval = targhum:FindFirstChild("hit " .. targchar.Name .. " with katana by " .. plr.Name)
- end)
- if targchar and targhum and targhum ~= hum and hum and hum.Health > 0 and not killval and not hitval and using then
- local temphitval = Instance.new("ObjectValue",targhum)
- temphitval.Name = ("hit " .. targchar.Name .. " with katana by " .. plr.Name)
- game:GetService("Debris"):AddItem(temphitval,.6)
- if dmg_type == 'slice' then
- hit.PlaybackSpeed = math.random(9,11)/10
- hit:Play()
- damage = math.random(25,35)
- elseif dmg_type == 'stab' then
- hit2.PlaybackSpeed = math.random(9,11)/10
- hit2:Play()
- damage = math.random(35,55)
- elseif dmg_type == 'slice2' then
- hit3.PlaybackSpeed = math.random(9,11)/10
- hit3:Play()
- damage = 1/0
- end
- --[[
- spawn(function()
- wait(0.25)
- finish_s:Play()
- end)
- ]]
- if targhum.Health > 0 then
- targhum:TakeDamage(damage)
- end
- if 0 >= targhum.Health then
- local tempkillval = Instance.new("ObjectValue",targhum)
- tempkillval.Name = "killer"
- tempkillval.Value = plr
- bleeding:Play()
- pcall(function()
- Ragdoll(targchar,false,false)
- end)
- end
- if not bleeding then
- pcall(function()
- bleed(targtorso)
- end)
- end
- targhum.Died:Connect(function()
- if targchar and targhum and targhum ~= hum and hum and not killval then
- local tempkillval = Instance.new("ObjectValue",targhum)
- tempkillval.Name = "killer"
- tempkillval.Value = plr
- pcall(function()
- Ragdoll(targchar,false,true)
- end)
- end
- end)
- bleed2(targtorso,targhum,true,5,false)
- end
- end
- function Hit_Decide(obj)
- local targpar,targhum,killval,hitval,hitval2
- pcall(function()
- targpar = obj.Parent
- end)
- pcall(function()
- targhum = obj.Parent:FindFirstChildOfClass("Humanoid")
- end)
- pcall(function()
- killval = targhum:FindFirstChild("killer")
- end)
- pcall(function()
- hitval = targhum:FindFirstChild("hit " .. targpar.Name .. " with katana by " .. plr.Name)
- end)
- pcall(function()
- hitval2 = targpar:FindFirstChild("hit with katana by " .. plr.Name)
- end)
- if targpar and using and targhum and targhum.Health > 0 and not killval and not hitval then
- Decap(obj)
- elseif targpar and not hit_wall and using and not targhum and not killval and not hitval and not hitval2 and not obj:FindFirstChild("Dismembered") and not obj.Parent:IsA("Tool") and not obj.Parent:IsA("Accessory") and obj.Parent.Name ~= 'Handle' and not string.match(obj.Name:lower(),'blood') and not string.match(obj.Name:lower(),'bullet') and not string.match(obj.Name:lower(),'limb') then
- hit_wall = true
- local tempval = Instance.new("ObjectValue")
- tempval.Name = ("hit " .. targpar.Name .. " with katana by " .. plr.Name)
- tempval.Parent = targpar
- hitwall.SoundId = 'rbxassetid://' .. wallhits[math.random(1,#wallhits)]
- hitwall:Play()
- end
- end
- function Weld(x,y)
- local W = Instance.new("Weld")
- W.Part0 = x
- W.Part1 = y
- local CJ = CFrame.new(x.Position)
- local C0 = x.CFrame:inverse()*CJ
- local C1 = y.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = y
- end
- function Sheathe(mode)
- if tool.Parent ~= workspace then else sheathmodel:Destroy() return end
- if sheathmodel and sheathmodel.Parent and mode == 2 then
- for _,v in pairs(sheathmodel:GetDescendants()) do
- if v:IsA("Part") and v.Name ~= 'Sheath' then
- v.Transparency = 1
- end
- end
- for _,v in pairs(sheathmodel:GetDescendants()) do
- if v.Name == 'Sheath' then
- v.Transparency = 0
- end
- if v:IsA("Texture") then
- v.Transparency = 0
- end
- end
- for _,v in pairs(Sheath:GetChildren()) do
- if v:IsA("Texture") then
- v.Transparency = 1
- end
- end
- Sheath.Transparency = 1
- elseif sheathmodel and sheathmodel.Parent and mode == 1 then
- for _,v in pairs(sheathmodel:GetDescendants()) do
- if v:IsA("Part") then
- v.Transparency = 0
- end
- end
- else
- if sheathmodel then
- sheathmodel:Destroy()
- end
- sheathmodel = Instance.new("Model")
- for _,v in pairs(tool:GetDescendants()) do
- if v:IsA("Part") then
- local sp = v:Clone()
- if sp.Name == 'Handle' then
- sheath_handle = sp
- end
- local tool_weld = sp:FindFirstChildOfClass("Weld")
- if tool_weld then
- tool_weld:Destroy()
- end
- sp.Parent = sheathmodel
- end
- end
- for _,v in pairs(sheathmodel:GetDescendants()) do
- if v:IsA("Part") then
- if v ~= sheath_handle and v:IsA("Part") then
- Weld(sheath_handle,v)
- end
- end
- end
- if mode == 2 then
- for _,v in pairs(sheathmodel:GetDescendants()) do
- if v:IsA("Part") and v.Name ~= 'Sheath' then
- v.Transparency = 1
- end
- end
- for _,v in pairs(sheathmodel:GetDescendants()) do
- if v.Name == 'Sheath' then
- v.Transparency = 0
- end
- if v:IsA("Texture") then
- v.Transparency = 0
- end
- end
- for _,v in pairs(Sheath:GetChildren()) do
- if v:IsA("Texture") then
- v.Transparency = 1
- end
- end
- Sheath.Transparency = 1
- elseif mode == 1 then
- for _,v in pairs(sheathmodel:GetDescendants()) do
- if v:IsA("Part") then
- v.Transparency = 0
- end
- end
- end
- local weld = Instance.new("Weld")
- weld.Part0 = torso
- weld.Part1 = sheath_handle
- weld.Parent = sheath_handle
- weld.C0 = CFrame.new(-1, -0.2, -1.6)*CFrame.Angles(math.rad(110),math.rad(180),math.rad(-90))
- sheathmodel.Parent = char
- end
- end
- --
- tool.Equipped:Connect(function()
- GetChar()
- equipped = true
- Sheathe(2)
- equip:Play()
- end)
- tool.Unequipped:Connect(function()
- equipped = false
- Sheathe(1)
- swing_anim:Stop()
- --swing:Stop()
- equip:Stop()
- --hit:Stop()
- end)
- tool.Activated:Connect(Attack)
- Blade.Touched:Connect(Hit_Decide)
- Sheathe(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement