Xxhax4prosxX

Untitled

Nov 13th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.53 KB | None | 0 0
  1. -- that beast mode u have it...
  2. local player=game.Players.LocalPlayer
  3. while player.Character==nil do wait() end
  4. local character=player.Character
  5. local la=character:WaitForChild("Left Arm")
  6. local ra=character:WaitForChild("Right Arm")
  7. local torso=character:WaitForChild("Torso")
  8. local mouse=player:GetMouse()
  9. local Create = assert(LoadLibrary("RbxUtility")).Create
  10. local maxDamage=300
  11. function Gmass(obj)
  12. local mass = 0
  13. for i, v in pairs(obj:GetChildren()) do
  14. if v:IsA("BasePart") then
  15. mass = mass + v:GetMass()
  16. elseif v:IsA("Model") or v:IsA("Hat") then
  17. mass = mass + Gmass(v)
  18. end
  19. end
  20. return mass
  21. end
  22.  
  23. function Weld(x,y)
  24. local W = Instance.new("Weld")
  25. W.Part0 = x
  26. W.Part1 = y
  27. local CJ = CFrame.new(x.Position)
  28. local C0 = x.CFrame:inverse()*CJ
  29. local C1 = y.CFrame:inverse()*CJ
  30. W.C0 = C0
  31. W.C1 = C1
  32. W.Parent = x
  33. return W
  34. end
  35. la.Anchored=true
  36. ra.Anchored=true
  37. ---------
  38. --|Random Shoulder Pads|--
  39. local leftShoulder=Create("Part"){
  40. Name='LeftShoulderPad',
  41. CanCollide=false,
  42. FormFactor='Custom',
  43. Size=Vector3.new(1,.5,1),
  44. }
  45. local x,y,z = la.CFrame:toEulerAnglesXYZ()
  46. local x2,y2,z2 = ra.CFrame:toEulerAnglesXYZ()
  47. print(y)
  48. local rightShoulder=leftShoulder:Clone()
  49. rightShoulder.Name='RightShoulderPad'
  50. leftShoulder.CFrame=(la.CFrame*CFrame.new(0,(la.Size.y/2),0))*CFrame.fromEulerAnglesXYZ(math.rad(x), math.rad(y), math.rad(z)):inverse()
  51. rightShoulder.CFrame=(ra.CFrame*CFrame.new(0,(ra.Size.y/2),0))* CFrame.fromEulerAnglesXYZ(math.rad(x2), math.rad(y2), math.rad(z2)):inverse()
  52.  
  53.  
  54. local lw=Weld(la,leftShoulder)
  55. local rw=Weld(ra,rightShoulder)
  56. la.Anchored=false;ra.Anchored=false
  57.  
  58. leftShoulder.Parent=character;rightShoulder.Parent=character
  59.  
  60. --------------
  61. --|Strong Jump|--
  62. local bF=Instance.new('BodyForce',torso)
  63. local mass=Gmass(character)
  64. bF.force=Vector3.new(0,mass*196,0)
  65. --------------
  66. --|Firez|--
  67. local fire=Create('Fire'){
  68. Parent=character.Head,
  69. Heat=20,
  70. }
  71. local light=Create('PointLight'){
  72. Parent=character.Head,
  73. Color=Color3.new(1, 60/255, 0),
  74. Brightness=2,
  75. }
  76. local fire2=Create('Fire'){
  77. Heat=25;
  78. Color=Color3.new(0,0,0);
  79. SecondaryColor=Color3.new(53/255, 0, 63/255);
  80. Parent=torso;
  81. Enabled=true;
  82. }
  83. --------------
  84. --|Death Touch|--
  85. function burn(thing)
  86. Spawn(function()
  87. print('die')
  88. if thing.Parent:FindFirstChild('Humanoid')~=nil then
  89. if (thing.Parent~=character) and (not thing:IsDescendantOf(character)) and (not thing:IsAncestorOf(character)) then
  90. local hum=thing.Parent.Humanoid
  91. for _,thing in pairs(thing.Parent:GetChildren()) do
  92. if thing~=nil then
  93. if thing.ClassName=='Part' then
  94. local f=Instance.new('Fire',thing)
  95. f.Heat=math.random(0,20);f.Size=math.random(5,30)
  96. game.Debris:AddItem(f,f.Heat/math.pi)
  97. Spawn(function()
  98. wait(2)
  99. if thing~=nil then
  100. thing.BrickColor=BrickColor.new('Black')
  101. end
  102. for i=.1,1,.1 do
  103. if thing~=nil then
  104. thing.Transparency=i
  105. wait(.15)
  106. end
  107. if thing~=nil then
  108. thing:remove()
  109. end
  110. end
  111. end)
  112. end
  113. end
  114. end--loop
  115. Spawn(function()
  116. for i=1,math.random(5,20) do
  117. if thing.Parent~=nil then
  118. wait(.1+math.random(.03,.2))
  119. hum:TakeDamage(i/.9)
  120. hum.WalkSpeed=math.floor(hum.WalkSpeed+.8)
  121. if hum.Health<=10 then
  122. if thing.Parent~=nil then
  123. thing.Parent:BreakJoints()
  124. end
  125. end
  126. end
  127. end
  128. end)
  129. else
  130. print('is desc')
  131. end
  132. else
  133. print('no hum')
  134. end
  135. end)
  136. end
  137. for index,parts in pairs(character:GetChildren()) do
  138. if parts.ClassName=='Part' then
  139. parts.Touched:connect(burn)
  140. end
  141. end
  142. ----------
  143. --|Speedy Homes|--
  144. local humanoid=character.Humanoid
  145. humanoid.WalkSpeed=50
  146. ---------
  147. --|Super Health|--
  148. humanoid.MaxHealth=math.huge
  149. humanoid.Health=math.huge
  150. local ff=Instance.new('ForceField',character)
  151.  
  152. local a=false
  153. mouse.KeyDown:connect(function(k)
  154. Spawn(function()
  155. print('key')
  156. local k=k:lower()
  157. if k=='q'then
  158. if a==false then
  159. if humanoid~=nil then
  160. humanoid.Sit=true
  161. a=true
  162. end--is there a humanoid
  163. elseif a==true then
  164. if humanoid~=nil then
  165. humanoid.Sit=false
  166. a=false
  167. end--is there humanoid?
  168. end--is a true?
  169. end--is k==q?
  170. end)
  171. end)
  172. Spawn(function()
  173. while true do
  174. character:MakeJoints()--first time ever implemeted not sure if works
  175. game:GetService('RunService').Stepped:wait()
  176. character:MakeJoints()--first time ever implemeted not sure if works
  177. humanoid.Health=math.huge
  178. end
  179. end)
  180. --cxcharlie
  181.  
  182. explosion={}
  183. explosion.Push=function(obj1,obj2)
  184. local dir=(obj2.CFrame.p-obj1.CFrame.p).unit
  185. local distance=(obj2.CFrame.p-obj1.CFrame.p).magnitude
  186. local derp=obj2:GetMass()
  187. local derp2=obj1:GetMass()
  188. local derpz=((derp+derp2)/20)*math.max(derp,derp2)
  189. obj2.Velocity=dir*1000/((distance*.1)+derpz)
  190. obj2.RotVelocity=(dir*2.5)/(distance+derpz)
  191. end
  192. explosion.manage=function(ex,bomb,hitPart)
  193. if not ex or not bomb or not hitPart then return end
  194. hitPart=hitPart
  195. Spawn(function()
  196. partDistance=(ex.Position-hitPart.Position).Magnitude
  197. local delta = hitPart.Position - ex.Position
  198. --Vector3 normal =
  199. -- (delta == Vector3::zero())
  200. -- ? Vector3::unitY()
  201. -- : delta.direction();
  202. local normal = (delta == Vector3.new(0,0,0))
  203. and Vector3.new(0,1,0)
  204. or delta.unit
  205.  
  206. --float radius = p->getRadius();
  207. local radius = bomb.Size.Magnitude / 2
  208.  
  209. --float surfaceArea = radius * radius;
  210. local surfaceArea = radius * radius
  211.  
  212. --Vector3 impulse = normal * blastPressure * surfaceArea * (1.0f / 4560.0f); // normalizing factor
  213. if not pcall(function()
  214. impulse = normal * ex.BlastPressure * surfaceArea * (1.0 / 4560.0)end) then
  215. impulse = normal * ex.BlastPressure.Value * surfaceArea * (1.0 / 4560.0)
  216. end
  217.  
  218. if not pcall(function()
  219. frac = 1 - math.max(0, math.min(1, ( partDistance-2)/ex.BlastRadius)) end)
  220. then
  221. frac = 1 - math.max(0, math.min(1, ( partDistance-2)/ex.BlastRadius.Value))
  222. end
  223.  
  224. --p->getBody()->accumulateLinearImpulse(impulse, p->getCoordinateFrame().translation);
  225. local currentVelocity = hitPart.Velocity
  226. local deltaVelocity = impulse / hitPart:GetMass() -- m * del-v = F * del-t = Impulse
  227. local bodyV = Instance.new('BodyVelocity',hitPart)
  228. bodyV.velocity = currentVelocity + deltaVelocity
  229. local forceNeeded = 196.2 * hitPart:GetMass() -- F = ma
  230. bodyV.maxForce = Vector3.new(forceNeeded, forceNeeded, forceNeeded) * 1000 * frac
  231. game.Debris:AddItem(bodyV, 0.2/2)
  232.  
  233. --p->getBody()->accumulateRotationalImpulse(impulse * 0.5 * radius); // a somewhat arbitrary, but nice torque
  234. local rotImpulse = impulse * 0.5 * radius
  235. local currentRotVelocity =hitPart.RotVelocity
  236. local momentOfInertia = (2 *hitPart:GetMass() * radius * radius / 5) -- moment of inertia = 2/5*m*distance^2 (assuming roughly spherical)
  237. local deltaRotVelocity = rotImpulse / momentOfInertia
  238. local rot = Instance.new('BodyAngularVelocity',hitPart)
  239. local torqueNeeded = 20 * momentOfInertia -- torque = distance x F, want about alpha = 20 rad/s^2, alpha * P = torque
  240. rot.maxTorque = Vector3.new(torqueNeeded, torqueNeeded, torqueNeeded) * 1000 * frac
  241. rot.angularvelocity = currentRotVelocity + deltaRotVelocity
  242. game.Debris:AddItem(rot, 0.2/2)
  243. explosion.Push(bomb,hitPart)
  244. bomb:remove()
  245. local maxDamage = 300 -- maximum possible damage
  246. if not pcall(function()
  247. distance_factor = partDistance/ex.BlastRadius
  248. end) then
  249. distance_factor = partDistance/ex.BlastRadius.Value
  250. end
  251. distance_factor = 2 - distance_factor
  252. if hitPart.Parent~=nil then
  253. if hitPart.Parent:FindFirstChild('Humanoid')~=nil and (not hit.Parent:IsDescendantOf(character)) then
  254. humanoid:TakeDamage(maxDamage*distance_factor)
  255. end
  256. end
  257.  
  258. end)
  259. bomb:remove()
  260. end
  261. explosion.new=function(soruce,pos,size,pressure,t,bc)
  262. Spawn(function()
  263. if source then source:remove() end
  264. local e=Create('Part'){
  265. FormFactor='Custom';
  266. Size=Vector3.new(.1,.1,.1);
  267. Anchored=true;
  268. CanCollide=false;
  269. BrickColor=bc or BrickColor.new('Bright red');
  270. Create("SpecialMesh"){
  271. MeshType='Sphere';
  272. Name='Ball'
  273. };
  274. Create("NumberValue"){
  275. Name='BlastPressure';
  276. Value=tonumber(pressure);
  277. };
  278. Create("NumberValue"){
  279. Name='BlastRadius';
  280. Value=tonumber(size.Magnitude/2)
  281. };
  282. Create("BoolValue"){
  283. Name='AlreadyHit'
  284. }
  285. }
  286. e.Touched:connect(function(p)
  287. if e.AlreadyHit.Value==false then
  288. e.AlreadyHit.Value=true
  289. local z=Create("Part"){
  290. CFrame=CFrame.new(pos);
  291. Parent=Workspace;
  292. Size=size;
  293. Transparency=1;
  294. Anchored=true;
  295. CanCollide=false
  296. }
  297. explosion.manage(e,z,p)
  298. end
  299. end)
  300. e.CFrame=CFrame.new(pos) or pos
  301. local origin=e.CFrame
  302. local mesh=e['Ball']
  303. Spawn(function()
  304. for i=0,1,.1 do
  305. e.CFrame=origin*CFrame.Angles(0,math.rad(math.random(3,8)),0)
  306. e.Size=e.Size:Lerp(size,i)
  307. e.Transparency=i
  308. wait(t/10)
  309. e.CFrame=origin
  310. end
  311. wait()
  312. e:remove()
  313. end)
  314. e.Parent=game:GetService('Workspace')
  315.  
  316. end)
  317. end
  318. mouse.Button1Down:connect(function()
  319. local c=Instance.new('Sound',torso)
  320. c.SoundId='http://www.roblox.com/asset/?id=98333808'
  321. c.Volume=.6
  322. c.Pitch=math.random(.3,1.3)
  323. c:Play()
  324. senpai={}--sorry too much anime
  325. local colors={'Bright red','Black','Really black','Dark stone grey','Medium stone grey','Bright yellow' }
  326. for i=1,5 do
  327. game:GetService('RunService').Stepped:wait()
  328. local ef=Instance.new('Part',character)
  329. table.insert(senpai,ef)
  330. ef.FormFactor='Custom'
  331. ef.Size=Vector3.new(1,1,1)
  332. ef.CanCollide=false
  333. ef.BrickColor=BrickColor.new(colors[math.random(1,#colors)])
  334. --ef.Transparency=1
  335. ef.CFrame=(torso.CFrame*CFrame.new(0,0,(-3)-i/10)*CFrame.Angles(math.rad(-90),math.rad(36),0))
  336. local mesh=Instance.new('SpecialMesh',ef)
  337. mesh.MeshType='FileMesh'
  338. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  339. mesh.Scale=Vector3.new(1+(i/5),1+(i/5),1+(i/5))
  340. Spawn(function()
  341. local dir=torso.CFrame.lookVector;
  342. for i=1,5 do
  343. wait(0)
  344. ef.CFrame=ef.CFrame+(dir*math.pi)
  345. ef.Transparency=ef.Transparency+.2
  346. end
  347. ef:remove()
  348. end)
  349. end
  350. c:remove()
  351.  
  352. --[[for _,v in pairs(senpai) do
  353. if v~=nil then
  354. wait()
  355. v:remove()
  356. end
  357. end]]--
  358. --[[Spawn(function()
  359. wait(.15)
  360. ef:remove()
  361. end)]]--
  362. ----
  363. Spawn(function()
  364. local dir=(mouse.Hit.p-ra.CFrame.p).unit*100
  365. local b=Instance.new('Part',workspace)
  366. b.BrickColor=BrickColor.new('Bright red')
  367. b.CFrame=(torso.CFrame*CFrame.new(0,0,-3.5))
  368. b.CFrame=CFrame.new(b.CFrame.p,mouse.Hit.p)*CFrame.Angles(math.rad(90),0,0)
  369. b.CanCollide=false
  370. local exSOUNDS={124255305,96485468,66868084,124254994}
  371. for _,s in pairs(exSOUNDS) do
  372. local sound=Instance.new('Sound',b)
  373. sound.SoundId=('http://www.roblox.com/asset/?id='..s)
  374. end
  375. local fire=Instance.new('Fire',b)
  376. fire.Color=Color3.new(0,0,0)
  377. local mass=Gmass(b)
  378. local weight=mass*196.2
  379. local f=Instance.new('BodyForce',b)
  380. f.force=Vector3.new(0,weight,0)
  381. local v=Instance.new('BodyVelocity',b)
  382. v.velocity=dir
  383. local m=Instance.new('SpecialMesh',b)
  384. Create("BoolValue"){
  385. Name='Already';
  386. Parent=b;
  387. }
  388. m.MeshType='FileMesh'
  389. m.MeshId='http://www.roblox.com/asset/?id=31601976'
  390. game:GetService('Debris'):AddItem(b,10)
  391. b.Touched:connect(function(hit)
  392. hit=hit
  393.  
  394.  
  395. if hit.Parent:FindFirstChild('Humanoid')~=nil and hit.Parent~=character then
  396. if not b.Already.Value then
  397. b.Already.Value=true
  398. hit.Parent.Humanoid:TakeDamage(math.random(1,maxDamage))
  399. hit.Parent.Humanoid.Sit=true
  400. local size=math.random(9,20)
  401. explosion.new(b,b.Position,Vector3.new(size,size,size),50000,.5)
  402. explosion.push(b,hit)
  403. local so={}
  404. for _,p in pairs(b:GetChildren()) do
  405. if p.ClassName=='Sound' then
  406. table.insert(so,p)
  407. end
  408. end
  409. so[math.random(1,#so)]:Play()
  410. end
  411. else
  412. if hit.Size.Magnitude>3 and (not hit:IsDescendantOf(character)) then
  413. delay(0,function() local ex=Instance.new('Explosion',game:GetService('Workspace'));ex.Position=b.CFrame.p;explosion.manage(ex,b,hit) end)
  414. local so={}
  415. for _,p in pairs(b:GetChildren()) do
  416. if p.ClassName=='Sound' then
  417. table.insert(so,p)
  418. end
  419. end
  420. so[math.random(1,#so)]:Play()
  421. b:remove()
  422. end
  423. end
  424.  
  425. end)
  426. end)
  427. end)
Add Comment
Please, Sign In to add comment