Advertisement
mathmasterphil

Diff Scythe

Feb 22nd, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.02 KB | None | 0 0
  1. local Player = game:service("Players").LocalPlayer
  2. local asset = "http://www.roblox.com/asset/?id="
  3. Stats = {
  4. Energy = 60,
  5. MaxEnergy = 120,
  6. Rage = 120,
  7. MaxRage = 120,
  8. }
  9. pcall(function() Player.Character.WeaponBase:remove() end)
  10. local Model = Instance.new("Model",Player.Character)
  11. Model.Name = "WeaponBase"
  12. local Char = Player.Character
  13. local Larm = Char["Left Arm"]
  14. local Rarm = Char["Right Arm"]
  15. local Lleg = Char["Left Leg"]
  16. local Rleg = Char["Right Leg"]
  17. local Torso = Char.Torso
  18. local Head = Char.Head
  19. local Activ = false
  20. local select = false
  21. local idle = true
  22. function Part(Name, Parent, Func)
  23. local P = Instance.new("Part",Parent)
  24. P.Name = Name
  25. P.CanCollide = false
  26. P.Locked = true
  27. if Func ~= nil then
  28. Func(P)
  29. end
  30. return P
  31. end
  32. local function ComputePos(pos1, pos2)
  33. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  34. return CFrame.new(pos1, pos3)
  35. end
  36. function NewI(Name,Parent,Instanc,Func)
  37. local I = Instance.new(Instanc,Parent)
  38. I.Name = Name
  39. if Func ~= nil then
  40. Func(I)
  41. end
  42. return I
  43. end
  44. function Gui(Name,Type,Parent,Func)
  45. local G = Instance.new(Type,Parent)
  46. G.Name = Name
  47. if Func ~= nil then
  48. Func(G)
  49. end
  50. return G
  51. end
  52. --Arm welds
  53. local TP = Torso
  54. local RP = Part("Ignore",Model,function(v) v.formFactor = "Custom" v.Size = Vector3.new(0.2,0.2,0.2) v:BreakJoints() local Weld = Instance.new("Weld",v) Weld.Part1 = v Weld.Part0 = TP Weld.C1 = CFrame.new(-1.5,-0.5,0) v.Transparency = 0 end)
  55. local LP = Part("Ignore",Model,function(v) v.formFactor = "Custom" v.Size = Vector3.new(0.2,0.2,0.2) v:BreakJoints() local Weld = Instance.new("Weld",v) Weld.Part1 = v Weld.Part0 = TP Weld.C1 = CFrame.new(1.5,-0.5,0) v.Transparency = 0 end)
  56. local RlP = Part("Ignore",Model,function(v) v.formFactor = "Custom" v.Size = Vector3.new(0.2,0.2,0.2) v:BreakJoints() local Weld = Instance.new("Weld",v) Weld.Part1 = v Weld.Part0 = TP Weld.C1 = CFrame.new(-0.5,1.5,0) v.Transparency = 0 end)
  57. local LlP = Part("Ignore",Model,function(v) v.formFactor = "Custom" v.Size = Vector3.new(0.2,0.2,0.2) v:BreakJoints() local Weld = Instance.new("Weld",v) Weld.Part1 = v Weld.Part0 = TP Weld.C1 = CFrame.new(0.5,1.5,0) v.Transparency = 0 end)
  58. local HP = Part("Ignore",Model,function(v) v.formFactor = "Custom" v.Size = Vector3.new(0.2,0.2,0.2) v:BreakJoints() local Weld = Instance.new("Weld",v) Weld.Part1 = v Weld.Part0 = TP Weld.C1 = CFrame.new(0,-1,0) v.Transparency = 0 end)
  59. local RW = NewI("Ignore",RP,"Weld",function(v) v.Part1 = RP v.Part0 = nil v.C0 = CFrame.new(0,0.5,0) end)
  60. local LW = NewI("Ignore",LP,"Weld",function(v) v.Part1 = LP v.Part0 = nil v.C0 = CFrame.new(0,0.5,0) end)
  61. local RlW = NewI("Ignore",RlP,"Weld",function(v) v.Part1 = RlP v.Part0 = nil v.C0 = CFrame.new(0,0.5,0) end)
  62. local LlW = NewI("Ignore",LlP,"Weld",function(v) v.Part1 = LlP v.Part0 = nil v.C0 = CFrame.new(0,0.5,0) end)
  63. local HW = NewI("Ignore",HP,"Weld",function(v) v.Part1 = HP v.Part0 = Head v.C0 = CFrame.new(0,-0.5,0) end)
  64. local TW = Instance.new("BodyGyro")
  65. TW.Name = "Ignore"
  66. TW.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  67. --Prop
  68. local HP = Part("HandleP",Model,function(v) v.BrickColor = BrickColor.new("Really black") v.formFactor = "Custom" v.Size = Vector3.new(0.25,1.5,0.25) v:BreakJoints() local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = Rarm Weld.C1 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90),0,0) local m = Instance.new("CylinderMesh",v) m.Scale = Vector3.new(1,5,1) end)
  69. local HP2 = Part("Handle2",Model,function(v) v.BrickColor = BrickColor.new("Really black") v.formFactor = "Custom" v.Size = Vector3.new(0.2,1.5,0.25) v:BreakJoints() local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP Weld.C1 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0) local m = Instance.new("BlockMesh",v) m.Scale = Vector3.new(1,5,1) end)
  70. local HP3 = Part("Handle3",Model,function(v) v.BrickColor = BrickColor.new("Really black") v.formFactor = "Custom" v.Size = Vector3.new(0.2,1.5,0.25) v:BreakJoints() local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP Weld.C1 = CFrame.new(0,-1.11125*2.5,-0.1)*CFrame.Angles(math.rad(11.25),0,0) local m = Instance.new("BlockMesh",v) m.Scale = Vector3.new(1/2,1,1) end)
  71. local HP4 = Part("Handle4",Model,function(v) v.BrickColor = BrickColor.new("Really black") v.formFactor = "Custom" v.Size = Vector3.new(0.2,1.5,0.25) v:BreakJoints() local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP Weld.C1 = CFrame.new(0,-1.11125*2.5,0.1)*CFrame.Angles(math.rad(-11.25),0,0) local m = Instance.new("BlockMesh",v) m.Scale = Vector3.new(1/2,1,1) end)
  72. local HP5 = Part("Handle5",Model,function(v) v.BrickColor = BrickColor.new("Really black") v.formFactor = "Custom" v.Size = Vector3.new(0.2,1.5,0.25) v:BreakJoints() local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP3 Weld.C1 = CFrame.new(0,-1.11125,-0.1)*CFrame.Angles(math.rad(11.25),0,0) local m = Instance.new("BlockMesh",v) m.Scale = Vector3.new(1/2,1,1) end)
  73. local HP6 = Part("Handle6",Model,function(v) v.BrickColor = BrickColor.new("Really black") v.formFactor = "Custom" v.Size = Vector3.new(0.2,1.5,0.25) v:BreakJoints() local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP5 Weld.C1 = CFrame.new(0,-1.45,-0.145)*CFrame.Angles(math.rad(11.25),0,0) local m = Instance.new("BlockMesh",v) m.Scale = Vector3.new(1/2,1,1) end)
  74. local HP7 = Part("Handle7",Model,function(v) v.BrickColor = BrickColor.new("Light stone grey") v.formFactor = "Custom" v.Size = Vector3.new(0.2,1.5,0.5) v:BreakJoints() v.Reflectance = 0.2 local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP5 Weld.C1 = CFrame.new(0,0,0.25)*CFrame.Angles(0,0,0) local m = Instance.new("BlockMesh",v) m.Scale = Vector3.new(0.499/2,1,1) end)
  75. local HP8 = Part("Handle8",Model,function(v) v.BrickColor = BrickColor.new("Really black") v.formFactor = "Custom" v.Size = Vector3.new(0.2,1.6,0.25) v:BreakJoints() v.Reflectance = 0 local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP6 Weld.C1 = CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(180),0,0) local m = Instance.new("SpecialMesh",v) m.MeshType = "Wedge" m.Scale = Vector3.new(1/2,1,1) end)
  76. local HP9 = Part("Handle9",Model,function(v) v.BrickColor = BrickColor.new("Light stone grey") v.formFactor = "Custom" v.Size = Vector3.new(0.2,1.6,0.6) v:BreakJoints() v.Reflectance = 0.2 local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP8 Weld.C1 = CFrame.new(0,-0.025,-0.176)*CFrame.Angles(0,0,0) local m = Instance.new("SpecialMesh",v) m.MeshType = "Wedge" m.Scale = Vector3.new(0.498/2,1,1) end)
  77. local HP10 = Part("Handle10",Model,function(v) v.BrickColor = BrickColor.new("Light stone grey") v.formFactor = "Custom" v.Size = Vector3.new(0.2,1.35,0.25) v:BreakJoints() v.Reflectance = 0.2 local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP7 Weld.C1 = CFrame.new(0,-0.05,0.275)*CFrame.Angles(math.rad(180-6),0,0) local m = Instance.new("SpecialMesh",v) m.MeshType = "Wedge" m.Scale = Vector3.new(0.499/2,1,1) end)
  78. local HP11 = Part("Handle11",Model,function(v) v.BrickColor = BrickColor.new("Light stone grey") v.formFactor = "Custom" v.Size = Vector3.new(0.2,1.5,0.5) v:BreakJoints() v.Reflectance = 0.2 local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP6 Weld.C1 = CFrame.new(0,0.075,0.25)*CFrame.Angles(0,0,0)local m = Instance.new("BlockMesh",v) m.Scale = Vector3.new(0.498/2,1,1) end)
  79. for i = 1, 6 do
  80. local HP12 = Part("Handle12",Model,function(v) v.BrickColor = BrickColor.new("Bright violet") v.formFactor = "Custom" v.Size = Vector3.new(0.2,0.2,0.2) v:BreakJoints() v.Reflectance = 0.2 local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP Weld.C1 = CFrame.new(0,-1.5+(0.75*i),0)*CFrame.Angles(0,math.rad(45),0) local m = Instance.new("SpecialMesh",v) m.MeshType = "FileMesh" m.MeshId = asset.."9756362" m.Scale = Vector3.new(0.35,0.35,0.35) end)
  81. end
  82. local HPs = HP11
  83. for i = 1, 7 do
  84. local HP13 = Part("Handle13",Model,function(v) v.BrickColor = BrickColor.new("Bright violet") v.formFactor = "Custom" v.Size = Vector3.new(0.2,0.2,0.2) v:BreakJoints() v.Reflectance = 0.2 local Weld = Instance.new("Weld",v) Weld.Name = "Ignore" Weld.Part0 = v Weld.Part1 = HP Weld.C1 = CFrame.new(0,-1.5+(0.75*i),0)*CFrame.Angles(0,0,0) local m = Instance.new("SpecialMesh",v) m.MeshType = "FileMesh" m.MeshId = asset.."9756362" m.Scale = Vector3.new(0.01,1.5,0.35) end)
  85. if i == 7 then
  86. HPs = HP13
  87. end
  88. end
  89. --
  90. function ShowHit(dmg,targ)
  91. local ml = Instance.new("Model",Model)
  92. ml.Name = "-"..dmg
  93. local lbl = Part("Head",ml,function(v) v.BrickColor = BrickColor.new("Bright red") v.formFactor = "Custom" v.Transparency = 0 v.Size = Vector3.new(0.3,0.3,0.3) v.Anchored = true v.CFrame = targ.Torso.CFrame*CFrame.new(math.rad(-1,1),math.rad(-1,1),math.rad(-1,1)) local m = Instance.new("SpecialMesh",v) m.MeshType = "Sphere"end)
  94. local H = Instance.new("Humanoid",ml)
  95. H.MaxHealth = 0
  96. H.Health = 0
  97. coroutine.resume(coroutine.create(function()
  98. for i = 1, 30 do
  99. lbl.CFrame = lbl.CFrame*CFrame.new(0,0.25,0)
  100. wait()
  101. end
  102. ml:remove()
  103. end))
  104. end
  105. function Damage(dmg,mag)
  106. pcall(function()
  107. for _,v in pairs(game:service("Workspace"):children()) do
  108. if v:findFirstChild("Humanoid") ~= nil and v:findFirstChild("Torso") ~= nil then
  109. if (v.Torso.Position - HP10.Position).magnitude<=mag or (v.Torso.Position - HP9.Position).magnitude<=mag or (v.Torso.Position - HP8.Position).magnitude<=mag or (v.Torso.Position - HP11.Position).magnitude<=mag or (v.Torso.Position - HP7.Position).magnitude<=mag then
  110. if v.Name ~= Player.Character.Name then
  111. v.Humanoid.Health = v.Humanoid.Health - dmg
  112. ShowHit(dmg, v)
  113. end
  114. end
  115. end
  116. end
  117. end)
  118. end
  119. --
  120. function Trail(Prt1, Prt2)
  121. local Pos1 = Prt1.Position
  122. local Pos2 = Prt2
  123. local Trl = Part("Trail",Model,function(v) v.BrickColor = BrickColor.new("White") v.formFactor = "Custom" v.Transparency = 0.5 v.Size = Vector3.new(0.2,(Pos1 - Pos2).magnitude,0.2) v.Anchored = true v.CFrame = CFrame.new((Pos1+Pos2)/2,Pos2)*CFrame.Angles(math.rad(90),0,0) Instance.new("CylinderMesh",v) end)
  124. coroutine.resume(coroutine.create(function()
  125. wait(0.25)
  126. Trl:remove()
  127. end))
  128. return Pos1
  129. end
  130. --
  131. local hit = 0
  132. local close = false
  133. function Slash()
  134. if Activ == false then
  135. Activ = true
  136. idle = false
  137. local Last = HP8.CFrame*CFrame.new(0,1,0).p
  138. local Last2 = HPs.CFrame*CFrame.new(0,-1,0).p
  139. local maincf = TW.cframe
  140. for i = 0,1,.125 do
  141. Damage(math.random(0.1,2),3.5)
  142. local Trl = Trail(HP8,Last)
  143. local Trl2 = Trail(HPs,Last2)
  144. Last = Trl
  145. Last2 = Trl2
  146. RW.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-175+55*i),math.rad(75-150*i),math.rad(45+90*i))
  147. LW.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(165-75*i),math.rad(0),math.rad(-45-22.5*i))
  148. TW.cframe = maincf*CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(90*i),0)
  149. HW.C1 = CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(45-0*i),0)
  150. wait(-0.03)
  151. end
  152. close = true
  153. for i = 0,1,.125 do
  154. Damage(math.random(0.1,2),3.5)
  155. local Trl = Trail(HP8,Last)
  156. local Trl2 = Trail(HPs,Last2)
  157. Last = Trl
  158. Last2 = Trl2
  159. RW.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-120+0*i),math.rad(-75-75*i),math.rad(135+0*i))
  160. LW.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(165-75*i),math.rad(0),math.rad(-67.5+0*i))
  161. TW.cframe = maincf*CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(90+90*i),0)
  162. HW.C1 = CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(45-0*i),0)
  163. wait(-0.03)
  164. end
  165.  
  166. hit = 0
  167. idle = true
  168. Activ = false
  169. end
  170. end
  171. function DashStab()
  172. if Activ == false then
  173. Activ = true
  174.  
  175. Activ = false
  176. end
  177. end
  178. --
  179. function Shockwave()
  180. if Activ == false then
  181. Activ = true
  182. Activ = false
  183. end
  184. end
  185. --
  186. if script.Parent.className ~= "HopperBin" then
  187. pcall(function() Player.Backpack.Scimythe:remove() end)
  188. local h = Instance.new("HopperBin", Player.Backpack)
  189. h.Name = "Scimythe"
  190. script.Parent = h
  191. end
  192. local bin = script.Parent
  193. function onSelected(mouse)
  194. TW.Parent = TP
  195. RW.Part0 = Rarm
  196. LW.Part0 = Larm
  197. RlW.Part0 = Rleg
  198. LlW.Part0 = Lleg
  199. select = true
  200. coroutine.wrap(function()
  201. while select == true do
  202. if idle == true then
  203. TW.cframe = ComputePos(TP.Position,mouse.hit.p)*CFrame.Angles(0,math.rad(-45),0)
  204. end
  205. game:service("RunService").Stepped:wait()
  206. end
  207. end)()
  208. for i = 0,1,.075 do
  209. RW.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-175*i),math.rad(75*i),math.rad(45*i))
  210. LW.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(165*i),0,math.rad(-45*i))
  211. HW.C1 = CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(45*i),0)
  212. wait(-0.03)
  213. end
  214. mouse.Move:connect(function()
  215. end)
  216. mouse.Button1Down:connect(function()
  217. if close == true or hit == 0 then
  218. if close == true then
  219. close = false
  220. end
  221. hit = hit + 1
  222. if hit == 1 then
  223. Slash()
  224. end
  225. end
  226. end)
  227. mouse.KeyDown:connect(function(key)
  228. if key == "q" then
  229. if Activ == false then
  230. DashStab()
  231. end
  232. elseif key == "e" then
  233. Shockwave()
  234. end
  235. end)
  236. mouse.KeyUp:connect(function(key)
  237. end)
  238. end
  239. function onDesel(mouse)
  240. select = false
  241. TW.Parent = nil
  242. end
  243. bin.Selected:connect(onSelected)
  244. bin.Deselected:connect(onDesel)
  245. --mediafire gtfo password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement