AlphaSploit

Wood staff

Mar 3rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.55 KB | None | 0 0
  1. Me = game.Players.LocalPlayer
  2. char = Me.Character
  3. Torso = char.Torso
  4. Rarm = char["Right Arm"]
  5. Larm = char["Left Arm"]
  6.  
  7. for _,v in pairs(char:GetChildren()) do
  8. if v.className == "Hat" then
  9. v:remove()
  10. end
  11. end
  12.  
  13. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  14. part.Parent = parent
  15. part.formFactor = form
  16. part.CanCollide = collide
  17. part.Transparency = tran
  18. part.Reflectance = ref
  19. part.Size = Vector3.new(x,y,z)
  20. part.BrickColor = BrickColor.new(color)
  21. part.TopSurface = 0
  22. part.BottomSurface = 0
  23. part.Anchored = anchor
  24. part.Locked = true
  25. part:BreakJoints()
  26. end
  27. function mesh(mesh, parent, x, y, z, type)
  28. mesh.Parent = parent
  29. mesh.Scale = Vector3.new(x, y, z)
  30. if mesh.className == "SpecialMesh" then
  31. mesh.MeshType = type
  32. end
  33. end
  34. function wel(weld, x, y, z, parent, part, parta, xx, yy, zz)
  35. local wel = weld
  36. wel.Parent = parent
  37. wel.Part0 = part
  38. wel.Part1 = parta
  39. wel.C1 = CFrame.new(x, y, z) * CFrame.Angles(xx, yy, zz)
  40. end
  41.  
  42. pcall(function() char[":P"]:remove() end)
  43. pcall(function() char["staff"]:remove() end)
  44.  
  45. local Model = Instance.new("Model",char)
  46. Model.Name = ":P"
  47. local Model2 = Instance.new("Model",char)
  48. Model2.Name = "staff"
  49.  
  50. local RAB = Instance.new("Part") -- Right Arm Brick
  51. RAB.formFactor = "Custom"
  52. RAB.Size = Vector3.new(0.2, 0.2, 0.2)
  53. RAB.Transparency = 1
  54. RAB.Parent = Model
  55. RAB:BreakJoints()
  56.  
  57. local RABW = Instance.new("Weld",RAB) -- Right Arm Brick Weld
  58. RABW.Part0 = Torso
  59. RABW.Part1 = RAB
  60. RABW.C1 = CFrame.new(-1.5, -0.5, 0)
  61.  
  62. local LAB = Instance.new("Part") -- Right Arm Brick
  63. LAB.formFactor = "Custom"
  64. LAB.Size = Vector3.new(0.2, 0.2, 0.2)
  65. LAB.Transparency = 1
  66. LAB.Parent = Model
  67. LAB:BreakJoints()
  68.  
  69. local LABW = Instance.new("Weld",LAB) -- Left Arm Brick Weld
  70. LABW.Part0 = Torso
  71. LABW.Part1 = LAB
  72. LABW.C1 = CFrame.new(1.5, -0.5, 0)
  73.  
  74. local RAW = Instance.new("Weld",RAB) -- Right Arm Weld
  75. RAW.Part0 = RAB
  76. RAW.Part1 = nil
  77. RAW.C1 = CFrame.new(0, 0.5, 0)
  78.  
  79. local LAW = Instance.new("Weld",LAB) -- Left Arm Weld
  80. LAW.Part0 = LAB
  81. LAW.Part1 = nil
  82. LAW.C1 = CFrame.new(0, 0.5, 0)
  83. --http://www.roblox.com/asset/?id=36755354
  84. local robe = Instance.new("Part")
  85. prop(robe, Model2, false, 0, 0, 2.1, 2.1, 1.1, "Reddish brown", false, "Custom")
  86. robe.Material = "Wood"
  87. local robew = Instance.new("Weld")
  88. wel(robew, 0, 0, 0, robe, robe, Torso, 0, 0, 0)
  89. local robe2 = Instance.new("Part")
  90. prop(robe2, Model2, false, 0, 0, 1.1, 2.1, 1.1, "Reddish brown", false, "Custom")
  91. robe2.Material = "Wood"
  92. local robe2w = Instance.new("Weld")
  93. wel(robe2w, 0, 0, 0, robe2, robe2, char["Right Leg"], 0, 0, 0)
  94. local robe3 = Instance.new("Part")
  95. prop(robe3, Model2, false, 0, 0, 1.1, 2.1, 1.1, "Reddish brown", false, "Custom")
  96. robe3.Material = "Wood"
  97. local robe3w = Instance.new("Weld")
  98. wel(robe3w, 0, 0, 0, robe3, robe3, char["Left Leg"], 0, 0, 0)
  99. local robe4 = Instance.new("Part")
  100. prop(robe4, Model2, false, 0, 0, 1.1, 2.1, 1.1, "Reddish brown", false, "Custom")
  101. robe4.Material = "Wood"
  102. local robe4w = Instance.new("Weld")
  103. wel(robe4w, 0, 0, 0, robe4, robe4, Larm, 0, 0, 0)
  104. local robe5 = Instance.new("Part")
  105. prop(robe5, Model2, false, 0, 0, 1.1, 2.1, 1.1, "Reddish brown", false, "Custom")
  106. robe5.Material = "Wood"
  107. local robe5w = Instance.new("Weld")
  108. wel(robe5w, 0, 0, 0, robe5, robe5, Rarm, 0, 0, 0)
  109. local robe6 = Instance.new("Part")
  110. prop(robe6, Model2, false, 0, 0, 1.1, 2.1, 1.1, "Reddish brown", false, "Custom")
  111. local robe6w = Instance.new("Weld")
  112. wel(robe6w, 0, 0.85, 0, robe6, robe6, char.Head, 0, 0, 0)
  113. local robe6m = Instance.new("SpecialMesh")
  114. mesh(robe6m, robe6, 1, 1, 1, "FileMesh")
  115. robe6m.MeshId = "http://www.roblox.com/asset/?id=36755354"
  116. local robe7 = Instance.new("Part")
  117. prop(robe7, Model2, false, 0, 0, 1.1, 1.1, 1.1, "Reddish brown", false, "Custom")
  118. local robe7w = Instance.new("Weld")
  119. wel(robe7w, 0, 1.85, 0, robe7, robe7, char.Head, 0, 0, 0)
  120. local robe7m = Instance.new("SpecialMesh")
  121. mesh(robe7m, robe7, 0.25, 0.25, 0.25, "FileMesh")
  122. robe7m.MeshId = "http://www.roblox.com/asset/?id=25212400"
  123. robe7m.TextureId = "http://www.roblox.com/asset/?id=41988084"
  124. local robe8 = Instance.new("Part")
  125. prop(robe8, Model2, false, 0, 0, 1.1, 1.1, 1.1, "Reddish brown", false, "Custom")
  126. local robe8w = Instance.new("Weld")
  127. wel(robe8w, 0.6, 0, 0, robe8, robe8, char.Head, 0, 1.55, 0)
  128. local robe8m = Instance.new("SpecialMesh")
  129. mesh(robe8m, robe8, 0.25, 0.25, 0.25, "FileMesh")
  130. robe8m.MeshId = "http://www.roblox.com/asset/?id=3270017"
  131. robe8m.TextureId = "http://www.roblox.com/asset/?id=41988084"
  132. local robe9 = Instance.new("Part")
  133. prop(robe9, Model2, false, 0, 0, 0.1, 0.1, 0.1, "Dark stone grey", false, "Custom")
  134. local bm = Instance.new("BlockMesh", robe9)
  135. bm.Scale = Vector3.new(0.5, 1, 0.5)
  136. robe9.Material = "Slate"
  137. local robe9w = Instance.new("Weld")
  138. wel(robe9w, 0, -0.2, 0, robe9, robe9, robe8, 0, 0, 0)
  139. local robe10 = Instance.new("Part")
  140. prop(robe10, Model2, false, 0, 0, 1.1, 1.1, 1.1, "Reddish brown", false, "Custom")
  141. local robe10w = Instance.new("Weld")
  142. wel(robe10w, -0.6, 0, 0, robe10, robe10, char.Head, 0, 1.55, 0)
  143. local robe10m = Instance.new("SpecialMesh")
  144. mesh(robe10m, robe10, 0.25, 0.25, 0.25, "FileMesh")
  145. robe10m.MeshId = "http://www.roblox.com/asset/?id=3270017"
  146. robe10m.TextureId = "http://www.roblox.com/asset/?id=41988084"
  147. local robe11 = Instance.new("Part")
  148. prop(robe11, Model2, false, 0, 0, 0.1, 0.1, 0.1, "Bright blue", false, "Custom")
  149. local bm2 = Instance.new("SpecialMesh", robe11)
  150. bm2.Scale = Vector3.new(0.25, 0.5, 0.25)
  151. bm2.MeshType = "FileMesh"
  152. bm2.MeshId = "http://www.roblox.com/asset/?id=1051557"
  153. robe11.Material = "Slate"
  154. local robe11w = Instance.new("Weld")
  155. wel(robe11w, 0, -0.2, 0, robe11, robe11, robe10, 0, 0, 0)
  156. --http://www.roblox.com/asset/?id=3270017
  157. local shaft = Instance.new("Part")
  158. prop(shaft, Model2, false, 0, 0, 0.2, 6, 0.2, "Reddish brown", false, "Custom")
  159. shaft.Material = "Wood"
  160. local shaftw = Instance.new("Weld")
  161. wel(shaftw, 0, -1, 0, shaft, shaft, Rarm, 1.55, 0, 0)
  162. local shaft2 = Instance.new("Part")
  163. prop(shaft2, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  164. shaft2.Material = "Wood"
  165. local shaft2w = Instance.new("Weld")
  166. wel(shaft2w, -0.5, 3.75, 0, shaft2, shaft2, shaft, 0, 0, 0.5)
  167. local shaft3 = Instance.new("Part")
  168. prop(shaft3, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  169. shaft3.Material = "Wood"
  170. local shaft3w = Instance.new("Weld")
  171. wel(shaft3w, 0.5, 3.75, 0, shaft3, shaft3, shaft, 0, 0, -0.5)
  172. local shaft4 = Instance.new("Part")
  173. prop(shaft4, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  174. shaft4.Material = "Wood"
  175. local shaft4w = Instance.new("Weld")
  176. wel(shaft4w, 0, 3.75, 0.5, shaft4, shaft4, shaft, 0.5, 0, 0)
  177. local shaft5 = Instance.new("Part")
  178. prop(shaft5, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  179. shaft5.Material = "Wood"
  180. local shaft5w = Instance.new("Weld")
  181. wel(shaft5w, 0, 3.75, -0.5, shaft5, shaft5, shaft, -0.5, 0, 0)
  182. local shaft6 = Instance.new("Part")
  183. prop(shaft6, Model2, false, 0, 0, 0.5, 1, 0.5, "Navy blue", false, "Custom")
  184. local shaft6m = Instance.new("SpecialMesh")
  185. mesh(shaft6m, shaft6, 1, 1, 1, "Sphere")
  186. local shaft6w = Instance.new("Weld")
  187. wel(shaft6w, 0, 4.75, 0, shaft6, shaft6, shaft, 0, 0, 0)
  188. local shaft7 = Instance.new("Part")
  189. prop(shaft7, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  190. shaft7.Material = "Wood"
  191. local shaft7w = Instance.new("Weld")
  192. wel(shaft7w, -0.5, 5.45, 0, shaft7, shaft7, shaft, 0, 0, -0.5)
  193. local shaft8 = Instance.new("Part")
  194. prop(shaft8, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  195. shaft8.Material = "Wood"
  196. local shaft8w = Instance.new("Weld")
  197. wel(shaft8w, 0.5, 5.45, 0, shaft8, shaft8, shaft, 0, 0, 0.5)
  198. local shaft9 = Instance.new("Part")
  199. prop(shaft9, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  200. shaft9.Material = "Wood"
  201. local shaft9w = Instance.new("Weld")
  202. wel(shaft9w, 0, 5.45, 0.5, shaft9, shaft9, shaft, -0.5, 0, 0)
  203. local shaft10 = Instance.new("Part")
  204. prop(shaft10, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  205. shaft10.Material = "Wood"
  206. local shaft10w = Instance.new("Weld")
  207. wel(shaft10w, 0, 5.45, -0.5, shaft10, shaft10, shaft, 0.5, 0, 0)
  208. local shaft11 = Instance.new("Part")
  209. prop(shaft11, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  210. shaft11.Material = "Wood"
  211. local shaft11w = Instance.new("Weld")
  212. wel(shaft11w, -0.5, -3.75, 0, shaft11, shaft11, shaft, 0, 0, -0.5)
  213. local shaft12 = Instance.new("Part")
  214. prop(shaft12, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  215. shaft12.Material = "Wood"
  216. local shaft12w = Instance.new("Weld")
  217. wel(shaft12w, 0.5, -3.75, 0, shaft12, shaft12, shaft, 0, 0, 0.5)
  218. local shaft13 = Instance.new("Part")
  219. prop(shaft13, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  220. shaft13.Material = "Wood"
  221. local shaft13w = Instance.new("Weld")
  222. wel(shaft13w, 0, -3.75, 0.5, shaft13, shaft13, shaft, -0.5, 0, 0)
  223. local shaft14 = Instance.new("Part")
  224. prop(shaft14, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  225. shaft14.Material = "Wood"
  226. local shaft14w = Instance.new("Weld")
  227. wel(shaft14w, 0, -3.75, -0.5, shaft14, shaft14, shaft, 0.5, 0, 0)
  228. local shaft15 = Instance.new("Part")
  229. prop(shaft15, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  230. shaft15.Material = "Wood"
  231. local shaft15w = Instance.new("Weld")
  232. wel(shaft15w, -0.5, -5.45, 0, shaft15, shaft15, shaft, 0, 0, 0.5)
  233. local shaft16 = Instance.new("Part")
  234. prop(shaft16, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  235. shaft16.Material = "Wood"
  236. local shaft16w = Instance.new("Weld")
  237. wel(shaft16w, 0.5, -5.45, 0, shaft16, shaft16, shaft, 0, 0, -0.5)
  238. local shaft17 = Instance.new("Part")
  239. prop(shaft17, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  240. shaft17.Material = "Wood"
  241. local shaft17w = Instance.new("Weld")
  242. wel(shaft17w, 0, -5.45, -0.5, shaft17, shaft17, shaft, -0.5, 0, 0)
  243. local shaft18 = Instance.new("Part")
  244. prop(shaft18, Model2, false, 0, 0, 0.2, 2, 0.2, "Reddish brown", false, "Custom")
  245. shaft18.Material = "Wood"
  246. local shaft18w = Instance.new("Weld")
  247. wel(shaft18w, 0, -5.45, 0.5, shaft18, shaft18, shaft, 0.5, 0, 0)
  248. local shaft19 = Instance.new("Part")
  249. prop(shaft19, Model2, false, 0, 0, 0.5, 1, 0.5, "Mid stone grey", false, "Custom")
  250. local shaft19m = Instance.new("SpecialMesh")
  251. mesh(shaft19m, shaft19, 1, 1, 1, "Sphere")
  252. local shaft19w = Instance.new("Weld")
  253. wel(shaft19w, 0, -4.75, 0, shaft19, shaft19, shaft, 0, 0, 0)
  254. local shaft20 = Instance.new("Part")
  255. prop(shaft20, Model2, false, 0.5, 0, 0.5, 1, 0.5, "Mid stone grey", false, "Custom")
  256. local shaft20m = Instance.new("SpecialMesh")
  257. mesh(shaft20m, shaft20, 1.3, 1.3, 1.3, "Sphere")
  258. local shaft20w = Instance.new("Weld")
  259. wel(shaft20w, 0, -4.75, 0, shaft20, shaft20, shaft, 0, 0, 0)
  260. local shaft21 = Instance.new("Part")
  261. prop(shaft21, Model2, false, 0.5, 0, 0.5, 1, 0.5, "Mid stone grey", false, "Custom")
  262. local shaft21m = Instance.new("SpecialMesh")
  263. mesh(shaft21m, shaft21, 1.6, 1.6, 1.6, "Sphere")
  264. local shaft21w = Instance.new("Weld")
  265. wel(shaft21w, 0, -4.75, 0, shaft21, shaft21, shaft, 0, 0, 0)
  266. local shaft22 = Instance.new("Part")
  267. prop(shaft22, Model2, false, 0.5, 0, 0.5, 1, 0.5, "Navy blue", false, "Custom")
  268. local shaft22m = Instance.new("SpecialMesh")
  269. mesh(shaft22m, shaft22, 1.3, 1.3, 1.3, "Sphere")
  270. local shaft22w = Instance.new("Weld")
  271. wel(shaft22w, 0, 4.75, 0, shaft22, shaft22, shaft, 0, 0, 0)
  272. local shaft23 = Instance.new("Part")
  273. prop(shaft23, Model2, false, 0.5, 0, 0.5, 1, 0.5, "Navy blue", false, "Custom")
  274. local shaft23m = Instance.new("SpecialMesh")
  275. mesh(shaft23m, shaft23, 1.6, 1.6, 1.6, "Sphere")
  276. local shaft23w = Instance.new("Weld")
  277. wel(shaft23w, 0, 4.75, 0, shaft23, shaft23, shaft, 0, 0, 0)
  278.  
  279. --[[ for i = 0, 1, 0.1 do
  280. local bal = Instance.new("Part")
  281. prop(bal, Model2, false, 0.5, 0, 0.5, 0.5, 0.5, "Navy blue", false, "Custom")
  282. local balm = Instance.new("SpecialMesh")
  283. mesh(balm, bal, 1, 1, 1, "Sphere")
  284. local balw = Instance.new("Weld")
  285. wel(balw, 0, -1 + math.rad(100*i), 0, bal, bal, shaft, math.rad(55*i), math.rad(55*i), math.rad(55*i))
  286. wait()
  287. end ]]
  288. for i = 0, 3.5, 0.1 do
  289. local bal = Instance.new("Part")
  290. prop(bal, Model2, false, 0, 0, 0.3, 0.2, 0.2, "Reddish brown", false, "Custom")
  291. bal.Material = "Wood"
  292. local balw = Instance.new("Weld")
  293. wel(balw, 0, -3 + math.rad(100*i), 0, bal, bal, shaft, 0, math.rad(50*i), 0)
  294. local bal = Instance.new("Part")
  295. prop(bal, Model2, false, 0, 0, 0.3, 0.2, 0.2, "Reddish brown", false, "Custom")
  296. bal.Material = "Wood"
  297. local balw = Instance.new("Weld")
  298. wel(balw, 0, -3 + math.rad(100*i), 0, bal, bal, shaft, 0, math.rad(-50*i), 0)
  299. wait()
  300. end
  301.  
  302. function atk(pos, mag, dmg)
  303. coroutine.resume(coroutine.create(function()
  304. for _,v in pairs(game.Players:GetChildren()) do
  305. if v.Name ~= Me.Name then
  306. if (v.Character.Torso.Position - pos).magnitude < mag then
  307. v.Character.Humanoid:TakeDamage(dmg)
  308. end
  309. end
  310. end
  311. end))
  312. end
  313.  
  314. if script.Parent.className ~= "HopperBin" then
  315. local h = Instance.new("HopperBin", Me.Backpack)
  316. h.Name = "Staff"
  317. script.Parent = h
  318. end
  319.  
  320. local bin = script.Parent
  321.  
  322. function onSelected(mouse)
  323. RAW.Part1 = Rarm
  324. LAW.Part1 = Larm
  325. for i = 0, 1, 0.1 do
  326. RAW.C0 = CFrame.Angles(math.rad(90*i), math.rad(70*i), math.rad(-45*i))
  327. wait()
  328. end
  329. mouse.Button1Down:connect(function()
  330. pos = mouse.hit.p
  331. for i = 0, 1, 0.1 do
  332. RAW.C0 = CFrame.Angles(math.rad(90+0*i), math.rad(70+360*i), math.rad(-45+0*i))
  333. wait()
  334. end
  335. local part = Instance.new("Part")
  336. part.Parent = workspace
  337. part.Size = Vector3.new(5, 5, 5)
  338. part.Anchored = true
  339. part.CanCollide = false
  340. part.CFrame = CFrame.new(pos)
  341. part.Transparency = 0.5
  342. part.BrickColor = BrickColor.new("Bright blue")
  343. local mesh = Instance.new("CylinderMesh", part)
  344. local cf = part.CFrame
  345. for i = 0, 1, 0.1 do
  346. shaft22m.Scale = shaft22m.Scale + Vector3.new(0.1, 0.1, 0.1)
  347. shaft23m.Scale = shaft23m.Scale + Vector3.new(0.1, 0.1, 0.1)
  348. shaft6m.Scale = shaft6m.Scale + Vector3.new(0.1, 0.1, 0.1)
  349. part.Size = part.Size + Vector3.new(1, 0, 1)
  350. part.CFrame = cf
  351. atk(part.Position, 10*i, 5)
  352. wait()
  353. end
  354. for i = 0, 1, 0.1 do
  355. shaft22m.Scale = shaft22m.Scale - Vector3.new(0.1, 0.1, 0.1)
  356. shaft23m.Scale = shaft23m.Scale - Vector3.new(0.1, 0.1, 0.1)
  357. shaft6m.Scale = shaft6m.Scale - Vector3.new(0.1, 0.1, 0.1)
  358. wait()
  359. end
  360. part:remove()
  361. end)
  362. mouse.KeyDown:connect(function(key)
  363. if key == "q" then
  364. for i = 0, 1, 0.1 do
  365. RAW.C0 = CFrame.Angles(math.rad(90+0*i), math.rad(70-360*i), math.rad(-45+0*i))
  366. wait()
  367. end
  368. local part = Instance.new("Part")
  369. part.Parent = workspace
  370. part.Size = Vector3.new(5, 5, 5)
  371. part.Anchored = true
  372. part.CFrame = CFrame.new(mouse.hit.p)
  373. part.Material = "Slate"
  374. part.BrickColor = BrickColor.new("Dark stone grey")
  375. local cf = part.CFrame
  376. for i = 0, 1, 0.1 do
  377. shaft21m.Scale = shaft21m.Scale + Vector3.new(0.1, 0.1, 0.1)
  378. shaft20m.Scale = shaft20m.Scale + Vector3.new(0.1, 0.1, 0.1)
  379. shaft19m.Scale = shaft19m.Scale + Vector3.new(0.1, 0.1, 0.1)
  380. part.Size = part.Size + Vector3.new(0, 1.5, 0)
  381. atk(part.Position, 10, 5)
  382. part.CFrame = cf
  383. wait()
  384. end
  385. for i = 0, 1, 0.1 do
  386. shaft21m.Scale = shaft21m.Scale - Vector3.new(0.1, 0.1, 0.1)
  387. shaft20m.Scale = shaft20m.Scale - Vector3.new(0.1, 0.1, 0.1)
  388. shaft19m.Scale = shaft19m.Scale - Vector3.new(0.1, 0.1, 0.1)
  389. wait()
  390. end
  391. part:remove()
  392. end
  393. if key == "g" then
  394. for i = 0, 1, 0.1 do
  395. RAW.C0 = CFrame.Angles(math.rad(90+0*i), math.rad(70-360*i), math.rad(-45+0*i))
  396. wait()
  397. end
  398. local part = Instance.new("Part")
  399. part.Parent = workspace
  400. part.Size = Vector3.new(2, 10, 2)
  401. part.Anchored = true
  402. part.CFrame = CFrame.new(mouse.hit.p) + Vector3.new(0, 2.5, 0)
  403. part.Material = "Plastic"
  404. part.BrickColor = BrickColor.new("Reddish brown")
  405. local part2 = Instance.new("Part")
  406. part2.Parent = part
  407. part2.Size = Vector3.new(5, 5, 5)
  408. part2.Anchored = true
  409. part2.CFrame = part.CFrame + Vector3.new(0, 7.5, 0)
  410. part2.Material = "Plastic"
  411. part2.BrickColor = BrickColor.new("Dark green")
  412. local bm = Instance.new("SpecialMesh", part2)
  413. bm.MeshType = "Sphere"
  414. bm.Scale = Vector3.new(2, 2, 2)
  415. local cf = part.CFrame
  416. for i = 0, 1, 0.1 do
  417. shaft21m.Scale = shaft21m.Scale + Vector3.new(0.1, 0.1, 0.1)
  418. shaft20m.Scale = shaft20m.Scale + Vector3.new(0.1, 0.1, 0.1)
  419. shaft19m.Scale = shaft19m.Scale + Vector3.new(0.1, 0.1, 0.1)
  420. atk(part.Position, 10, 5)
  421. wait()
  422. end
  423. for i = 0, 1, 0.1 do
  424. shaft21m.Scale = shaft21m.Scale - Vector3.new(0.1, 0.1, 0.1)
  425. shaft20m.Scale = shaft20m.Scale - Vector3.new(0.1, 0.1, 0.1)
  426. shaft19m.Scale = shaft19m.Scale - Vector3.new(0.1, 0.1, 0.1)
  427. wait()
  428. end
  429. part:remove()
  430. end
  431. if key == "f" then
  432. for i = 0, 1, 0.1 do
  433. RAW.C0 = CFrame.Angles(math.rad(90+0*i), math.rad(70-360*i), math.rad(-45+0*i))
  434. wait()
  435. end
  436. local pos = mouse.hit.p
  437. local part = Instance.new("Part")
  438. part.Parent = workspace
  439. part.Size = Vector3.new(20, 20, 2)
  440. part.Anchored = true
  441. part.CFrame = CFrame.new(pos) * CFrame.Angles(0.5, 0, 0) + Vector3.new(0, 5, 5)
  442. part.Material = "Slate"
  443. part.BrickColor = BrickColor.new("Dark stone grey")
  444. local part2 = Instance.new("Part")
  445. part2.Parent = part
  446. part2.Size = Vector3.new(20, 20, 2)
  447. part2.Anchored = true
  448. part2.CFrame = CFrame.new(pos) * CFrame.Angles(-0.5, 0, 0) + Vector3.new(0, 5, -5)
  449. part2.Material = "Slate"
  450. part2.BrickColor = BrickColor.new("Dark stone grey")
  451. local part3 = Instance.new("Part")
  452. part3.Parent = part
  453. part3.Size = Vector3.new(20, 2, 20)
  454. part3.Anchored = true
  455. part3.CFrame = CFrame.new(pos) * CFrame.Angles(0, 0, 0) + Vector3.new(0, 13, 0)
  456. part3.Material = "Slate"
  457. part3.BrickColor = BrickColor.new("Dark stone grey")
  458. local part4 = Instance.new("Part")
  459. part4.Parent = part
  460. part4.Size = Vector3.new(2, 20, 20)
  461. part4.Anchored = true
  462. part4.CFrame = CFrame.new(pos) * CFrame.Angles(0, 0, 0) + Vector3.new(10, 5, 0)
  463. part4.Material = "Slate"
  464. part4.BrickColor = BrickColor.new("Dark stone grey")
  465. local part5 = Instance.new("Part")
  466. part5.Parent = part
  467. part5.Size = Vector3.new(2, 20, 20)
  468. part5.Anchored = true
  469. part5.CFrame = CFrame.new(pos) * CFrame.Angles(0, 0, 0) + Vector3.new(-10, 5, 0)
  470. part5.Material = "Slate"
  471. part5.BrickColor = BrickColor.new("Dark stone grey")
  472. local cf = part.CFrame
  473. for i = 0, 2, 0.1 do
  474. shaft21m.Scale = shaft21m.Scale + Vector3.new(0.1, 0.1, 0.1)
  475. shaft20m.Scale = shaft20m.Scale + Vector3.new(0.1, 0.1, 0.1)
  476. shaft19m.Scale = shaft19m.Scale + Vector3.new(0.1, 0.1, 0.1)
  477. atk(pos, 7.5, 5)
  478. wait()
  479. end
  480. for i = 0, 2, 0.1 do
  481. shaft21m.Scale = shaft21m.Scale - Vector3.new(0.1, 0.1, 0.1)
  482. shaft20m.Scale = shaft20m.Scale - Vector3.new(0.1, 0.1, 0.1)
  483. shaft19m.Scale = shaft19m.Scale - Vector3.new(0.1, 0.1, 0.1)
  484. wait()
  485. end
  486. for i = 0, 2, 0.1 do
  487. part.CFrame = part.CFrame - Vector3.new(0, 1, 0)
  488. part2.CFrame = part2.CFrame - Vector3.new(0, 1, 0)
  489. part3.CFrame = part3.CFrame - Vector3.new(0, 1, 0)
  490. part4.CFrame = part4.CFrame - Vector3.new(0, 1, 0)
  491. part5.CFrame = part5.CFrame - Vector3.new(0, 1, 0)
  492. wait()
  493. end
  494. part:remove()
  495. end
  496. if key == "e" then
  497. for i = 0, 1, 0.1 do
  498. RAW.C0 = CFrame.Angles(math.rad(90+0*i), math.rad(70-360*i), math.rad(-45+0*i))
  499. wait()
  500. end
  501. local part = Instance.new("Part")
  502. part.Parent = workspace
  503. part.Size = Vector3.new(5, 5, 5)
  504. part.Anchored = true
  505. part.CFrame = CFrame.new(mouse.hit.p)
  506. part.Material = "Grass"
  507. part.BrickColor = BrickColor.new("Dark green")
  508. local cf = part.CFrame
  509. for i = 0, 2, 0.1 do
  510. shaft21m.Scale = shaft21m.Scale + Vector3.new(0.1, 0.1, 0.1)
  511. shaft20m.Scale = shaft20m.Scale + Vector3.new(0.1, 0.1, 0.1)
  512. shaft19m.Scale = shaft19m.Scale + Vector3.new(0.1, 0.1, 0.1)
  513. part.Size = part.Size + Vector3.new(0, 1.5, 0)
  514. atk(part.Position, 10, 5)
  515. part.CFrame = cf
  516. wait()
  517. end
  518. for i = 0, 2, 0.1 do
  519. shaft21m.Scale = shaft21m.Scale - Vector3.new(0.1, 0.1, 0.1)
  520. shaft20m.Scale = shaft20m.Scale - Vector3.new(0.1, 0.1, 0.1)
  521. shaft19m.Scale = shaft19m.Scale - Vector3.new(0.1, 0.1, 0.1)
  522. wait()
  523. end
  524. part:remove()
  525. end
  526. if key == "t" then
  527. for i = 0, 1, 0.1 do
  528. RAW.C0 = CFrame.Angles(math.rad(90+0*i), math.rad(70-360*i), math.rad(-45+0*i))
  529. wait()
  530. end
  531. local pos = mouse.hit.p
  532. local part = Instance.new("Part")
  533. part.Parent = workspace
  534. part.Size = Vector3.new(1, 1, 1)
  535. part.Anchored = true
  536. part.CanCollide = false
  537. part.CFrame = CFrame.new(pos) + Vector3.new(0, 5, 0)
  538. part.Material = "Grass"
  539. part.Transparency = 0.25
  540. part.BrickColor = BrickColor.new("Dark stone grey")
  541. local partm = Instance.new("SpecialMesh", part)
  542. partm.MeshType = "FileMesh"
  543. partm.Scale = Vector3.new(10, 10, 10)
  544. partm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  545. local cf = part.CFrame
  546. for i = 0, 2, 0.1 do
  547. shaft21m.Scale = shaft21m.Scale + Vector3.new(0.1, 0.1, 0.1)
  548. shaft20m.Scale = shaft20m.Scale + Vector3.new(0.1, 0.1, 0.1)
  549. shaft19m.Scale = shaft19m.Scale + Vector3.new(0.1, 0.1, 0.1)
  550. part.Size = part.Size + Vector3.new(0, 1.5, 0)
  551. atk(part.Position, 10, 5)
  552. part.CFrame = cf
  553. wait() --http://www.roblox.com/asset/?id=1051557
  554. end
  555. for i = 0, 2, 0.1 do
  556. shaft21m.Scale = shaft21m.Scale - Vector3.new(0.1, 0.1, 0.1)
  557. shaft20m.Scale = shaft20m.Scale - Vector3.new(0.1, 0.1, 0.1)
  558. shaft19m.Scale = shaft19m.Scale - Vector3.new(0.1, 0.1, 0.1)
  559. wait()
  560. end
  561. part:remove()
  562. end
  563. if key == "r" then
  564. for i = 0, 1, 0.1 do
  565. RAW.C0 = CFrame.Angles(math.rad(90+0*i), math.rad(70-360*i), math.rad(-45+0*i))
  566. wait()
  567. end
  568. local part = Instance.new("Part")
  569. part.Parent = workspace
  570. part.Size = Vector3.new(5, 5, 5)
  571. part.Anchored = true
  572. part.Transparency = 1
  573. part.CFrame = CFrame.new(mouse.hit.p)
  574. part.Material = "Grass"
  575. part.BrickColor = BrickColor.new("Dark green")
  576. local fire = Instance.new("Fire", part)
  577. fire.Heat = 5
  578. local cf = part.CFrame
  579. for i = 0, 2, 0.1 do
  580. shaft21m.Scale = shaft21m.Scale + Vector3.new(0.1, 0.1, 0.1)
  581. shaft20m.Scale = shaft20m.Scale + Vector3.new(0.1, 0.1, 0.1)
  582. shaft19m.Scale = shaft19m.Scale + Vector3.new(0.1, 0.1, 0.1)
  583. atk(part.Position, 5, 5)
  584. fire.Heat = fire.Heat + 1
  585. wait()
  586. end
  587. for i = 0, 2, 0.1 do
  588. shaft21m.Scale = shaft21m.Scale - Vector3.new(0.1, 0.1, 0.1)
  589. shaft20m.Scale = shaft20m.Scale - Vector3.new(0.1, 0.1, 0.1)
  590. shaft19m.Scale = shaft19m.Scale - Vector3.new(0.1, 0.1, 0.1)
  591. wait()
  592. end
  593. part:remove()
  594. end
  595. end)
  596. end
  597.  
  598. function onDesel(mouse)
  599. for i = 0, 1, 0.1 do
  600. RAW.C0 = CFrame.Angles(math.rad(90-90*i), math.rad(70-70*i), math.rad(-45+45*i))
  601. wait()
  602. end
  603. RAW.Part1 = nil
  604. LAW.Part1 = nil
  605. end
  606.  
  607. bin.Selected:connect(onSelected)
  608. bin.Deselected:connect(onDesel)
Add Comment
Please, Sign In to add comment