Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player=script.Parent.Parent
- local Character=Player.Character
- local Damage = 1
- local enabled=true
- local enabled2 = true
- script.Name = "Hammer"
- if Player.StarterGear:FindFirstChild("Hammer") then Player.StarterGear.Hammer:Destroy() script:clone().Parent = Player.StarterGear end
- st = Character:GetChildren() for i = 1,#st do if (st[i].ClassName == "Tool" or st[i].Name == "Sword") then st[i]:Destroy() end end
- st = Player.Backpack:GetChildren() for i = 1,#st do if st[i].ClassName == "Tool" then st[i]:Destroy() end end
- Tool=Instance.new("Tool",Character)
- Tool.RequiresHandle=false
- Tool.Name = "Haki"
- Boost = 1
- local x=Instance.new("Part")
- x.Size=Vector3.new(0.93, 2, 2.21)
- x.TopSurface="Smooth"
- x.BottomSurface="Smooth"
- x.Name = "Sword"
- x.Transparency=0
- x.BrickColor=BrickColor.new("Gray")
- x.Parent=Character
- x.CanCollide=false
- local y=Instance.new("SpecialMesh")
- y.MeshId="rbxasset://fonts/hammer.mesh"
- y.Offset = Vector3.new(0,-1.05,0)
- y.Scale = Vector3.new(1,1,1)
- y.TextureId = "rbxasset://textures/hammertex128.png"
- y.Parent=x
- local w1=Instance.new("Weld",Character)
- w1.Part0=w1.Parent["Left Arm"]
- w1.Part1=x
- w1.C1=CFrame.fromEulerAnglesXYZ(-1.4,3.14,0)*CFrame.new(0,0.8,1.7)
- Tool2=Instance.new("Tool",Character)
- Tool2.RequiresHandle=false
- Tool2.Name = "Attack"
- canuse = true
- local function onDamage(Part)
- if Part.Parent:FindFirstChild("Humanoid") then
- extra = 1
- if Part.Name == "Head" then extra = 1.5 Part.Parent.Humanoid.Sit = true end
- if Part.Name == "Torso" then extra = 1.3 end
- bv = Instance.new("BodyVelocity", Part)
- bv.maxForce = Vector3.new(50000,50000,50000)
- cc = CFrame.new(x.Position, Part.Position)
- game.Debris:AddItem(bv,0.3)
- if Boost >= 2 and x.BrickColor == BrickColor.new("Black") then Part.Parent.Humanoid.PlatformStand = true end
- bv.velocity = cc.lookVector *((30 *Boost) *extra)
- dama = ((Damage *Boost) *extra)
- if Damage >= 3 then
- print("Haki")
- dama = dama *(Part.Parent.Humanoid.MaxHealth /100)
- end
- Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health -dama
- if Boost > 1 then
- soundfx = Instance.new("Sound", x) soundfx.SoundId = "http://www.roblox.com/asset/?id=331104871" soundfx:Play() game.Debris:AddItem(soundfx,1) soundfx.Volume = 0.1
- if x.BrickColor == BrickColor.new("Black") then soundfx.Pitch = soundfx.Pitch -0.2 end
- end
- wait(0.2)
- Part.Parent.Humanoid.Sit = false
- Part.Parent.Humanoid.PlatformStand = false
- end
- end
- x.Touched:connect(onDamage)
- function Transparency(Blade)
- if canuse == true then
- canuse = false
- if enabled==true then
- enabled = false
- x.BrickColor=BrickColor.new("Black")
- soundfx = Instance.new("Sound", x) soundfx.SoundId = "http://www.roblox.com/asset/?id=315030459" soundfx:Play() game.Debris:AddItem(soundfx,1) soundfx.Volume = 0.1
- for i = 1, 25 do
- Damage = Damage +3/25
- Boost = Boost +1/25
- y.VertexColor = y.VertexColor -Vector3.new(0.69/20,0.68/20,0.65/25)
- x.Reflectance = x.Reflectance -(0.2/25)
- wait()
- end
- else
- for i = 1, 25 do
- Damage = Damage -3/25
- Boost = Boost -1/25
- y.VertexColor = y.VertexColor +Vector3.new(0.72/20,0.7/20,0.65/25)
- x.Reflectance = x.Reflectance +(0.2/25)
- wait()
- end
- enabled = true
- end
- wait()
- canuse = true
- end
- end
- Tool.Activated:connect(Transparency)
- function Slash()
- if enabled2==true then
- enabled2 = false
- la = Character.Torso["Left Shoulder"]
- Boost = 1.5
- for i = 1, 6 do
- Character.Humanoid.WalkSpeed = 35
- la.C0 = la.C0 *CFrame.Angles(0,0,-0.4)
- wait()
- end
- Boost = 1.4
- for i = 1, 8 do
- Character.Humanoid.WalkSpeed = 40
- la.C0 = la.C0 *CFrame.Angles(0,0,-0.1)
- wait()
- end
- wait(0.1)
- Character.Humanoid.WalkSpeed = 35
- Boost = 2
- for i = 1, 4 do
- la.C0 = la.C0 *CFrame.Angles(0,0,0.8)
- wait()
- end
- Character.Humanoid.WalkSpeed = 27
- Boost = 1.2
- wait(0.1)
- Boost = 1
- wait()
- enabled2 = true
- end
- end
- Tool2.Activated:connect(Slash)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement