Advertisement
GETREKTLEL

HAND

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