Advertisement
Friaza

Untitled

Jul 7th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. local Player=script.Parent.Parent
  2. local Character=Player.Character
  3. local Damage = 1
  4. local enabled=true
  5. local enabled2 = true
  6. script.Name = "Hammer"
  7. if Player.StarterGear:FindFirstChild("Hammer") then Player.StarterGear.Hammer:Destroy() script:clone().Parent = Player.StarterGear end
  8. st = Character:GetChildren() for i = 1,#st do if (st[i].ClassName == "Tool" or st[i].Name == "Sword") then st[i]:Destroy() end end
  9. st = Player.Backpack:GetChildren() for i = 1,#st do if st[i].ClassName == "Tool" then st[i]:Destroy() end end
  10. Tool=Instance.new("Tool",Character)
  11. Tool.RequiresHandle=false
  12. Tool.Name = "Haki"
  13. Boost = 1
  14. local x=Instance.new("Part")
  15. x.Size=Vector3.new(0.93, 2, 2.21)
  16. x.TopSurface="Smooth"
  17. x.BottomSurface="Smooth"
  18. x.Name = "Sword"
  19. x.Transparency=0
  20. x.BrickColor=BrickColor.new("Gray")
  21. x.Parent=Character
  22. x.CanCollide=false
  23. local y=Instance.new("SpecialMesh")
  24. y.MeshId="rbxasset://fonts/hammer.mesh"
  25. y.Offset = Vector3.new(0,-1.05,0)
  26. y.Scale = Vector3.new(1,1,1)
  27. y.TextureId = "rbxasset://textures/hammertex128.png"
  28. y.Parent=x
  29. local w1=Instance.new("Weld",Character)
  30. w1.Part0=w1.Parent["Left Arm"]
  31. w1.Part1=x
  32. w1.C1=CFrame.fromEulerAnglesXYZ(-1.4,3.14,0)*CFrame.new(0,0.8,1.7)
  33. Tool2=Instance.new("Tool",Character)
  34. Tool2.RequiresHandle=false
  35. Tool2.Name = "Attack"
  36. canuse = true
  37.  
  38. local function onDamage(Part)
  39. if Part.Parent:FindFirstChild("Humanoid") then
  40. extra = 1
  41. if Part.Name == "Head" then extra = 1.5 Part.Parent.Humanoid.Sit = true end
  42. if Part.Name == "Torso" then extra = 1.3 end
  43. bv = Instance.new("BodyVelocity", Part)
  44. bv.maxForce = Vector3.new(50000,50000,50000)
  45. cc = CFrame.new(x.Position, Part.Position)
  46. game.Debris:AddItem(bv,0.3)
  47. if Boost >= 2 and x.BrickColor == BrickColor.new("Black") then Part.Parent.Humanoid.PlatformStand = true end
  48. bv.velocity = cc.lookVector *((30 *Boost) *extra)
  49. dama = ((Damage *Boost) *extra)
  50. if Damage >= 3 then
  51. print("Haki")
  52. dama = dama *(Part.Parent.Humanoid.MaxHealth /100)
  53. end
  54. Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health -dama
  55. if Boost > 1 then
  56. 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
  57. if x.BrickColor == BrickColor.new("Black") then soundfx.Pitch = soundfx.Pitch -0.2 end
  58. end
  59. wait(0.2)
  60. Part.Parent.Humanoid.Sit = false
  61. Part.Parent.Humanoid.PlatformStand = false
  62. end
  63. end
  64. x.Touched:connect(onDamage)
  65.  
  66. function Transparency(Blade)
  67. if canuse == true then
  68. canuse = false
  69. if enabled==true then
  70. enabled = false
  71. x.BrickColor=BrickColor.new("Black")
  72. 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
  73. for i = 1, 25 do
  74. Damage = Damage +3/25
  75. Boost = Boost +1/25
  76. y.VertexColor = y.VertexColor -Vector3.new(0.69/20,0.68/20,0.65/25)
  77. x.Reflectance = x.Reflectance -(0.2/25)
  78. wait()
  79. end
  80. else
  81. for i = 1, 25 do
  82. Damage = Damage -3/25
  83. Boost = Boost -1/25
  84. y.VertexColor = y.VertexColor +Vector3.new(0.72/20,0.7/20,0.65/25)
  85. x.Reflectance = x.Reflectance +(0.2/25)
  86. wait()
  87. end
  88. enabled = true
  89. end
  90. wait()
  91. canuse = true
  92. end
  93. end
  94. Tool.Activated:connect(Transparency)
  95.  
  96.  
  97. function Slash()
  98. if enabled2==true then
  99. enabled2 = false
  100. la = Character.Torso["Left Shoulder"]
  101. Boost = 1.5
  102. for i = 1, 6 do
  103. Character.Humanoid.WalkSpeed = 35
  104. la.C0 = la.C0 *CFrame.Angles(0,0,-0.4)
  105. wait()
  106. end
  107. Boost = 1.4
  108. for i = 1, 8 do
  109. Character.Humanoid.WalkSpeed = 40
  110. la.C0 = la.C0 *CFrame.Angles(0,0,-0.1)
  111. wait()
  112. end
  113. wait(0.1)
  114. Character.Humanoid.WalkSpeed = 35
  115. Boost = 2
  116. for i = 1, 4 do
  117. la.C0 = la.C0 *CFrame.Angles(0,0,0.8)
  118. wait()
  119. end
  120. Character.Humanoid.WalkSpeed = 27
  121. Boost = 1.2
  122. wait(0.1)
  123. Boost = 1
  124. wait()
  125. enabled2 = true
  126. end
  127. end
  128. Tool2.Activated:connect(Slash)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement