Advertisement
Fordica2005

Dont see this

Jul 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.00 KB | None | 0 0
  1. --Created by PenguinAnonymous (ttyyuu12345) Editied by Dittoide
  2. --What's Added To M2S with Dittoide's Edit?
  3. --/ Better dummy script function to improve compatibility (makes it like you are running the code inside the script.)
  4. --/ Removed Gui In Bottom-Left for when you are making guis.
  5. --/ Removed "Inserting Map Please Wait" gui when selected Workspace as Place to export.
  6. --Credit: PenguinAnonymous for making original script, i just wanted to iron it out to my liking.
  7. --Errors: UnionOperation,TouchTransmitter
  8. local runDummyScript = function(f,scri)
  9. if (not scri:IsA('Script')) or (not scri:IsA('LocalScript')) then return false; end;
  10. local Dummy_CoRoutine = coroutine.create(function()
  11. getfenv().script = scri
  12. ypcall(function() f() end)
  13. end)
  14. table.insert(cors,Dummy_CoRoutine);
  15. coroutine.resume(Dummy_CoRoutine);
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. mas.Name = "M2S_Model"
  20. o1 = Instance.new("Tool")
  21. o2 = Instance.new("LocalScript")
  22. o3 = Instance.new("Script")
  23. o4 = Instance.new("Script")
  24. o5 = Instance.new("Animation")
  25. o6 = Instance.new("Animation")
  26. o7 = Instance.new("LocalScript")
  27. o10 = Instance.new("Sound")
  28. o11 = Instance.new("Sound")
  29. o12 = Instance.new("ParticleEmitter")
  30. o13 = Instance.new("ParticleEmitter")
  31. o14 = Instance.new("ParticleEmitter")
  32. o15 = Instance.new("ParticleEmitter")
  33. o16 = Instance.new("Sound")
  34. o17 = Instance.new("ParticleEmitter")
  35. o18 = Instance.new("ParticleEmitter")
  36. o19 = Instance.new("ParticleEmitter")
  37. o20 = Instance.new("ParticleEmitter")
  38. o21 = Instance.new("ParticleEmitter")
  39. o23 = Instance.new("Script")
  40. o24 = Instance.new("Script")
  41. o25 = Instance.new("Script")
  42. o26 = Instance.new("SpecialMesh")
  43. o27 = Instance.new("SpecialMesh")
  44. o28 = Instance.new("Script")
  45. o29 = Instance.new("Script")
  46. o30 = Instance.new("Sound")
  47. o31 = Instance.new("Sound")
  48. o32 = Instance.new("Sound")
  49. o33 = Instance.new("Sound")
  50. o34 = Instance.new("Sound")
  51. o35 = Instance.new("Sound")
  52. o36 = Instance.new("Sound")
  53. o37 = Instance.new("Sound")
  54. o38 = Instance.new("Sound")
  55. o39 = Instance.new("Sound")
  56. o40 = Instance.new("Sound")
  57. o41 = Instance.new("Sound")
  58. o42 = Instance.new("Sound")
  59. o43 = Instance.new("Sound")
  60. o44 = Instance.new("Sound")
  61. o45 = Instance.new("Sound")
  62. o46 = Instance.new("Sound")
  63. o47 = Instance.new("Sound")
  64. o48 = Instance.new("SpecialMesh")
  65. o49 = Instance.new("SpecialMesh")
  66. o50 = Instance.new("SpecialMesh")
  67. o51 = Instance.new("SpecialMesh")
  68. o52 = Instance.new("ParticleEmitter")
  69. o53 = Instance.new("Script")
  70. o54 = Instance.new("Script")
  71. o55 = Instance.new("Vector3Value")
  72. o56 = Instance.new("Sound")
  73. o57 = Instance.new("BillboardGui")
  74. o58 = Instance.new("ImageLabel")
  75. o59 = Instance.new("Script")
  76. o60 = Instance.new("BodyForce")
  77. o61 = Instance.new("LocalScript")
  78. o62 = Instance.new("Script")
  79. o63 = Instance.new("Script")
  80. o64 = Instance.new("Vector3Value")
  81. o65 = Instance.new("Script")
  82. o66 = Instance.new("LocalScript")
  83. o67 = Instance.new("BlurEffect")
  84. o1.Name = "HolyHandGrenade"
  85. o1.Parent = mas
  86. o1.ToolTip = "The most holiest grenade"
  87. o2.Name = "Local Gui"
  88. o2.Parent = o1
  89.  
  90. runDummyScript(function()
  91. local Tool = script.Parent;
  92.  
  93. enabled = true
  94. function onButton1Down(mouse)
  95. if not enabled then
  96. return
  97. end
  98.  
  99. enabled = false
  100. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  101.  
  102. wait(3)
  103. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  104. enabled = true
  105.  
  106. end
  107.  
  108. function onEquippedLocal(mouse)
  109.  
  110. if mouse == nil then
  111. print("Mouse not found")
  112. return
  113. end
  114.  
  115. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  116. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  117. end
  118.  
  119.  
  120.  
  121. Tool.Equipped:connect(onEquippedLocal)
  122.  
  123. end,o2)
  124.  
  125. o3.Name = "Welding"
  126. o3.Parent = o1
  127. o3.Disabled = true
  128.  
  129. runDummyScript(function()
  130. function Weld(x,y)
  131. local W = Instance.new("Weld")
  132. W.Part0 = x
  133. W.Part1 = y
  134. local CJ = CFrame.new(x.Position)
  135. local C0 = x.CFrame:inverse()*CJ
  136. local C1 = y.CFrame:inverse()*CJ
  137. W.C0 = C0
  138. W.C1 = C1
  139. W.Parent = x
  140. end
  141.  
  142. function Get(A)
  143. if A.className == "Part" then
  144. Weld(script.Parent.Handle, A)
  145. A.Anchored = false
  146. else
  147. local C = A:GetChildren()
  148. for i=1, #C do
  149. Get(C[i])
  150. end
  151. end
  152. end
  153.  
  154. function Finale()
  155. Get(script.Parent)
  156. end
  157.  
  158. script.Parent.Equipped:connect(Finale)
  159. script.Parent.Unequipped:connect(Finale)
  160. Finale()
  161. end,o3)
  162.  
  163. o4.Name = "Weld"
  164. o4.Parent = o1
  165. o4.Disabled = true
  166.  
  167. runDummyScript(function()
  168. local prev
  169. local parts = script.Parent:GetChildren()
  170. for i = 1,#parts do
  171. --remove any of the following parts that say "(parts[i].className == [className])" if you want to exclude that particular className type from the Weld
  172. if ((parts[i].className == "Part") or (parts[i].Name == "Handle") or (parts[i].className == "TrussPart") or (parts[i].className == "VehicleSeat") or (parts[i].className == "SkateboardPlatform")) then
  173. if (prev ~= nil) then
  174. local weld = Instance.new("Weld")
  175. weld.Part0 = prev
  176. weld.Part1 = parts[i]
  177. weld.C0 = prev.CFrame:inverse()
  178. weld.C1 = parts[i].CFrame:inverse()
  179. weld.Parent = prev
  180. parts[i].Anchored = false
  181. end
  182. prev = parts[i]
  183. end
  184. end
  185. wait(3)
  186.  
  187. end,o4)
  188.  
  189. o5.Name = "PullPin"
  190. o5.Parent = o1
  191. o5.AnimationId = "http://www.roblox.com/asset/?id=88743592"
  192. o6.Name = "Throwing"
  193. o6.Parent = o1
  194. o6.AnimationId = "http://www.roblox.com/asset/?id=88743566"
  195. o7.Name = "Launcher"
  196. o7.Parent = o1
  197.  
  198. runDummyScript(function()
  199. print 'Hello world!'
  200. Tool = script.Parent
  201. thrown = true
  202. VELOCITY = 150
  203. local Pull_Pin
  204. local Pull_Pin
  205. function Nade()
  206. local model = Instance.new("Model")
  207. model.Name = "Nade"
  208. babacaca=Tool.Weld:clone()
  209. model.Parent = game.Workspace
  210. nade = Tool.Handle:clone()
  211. -- nade1 = Tool.Handle1:clone()
  212. -- nade2 = Tool.Handle2:clone()
  213. -- nade3 = Tool.Handle3:clone()
  214. -- nade4 = Tool.Handle4:clone()
  215. nade.Parent = model
  216. -- nade1.Parent = model
  217. -- nade2.Parent = model
  218. -- nade3.Parent = model
  219. -- nade4.Parent= model
  220. nade.CanCollide = true
  221. --nade1.CanCollide = true
  222. --nade2.CanCollide = true
  223. --nade3.CanCollide = true
  224. --nade4.CanCollide= true
  225. -- nade1.Transparency=1
  226. --nade2.Transparency=1
  227. -- nade4.Transparency=1
  228. babacaca.Parent=model
  229. babacaca.Disabled=false
  230. local script = Tool.NadeScript:clone()
  231. script.Disabled = false
  232. script.Parent = nade
  233. return model
  234. end
  235.  
  236. function lob(mousepos)
  237.  
  238.  
  239. local vCharacter = Tool.Parent
  240. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  241. local head = Tool:findFirstChild("Handle")
  242. if head == nil then return end
  243. local dir = mousepos - head.Position
  244. dir = computeDirection(dir)
  245. local launch = head.Position + 1 * dir
  246. local delta = mousepos - launch
  247. local dy = delta.y
  248. local new_delta = Vector3.new(delta.x, 0, delta.z)
  249. delta = new_delta
  250. local dx = delta.magnitude
  251. local unit_delta = delta.unit
  252. local g = (-9.81 * 5)
  253. local theta = computeLaunchAngle(dx, dy, g)
  254. local vy = math.sin(theta)
  255. local xz = math.cos(theta)
  256. local vx = unit_delta.x * xz
  257. local vz = unit_delta.z * xz
  258. local missile = Nade()
  259. missile.Handle.Position = launch
  260. missile.Handle.Velocity = Vector3.new(vx, vy, vz) * VELOCITY
  261. local creator_tag = Instance.new("ObjectValue")
  262. creator_tag.Value = vPlayer
  263. creator_tag.Name = "creator"
  264. creator_tag.Parent = missile.Handle
  265. script.Parent.Handle.Throw:play()
  266.  
  267.  
  268. script.Parent.Handle.Transparency=1
  269. script.Parent.Part.Transparency=1
  270. --script.Parent.Handle1.Transparency=1
  271. --script.Parent.Handle2.Transparency=1
  272. --script.Parent.Handle3.Transparency=1
  273. --script.Parent.Handle4.Transparency=1
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280. end
  281.  
  282.  
  283. function computeLaunchAngle(dx, dy, grav)
  284.  
  285.  
  286. -- http://en.wikipedia.org/wiki/Trajectory_of_a_projectile
  287. local g = math.abs(grav)
  288. local inRoot = (VELOCITY*VELOCITY*VELOCITY*VELOCITY) - (g * ((g*dx*dx) + (2*dy*VELOCITY*VELOCITY)))
  289. if inRoot <= 0 then
  290. return .25 * math.pi
  291. end
  292. local root = math.sqrt(inRoot)
  293. local inATan1 = ((VELOCITY*VELOCITY) + root) / (g*dx)
  294. local inATan2 = ((VELOCITY*VELOCITY) - root) / (g*dx)
  295. local answer1 = math.atan(inATan1)
  296. local answer2 = math.atan(inATan2)
  297. if answer1 < answer2 then return answer1 end
  298. return answer2
  299. end
  300.  
  301. function computeDirection(vec)
  302. local lenSquared = vec.magnitude * vec.magnitude
  303. local invSqrt = 1 / math.sqrt(lenSquared)
  304. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  305. end
  306.  
  307.  
  308.  
  309. function onThrow()
  310. if thrown == true then return end
  311. thrown = true
  312. local character = Tool.Parent
  313. local humanoid = character.Humanoid
  314. if humanoid == nil then return end
  315. local targetPos = humanoid.TargetPoint
  316. Pull_Pin:Play()
  317. wait(.15)
  318. --Pull_pin() -- Pin will be pulled at the same time the anim shows the "pulling the pin" part.
  319. wait(.35)
  320. Throwing:Play()
  321. --Make_Nade()
  322.  
  323.  
  324.  
  325. lob(targetPos)
  326. --wait(0)
  327. wait(.1)
  328. Throwing:Stop()
  329. Pull_Pin:Stop()
  330.  
  331.  
  332.  
  333.  
  334. wait(1)
  335. script.Parent.Handle.Transparency=0
  336.  
  337. script.Parent.Part.Transparency=0
  338. thrown = false
  339.  
  340.  
  341. --script.Parent:Remove()
  342. end
  343.  
  344. function onEquipped()
  345.  
  346. local Pull = script.Parent.PullPin -- PULL PIN & THROW + ANIMATIONS!
  347. local Throw = script.Parent.Throwing
  348.  
  349. Pull_Pin = script.Parent.Parent.Humanoid:LoadAnimation(Pull)
  350. Throwing = script.Parent.Parent.Humanoid:LoadAnimation(Throw)
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357. end
  358.  
  359. function onUnequipped()
  360.  
  361. end
  362.  
  363. thrown = false
  364.  
  365. Tool.Equipped:connect(onEquipped)
  366. Tool.Unequipped:connect(onUnequipped)
  367. Tool.Activated:connect(onThrow)
  368.  
  369. end,o7)
  370.  
  371. o10.Name = "Blam"
  372. o10.Parent = mas
  373. o10.Pitch = 0.89999997615814
  374. o10.SoundId = "rbxassetid://164012897"
  375. o10.Volume = 1
  376. o11.Name = "Throw"
  377. o11.Parent = mas
  378. o11.SoundId = "http://www.roblox.com/asset/?id=18426149"
  379. o11.Volume = 1
  380. o12.Parent = mas
  381. o12.Size = NumberSequence.new(1.9999998807907,0.18750011920929,0)
  382. o12.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 0))
  383. o12.Enabled = false
  384. o12.LightEmission = 1
  385. o12.Texture = "http://www.roblox.com/asset/?id=241650934"
  386. o12.Lifetime = NumberRange.new(0.20000000298023,0.60000002384186)
  387. o12.Rate = 100000
  388. o12.Speed = NumberRange.new(0,0)
  389. o13.Name = "Activate"
  390. o13.Parent = mas
  391. o13.Size = NumberSequence.new(1.9999998807907,0.18750011920929,0)
  392. o13.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 0))
  393. o13.Enabled = false
  394. o13.LightEmission = 1
  395. o13.Texture = "http://www.roblox.com/asset/?id=241650934"
  396. o13.Lifetime = NumberRange.new(0.20000000298023,0.60000002384186)
  397. o13.Rate = 100000
  398. o13.Speed = NumberRange.new(10,10)
  399. o13.VelocitySpread = 360
  400. o14.Name = "Activate2"
  401. o14.Parent = mas
  402. o14.Size = NumberSequence.new(1.9999998807907,0.18750011920929,0.062499642372131,10)
  403. o14.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 0))
  404. o14.Enabled = false
  405. o14.LightEmission = 1
  406. o14.Texture = "http://www.roblox.com/asset/?id=241650934"
  407. o14.Lifetime = NumberRange.new(3,3)
  408. o14.Rate = 100000
  409. o14.Speed = NumberRange.new(10,10)
  410. o14.VelocitySpread = 360
  411. o15.Name = "dud"
  412. o15.Parent = mas
  413. o15.Transparency = NumberSequence.new(0,0.98750001192093)
  414. o15.Size = NumberSequence.new(0,3.875,4.9375,7.3125)
  415. o15.Color = ColorSequence.new(Color3.new(0.639216, 0.635294, 0.647059),Color3.new(0.639216, 0.635294, 0.647059))
  416. o15.Enabled = false
  417. o15.Texture = "rbxasset://textures/particles/smoke_main.dds"
  418. o15.Acceleration = Vector3.new(0, 1, 0)
  419. o15.Lifetime = NumberRange.new(5,5)
  420. o15.Rate = 10
  421. o15.RotSpeed = NumberRange.new(0,10)
  422. o15.Speed = NumberRange.new(0,0)
  423. o15.VelocitySpread = 10
  424. o16.Name = "dudsound"
  425. o16.Parent = mas
  426. o16.SoundId = "rbxassetid://148635119"
  427. o16.Volume = 1
  428. o17.Name = "zap"
  429. o17.Parent = mas
  430. o17.Transparency = NumberSequence.new(0.89999997615814,0.89999997615814)
  431. o17.Rotation = NumberRange.new(-360,360)
  432. o17.Size = NumberSequence.new(1.0429447889328,8.9375,0,8.875,0,8.9375,0,8.875,0.030674934387207,9.0625,0,8.875,0,9,0,8.375)
  433. o17.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 1))
  434. o17.Enabled = false
  435. o17.LightEmission = 1
  436. o17.Texture = "http://www.roblox.com/asset/?id=243098098"
  437. o17.Lifetime = NumberRange.new(0.20000000298023,0.20000000298023)
  438. o17.Rate = 250
  439. o17.Speed = NumberRange.new(0,0)
  440. o18.Name = "Glow2"
  441. o18.Parent = mas
  442. o18.Transparency = NumberSequence.new(1,0.74374997615814,1)
  443. o18.Rotation = NumberRange.new(0,360)
  444. o18.Size = NumberSequence.new(10,10)
  445. o18.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 0))
  446. o18.Enabled = false
  447. o18.LightEmission = 2
  448. o18.Texture = "http://www.roblox.com/asset/?id=243660364"
  449. o18.Lifetime = NumberRange.new(1,1)
  450. o18.Rate = 10
  451. o18.Speed = NumberRange.new(0,0)
  452. o18.VelocitySpread = 360
  453. o19.Name = "bigglow"
  454. o19.Parent = mas
  455. o19.Transparency = NumberSequence.new(1,0.62790697813034,0.30813956260681,1)
  456. o19.Rotation = NumberRange.new(0,360)
  457. o19.Size = NumberSequence.new(150,150)
  458. o19.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 0))
  459. o19.Enabled = false
  460. o19.LightEmission = 100
  461. o19.Texture = "http://www.roblox.com/asset/?id=243660364"
  462. o19.Lifetime = NumberRange.new(2,2)
  463. o19.Rate = 5
  464. o19.Speed = NumberRange.new(0,0)
  465. o19.VelocitySpread = 360
  466. o20.Name = "superglow"
  467. o20.Parent = mas
  468. o20.Transparency = NumberSequence.new(1,0.62790697813034,0.30813956260681,1)
  469. o20.Rotation = NumberRange.new(0,360)
  470. o20.Size = NumberSequence.new(1000,1000)
  471. o20.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 0))
  472. o20.Enabled = false
  473. o20.LightEmission = 100
  474. o20.Texture = "http://www.roblox.com/asset/?id=243660364"
  475. o20.Lifetime = NumberRange.new(2,2)
  476. o20.Rate = 10
  477. o20.Speed = NumberRange.new(0,0)
  478. o20.VelocitySpread = 360
  479. o21.Name = "holysmoke"
  480. o21.Parent = mas
  481. o21.Transparency = NumberSequence.new(0.41279071569443,0.39534884691238,1)
  482. o21.Rotation = NumberRange.new(-360,360)
  483. o21.Size = NumberSequence.new(600,600)
  484. o21.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 0))
  485. o21.Enabled = false
  486. o21.LightEmission = 100
  487. o21.Texture = "rbxasset://textures/particles/fire_main.dds"
  488. o21.Lifetime = NumberRange.new(2,3)
  489. o21.RotSpeed = NumberRange.new(-50,50)
  490. o21.Speed = NumberRange.new(200,200)
  491. o21.VelocitySpread = 360
  492. o23.Name = "WELD"
  493. o23.Parent = o1
  494.  
  495. runDummyScript(function()
  496. -- Created by Quenty (@Quenty, follow me on twitter).
  497. -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
  498. -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
  499.  
  500. --[[ INSTRUCTIONS
  501. - Place in the model
  502. - Make sure model is anchored
  503. - That's it. It will weld the model and all children.
  504.  
  505. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  506. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  507. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  508. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  509. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  510. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  511. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  512. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  513.  
  514. This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
  515. ]]
  516.  
  517. --[[ DOCUMENTATION
  518. - Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again.
  519. - Will work in PBS servers
  520. - Will work as long as it starts out with the part anchored
  521. - Stores the relative CFrame as a CFrame value
  522. - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
  523. - Utilizes a recursive algorith to find all parts in the model
  524. - Will reweld on script reparent if the script is initially parented to a tool.
  525. - Welds as fast as possible
  526. ]]
  527.  
  528. -- qPerfectionWeld.lua
  529. -- Created 10/6/2014
  530. -- Author: Quenty
  531. -- Version 1.0.3
  532.  
  533. -- Updated 10/14/2014 - Updated to 1.0.1
  534. --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
  535.  
  536. -- Updated 10/14/2014 - Updated to 1.0.2
  537. --- Fixed bug fix.
  538.  
  539. -- Updated 10/14/2014 - Updated to 1.0.3
  540. --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
  541.  
  542. local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
  543.  
  544.  
  545. local function CallOnChildren(Instance, FunctionToCall)
  546. -- Calls a function on each of the children of a certain object, using recursion.
  547.  
  548. FunctionToCall(Instance)
  549.  
  550. for _, Child in next, Instance:GetChildren() do
  551. CallOnChildren(Child, FunctionToCall)
  552. end
  553. end
  554.  
  555. local function GetNearestParent(Instance, ClassName)
  556. -- Returns the nearest parent of a certain class, or returns nil
  557.  
  558. local Ancestor = Instance
  559. repeat
  560. Ancestor = Ancestor.Parent
  561. if Ancestor == nil then
  562. return nil
  563. end
  564. until Ancestor:IsA(ClassName)
  565.  
  566. return Ancestor
  567. end
  568.  
  569. local function GetBricks(StartInstance)
  570. local List = {}
  571.  
  572. -- if StartInstance:IsA("BasePart") then
  573. -- List[#List+1] = StartInstance
  574. -- end
  575.  
  576. CallOnChildren(StartInstance, function(Item)
  577. if Item:IsA("BasePart") then
  578. List[#List+1] = Item;
  579. end
  580. end)
  581.  
  582. return List
  583. end
  584.  
  585. local function Modify(Instance, Values)
  586. -- Modifies an Instance by using a table.
  587.  
  588. assert(type(Values) == "table", "Values is not a table");
  589.  
  590. for Index, Value in next, Values do
  591. if type(Index) == "number" then
  592. Value.Parent = Instance
  593. else
  594. Instance[Index] = Value
  595. end
  596. end
  597. return Instance
  598. end
  599.  
  600. local function Make(ClassType, Properties)
  601. -- Using a syntax hack to create a nice way to Make new items.
  602.  
  603. return Modify(Instance.new(ClassType), Properties)
  604. end
  605.  
  606. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  607. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  608.  
  609. local function HasWheelJoint(Part)
  610. for _, SurfaceName in pairs(Surfaces) do
  611. for _, HingSurfaceName in pairs(HingSurfaces) do
  612. if Part[SurfaceName].Name == HingSurfaceName then
  613. return true
  614. end
  615. end
  616. end
  617.  
  618. return false
  619. end
  620.  
  621. local function ShouldBreakJoints(Part)
  622. --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
  623. -- definitely some edge cases.
  624.  
  625. if NEVER_BREAK_JOINTS then
  626. return false
  627. end
  628.  
  629. if HasWheelJoint(Part) then
  630. return false
  631. end
  632.  
  633. local Connected = Part:GetConnectedParts()
  634.  
  635. if #Connected == 1 then
  636. return false
  637. end
  638.  
  639. for _, Item in pairs(Connected) do
  640. if HasWheelJoint(Item) then
  641. return false
  642. elseif not Item:IsDescendantOf(script.Parent) then
  643. return false
  644. end
  645. end
  646.  
  647. return true
  648. end
  649.  
  650. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  651. --- Weld's 2 parts together
  652. -- @param Part0 The first part
  653. -- @param Part1 The second part (Dependent part most of the time).
  654. -- @param [JointType] The type of joint. Defaults to weld.
  655. -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
  656. -- @return The weld created.
  657.  
  658. JointType = JointType or "Weld"
  659. local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  660.  
  661. local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  662. Modify(NewWeld, {
  663. Name = "qCFrameWeldThingy";
  664. Part0 = Part0;
  665. Part1 = Part1;
  666. C0 = CFrame.new();--Part0.CFrame:inverse();
  667. C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  668. Parent = Part1;
  669. })
  670.  
  671. if not RelativeValue then
  672. RelativeValue = Make("CFrameValue", {
  673. Parent = Part1;
  674. Name = "qRelativeCFrameWeldValue";
  675. Archivable = true;
  676. Value = NewWeld.C1;
  677. })
  678. end
  679.  
  680. return NewWeld
  681. end
  682.  
  683. local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
  684. -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
  685. -- @param MainPart The part to weld the model to (can be in the model).
  686. -- @param [JointType] The type of joint. Defaults to weld.
  687. -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
  688.  
  689. for _, Part in pairs(Parts) do
  690. if ShouldBreakJoints(Part) then
  691. Part:BreakJoints()
  692. end
  693. end
  694.  
  695. for _, Part in pairs(Parts) do
  696. if Part ~= MainPart then
  697. WeldTogether(MainPart, Part, JointType, MainPart)
  698. end
  699. end
  700.  
  701. if not DoNotUnanchor then
  702. for _, Part in pairs(Parts) do
  703. Part.Anchored = false
  704. end
  705. MainPart.Anchored = false
  706. end
  707. end
  708.  
  709. local function PerfectionWeld()
  710. local Tool = GetNearestParent(script, "Tool")
  711.  
  712. local Parts = GetBricks(script.Parent)
  713. local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
  714.  
  715. if PrimaryPart then
  716. WeldParts(Parts, PrimaryPart, "Weld", false)
  717. else
  718. warn("qWeld - Unable to weld part")
  719. end
  720.  
  721. return Tool
  722. end
  723.  
  724. local Tool = PerfectionWeld()
  725.  
  726.  
  727. if Tool and script.ClassName == "Script" then
  728. --- Don't bother with local scripts
  729.  
  730. script.Parent.AncestryChanged:connect(function()
  731. PerfectionWeld()
  732. end)
  733. end
  734.  
  735. -- Created by Quenty (@Quenty, follow me on twitter).
  736.  
  737. end,o23)
  738.  
  739. o24.Name = "NadeScript"
  740. o24.Parent = o1
  741. o24.Disabled = true
  742.  
  743. runDummyScript(function()
  744. script.Parent.ParticleEmitter.Enabled=true
  745.  
  746. wait(3)
  747. local dud = math.random(1,10)
  748. if dud == 10 then
  749. script.Parent.ParticleEmitter.Enabled=false
  750. script.Parent.Activate2.Enabled=false
  751. script.Parent.Activate.Enabled=false
  752. script.Parent.dud.Enabled=true
  753. script.Parent.Glow2.Enabled=false
  754. script.Parent.dudsound:play()
  755. wait(10)
  756. script.Parent.dud.Enabled=false
  757. wait(5)
  758. script.Parent:Remove()
  759. end
  760. script.Parent.Activate.Enabled=true
  761. script.LAAAAA:Play()
  762. script.Parent.zap.Enabled=true
  763. script.Parent.Glow2.Enabled=true
  764.  
  765. wait(2)
  766. script.Parent.ParticleEmitter.Enabled=false
  767. script.Parent.Activate2.Enabled=true
  768. script.Parent.Activate.Enabled=false
  769. script.Parent.Anchored=true
  770. script.Parent.Transparency=1
  771. script.LAAAAA:Stop()
  772. --IM FIRIN MA LASEOR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  773. a=script:GetChildren()
  774. for i=1,#a do
  775. if a[i].ClassName=="Sound" and a[i].Name~="LAAAAA" and a[i].Name~="Blam" then
  776. a[i]:Play()
  777. end
  778. end
  779. --big radius
  780. a=script.attract:Clone()
  781. a.Parent=script.Parent
  782. a.Disabled=false
  783. caca=script.magic:clone()
  784. caca.Parent=script.Parent
  785. caca.Enabled=true
  786. bc=Instance.new("Part")
  787. bc.TopSurface=0
  788. bc.BottomSurface=0
  789. bc.Anchored=false
  790. bc.CanCollide=false
  791. bc.formFactor="Custom"
  792. bc.Size=Vector3.new(1,1,1)
  793.  
  794. bc.CFrame=CFrame.new(script.Parent.CFrame.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  795. bc.Name="poop"
  796. bc.BrickColor=BrickColor.new "White"
  797. ac=script.MAMAMesh:clone()
  798. ac.Parent = bc
  799. bc.Parent=game.Workspace
  800.  
  801. --end radius thing
  802.  
  803. --baca
  804.  
  805.  
  806. --bacamaca
  807.  
  808. ba=Instance.new("Part")
  809. ba.TopSurface=0
  810. ba.BottomSurface=0
  811. ba.Anchored=false
  812. ba.CanCollide=false
  813. ba.formFactor="Custom"
  814. ba.Size=Vector3.new(1,0.1,1)
  815. ba.CFrame=CFrame.new(script.Parent.CFrame.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  816. ba.Name="Effect"
  817. ba.BrickColor=BrickColor.new "White"
  818. ao=script.RingMesh:clone()
  819. ao.Parent = ba
  820. ba.Parent=game.Workspace
  821.  
  822. fo=Instance.new("BodyPosition")
  823. fo.maxForce= Vector3.new (99999999999999999,99999999999999999,99999999999999999)
  824. fo.position = ba.Position
  825. fo.Parent = ba
  826. aa=Instance.new("BodyAngularVelocity")
  827. aa.P=3000
  828. aa.maxTorque=aa.maxTorque*30
  829. aa.angularvelocity=Vector3.new(math.random(-70,70)/3,math.random(-70,70)/3,math.random(-70,70)/5)*100
  830. aa.Parent=ba
  831.  
  832.  
  833.  
  834.  
  835. -- spinning thing
  836.  
  837. baa=Instance.new("Part")
  838. baa.TopSurface=0
  839. baa.BottomSurface=0
  840. baa.Anchored=false
  841. baa.CanCollide=false
  842. baa.formFactor="Custom"
  843. baa.Size=Vector3.new(1,0.1,1)
  844. baa.CFrame=CFrame.new(script.Parent.CFrame.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  845. baa.Name="Effect"
  846. baa.BrickColor=BrickColor.new "White"
  847. aao=script.RingMesh:clone()
  848. aao.Parent = baa
  849. baa.Parent=game.Workspace
  850.  
  851. foo=Instance.new("BodyPosition")
  852. foo.maxForce= Vector3.new (99999999999999999,99999999999999999,99999999999999999)
  853. foo.position = baa.Position
  854. foo.Parent = baa
  855. aaa=Instance.new("BodyAngularVelocity")
  856. aaa.P=3000
  857. aaa.maxTorque=aaa.maxTorque*30
  858. aaa.angularvelocity=Vector3.new(math.random(-70,70)/3,math.random(-70,70)/3,math.random(-70,70)/5)*100
  859. aaa.Parent=baa
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871. --spinning thing 2
  872.  
  873. baaa=Instance.new("Part")
  874. baaa.TopSurface=0
  875. baaa.BottomSurface=0
  876. baaa.Anchored=false
  877. baaa.CanCollide=false
  878. baaa.formFactor="Custom"
  879. baaa.Size=Vector3.new(1,0.1,1)
  880. baaa.CFrame=CFrame.new(script.Parent.CFrame.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  881. baaa.Name="Effect"
  882. baaa.BrickColor=BrickColor.new "White"
  883. aaao=script.RingMesh:clone()
  884. aaao.Parent = baaa
  885. baaa.Parent=game.Workspace
  886.  
  887. fooo=Instance.new("BodyPosition")
  888. fooo.maxForce= Vector3.new (99999999999999999,99999999999999999,99999999999999999)
  889. fooo.position = baaa.Position
  890. fooo.Parent = baaa
  891. aaaa=Instance.new("BodyAngularVelocity")
  892. aaaa.P=3000
  893. aaaa.maxTorque=aaaa.maxTorque*30
  894. aaaa.angularvelocity=Vector3.new(math.random(-70,70)/3,math.random(-70,70)/3,math.random(-70,70)/5)*100
  895. aaaa.Parent=baaa
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903. --spinning thing 3
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912. c=Instance.new("Part")
  913. c.TopSurface=0
  914. c.BottomSurface=0
  915. c.Anchored=true
  916. c.CanCollide=false
  917. c.formFactor="Symmetric"
  918. c.Size=Vector3.new(1,1,1)
  919. c.CFrame=CFrame.new(script.Parent.CFrame.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  920. c.Name="Effect"
  921. c.BrickColor=BrickColor.new "Bright yellow"
  922. o=script.MAMAMesh:clone()
  923. o.Parent = c
  924. c.Parent=game.Workspace
  925.  
  926.  
  927.  
  928. q=Instance.new("Part")
  929. q.TopSurface=0
  930. q.BottomSurface=0
  931. q.Anchored=true
  932. q.CanCollide=false
  933. q.formFactor="Symmetric"
  934. q.Size=Vector3.new(1,1,1)
  935. q.CFrame=CFrame.new(script.Parent.CFrame.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  936. q.Name="Effect2"
  937. q.BrickColor=BrickColor.new "Bright yellow"
  938. b=script.MAMAMesh:clone()
  939. b.Parent = q
  940. q.Parent=game.Workspace
  941.  
  942.  
  943.  
  944.  
  945. no =Instance.new ("PointLight")
  946. no.Range=60
  947. no.Brightness=9999999999999999999
  948. no.Parent=q
  949.  
  950.  
  951. e=Instance.new("Part")
  952. e.TopSurface=0
  953. e.BottomSurface=0
  954. e.Anchored=true
  955. e.CanCollide=false
  956. e.formFactor="Plate"
  957. e.Size=Vector3.new(20,.4,20)
  958. e.CFrame=CFrame.new(script.Parent.CFrame.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  959. e.Name="Effect die!!!"
  960. e.BrickColor=BrickColor.new "White"
  961. r=script.RingMesh:clone()
  962. r.Parent=e
  963. e.Parent=game.Workspace
  964.  
  965. coroutine.resume(coroutine.create(function(mesh) for l=1, 180 do aaao.Parent.Transparency=l/180 aaao.Scale=aaao.Scale+Vector3.new(20/l,20/l,0.1) wait() end aaao.Parent.Parent=nil end),aaao)
  966. coroutine.resume(coroutine.create(function(mesh) for l=1, 180 do aao.Parent.Transparency=l/180 aao.Scale=aao.Scale+Vector3.new(20/l,20/l,0.1) wait() end aao.Parent.Parent=nil end),aao)
  967. coroutine.resume(coroutine.create(function(mesh) for l=1, 180 do ao.Parent.Transparency=l/180 ao.Scale=ao.Scale+Vector3.new(20/l,20/l,0.1) wait() end ao.Parent.Parent=nil end),ao)
  968. coroutine.resume(coroutine.create(function(mesh) for l=1, 50 do o.Parent.Transparency=l/90 o.Scale=o.Scale+Vector3.new(20/l,20/l,1000) wait() end end),o)
  969. coroutine.resume(coroutine.create(function(mesh) for l=1, 50 do b.Parent.Transparency=l/50 b.Scale=b.Scale+Vector3.new(80/l,80/l,10) wait() end b.Parent.Parent=nil end),b)
  970. coroutine.resume(coroutine.create(function(mesh) for l=1, 60 do r.Parent.Transparency=l/60 r.Scale=r.Scale+Vector3.new(60/l,60/l,.02) wait() end r.Parent.Parent=nil end),r)
  971. coroutine.resume(coroutine.create(function(mesh) for l=1, 60 do ac.Parent.Transparency=l/20 ac.Scale=ac.Scale+Vector3.new(200/l,200/l,50) wait() end ac.Parent.Parent=nil end),ac)
  972.  
  973. wait(1.4)
  974. coroutine.resume(coroutine.create(function(mesh) for l=1, 50 do o.Parent.Transparency=l/50 o.Scale=o.Scale+Vector3.new(-20/l,-20/l,30) wait() end o.Parent.Parent=nil end),o)
  975. wait(3)
  976.  
  977. wait(4)
  978. script.Parent.bigglow.Enabled=true
  979. wait(2)
  980. script.Parent.attract.Disabled=true
  981. script.Parent.superglow.Enabled=true
  982. script.Parent.holysmoke:Emit(20)
  983. for i=1,4 do
  984. a=script.Blam:Clone()
  985. a.Parent=script
  986. a:play()
  987. game:GetService("Debris"):AddItem(a,15)
  988. end
  989. for i = 1,35 do
  990. local puff = Instance.new("Part")
  991. script.Parent.Anchored=true
  992. script.ya:clone().Parent=puff
  993. puff.CanCollide = false
  994. puff.Anchored = false
  995. puff.Name = "smoke"
  996. puff.Transparency = 1
  997. puff.BrickColor = BrickColor.new("New Yeller")
  998. puff.formFactor = "Custom"
  999. puff.TopSurface = 0
  1000. puff.BottomSurface = 0
  1001. puff.Size = Vector3.new(4,4,4)
  1002. game:GetService("Debris"):AddItem(puff,5)
  1003. --[[ local erasee = script.smoke:clone()
  1004. erasee.Parent = puff
  1005. erasee.Enabled = true]]--
  1006. local erase = script.Fade:clone()
  1007. erase.Parent = puff
  1008. erase.Disabled = false
  1009. puff.Parent = game.Workspace
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017. --puff.Velocity= Vector3.new(math.random(0,800),math.random(-800,800),math.random(-800,800))
  1018. puff.CFrame = script.Parent.CFrame + Vector3.new((math.random(-1,1)),(math.random(-1,1)),(math.random(-1,1)))
  1019.  
  1020. local a = puff.Position
  1021. local b = script.Parent.Position
  1022.  
  1023. local dir = (a - b).unit
  1024.  
  1025. puff.Velocity = dir * 50
  1026. puff.Velocity = puff.Velocity+Vector3.new(0,math.random(20,150),0)
  1027.  
  1028.  
  1029. end
  1030.  
  1031.  
  1032. for i = 1,35 do
  1033. local puff = Instance.new("Part")
  1034. script.Parent.Anchored=true
  1035. script.ya:clone().Parent=puff
  1036. puff.CanCollide = false
  1037. puff.Anchored = false
  1038. puff.Name = "smoke2"
  1039. puff.Transparency = 1
  1040. puff.BrickColor = BrickColor.new("New Yeller")
  1041. puff.formFactor = "Custom"
  1042. puff.TopSurface = 0
  1043. puff.BottomSurface = 0
  1044. puff.Size = Vector3.new(4,4,4)
  1045. game:GetService("Debris"):AddItem(puff,5)
  1046. --[[ local erasee = script.smoke:clone()
  1047. erasee.Parent = puff
  1048. erasee.Enabled = true]]--
  1049. local erase = script.Fade:clone()
  1050. erase.Parent = puff
  1051. erase.Disabled = false
  1052. puff.Parent = game.Workspace
  1053. --puff.Velocity= Vector3.new(math.random(-800,800),math.random(-800,800),math.random(-800,800))
  1054. puff.CFrame = script.Parent.CFrame + Vector3.new((math.random(-1,1)),(math.random(-1,1)),(math.random(-1,1)))
  1055.  
  1056.  
  1057.  
  1058. local a = puff.Position
  1059. local b = script.Parent.Position
  1060.  
  1061. local dir = (a - b).unit
  1062.  
  1063. puff.Velocity = dir*0
  1064. puff.Velocity = puff.Velocity+Vector3.new(math.random(-250,250),0,math.random(-250,250))
  1065.  
  1066.  
  1067. end
  1068.  
  1069.  
  1070. for i = 1,25 do
  1071.  
  1072. local puffa = Instance.new("Part")
  1073. script.Parent.Anchored=true
  1074. --script.ya:clone().Parent=puff
  1075. puffa.CanCollide = false
  1076. puffa.Anchored = false
  1077. puffa.Name = "debris"
  1078. puffa.Transparency = 0
  1079. puffa.BrickColor = BrickColor.new("Brown")
  1080. puffa.formFactor = "Custom"
  1081. puffa.TopSurface = 0
  1082. puffa.BottomSurface = 0
  1083. puffa.Size = Vector3.new(math.random(0.6,3),math.random(0.6,3),math.random(0.6,3))
  1084. game:GetService("Debris"):AddItem(puffa,5)
  1085. puffa.Parent=game.Workspace
  1086. puffa.CFrame = script.Parent.CFrame + Vector3.new((math.random(-1,1)),(math.random(-1,1)),(math.random(-1,1)))
  1087.  
  1088.  
  1089. puffa.Velocity = puffa.Velocity+Vector3.new(math.random(-50,50),math.random(100,200),math.random(-50,50))
  1090. puffa.RotVelocity = puffa.RotVelocity+Vector3.new(math.random(-50,50),math.random(100,200),math.random(-50,50))
  1091.  
  1092.  
  1093. end
  1094. function onPlayerBlownUp2(part)
  1095. local force = part:findFirstChild("BlackHole Influence")
  1096. if force ~= nil then
  1097. force:remove()
  1098. end
  1099. local force = part:findFirstChild("gotopos")
  1100. if force ~= nil then
  1101. force:remove()
  1102. end
  1103. if part.Anchored==false then
  1104. local f = Instance.new("Fire")
  1105. f.Parent = part
  1106. f.Size = part:getMass()
  1107. f.Heat = part:getMass()
  1108. a=script.fireableno:Clone()
  1109. a.Parent=f
  1110. a.Disabled=false
  1111. game:GetService("Debris"):AddItem(f,15)
  1112.  
  1113. end
  1114. end
  1115. function onPlayerBlownUp3(part)
  1116. local force = part:findFirstChild("BlackHole Influence")
  1117. if force ~= nil then
  1118. force:remove()
  1119. end
  1120. local force = part:findFirstChild("gotopos")
  1121. if force ~= nil then
  1122. force:remove()
  1123. end
  1124.  
  1125. end
  1126. -- force removal
  1127. local exp = Instance.new("Explosion")
  1128. exp.BlastRadius = 180
  1129. exp.BlastPressure = 000000
  1130. exp.Position = script.Parent.Position
  1131. exp.Parent = game.Workspace
  1132. exp.Hit:connect(function(part) onPlayerBlownUp3(part) end)
  1133.  
  1134. --
  1135. script.Parent.Glow2.Enabled=false
  1136. wait()
  1137. script.Parent.Anchored=true
  1138. script.Parent.Transparency=1
  1139. local exp = Instance.new("Explosion")
  1140. exp.BlastRadius = 180 --super wussy units
  1141. exp.BlastPressure = 3500000 -- final bam
  1142. exp.Position = script.Parent.Position
  1143. exp.Parent = game.Workspace
  1144. script.Parent.Anchored=true
  1145. script.Parent.Transparency=1
  1146. script.Parent.magic.Enabled=false
  1147. exp.Hit:connect(function(part) onPlayerBlownUp2(part) end)
  1148. script.Parent.Activate2.Enabled=false
  1149.  
  1150. c=Instance.new("Part")
  1151. c.TopSurface=0
  1152. c.BottomSurface=0
  1153. c.Anchored=true
  1154. c.CanCollide=false
  1155. c.formFactor="Symmetric"
  1156. c.Size=Vector3.new(1,1,1)
  1157. c.CFrame=CFrame.new(script.Parent.CFrame.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  1158. c.Name="Effect"
  1159. c.BrickColor=BrickColor.new "Bright yellow"
  1160. o=script.MAMAMesh:clone()
  1161. o.Parent = c
  1162. c.Parent=game.Workspace
  1163.  
  1164.  
  1165. e=Instance.new("Part")
  1166. e.TopSurface=0
  1167. e.BottomSurface=0
  1168. e.Anchored=true
  1169. e.CanCollide=false
  1170. e.formFactor="Plate"
  1171. e.Size=Vector3.new(20,.4,20)
  1172. e.CFrame=CFrame.new(script.Parent.CFrame.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  1173. e.Name="Effect die!!!"
  1174. e.BrickColor=BrickColor.new "White"
  1175. r=script.RingMesh:clone()
  1176. r.Parent=e
  1177. e.Parent=game.Workspace
  1178.  
  1179.  
  1180. function onPlayerBlownUp(part)
  1181. local force = part:findFirstChild("gotopos")
  1182. if force ~= nil then
  1183. force:remove()
  1184. end
  1185. if part.Anchored==false then
  1186. local force = part:findFirstChild("BlackHole Influence")
  1187. if force ~= nil then
  1188. force:remove()
  1189. end
  1190. local b = part.Parent:findFirstChild("Humanoid")
  1191.  
  1192. if b ~= nil then
  1193. local a = game.Players:GetPlayerFromCharacter(b.Parent)
  1194. if a~= nil then
  1195. local lol = a.PlayerGui:findFirstChild("shake")
  1196. if lol == nil then
  1197. local ad = script.shake:Clone()
  1198. ad.Parent=a.PlayerGui
  1199. ad.Disabled=false
  1200.  
  1201. local ad = script.Blur:Clone()
  1202. ad.Disabled=false
  1203. ad.Parent=a.PlayerGui
  1204.  
  1205.  
  1206. end
  1207. end
  1208. end
  1209. end
  1210. end
  1211. coroutine.resume(coroutine.create(function(mesh) for l=1, 60 do r.Parent.Transparency=l/60 r.Scale=r.Scale+Vector3.new(60/l,60/l,.02) wait() end r.Parent.Parent=nil end),r)
  1212.  
  1213. coroutine.resume(coroutine.create(function(mesh) for l=1, 50 do o.Parent.Transparency=l/90 o.Scale=o.Scale+Vector3.new(20/l,20/l,1000) wait() end end),o)
  1214.  
  1215. script.Parent.zap.Enabled=false
  1216. local a = Instance.new("Explosion")
  1217. a.Position=script.Parent.Position
  1218. a.Parent=game.Workspace
  1219. a.BlastPressure=0
  1220. a.BlastRadius=1000
  1221. script.light.Disabled=false
  1222. a.Hit:connect(function(part) onPlayerBlownUp(part) end)
  1223. script.Parent.Activate2.Enabled=false
  1224. local i = 0
  1225. local x = script.Parent.Position.x
  1226. local y = script.Parent.Position.y
  1227. local z = script.Parent.Position.z
  1228. for i = 1, 30,1 do
  1229. local ex = Instance.new("Explosion")
  1230. ex.Parent = script.Parent
  1231. ex.Name = "Brick"
  1232. ex.BlastPressure = 250000
  1233. ex.BlastRadius = 900
  1234. ex.DestroyJointRadiusPercent = 0.2
  1235. ex.Position=Vector3.new(100*math.cos(math.rad(i*12)) + x, y, 100*math.sin(math.rad(i*12)) + z)
  1236. ex.Hit:connect(function(part) onPlayerBlownUp(part) end)
  1237.  
  1238. --wait()
  1239. end
  1240. wait(1.4)
  1241. script.Parent.bigglow.Enabled=false
  1242. script.Parent.superglow.Enabled=false
  1243. coroutine.resume(coroutine.create(function(mesh) for l=1, 50 do o.Parent.Transparency=l/50 o.Scale=o.Scale+Vector3.new(-20/l,-20/l,1000) wait() end o.Parent.Parent=nil end),o)
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253. wait(20)
  1254. script.Parent.Parent:Remove()
  1255.  
  1256. end,o24)
  1257.  
  1258. o25.Name = "Fade"
  1259. o25.Parent = o24
  1260. o25.Disabled = true
  1261.  
  1262. runDummyScript(function()
  1263.  
  1264.  
  1265. wait(3)
  1266. a=script.Parent:FindFirstChild("Fire")
  1267. if a ~= nil then
  1268. a.Enabled=false
  1269. end
  1270. wait(2)
  1271. script.Parent.Parent:remove()
  1272. end,o25)
  1273.  
  1274. o26.Name = "TMesh"
  1275. o26.Parent = o24
  1276. o26.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1277. o26.Scale = Vector3.new(12, 9, 12)
  1278. o26.MeshType = Enum.MeshType.FileMesh
  1279. o27.Name = "SpikeMesh"
  1280. o27.Parent = o24
  1281. o27.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1282. o27.Scale = Vector3.new(7, 16, 7)
  1283. o27.MeshType = Enum.MeshType.FileMesh
  1284. o28.Name = "Fade0"
  1285. o28.Parent = o24
  1286. o28.Disabled = true
  1287.  
  1288. runDummyScript(function()
  1289. wait()
  1290. script.Parent.BrickColor = BrickColor.new("New Yeller")
  1291. script.Parent.Transparency = script.Parent.Transparency + 0.05
  1292. script.Parent.Mesh0.Scale = script.Parent.Mesh0.Scale + Vector3.new(0.92,0.92,0)
  1293. wait(.01)
  1294. script.Parent.BrickColor = BrickColor.new("New Yeller")
  1295. script.Parent.Transparency = script.Parent.Transparency + 0.0
  1296. script.Parent.Mesh0.Scale = script.Parent.Mesh0.Scale + Vector3.new(0.92,0.92,0.)
  1297. wait(.01)
  1298. script.Parent.BrickColor = BrickColor.new("Deep orange")
  1299. script.Parent.Transparency = script.Parent.Transparency + 0.0
  1300. script.Parent.Mesh0.Scale = script.Parent.Mesh0.Scale + Vector3.new(0.92,0.92,0)
  1301. wait(.1)
  1302. script.Parent.BrickColor = BrickColor.new("Deep orange")
  1303. script.Parent.Transparency = script.Parent.Transparency + 0.0
  1304. script.Parent.Mesh0.Scale = script.Parent.Mesh0.Scale + Vector3.new(0.94,0.942,0.)
  1305. wait(.1)
  1306.  
  1307. wait(.01)
  1308. script.Parent.BrickColor = BrickColor.new("Deep orange")
  1309. script.Parent.Transparency = script.Parent.Transparency + 0.05
  1310. script.Parent.Mesh0.Scale = script.Parent.Mesh0.Scale + Vector3.new(0.943,0.943,0.)
  1311. wait(.01)
  1312. script.Parent.BrickColor = BrickColor.new("Deep orange")
  1313. script.Parent.Transparency = script.Parent.Transparency + 0.0
  1314. script.Parent.Mesh0.Scale = script.Parent.Mesh0.Scale + Vector3.new(0.943,0.943,0.)
  1315. wait(.01)
  1316.  
  1317.  
  1318.  
  1319. script.Parent.BrickColor = BrickColor.new("White")
  1320. script.Parent.Transparency = script.Parent.Transparency + 0.0
  1321. script.Parent.Mesh0.Scale = script.Parent.Mesh0.Scale + Vector3.new(0.943,0.943,0.)
  1322. wait(.1)
  1323. script.Parent.BrickColor = BrickColor.new("White")
  1324. script.Parent.Transparency = script.Parent.Transparency + 0.00
  1325. script.Parent.Mesh0.Scale = script.Parent.Mesh0.Scale + Vector3.new(0.943,0.943,0.)
  1326.  
  1327.  
  1328.  
  1329. wait(.1)
  1330. script.Parent.BrickColor = BrickColor.new("White")
  1331. script.Parent.Transparency = script.Parent.Transparency + 0.08
  1332. script.Parent.Mesh0.Scale = script.Parent.Mesh0.Scale + Vector3.new(0.943,0.943,0.)
  1333. wait(.1)
  1334. for i = 1,150 do
  1335. script.Parent.Transparency = script.Parent.Transparency + 0.005
  1336. script.Parent.Mesh0.Scale = script.Parent.Mesh0.Scale + Vector3.new(0.641,0.641,0.1)
  1337. wait()
  1338. end
  1339. wait(1)
  1340. script.Parent:remove()
  1341. end,o28)
  1342.  
  1343. o29.Name = "light"
  1344. o29.Parent = o24
  1345. o29.Disabled = true
  1346.  
  1347. runDummyScript(function()
  1348. print 'Hello world!'
  1349. g=game.Lighting.Ambient.g
  1350. b=game.Lighting.Ambient.b
  1351. r=game.Lighting.Ambient.r
  1352. local a = 1000/255
  1353. game.Lighting.Ambient=Color3.new(r+a,g+a,b+a)
  1354.  
  1355. wait(1)
  1356. for i=1,100 do
  1357. local a =10/255
  1358. g=game.Lighting.Ambient.g
  1359. b=game.Lighting.Ambient.b
  1360. r=game.Lighting.Ambient.r
  1361. game.Lighting.Ambient=Color3.new(r-a,g-a,b-a)
  1362.  
  1363. wait(0.05)
  1364. end
  1365. end,o29)
  1366.  
  1367. o30.Name = "Abscond"
  1368. o30.Parent = o24
  1369. o30.SoundId = "http://www.roblox.com/asset/?id=2767090"
  1370. o30.Volume = 1
  1371. o31.Name = "Berserk"
  1372. o31.Parent = o24
  1373. o31.Pitch = 0.10000000149012
  1374. o31.SoundId = "http://www.roblox.com/asset/?id=2101137"
  1375. o31.Volume = 1
  1376. o32.Name = "Break"
  1377. o32.Parent = o24
  1378. o32.Pitch = 0.75
  1379. o32.SoundId = "http://www.roblox.com/asset/?id=3264793"
  1380. o32.Volume = 1
  1381. o33.Name = "Curse"
  1382. o33.Parent = o24
  1383. o33.Pitch = 0.40000000596046
  1384. o33.SoundId = "http://www.roblox.com/asset/?id=13775494"
  1385. o33.Volume = 1
  1386. o34.Name = "DBC"
  1387. o34.Parent = o24
  1388. o34.Pitch = 0.55000001192093
  1389. o34.SoundId = "http://www.roblox.com/asset/?id=2101137"
  1390. o34.Volume = 1
  1391. o35.Name = "DBCha"
  1392. o35.Parent = o24
  1393. o35.Pitch = 0.30000001192093
  1394. o35.SoundId = "http://www.roblox.com/asset/?id=2101137"
  1395. o35.Volume = 1
  1396. o36.Name = "DBExplode"
  1397. o36.Parent = o24
  1398. o36.Pitch = 0.30000001192093
  1399. o36.SoundId = "http://www.roblox.com/asset/?id=2691586"
  1400. o36.Volume = 1
  1401. o37.Name = "DCHHIT"
  1402. o37.Parent = o24
  1403. o37.Pitch = 0.5
  1404. o37.SoundId = "http://www.roblox.com/asset/?id=2801263"
  1405. o37.Volume = 1
  1406. o38.Name = "DS"
  1407. o38.Parent = o24
  1408. o38.Pitch = 0.69999998807907
  1409. o38.SoundId = "http://www.roblox.com/asset/?id=2691586"
  1410. o38.Volume = 1
  1411. o39.Name = "DSHit"
  1412. o39.Parent = o24
  1413. o39.Pitch = 1.5
  1414. o39.SoundId = "http://www.roblox.com/asset/?id=2101148"
  1415. o39.Volume = 1
  1416. o40.Name = "Defile"
  1417. o40.Parent = o24
  1418. o40.Pitch = 1.125
  1419. o40.SoundId = "http://www.roblox.com/asset/?id=3264923"
  1420. o40.Volume = 1
  1421. o41.Name = "Elec"
  1422. o41.Parent = o24
  1423. o41.Pitch = 0.69999998807907
  1424. o41.SoundId = "http://www.roblox.com/asset/?id=2800815"
  1425. o41.Volume = 1
  1426. o42.Name = "GB1"
  1427. o42.Parent = o24
  1428. o42.Pitch = 0.69999998807907
  1429. o42.SoundId = "http://www.roblox.com/asset?id=1369158"
  1430. o42.Volume = 1
  1431. o43.Name = "GB2"
  1432. o43.Parent = o24
  1433. o43.Pitch = 0.80000001192093
  1434. o43.SoundId = "http://www.roblox.com/asset/?id=2974000"
  1435. o43.Volume = 1
  1436. o44.Name = "GB3"
  1437. o44.Parent = o24
  1438. o44.Pitch = 0.20000000298023
  1439. o44.SoundId = "http://www.roblox.com/asset/?id=12222124"
  1440. o44.Volume = 1
  1441. o45.Name = "GB4"
  1442. o45.Parent = o24
  1443. o45.Pitch = 0.64999997615814
  1444. o45.SoundId = "http://www.roblox.com/asset/?id=2974249"
  1445. o45.Volume = 1
  1446. o46.Name = "Imbue"
  1447. o46.Parent = o24
  1448. o46.SoundId = "http://www.roblox.com/asset/?id=2785493"
  1449. o46.Volume = 1
  1450. o47.Name = "LAAAAA"
  1451. o47.Parent = o24
  1452. o47.SoundId = "rbxassetid://198973822"
  1453. o47.Volume = 1
  1454. o48.Name = "BlastMesh"
  1455. o48.Parent = o24
  1456. o48.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1457. o48.Scale = Vector3.new(1, 0.100000001, 1)
  1458. o48.MeshType = Enum.MeshType.FileMesh
  1459. o49.Name = "CYMesh"
  1460. o49.Parent = o24
  1461. o49.Scale = Vector3.new(12, 9, 12)
  1462. o49.MeshType = Enum.MeshType.Cylinder
  1463. o50.Name = "MAMAMesh"
  1464. o50.Parent = o24
  1465. o50.MeshType = Enum.MeshType.Sphere
  1466. o51.Name = "RingMesh"
  1467. o51.Parent = o24
  1468. o51.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1469. o51.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  1470. o51.MeshType = Enum.MeshType.FileMesh
  1471. o52.Name = "magic"
  1472. o52.Parent = o24
  1473. o52.Size = NumberSequence.new(10,2.6875,0)
  1474. o52.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 1))
  1475. o52.Enabled = false
  1476. o52.LightEmission = 10000
  1477. o52.Texture = "http://www.roblox.com/asset/?id=241650934"
  1478. o52.ZOffset = 3
  1479. o52.Lifetime = NumberRange.new(0.5,2)
  1480. o52.Rate = 10000000000
  1481. o52.RotSpeed = NumberRange.new(-280,280)
  1482. o52.Speed = NumberRange.new(0,0)
  1483. o52.VelocitySpread = 360
  1484. o53.Name = "attractO"
  1485. o53.Parent = o24
  1486.  
  1487. runDummyScript(function()
  1488. function onPlayerBlownUp(part, distance, creator)
  1489.  
  1490. if part.Anchored==false then
  1491.  
  1492. aa= script.gotopos:Clone()
  1493. aa.Disabled=false
  1494. aa.Value.Value=script.Parent.Position
  1495. aa.Parent=part
  1496. game:GetService("Debris"):AddItem(aa,10)
  1497. local b = part.Parent:findFirstChild("Humanoid")
  1498. local c = part.Parent:findFirstChild("Humanoid")
  1499. if b == nil and c == nil then
  1500. local a = math.random(1,7)
  1501. if a == 1 then
  1502. part:BreakJoints()
  1503. end
  1504. end
  1505. end
  1506. end
  1507. local a = Instance.new("Explosion")
  1508. a.Position=script.Parent.Position
  1509. a.Parent=game.Workspace
  1510. a.BlastPressure=0
  1511. a.BlastRadius=200
  1512. a.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance) end)
  1513.  
  1514.  
  1515. end,o53)
  1516.  
  1517. o54.Name = "gotopos"
  1518. o54.Parent = o53
  1519. o54.Disabled = true
  1520.  
  1521. runDummyScript(function()
  1522. print 'Hello world!'
  1523. local b = script.Value.Value
  1524. while true do
  1525. wait(0.1)
  1526.  
  1527. local a = script.Parent.Position
  1528.  
  1529. local dir = (a - b).unit
  1530. dir=dir*-1
  1531. script.Parent.Velocity = dir*30
  1532. end
  1533. end,o54)
  1534.  
  1535. o55.Parent = o54
  1536. o56.Name = "Blam"
  1537. o56.Parent = o24
  1538. o56.Pitch = 0.20000000298023
  1539. o56.SoundId = "http://www.roblox.com/asset?id=2248511"
  1540. o56.Volume = 1
  1541. o57.Name = "smoke"
  1542. o57.Parent = o24
  1543. o57.Size = UDim2.new(7.5,0,7.5,0)
  1544. o57.Enabled = false
  1545. o58.Parent = o57
  1546. o58.Position = UDim2.new(-3.5,0,-3.5,0)
  1547. o58.Size = UDim2.new(8,0,8,0)
  1548. o58.position = UDim2.new(-3.5,0,-3.5,0)
  1549. o58.Position = UDim2.new(-3.5,0,-3.5,0)
  1550. o58.BackgroundColor3 = Color3.new(1, 1, 1)
  1551. o58.BackgroundTransparency = 1
  1552. o58.BorderSizePixel = 0
  1553. o58.Image = "http://www.roblox.com/asset/?id=31727915"
  1554. o59.Parent = o58
  1555.  
  1556. runDummyScript(function()
  1557. while true do
  1558. script.Parent.Rotation = script.Parent.Rotation+1
  1559. wait(0.1)
  1560. end
  1561. end,o59)
  1562.  
  1563. o60.Name = "ya"
  1564. o60.Parent = o24
  1565. o60.force = Vector3.new(0, 8790, 0)
  1566. o61.Name = "shake"
  1567. o61.Parent = o24
  1568. o61.Disabled = true
  1569.  
  1570. runDummyScript(function()
  1571. local cam = game.Workspace.CurrentCamera
  1572. for i=1,10 do
  1573. wait()
  1574.  
  1575. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1576. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1577.  
  1578. local x=math.random(-10, 10)/40
  1579. local y = math.random(-10, 10)/40
  1580. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(x,y , 0)
  1581. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1582. wait()
  1583. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1584. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1585.  
  1586. local xx=x*-1
  1587. local yy = y*-1
  1588. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(xx,yy , 0)
  1589. local p= cam_scroll*-1
  1590. cam.CoordinateFrame = ncf*CFrame.new(0, 0, p)
  1591.  
  1592.  
  1593.  
  1594.  
  1595. end
  1596. for i=1,10 do
  1597. wait()
  1598.  
  1599. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1600. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1601.  
  1602. local x=math.random(-7, 7)/40
  1603. local y = math.random(-7, 7)/40
  1604. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(x,y , 0)
  1605. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1606. wait()
  1607. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1608. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1609.  
  1610. local xx=x*-1
  1611. local yy = y*-1
  1612. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(xx,yy , 0)
  1613. local p= cam_scroll*-1
  1614. cam.CoordinateFrame = ncf*CFrame.new(0, 0, p)
  1615.  
  1616.  
  1617.  
  1618.  
  1619. end
  1620. for i=1,10 do
  1621. wait()
  1622.  
  1623. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1624. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1625.  
  1626. local x=math.random(-5, 5)/40
  1627. local y = math.random(-5, 5)/40
  1628. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(x,y , 0)
  1629. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1630. wait()
  1631. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1632. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1633.  
  1634. local xx=x*-1
  1635. local yy = y*-1
  1636. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(xx,yy , 0)
  1637. local p= cam_scroll*-1
  1638. cam.CoordinateFrame = ncf*CFrame.new(0, 0, p)
  1639.  
  1640.  
  1641.  
  1642.  
  1643. end
  1644. for i=1,10 do
  1645. wait()
  1646.  
  1647. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1648. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1649.  
  1650. local x=math.random(-3, 3)/40
  1651. local y = math.random(-3, 3)/40
  1652. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(x,y , 0)
  1653. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1654. wait()
  1655. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1656. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1657.  
  1658. local xx=x*-1
  1659. local yy = y*-1
  1660. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(xx,yy , 0)
  1661. local p= cam_scroll*-1
  1662. cam.CoordinateFrame = ncf*CFrame.new(0, 0, p)
  1663.  
  1664.  
  1665.  
  1666.  
  1667. end
  1668. for i=1,10 do
  1669. wait()
  1670.  
  1671. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1672. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1673.  
  1674. local x=math.random(-2, 2)/40
  1675. local y = math.random(-2, 2)/40
  1676. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(x,y , 0)
  1677. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1678. wait()
  1679. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1680. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1681.  
  1682. local xx=x*-1
  1683. local yy = y*-1
  1684. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(xx,yy , 0)
  1685. local p= cam_scroll*-1
  1686. cam.CoordinateFrame = ncf*CFrame.new(0, 0, p)
  1687.  
  1688.  
  1689.  
  1690.  
  1691. end
  1692. for i=1,10 do
  1693. wait()
  1694.  
  1695. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1696. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1697.  
  1698. local x=math.random(-1, 1)/40
  1699. local y = math.random(-1, 1)/40
  1700. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(x,y , 0)
  1701. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1702. wait()
  1703. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1704. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1705.  
  1706. local xx=x*-1
  1707. local yy = y*-1
  1708. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(xx,yy , 0)
  1709. local p= cam_scroll*-1
  1710. cam.CoordinateFrame = ncf*CFrame.new(0, 0, p)
  1711.  
  1712.  
  1713.  
  1714.  
  1715. end
  1716. for i=1,10 do
  1717. wait()
  1718.  
  1719. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1720. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1721.  
  1722. local x=math.random(-0.5, 0.5)/40
  1723. local y = math.random(-0.5, 0.5)/40
  1724. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(x,y , 0)
  1725. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1726. wait()
  1727. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1728. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1729.  
  1730. local xx=x*-1
  1731. local yy = y*-1
  1732. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(xx,yy , 0)
  1733. local p= cam_scroll*-1
  1734. cam.CoordinateFrame = ncf*CFrame.new(0, 0, p)
  1735.  
  1736.  
  1737.  
  1738.  
  1739. end
  1740. for i=1,10 do
  1741. wait()
  1742.  
  1743. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1744. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1745.  
  1746. local x=math.random(-0.1, 0.1)/40
  1747. local y = math.random(-0.1, 0.1)/40
  1748. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(x,y , 0)
  1749. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1750. wait()
  1751. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1752. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1753.  
  1754. local xx=x*-1
  1755. local yy = y*-1
  1756. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(xx,yy , 0)
  1757. local p= cam_scroll*-1
  1758. cam.CoordinateFrame = ncf*CFrame.new(0, 0, p)
  1759.  
  1760.  
  1761.  
  1762.  
  1763. end
  1764. for i=1,10 do
  1765. wait()
  1766.  
  1767. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1768. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1769.  
  1770. local x=math.random(-0.01, 0.01)/40
  1771. local y = math.random(-0.01, 0.01)/40
  1772. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(x,y , 0)
  1773. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1774. wait()
  1775. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1776. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1777.  
  1778. local xx=x*-1
  1779. local yy = y*-1
  1780. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(xx,yy , 0)
  1781. local p= cam_scroll*-1
  1782. cam.CoordinateFrame = ncf*CFrame.new(0, 0, p)
  1783.  
  1784.  
  1785.  
  1786.  
  1787. end
  1788. for i=1,10 do
  1789. wait()
  1790.  
  1791. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1792. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1793.  
  1794. local x=math.random(-0.0025, 0.0025)/40
  1795. local y = math.random(-0.0025, 0.0025)/40
  1796. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(x,y , 0)
  1797. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1798. wait()
  1799. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/10, math.random(-5, 5)/5, 0)
  1800. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1801.  
  1802. local xx=x*-1
  1803. local yy = y*-1
  1804. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(xx,yy , 0)
  1805. local p= cam_scroll*-1
  1806. cam.CoordinateFrame = ncf*CFrame.new(0, 0, p)
  1807.  
  1808.  
  1809.  
  1810.  
  1811. end
  1812. script:remove()
  1813. --script:remove()
  1814.  
  1815. end,o61)
  1816.  
  1817. o62.Name = "attract"
  1818. o62.Parent = o24
  1819.  
  1820. runDummyScript(function()
  1821. local hole = script.Parent
  1822. local childList = {}
  1823.  
  1824. local massConstant = 5.8 -- Generally a good value
  1825.  
  1826. local mass = 40000 * massConstant
  1827.  
  1828. -- This is basically a function that finds all unanchored parts and adds them to childList.
  1829. -- Note: This should only be run once for each object
  1830. function checkObject(obj)
  1831. if (obj ~= hole) and (obj.className == "Part") then
  1832. if (obj.Anchored == false) then
  1833. table.insert(childList, 1, obj)
  1834. end
  1835. elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
  1836. local child = obj:GetChildren()
  1837. for x = 1, #child do
  1838. checkObject(child[x])
  1839. end
  1840. obj.ChildAdded:connect(checkObject)
  1841. end
  1842. end
  1843.  
  1844. checkObject(workspace)
  1845.  
  1846. print("Black Hole script loaded.")
  1847.  
  1848. local n = 0
  1849. while true do
  1850. if n < #childList then
  1851. n = n + 1
  1852. if n % 800 == 0 then
  1853. wait(0.5)
  1854. end
  1855. else
  1856. n = 1
  1857. wait(0.5)
  1858. end
  1859.  
  1860. local child = childList[n]
  1861. if (child ~= hole) and (child.className == "Part") and (child.Anchored == false) then
  1862. local relPos = hole.Position - child.Position
  1863. local motivator = child:FindFirstChild("BlackHole Influence")
  1864. if relPos.magnitude * 350 * massConstant < mass then
  1865.  
  1866. local a = math.random(1,4)
  1867. if a == 1 and child.Parent:findFirstChild("Humanoid") == nil then
  1868. child:BreakJoints()
  1869.  
  1870.  
  1871. end
  1872.  
  1873. if (relPos.magnitude * 320 * massConstant < mass) and (child.Size.z + hole.Size.x > relPos.magnitude * 2 - 4) then
  1874. mass = mass + child:GetMass()
  1875. -- child:Remove()
  1876. table.remove(childList, n)
  1877. n = n - 1 -- This is the reason I need a counter of my own design
  1878. else
  1879. -- child.CanCollide = false -- I Can assume that things won't escape the black hole.
  1880. if motivator == nil then
  1881. motivator = Instance.new("BodyPosition")
  1882. motivator.Parent = child
  1883. --game:GetService("Debris"):AddItem(motivator,0.4)
  1884. motivator.Name = "BlackHole Influence"
  1885. end
  1886. if child.Parent:findFirstChild("Humanoid") ~= nil then
  1887. motivator.position = hole.Position
  1888. motivator.maxForce = Vector3.new(1000, 1000, 1000) * mass * child:GetMass() / (relPos.magnitude * massConstant)
  1889. motivator:remove()
  1890. local posfind = child.Parent:findFirstChild("Torso")
  1891. if posfind ~= nil then
  1892. local posfind2 = posfind:findFirstChild("gotopos")
  1893. if posfind2== nil then
  1894. aa= script.gotopos:Clone()
  1895. aa.Disabled=false
  1896. game:GetService("Debris"):AddItem(aa,10)
  1897. aa.Value.Value=script.Parent.Position
  1898. aa.Parent=child.Parent.Torso
  1899. end
  1900. end
  1901. else
  1902. motivator.position = hole.Position
  1903. motivator.maxForce = Vector3.new(1500, 1500, 1500) * mass * child:GetMass() / (relPos.magnitude * massConstant)
  1904.  
  1905. end
  1906.  
  1907. end
  1908. elseif motivator ~= nil then
  1909. motivator:Remove()
  1910. end
  1911. end
  1912. end
  1913. end,o62)
  1914.  
  1915. o63.Name = "gotopos"
  1916. o63.Parent = o62
  1917. o63.Disabled = true
  1918.  
  1919. runDummyScript(function()
  1920. print 'Hello world!'
  1921. local b = script.Value.Value
  1922. while true do
  1923. wait(0.1)
  1924.  
  1925. local a = script.Parent.Position
  1926.  
  1927. local dir = (a - b).unit
  1928. dir=dir*-1
  1929. script.Parent.Velocity = dir*30
  1930. end
  1931. end,o63)
  1932.  
  1933. o64.Parent = o63
  1934. o65.Name = "fireableno"
  1935. o65.Parent = o24
  1936. o65.Disabled = true
  1937.  
  1938. runDummyScript(function()
  1939. print 'Hello world!'
  1940. wait(10)
  1941. script.Parent.Enabled=false
  1942. end,o65)
  1943.  
  1944. o66.Name = "Blur"
  1945. o66.Parent = o24
  1946. o66.Disabled = true
  1947.  
  1948. runDummyScript(function()
  1949. bass=script.Blur
  1950. script.Blur.Parent=game.Workspace.CurrentCamera
  1951. local rs=game:GetService("RunService").RenderStepped
  1952. for i = 1,75 do
  1953. rs:wait()
  1954. bass.Size=bass.Size-0.2
  1955. end
  1956. bass:Remove()
  1957. script:Remove()
  1958. end,o66)
  1959.  
  1960. o67.Parent = o66
  1961. o67.Size = 15
  1962. mas.Parent = workspace
  1963. mas:MakeJoints()
  1964. local mas1 = mas:GetChildren()
  1965. for i=1,#mas1 do
  1966. mas1[i].Parent = workspace
  1967. ypcall(function() mas1[i]:MakeJoints() end)
  1968. end
  1969. mas:Destroy()
  1970. for i=1,#cors do
  1971. coroutine.resume(cors[i])
  1972. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement