Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = Instance.new("Tool")
- t.Parent = game.Players.mathmasterphil.Backpack
- t.Name = "Claw"
- local handlee = Instance.new("Part")
- handlee.Name = "Handle"
- handlee.Parent = t
- handlee.BrickColor = BrickColor.new("Really red")
- handlee.Size = Vector3.new(1, 1, 2)
- handlee.TopSurface = "Smooth"
- handlee.BottomSurface = "Smooth"
- handlee.Transparency = 0
- handlee.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = handlee
- m.Scale = Vector3.new(0.2, 0.2, 1)
- -----------------------------------------Brick2
- local brick3 = Instance.new("Part")
- brick3.Name = "Part"
- brick3.Parent = t
- brick3.formFactor = "Plate"
- brick3.BrickColor = BrickColor.new("Really red")
- brick3.Size = Vector3.new(1, 1, 2)
- brick3.TopSurface = "Smooth"
- brick3.BottomSurface = "Smooth"
- brick3.Transparency = 0
- brick3.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = brick3
- m.Scale = Vector3.new(0.2, 0.2, 1)
- -----------------------------------------weld
- w2 = Instance.new("Weld")
- w2.Parent = handlee
- w2.Part0 = brick3
- w2.Part1 = handlee
- w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.3, 0, 0)
- -----------------------------------------Brick2
- local brick4 = Instance.new("Part")
- brick4.Name = "Part"
- brick4.Parent = t
- brick4.formFactor = "Plate"
- brick4.BrickColor = BrickColor.new("Really red")
- brick4.Size = Vector3.new(1, 1, 2)
- brick4.TopSurface = "Smooth"
- brick4.BottomSurface = "Smooth"
- brick4.Transparency = 0
- brick4.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = brick4
- m.Scale = Vector3.new(0.2, 0.2, 1)
- -----------------------------------------weld
- w2 = Instance.new("Weld")
- w2.Parent = handlee
- w2.Part0 = brick4
- w2.Part1 = handlee
- w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0.3, 0, 0)
- ---------------------Part 2
- ---------------------Part 2
- ---------------------Part 2
- r = game:service("RunService")
- local damage = 100000
- local slash_damage = 100000
- sword = brick4
- Tool = t
- function attack()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function lunge()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Lunge"
- 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
- m = math.random(1, 2)
- if m == 1 then
- attack()
- elseif m == 2 then
- lunge()
- end
- wait()
- Tool.Enabled = true
- end
- function onEquipped()
- end
- ------part 3
- ------part 3
- ------part 3
- function onTouched(hit)
- h = hit.Parent:findFirstChild("Humanoid")
- if h ~= nil then
- h:TakeDamage(25)
- end
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- sword.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement