Advertisement
frog2128

Untitled

Mar 10th, 2015
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.17 KB | None | 0 0
  1. Tool=Instance.new("HopperBin")
  2. Tool.Name="Tank"
  3. PlayerName=game:GetService("Players").LocalPlayer.Name
  4. Player=game.Players:FindFirstChild(PlayerName)
  5. CPlayer=Player.Character
  6. Character=CPlayer
  7. d=true
  8. Throw=function()
  9. if d==false then return end
  10.  
  11. Noob=Check()
  12. if Noob==nil then
  13. return
  14. end
  15. d=false
  16. coroutine.resume(coroutine.create(function(h) while d==false do Noob.Humanoid.PlatformStand=true wait() end h.PlatformStand=false end),Noob.Humanoid)
  17. local R=CPlayer.Torso["Right Shoulder"]
  18. local L=CPlayer.Torso["Left Shoulder"]
  19. local A=CPlayer.Animate
  20. A.Disabled=true
  21. CPlayer.Torso["Right Hip"].DesiredAngle=0
  22. CPlayer.Torso["Left Hip"].DesiredAngle=0
  23. R.CurrentAngle=1
  24. L.CurrentAngle=1
  25. R.DesiredAngle=1.6
  26. L.DesiredAngle=-1.6
  27. R.MaxVelocity=.4
  28. L.MaxVelocity=.4
  29. R.DesiredAngle=3.2
  30. L.DesiredAngle=-3.2
  31. c=CPlayer.Torso.Position
  32. vp=Instance.new("BodyPosition")
  33. vp.P=4500
  34. vp.D=50
  35. vp.maxForce=Vector3.new(5000000000,500000000000000,5000000000)
  36. vp.Parent=Noob.Torso
  37. g=Instance.new("BodyGyro")
  38. g.P=5000
  39. g.maxTorque=Vector3.new(5000000000,5000000000,5000000000)
  40. g.Parent=Noob.Torso
  41. g.cframe=CFrame.new(g.Parent.Position,g.Parent.Position-Vector3.new(0,500,0))
  42. Noob.Humanoid.PlatformStand=true
  43. click=false
  44. etick=time()
  45. ptick=tick()
  46. p=Instance.new("Sound")
  47. p.SoundId="http://www.roblox.com/asset/?id="..142539090
  48. p.Volume=1
  49. p.Parent=CPlayer.Head
  50. p:Play()
  51. diff=0
  52. while click==false do
  53. diff=diff+.043 vp.Parent.CFrame=CPlayer.Head.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/2,0,math.pi/2)+Vector3.new(0,2,0)
  54. g.cframe=vp.Parent.CFrame
  55. vp.position=CPlayer.Head.Position+Vector3.new(0,2,0)
  56. wait()
  57. end
  58. Noob.Humanoid.PlatformStand=false
  59. p:Remove()
  60. Lel={142539060,142539082,142539065}
  61. p=Instance.new("Sound")
  62. p.SoundId="http://www.roblox.com/asset/?id="..Lel[math.random(1,3)]
  63. p.Volume=1
  64. p.Parent=CPlayer.Head
  65. p:Play()
  66. game:GetService("Debris"):AddItem(g,4)
  67. vp:Remove()
  68. b=Instance.new("BodyVelocity")
  69. b.P=6000
  70. b.maxForce=Vector3.new(5000000,5000000,5000000)*50000000000
  71. b.velocity=(CPlayer.Torso.CFrame.lookVector*(40+diff*5)+Vector3.new(0,4+diff*2,0))
  72. R.DesiredAngle=.4
  73. L.DesiredAngle=-.4
  74. b.Parent=Noob.Torso
  75. game:GetService("Debris"):AddItem(b,.25)
  76. Noob.Humanoid:TakeDamage(2)
  77. A.Disabled=false
  78. ff=Instance.new("ForceField")
  79. --ff.Parent=Noob
  80. cc=Noob.Torso.Touched:connect(function(hit)
  81. if hit.Parent~=nil then
  82. boom=Instance.new("Explosion")
  83. boom.Parent=workspace
  84. boom.Position=Noob.Torso.Position
  85. s=Instance.new("Sound")
  86. s.Parent=Noob.Torso
  87. s.Pitch=0.6
  88. s.Volume=10
  89. s.SoundId="http://www.roblox.com/asset/?id=2101148"
  90. s:Play()
  91. if hit.Parent.Name~=game.Players.LocalPlayer.Name and hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent~=Noob and hit.Parent:FindFirstChild("Torso")~=nil then
  92. if hit.Parent.Torso:FindFirstChild(":>")==nil then
  93. game:GetService("Debris"):AddItem(s,1)
  94. hit.Parent.Humanoid:TakeDamage(diff*20)
  95. ss=Instance.new("BodyVelocity")
  96. ss.Parent=hit.Parent.Torso
  97. ss.velocity=b.velocity/1+Vector3.new(0,5,0)
  98. ss.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  99. ss.Name=":>"
  100. game:GetService("Debris"):AddItem(ss,.33)
  101.  
  102. sos=1
  103. if diff<=6 then
  104. sos=153092249
  105. elseif diff>6 and diff<=12 then
  106. sos=153092238
  107. elseif diff>12 and diff<=20 then
  108. sos=153092227
  109. elseif diff>20 then
  110. sos=153092217
  111. end
  112. p=Instance.new("Sound")
  113. p.SoundId="http://www.roblox.com/asset/?id="..sos
  114. p.Volume=1
  115. p.Pitch=1.1
  116. p.Parent=hit
  117. p:Play()
  118. hit.Parent.Humanoid.PlatformStand=true
  119. wait(1.5)
  120. hit.Parent.Humanoid.PlatformStand=false
  121. end
  122. end
  123. end
  124. end)
  125. wait(1.8)
  126. ff.Parent=nil
  127. cc:disconnect()
  128. Noob.Humanoid:TakeDamage(diff*5)
  129. d=true
  130. end
  131. onEq=function(mouse)
  132. mouse.Button1Down:connect(function() Throw() end)
  133. mouse.Button1Up:connect(function() click=true end)
  134. end
  135. Tool.Parent=Player.Backpack
  136. Tool.Selected:connect(onEq)
  137.  
  138. Tool2=Instance.new("HopperBin")
  139. Tool2.Name="632146P"
  140. PlayerName=game:GetService("Players").LocalPlayer.Name
  141. Player=game.Players:FindFirstChild(PlayerName)
  142. CPlayer=Player.Character
  143. Character=CPlayer
  144. Check=function()
  145. local R=Ray.new(Character.Torso.Position,Character.Torso.CFrame.lookVector*450)
  146. painis={}
  147. lel=function(p)
  148. for i=1, #p do
  149. table.insert(painis,p[i])
  150. k=p[i]:children()
  151. if #k>0 then
  152. lel(k)
  153. end
  154. end
  155. end
  156. lel(workspace:children())
  157. sos={}
  158. for _,v in pairs(painis) do
  159. if v:IsA("BasePart") then
  160. if v.CanCollide==false or v.Parent==game.Players.LocalPlayer.Character then
  161. table.insert(sos,v)
  162. end
  163. end
  164. end
  165. par,loc=workspace:FindPartOnRayWithIgnoreList(R,sos)
  166. sos,painis=nil,nil
  167. if par~=nil then
  168. if par.Parent:FindFirstChild("Humanoid")~=nil then
  169. if par.Parent:FindFirstChild("Torso")~=nil then
  170. return par.Parent
  171. end
  172. end
  173. end
  174. return nil
  175. end
  176. d=true
  177. Throwe=function()
  178. if d==false then return end
  179.  
  180. Noob=Check()
  181. if Noob==nil then
  182. return
  183. end
  184. d=false
  185. coroutine.resume(coroutine.create(function(h) while d==false do Noob.Humanoid.PlatformStand=true wait() end h.PlatformStand=false end),Noob.Humanoid)
  186. local R=CPlayer.Torso["Right Shoulder"]
  187. local L=CPlayer.Torso["Left Shoulder"]
  188. local A=CPlayer.Animate
  189. A.Disabled=true
  190. CPlayer.Torso["Right Hip"].DesiredAngle=0
  191. CPlayer.Torso["Left Hip"].DesiredAngle=0
  192. R.CurrentAngle=1.3
  193. L.CurrentAngle=1.3
  194. R.DesiredAngle=1.6
  195. L.DesiredAngle=-1.6
  196. R.MaxVelocity=.4
  197. L.MaxVelocity=.4
  198.  
  199. p=Instance.new("Sound")
  200. p.SoundId="http://www.roblox.com/asset/?id=166053356"
  201. p.Volume=1
  202. p.Pitch=.98
  203. p.Parent=CPlayer.Head
  204. p:Play()
  205. game:GetService("Debris"):AddItem(p,5)
  206.  
  207. --body movers
  208. p1=Instance.new("BodyPosition")
  209. p1.P=5000
  210. p1.maxForce=Vector3.new(5000000000,500000000000000000,5000000000)
  211. p1.Parent=CPlayer.Torso
  212. p1.position=p1.Parent.Position
  213. g1=Instance.new("BodyGyro")
  214. g1.P=5000
  215. g1.D=100
  216. g1.maxTorque=Vector3.new(500000000,5000000000,5000000000)
  217. g1.Parent=CPlayer.Torso
  218. g1.cframe=CPlayer.Torso.CFrame
  219.  
  220. p2=Instance.new("BodyPosition")
  221. p2.P=8000
  222. p2.D=200
  223. p2.maxForce=Vector3.new(50000000,500000000,50000000)
  224. p2.Parent=Noob.Torso
  225. p2.position=CPlayer.Head.Position+Vector3.new(0,1.5,0)
  226. g2=Instance.new("BodyGyro")
  227. g2.P=8000
  228. g2.D=100
  229. g2.maxTorque=Vector3.new(50000000000,50000000000,50000000000)
  230. g2.Parent=Noob.Torso
  231. g2.cframe=CPlayer.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/2,0,math.pi/2)
  232.  
  233. wait(.25)
  234.  
  235. R.DesiredAngle=3.2
  236. L.DesiredAngle=-3.2
  237. spos=CPlayer.Torso.CFrame
  238.  
  239. ids={166053373,166053380,166053392}
  240. p=Instance.new("Sound")
  241. p.SoundId="http://www.roblox.com/asset/?id="..ids[math.random(1,3)]
  242. p.Volume=1
  243. p.Pitch=1
  244. p.Parent=CPlayer.Head
  245. p:Play()
  246. game:GetService("Debris"):AddItem(p,5)
  247.  
  248. wait(.25)
  249.  
  250. didrun=false
  251. runtime=0
  252. expected=12
  253. CPlayer.Humanoid.PlatformStand=true
  254. cc=game:GetService("RunService").Stepped:connect(function()
  255. runtime=runtime+1
  256. p1.position=p1.position+Vector3.new(0,5,0)
  257. CPlayer.Torso.CFrame=CPlayer.Torso.CFrame+Vector3.new(0,5,0)
  258. p2.position=p2.position+Vector3.new(0,5,0)
  259. Noob.Torso.CFrame=CPlayer.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/2,0,math.pi/2)+Vector3.new(0,7,0)
  260. bl=Instance.new("Part")
  261. bl.TopSurface=0 bl.BottomSurface=0
  262. bl.CanCollide=false
  263. bl.formFactor="Symmetric"
  264. m=Instance.new("SpecialMesh")
  265. m.MeshType="Brick"
  266. m.Scale=Vector3.new(.5,.5,.5)
  267. m.Parent=bl
  268. bl.Size=Vector3.new(1,1,1)
  269. bl.Anchored=false
  270. bl.Name="c"
  271. bl.CFrame=CPlayer.Torso.CFrame
  272. bl.BrickColor=BrickColor.new("Bright orange")
  273. bl.Parent=CPlayer
  274. coroutine.resume(coroutine.create(function(p) for i=1, 10 do p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.3,.3,.3) p.Transparency=.25+i*.075 wait() end p:Remove() end),bl)
  275. w=Instance.new("Weld")
  276. w.Part0=CPlayer["Left Arm"]
  277. w.Part1=bl
  278. w.C0=CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  279. w.Parent=w.Part1
  280. bl2=Instance.new("Part")
  281. bl2.TopSurface=0 bl2.BottomSurface=0
  282. bl2.CanCollide=false
  283. bl2.formFactor="Symmetric"
  284. m=Instance.new("SpecialMesh")
  285. m.MeshType="Brick"
  286. m.Scale=Vector3.new(.5,.5,.5)
  287. m.Parent=bl2
  288. bl2.Size=Vector3.new(1,1,1)
  289. bl2.Anchored=false
  290. bl2.Name="c"
  291. bl2.CFrame=CPlayer.Torso.CFrame
  292. bl2.BrickColor=BrickColor.new("Bright orange")
  293. bl2.Parent=CPlayer
  294. coroutine.resume(coroutine.create(function(p) for i=1, 10 do p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.3,.3,.3) p.Transparency=.25+i*.075 wait() end p:Remove() end),bl2)
  295. w=Instance.new("Weld")
  296. w.Part0=CPlayer["Right Arm"]
  297. w.Part1=bl2
  298. w.C0=CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  299. w.Parent=w.Part1
  300. if runtime>=expected then
  301. didrun=true
  302. cc:disconnect()
  303. end
  304. end)
  305. while didrun==false do
  306. wait()
  307. end
  308.  
  309. didrun=false
  310. runtime=0
  311. expected=24
  312. CPlayer.Humanoid.PlatformStand=true
  313. cc=game:GetService("RunService").Stepped:connect(function()
  314. runtime=runtime+1
  315. p1.position=p1.position+Vector3.new(0,5-runtime*.6,0)
  316. CPlayer.Torso.CFrame=CPlayer.Torso.CFrame+Vector3.new(0,5-runtime*.6,0)
  317. p2.position=p2.position+Vector3.new(0,5-runtime*.6,0)
  318. Noob.Torso.CFrame=CPlayer.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/2,0,math.pi/2)+Vector3.new(0,2,0)
  319. bl=Instance.new("Part")
  320. bl.TopSurface=0 bl.BottomSurface=0
  321. bl.CanCollide=false
  322. bl.formFactor="Symmetric"
  323. m=Instance.new("SpecialMesh")
  324. m.MeshType="Brick"
  325. m.Scale=Vector3.new(.5,.5,.5)
  326. m.Parent=bl
  327. bl.Size=Vector3.new(1,1,1)
  328. bl.Anchored=false
  329. bl.Name="c"
  330. bl.CFrame=CPlayer.Torso.CFrame
  331. bl.BrickColor=BrickColor.new("Bright orange")
  332. bl.Parent=CPlayer
  333. coroutine.resume(coroutine.create(function(p) for i=1, 10 do p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.3,.3,.3) p.Transparency=.25+i*.075 wait() end p:Remove() end),bl)
  334. w=Instance.new("Weld")
  335. w.Part0=CPlayer["Left Arm"]
  336. w.Part1=bl
  337. w.C0=CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  338. w.Parent=w.Part1
  339. bl2=Instance.new("Part")
  340. bl2.TopSurface=0 bl2.BottomSurface=0
  341. bl2.CanCollide=false
  342. bl2.formFactor="Symmetric"
  343. m=Instance.new("SpecialMesh")
  344. m.MeshType="Brick"
  345. m.Scale=Vector3.new(.5,.5,.5)
  346. m.Parent=bl2
  347. bl2.Size=Vector3.new(1,1,1)
  348. bl2.Anchored=false
  349. bl2.Name="c"
  350. bl2.CFrame=CPlayer.Torso.CFrame
  351. bl2.BrickColor=BrickColor.new("Bright orange")
  352. bl2.Parent=CPlayer
  353. coroutine.resume(coroutine.create(function(p) for i=1, 10 do p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.3,.3,.3) p.Transparency=.25+i*.075 wait() end p:Remove() end),bl2)
  354. w=Instance.new("Weld")
  355. w.Part0=CPlayer["Right Arm"]
  356. w.Part1=bl2
  357. w.C0=CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  358. w.Parent=w.Part1
  359. if runtime>=expected then
  360. didrun=true
  361. cc:disconnect()
  362. end
  363. end)
  364. while didrun==false do
  365. wait()
  366. end
  367.  
  368. Noob.Humanoid:TakeDamage(66)
  369. bl2=Instance.new("Part")
  370. bl2.TopSurface=0 bl2.BottomSurface=0
  371. bl2.CanCollide=false
  372. bl2.formFactor="Symmetric"
  373. m=Instance.new("SpecialMesh")
  374. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  375. m.Scale=Vector3.new(1,1,1)
  376. m.Parent=bl2
  377. bl2.Size=Vector3.new(1,1,1)
  378. bl2.Anchored=false
  379. bl2.Name="c"
  380. bl2.CFrame=CPlayer.Torso.CFrame-Vector3.new(0,2,0)
  381. bl2.BrickColor=BrickColor.new("White")
  382. bl2.Parent=CPlayer
  383. coroutine.resume(coroutine.create(function(p) for i=1, 10 do p.Mesh.Scale=p.Mesh.Scale+Vector3.new(8,0,8) p.Transparency=.25+i*.075 p.CFrame=p.CFrame*CFrame.fromEulerAnglesXYZ(0,math.rad(5),0) wait() end p:Remove() end),bl2)
  384. bl2.Anchored=true
  385.  
  386. bl2=Instance.new("Part")
  387. bl2.TopSurface=0 bl2.BottomSurface=0
  388. bl2.CanCollide=false
  389. bl2.formFactor="Symmetric"
  390. m=Instance.new("SpecialMesh")
  391. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  392. m.Scale=Vector3.new(1,9,1)
  393. m.Parent=bl2
  394. bl2.Size=Vector3.new(1,1,1)
  395. bl2.Anchored=false
  396. bl2.Name="c"
  397. bl2.CFrame=CPlayer.Torso.CFrame+Vector3.new(0,2,0)
  398. bl2.BrickColor=BrickColor.new("White")
  399. bl2.Parent=CPlayer
  400. coroutine.resume(coroutine.create(function(p) for i=1, 18 do p.Mesh.Scale=p.Mesh.Scale+Vector3.new(1,-.5,1) p.Transparency=i/16 p.CFrame=p.CFrame*CFrame.fromEulerAnglesXYZ(0,math.rad(5),0)-Vector3.new(0,.5,0) wait() end p:Remove() end),bl2)
  401. bl2.Anchored=true
  402.  
  403.  
  404. wait(.4)
  405.  
  406. R.DesiredAngle=0
  407. L.DesiredAngle=0
  408.  
  409. p1:Remove()
  410. g1:Remove()
  411. p2:Remove()
  412. game:GetService("Debris"):AddItem(g2,3)
  413.  
  414. CPlayer.Humanoid.Jump=true
  415. CPlayer.Humanoid.PlatformStand=false
  416.  
  417. b=Instance.new("BodyVelocity")
  418. b.P=4000
  419. b.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  420. --b.velocity=CPlayer.Torso.CFrame.lookVector*30+Vector3.new(0,5,0)
  421. b.velocity=CPlayer.Torso.CFrame.lookVector*1+Vector3.new(0,50,0)
  422. b.Parent=Noob.Torso
  423. game:GetService("Debris"):AddItem(b,.33)
  424.  
  425. A.Disabled=false
  426. wait()
  427. Noob.Humanoid.PlatformStand=true
  428. d=true
  429. end
  430. onEq2=function(mouse)
  431. mouse.Button1Down:connect(function() Throwe() end)
  432. end
  433. Tool2.Parent=Player.Backpack
  434. Tool2.Selected:connect(onEq2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement