Advertisement
DaOMEGAa32

test

Nov 20th, 2022
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.49 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. Model0 = Instance.new("Model")
  20. MeshPart1 = Instance.new("MeshPart")
  21. ParticleEmitter2 = Instance.new("ParticleEmitter")
  22. ParticleEmitter3 = Instance.new("ParticleEmitter")
  23. ParticleEmitter4 = Instance.new("ParticleEmitter")
  24. ParticleEmitter5 = Instance.new("ParticleEmitter")
  25. ParticleEmitter6 = Instance.new("ParticleEmitter")
  26. ParticleEmitter7 = Instance.new("ParticleEmitter")
  27. ParticleEmitter8 = Instance.new("ParticleEmitter")
  28. ParticleEmitter9 = Instance.new("ParticleEmitter")
  29. ParticleEmitter10 = Instance.new("ParticleEmitter")
  30. ParticleEmitter11 = Instance.new("ParticleEmitter")
  31. ParticleEmitter12 = Instance.new("ParticleEmitter")
  32. ParticleEmitter13 = Instance.new("ParticleEmitter")
  33. Script14 = Instance.new("Script")
  34. Script15 = Instance.new("Script")
  35. Script16 = Instance.new("Script")
  36. Script17 = Instance.new("Script")
  37. Script18 = Instance.new("Script")
  38. Script19 = Instance.new("Script")
  39. Script20 = Instance.new("Script")
  40. Sound21 = Instance.new("Sound")
  41. MeshPart22 = Instance.new("MeshPart")
  42. ParticleEmitter23 = Instance.new("ParticleEmitter")
  43. ParticleEmitter24 = Instance.new("ParticleEmitter")
  44. ParticleEmitter25 = Instance.new("ParticleEmitter")
  45. ParticleEmitter26 = Instance.new("ParticleEmitter")
  46. ParticleEmitter27 = Instance.new("ParticleEmitter")
  47. ParticleEmitter28 = Instance.new("ParticleEmitter")
  48. ParticleEmitter29 = Instance.new("ParticleEmitter")
  49. ParticleEmitter30 = Instance.new("ParticleEmitter")
  50. ParticleEmitter31 = Instance.new("ParticleEmitter")
  51. ParticleEmitter32 = Instance.new("ParticleEmitter")
  52. ParticleEmitter33 = Instance.new("ParticleEmitter")
  53. ParticleEmitter34 = Instance.new("ParticleEmitter")
  54. Script35 = Instance.new("Script")
  55. Script36 = Instance.new("Script")
  56. Script37 = Instance.new("Script")
  57. Script38 = Instance.new("Script")
  58. Script39 = Instance.new("Script")
  59. Sound40 = Instance.new("Sound")
  60. Script41 = Instance.new("Script")
  61. Model0.Parent = mas
  62. MeshPart1.Name = "Puddle"
  63. MeshPart1.Parent = Model0
  64. MeshPart1.CFrame = CFrame.new(16.7323761, 3.07915664, -25.1797791, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  65. MeshPart1.Position = Vector3.new(16.732376098632812, 3.0791566371917725, -25.179779052734375)
  66. MeshPart1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  67. MeshPart1.Size = Vector3.new(45.036338806152344, 6.158313274383545, 62.41835021972656)
  68. MeshPart1.BrickColor = BrickColor.new("Really black")
  69. MeshPart1.CanCollide = false
  70. MeshPart1.Material = Enum.Material.Neon
  71. MeshPart1.brickColor = BrickColor.new("Really black")
  72. ParticleEmitter2.Parent = MeshPart1
  73. ParticleEmitter2.Speed = NumberRange.new(0, 0)
  74. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  75. ParticleEmitter2.LightInfluence = 1
  76. ParticleEmitter2.Texture = "rbxassetid://8546937977"
  77. ParticleEmitter2.Size = NumberSequence.new(0.5,0.5)
  78. ParticleEmitter2.EmissionDirection = Enum.NormalId.Right
  79. ParticleEmitter2.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  80. ParticleEmitter2.Rate = 7000
  81. ParticleEmitter3.Parent = MeshPart1
  82. ParticleEmitter3.Speed = NumberRange.new(0, 0)
  83. ParticleEmitter3.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  84. ParticleEmitter3.LightEmission = 1
  85. ParticleEmitter3.LightInfluence = 1
  86. ParticleEmitter3.Texture = "rbxassetid://8546937977"
  87. ParticleEmitter3.Size = NumberSequence.new(0.5,0.5)
  88. ParticleEmitter3.EmissionDirection = Enum.NormalId.Right
  89. ParticleEmitter3.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  90. ParticleEmitter3.Rate = 7000
  91. ParticleEmitter4.Name = "ParticleEmitterB"
  92. ParticleEmitter4.Parent = MeshPart1
  93. ParticleEmitter4.Speed = NumberRange.new(0, 0)
  94. ParticleEmitter4.Color = ColorSequence.new(Color3.new(0, 0, 1),Color3.new(0, 0, 1))
  95. ParticleEmitter4.LightInfluence = 1
  96. ParticleEmitter4.Texture = "rbxassetid://6888586040"
  97. ParticleEmitter4.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  98. ParticleEmitter4.EmissionDirection = Enum.NormalId.Right
  99. ParticleEmitter4.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  100. ParticleEmitter4.Rate = 7000
  101. ParticleEmitter5.Name = "ParticleEmitterB"
  102. ParticleEmitter5.Parent = MeshPart1
  103. ParticleEmitter5.Speed = NumberRange.new(0, 0)
  104. ParticleEmitter5.Color = ColorSequence.new(Color3.new(0, 0, 1),Color3.new(0, 0, 1))
  105. ParticleEmitter5.LightEmission = 1
  106. ParticleEmitter5.LightInfluence = 1
  107. ParticleEmitter5.Texture = "rbxassetid://6888586040"
  108. ParticleEmitter5.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  109. ParticleEmitter5.EmissionDirection = Enum.NormalId.Right
  110. ParticleEmitter5.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  111. ParticleEmitter5.Rate = 7000
  112. ParticleEmitter6.Name = "ParticleEmitterG"
  113. ParticleEmitter6.Parent = MeshPart1
  114. ParticleEmitter6.Speed = NumberRange.new(0, 0)
  115. ParticleEmitter6.Color = ColorSequence.new(Color3.new(0, 1, 0),Color3.new(0, 1, 0))
  116. ParticleEmitter6.LightEmission = 1
  117. ParticleEmitter6.LightInfluence = 1
  118. ParticleEmitter6.Texture = "rbxassetid://6888586040"
  119. ParticleEmitter6.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  120. ParticleEmitter6.EmissionDirection = Enum.NormalId.Right
  121. ParticleEmitter6.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  122. ParticleEmitter6.Rate = 7000
  123. ParticleEmitter7.Name = "ParticleEmitterG"
  124. ParticleEmitter7.Parent = MeshPart1
  125. ParticleEmitter7.Speed = NumberRange.new(0, 0)
  126. ParticleEmitter7.Color = ColorSequence.new(Color3.new(0, 1, 0),Color3.new(0, 1, 0))
  127. ParticleEmitter7.LightInfluence = 1
  128. ParticleEmitter7.Texture = "rbxassetid://6888586040"
  129. ParticleEmitter7.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  130. ParticleEmitter7.EmissionDirection = Enum.NormalId.Right
  131. ParticleEmitter7.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  132. ParticleEmitter7.Rate = 7000
  133. ParticleEmitter8.Name = "ParticleEmitterP"
  134. ParticleEmitter8.Parent = MeshPart1
  135. ParticleEmitter8.Speed = NumberRange.new(0, 0)
  136. ParticleEmitter8.Color = ColorSequence.new(Color3.new(1, 0, 1),Color3.new(1, 0, 1))
  137. ParticleEmitter8.LightEmission = 1
  138. ParticleEmitter8.LightInfluence = 1
  139. ParticleEmitter8.Texture = "rbxassetid://6888586040"
  140. ParticleEmitter8.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  141. ParticleEmitter8.EmissionDirection = Enum.NormalId.Right
  142. ParticleEmitter8.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  143. ParticleEmitter8.Rate = 7000
  144. ParticleEmitter9.Name = "ParticleEmitterP"
  145. ParticleEmitter9.Parent = MeshPart1
  146. ParticleEmitter9.Speed = NumberRange.new(0, 0)
  147. ParticleEmitter9.Color = ColorSequence.new(Color3.new(1, 0, 1),Color3.new(1, 0, 1))
  148. ParticleEmitter9.LightInfluence = 1
  149. ParticleEmitter9.Texture = "rbxassetid://6888586040"
  150. ParticleEmitter9.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  151. ParticleEmitter9.EmissionDirection = Enum.NormalId.Right
  152. ParticleEmitter9.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  153. ParticleEmitter9.Rate = 7000
  154. ParticleEmitter10.Name = "ParticleEmitterR"
  155. ParticleEmitter10.Parent = MeshPart1
  156. ParticleEmitter10.Speed = NumberRange.new(0, 0)
  157. ParticleEmitter10.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  158. ParticleEmitter10.LightEmission = 1
  159. ParticleEmitter10.LightInfluence = 1
  160. ParticleEmitter10.Texture = "rbxassetid://6888586040"
  161. ParticleEmitter10.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  162. ParticleEmitter10.EmissionDirection = Enum.NormalId.Right
  163. ParticleEmitter10.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  164. ParticleEmitter10.Rate = 7000
  165. ParticleEmitter11.Name = "ParticleEmitterR"
  166. ParticleEmitter11.Parent = MeshPart1
  167. ParticleEmitter11.Speed = NumberRange.new(0, 0)
  168. ParticleEmitter11.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  169. ParticleEmitter11.LightInfluence = 1
  170. ParticleEmitter11.Texture = "rbxassetid://6888586040"
  171. ParticleEmitter11.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  172. ParticleEmitter11.EmissionDirection = Enum.NormalId.Right
  173. ParticleEmitter11.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  174. ParticleEmitter11.Rate = 7000
  175. ParticleEmitter12.Name = "ParticleEmitterY"
  176. ParticleEmitter12.Parent = MeshPart1
  177. ParticleEmitter12.Speed = NumberRange.new(0, 0)
  178. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 0))
  179. ParticleEmitter12.LightEmission = 1
  180. ParticleEmitter12.LightInfluence = 1
  181. ParticleEmitter12.Texture = "rbxassetid://6888586040"
  182. ParticleEmitter12.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  183. ParticleEmitter12.EmissionDirection = Enum.NormalId.Right
  184. ParticleEmitter12.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  185. ParticleEmitter12.Rate = 7000
  186. ParticleEmitter13.Name = "ParticleEmitterY"
  187. ParticleEmitter13.Parent = MeshPart1
  188. ParticleEmitter13.Speed = NumberRange.new(0, 0)
  189. ParticleEmitter13.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 0))
  190. ParticleEmitter13.LightInfluence = 1
  191. ParticleEmitter13.Texture = "rbxassetid://6888586040"
  192. ParticleEmitter13.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  193. ParticleEmitter13.EmissionDirection = Enum.NormalId.Right
  194. ParticleEmitter13.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  195. ParticleEmitter13.Rate = 7000
  196. Script14.Parent = MeshPart1
  197. table.insert(cors,sandbox(Script14,function()
  198. function onTouch(hit)
  199.  
  200. local fire4 = script.Parent.ParticleEmitterY:clone()
  201. fire4.Parent = hit
  202. local fire5 = script.Parent.ParticleEmitterR:clone()
  203. fire5.Parent = hit
  204. local fire6 = script.Parent.ParticleEmitterP:clone()
  205. fire6.Parent = hit
  206.  
  207.  
  208. wait (0.2)
  209. wait(math.random(1,2))
  210.  
  211.  
  212. fire4:Remove()
  213.  
  214. fire5:Remove()
  215.  
  216. fire6:Remove()
  217.  
  218.  
  219.  
  220.  
  221. end
  222. script.Parent.Touched:connect(onTouch)
  223. end))
  224. Script15.Name = "Hazard"
  225. Script15.Parent = MeshPart1
  226. table.insert(cors,sandbox(Script15,function()
  227. -- Made by anphu04, 11/17/2017 --
  228. -- The calculating is to mainly make the tornado looks realistic, you can change it if you want
  229.  
  230. local tor = script.Parent
  231. local debounce = false
  232. local attackrange = 3
  233.  
  234. --[[function onTouched(p)
  235. if not p:FindFirstChild("TornadoSuckingForce") then
  236. if debounce == false then
  237. debounce = true
  238. local bp = Instance.new("BodyPosition")
  239. bp.Name = "TornadoSuckingForce"
  240. bp.MaxForce = Vector3.new(2000 * p:GetMass(), 2000 * p:GetMass(), 2000 * p:GetMass())
  241. bp.Parent = p
  242. spawn(function()
  243. local height = 0
  244. repeat
  245. bp.Position = (CFrame.new(tor.Position - Vector3.new(0, tor.Size.Y/2, 0))*CFrame.Angles(0,math.pi*2*((tick()/5)%1),0)*CFrame.new(tor.Size.X/2 + height/50, height, 0)).p -- the x will make the parts get farther away from the tornado, and y will make it move up
  246. height = height + (tor.Size.Y/100*0.5) -- aka 2% of it's Y size
  247. wait()
  248. until height == height * tor.Size.Y/5 -- a very large number but it might fit the looks
  249. bp:remove()
  250. end)
  251. p.Anchored = false
  252. p:BreakJoints()
  253. game.Debris:AddItem(p, 60)
  254. wait(0.1)
  255. debounce = false
  256. end
  257. end
  258. end]]--
  259.  
  260. local near = coroutine.resume(coroutine.create(function()
  261. while wait() do
  262. local region = Region3.new(
  263. Vector3.new(tor.Position.X - tor.Size.X/2 - attackrange, tor.Position.Y - tor.Size.Y/2 - attackrange, tor.Position.Z - tor.Size.Z/2 - attackrange),
  264. Vector3.new(tor.Position.X + tor.Size.X/2 + attackrange, tor.Position.Y + tor.Size.Y/2 + attackrange, tor.Position.Z + tor.Size.Z/2 + attackrange)
  265. )
  266. local parts = workspace:FindPartsInRegion3(region)
  267. for i,p in pairs(parts) do
  268. if p:IsA("BasePart") and p.CanCollide == true and p:GetMass() < 1000000 then
  269. if not p:FindFirstChild("TornadoSuckingForce") then
  270. -- enssential stuff
  271. local bp = Instance.new("BodyPosition")
  272. bp.Name = "TornadoSuckingForce"
  273. bp.MaxForce = Vector3.new(2222 * p:GetMass(), 2222 * p:GetMass(), 2222 * p:GetMass())
  274. bp.Parent = p
  275. -- this will let the parts handle itself, instead of a whole script handling everything to reduce lag
  276. local torvalue = Instance.new("ObjectValue")
  277. torvalue.Name = "WhichTornado"
  278. torvalue.Value = tor
  279. torvalue.Parent = p
  280. local scr = script.SuckingScript:Clone()
  281. scr.Parent = p
  282. scr.Disabled = false
  283. -- extra stuff
  284. local bav = Instance.new("BodyAngularVelocity")
  285. bav.Name = "SuckingRotation"
  286. bav.MaxTorque = Vector3.new(4000 * p:GetMass(), 4000 * p:GetMass(), 4000 * p:GetMass())
  287. bav.AngularVelocity = Vector3.new(math.random(1,25), math.random(1,25), math.random(1,25))
  288. bav.Parent = p
  289.  
  290.  
  291.  
  292. end
  293. end
  294. end
  295. end
  296. end))
  297.  
  298. --tor.Touched:connect(onTouched)
  299.  
  300. end))
  301. Script16.Name = "SuckingScript"
  302. Script16.Parent = Script15
  303. table.insert(cors,sandbox(Script16,function()
  304. local sp = script.Parent
  305. repeat
  306. wait()
  307. until sp:FindFirstChild("WhichTornado")
  308. local tor = sp:FindFirstChild("WhichTornado").Value
  309. local bp = sp:FindFirstChild("TornadoSuckingForce")
  310.  
  311.  
  312.  
  313. game.Debris:AddItem(sp, 60)
  314. local height = 0
  315. repeat
  316. bp.Position = (CFrame.new(tor.Position - Vector3.new(0, tor.Size.Y/2, 0))*CFrame.Angles(0,math.pi*2*((tick()/5)%1),0)*CFrame.new(tor.Size.X/2 + height/30, height, 0)).p -- the x will make the parts get farther away from the tornado, and y will make it move up
  317. height = height + (tor.Size.Y/100*0.5) -- aka 2% of it's Y size
  318. wait()
  319. until height == tor.Size.Y -- a very large number but it might fit the looks
  320. bp:remove()
  321.  
  322. end))
  323. Script17.Name = "Random Size Block Script"
  324. Script17.Parent = MeshPart1
  325. table.insert(cors,sandbox(Script17,function()
  326.  
  327. while true do
  328. script.Parent.Size = Vector3.new(math.random(45.036, 55.036), math.random(4.249, 5.749), math.random(45.036, 55.036)) --This is making it generate a random size out of the simple numbers: 1 out of 100.
  329. wait(0)
  330. end
  331.  
  332. end))
  333. Script18.Name = "Follow"
  334. Script18.Parent = MeshPart1
  335. table.insert(cors,sandbox(Script18,function()
  336. MainTarget = nil
  337. SmallestNumber = 23423250
  338. while wait() do
  339. MainTarget = nil
  340. SmallestNumber = 253424230
  341. for _, Targets in pairs (game.Workspace:GetChildren()) do
  342. if Targets:FindFirstChildOfClass("Humanoid") and (Targets:FindFirstChildOfClass("Humanoid").Health > 0) and Targets:FindFirstChild("Head") and not (Targets == script.Parent) then
  343. if ((Targets:FindFirstChild("Head").Position - script.Parent.Position).Magnitude < SmallestNumber) then
  344. MainTarget = Targets
  345. SmallestNumber = (Targets:FindFirstChild("Head").Position - script.Parent.Position).Magnitude
  346. end
  347. end
  348. end
  349. if (MainTarget ~= nil) then
  350. script.Parent.Velocity = CFrame.lookAt(script.Parent.Position, MainTarget:FindFirstChild("Head").Position):VectorToWorldSpace(Vector3.new(0, 0, -5))
  351. else
  352. script.Parent.Velocity = Vector3.new(0, 0, 0)
  353. end
  354. end
  355. end))
  356. Script19.Name = "Gravity"
  357. Script19.Parent = MeshPart1
  358. table.insert(cors,sandbox(Script19,function()
  359. local GravityChanger = Instance.new("BodyForce")
  360. GravityChanger.Parent = script.Parent
  361. while wait() do
  362. GravityChanger.Force = Vector3.new(0, (script.Parent.Mass * game.Workspace.Gravity), 0)
  363. end
  364. end))
  365. Script20.Name = "Hurt on Touch"
  366. Script20.Parent = MeshPart1
  367. table.insert(cors,sandbox(Script20,function()
  368. function onTouched(part)
  369. if part.Parent ~= nil then
  370. local humanoid = part.Parent:findFirstChild("Humanoid")
  371. if humanoid and debounce==nil then
  372. debounce = true
  373. --script.Parent.Parent = nil
  374. humanoid.Health = humanoid.Health -2 --how much u want it to hurt
  375.  
  376. wait(0.1)
  377. debounce = nil
  378. end
  379. end
  380. end
  381. script.Parent.Touched:connect(onTouched)
  382. end))
  383. Sound21.Name = "Glitch"
  384. Sound21.Parent = MeshPart1
  385. Sound21.Looped = true
  386. Sound21.MaxDistance = 700
  387. Sound21.Playing = true
  388. Sound21.SoundId = "rbxassetid://5159141859"
  389. MeshPart22.Name = "Puddle"
  390. MeshPart22.Parent = Model0
  391. MeshPart22.CFrame = CFrame.new(16.7323761, 3.07915664, -25.1797791, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  392. MeshPart22.Position = Vector3.new(16.732376098632812, 3.0791566371917725, -25.179779052734375)
  393. MeshPart22.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  394. MeshPart22.Size = Vector3.new(45.036338806152344, 6.158313274383545, 62.41835021972656)
  395. MeshPart22.BrickColor = BrickColor.new("Really black")
  396. MeshPart22.CanCollide = false
  397. MeshPart22.Material = Enum.Material.Neon
  398. MeshPart22.brickColor = BrickColor.new("Really black")
  399. ParticleEmitter23.Parent = MeshPart22
  400. ParticleEmitter23.Speed = NumberRange.new(0, 0)
  401. ParticleEmitter23.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  402. ParticleEmitter23.LightInfluence = 1
  403. ParticleEmitter23.Texture = "rbxassetid://8546937977"
  404. ParticleEmitter23.Size = NumberSequence.new(0.5,0.5)
  405. ParticleEmitter23.EmissionDirection = Enum.NormalId.Right
  406. ParticleEmitter23.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  407. ParticleEmitter23.Rate = 7000
  408. ParticleEmitter24.Parent = MeshPart22
  409. ParticleEmitter24.Speed = NumberRange.new(0, 0)
  410. ParticleEmitter24.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  411. ParticleEmitter24.LightEmission = 1
  412. ParticleEmitter24.LightInfluence = 1
  413. ParticleEmitter24.Texture = "rbxassetid://8546937977"
  414. ParticleEmitter24.Size = NumberSequence.new(0.5,0.5)
  415. ParticleEmitter24.EmissionDirection = Enum.NormalId.Right
  416. ParticleEmitter24.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  417. ParticleEmitter24.Rate = 7000
  418. ParticleEmitter25.Name = "ParticleEmitterB"
  419. ParticleEmitter25.Parent = MeshPart22
  420. ParticleEmitter25.Speed = NumberRange.new(0, 0)
  421. ParticleEmitter25.Color = ColorSequence.new(Color3.new(0, 0, 1),Color3.new(0, 0, 1))
  422. ParticleEmitter25.LightInfluence = 1
  423. ParticleEmitter25.Texture = "rbxassetid://6888586040"
  424. ParticleEmitter25.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  425. ParticleEmitter25.EmissionDirection = Enum.NormalId.Right
  426. ParticleEmitter25.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  427. ParticleEmitter25.Rate = 7000
  428. ParticleEmitter26.Name = "ParticleEmitterB"
  429. ParticleEmitter26.Parent = MeshPart22
  430. ParticleEmitter26.Speed = NumberRange.new(0, 0)
  431. ParticleEmitter26.Color = ColorSequence.new(Color3.new(0, 0, 1),Color3.new(0, 0, 1))
  432. ParticleEmitter26.LightEmission = 1
  433. ParticleEmitter26.LightInfluence = 1
  434. ParticleEmitter26.Texture = "rbxassetid://6888586040"
  435. ParticleEmitter26.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  436. ParticleEmitter26.EmissionDirection = Enum.NormalId.Right
  437. ParticleEmitter26.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  438. ParticleEmitter26.Rate = 7000
  439. ParticleEmitter27.Name = "ParticleEmitterG"
  440. ParticleEmitter27.Parent = MeshPart22
  441. ParticleEmitter27.Speed = NumberRange.new(0, 0)
  442. ParticleEmitter27.Color = ColorSequence.new(Color3.new(0, 1, 0),Color3.new(0, 1, 0))
  443. ParticleEmitter27.LightEmission = 1
  444. ParticleEmitter27.LightInfluence = 1
  445. ParticleEmitter27.Texture = "rbxassetid://6888586040"
  446. ParticleEmitter27.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  447. ParticleEmitter27.EmissionDirection = Enum.NormalId.Right
  448. ParticleEmitter27.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  449. ParticleEmitter27.Rate = 7000
  450. ParticleEmitter28.Name = "ParticleEmitterG"
  451. ParticleEmitter28.Parent = MeshPart22
  452. ParticleEmitter28.Speed = NumberRange.new(0, 0)
  453. ParticleEmitter28.Color = ColorSequence.new(Color3.new(0, 1, 0),Color3.new(0, 1, 0))
  454. ParticleEmitter28.LightInfluence = 1
  455. ParticleEmitter28.Texture = "rbxassetid://6888586040"
  456. ParticleEmitter28.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  457. ParticleEmitter28.EmissionDirection = Enum.NormalId.Right
  458. ParticleEmitter28.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  459. ParticleEmitter28.Rate = 7000
  460. ParticleEmitter29.Name = "ParticleEmitterP"
  461. ParticleEmitter29.Parent = MeshPart22
  462. ParticleEmitter29.Speed = NumberRange.new(0, 0)
  463. ParticleEmitter29.Color = ColorSequence.new(Color3.new(1, 0, 1),Color3.new(1, 0, 1))
  464. ParticleEmitter29.LightEmission = 1
  465. ParticleEmitter29.LightInfluence = 1
  466. ParticleEmitter29.Texture = "rbxassetid://6888586040"
  467. ParticleEmitter29.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  468. ParticleEmitter29.EmissionDirection = Enum.NormalId.Right
  469. ParticleEmitter29.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  470. ParticleEmitter29.Rate = 7000
  471. ParticleEmitter30.Name = "ParticleEmitterP"
  472. ParticleEmitter30.Parent = MeshPart22
  473. ParticleEmitter30.Speed = NumberRange.new(0, 0)
  474. ParticleEmitter30.Color = ColorSequence.new(Color3.new(1, 0, 1),Color3.new(1, 0, 1))
  475. ParticleEmitter30.LightInfluence = 1
  476. ParticleEmitter30.Texture = "rbxassetid://6888586040"
  477. ParticleEmitter30.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  478. ParticleEmitter30.EmissionDirection = Enum.NormalId.Right
  479. ParticleEmitter30.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  480. ParticleEmitter30.Rate = 7000
  481. ParticleEmitter31.Name = "ParticleEmitterR"
  482. ParticleEmitter31.Parent = MeshPart22
  483. ParticleEmitter31.Speed = NumberRange.new(0, 0)
  484. ParticleEmitter31.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  485. ParticleEmitter31.LightEmission = 1
  486. ParticleEmitter31.LightInfluence = 1
  487. ParticleEmitter31.Texture = "rbxassetid://6888586040"
  488. ParticleEmitter31.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  489. ParticleEmitter31.EmissionDirection = Enum.NormalId.Right
  490. ParticleEmitter31.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  491. ParticleEmitter31.Rate = 7000
  492. ParticleEmitter32.Name = "ParticleEmitterR"
  493. ParticleEmitter32.Parent = MeshPart22
  494. ParticleEmitter32.Speed = NumberRange.new(0, 0)
  495. ParticleEmitter32.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  496. ParticleEmitter32.LightInfluence = 1
  497. ParticleEmitter32.Texture = "rbxassetid://6888586040"
  498. ParticleEmitter32.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  499. ParticleEmitter32.EmissionDirection = Enum.NormalId.Right
  500. ParticleEmitter32.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  501. ParticleEmitter32.Rate = 7000
  502. ParticleEmitter33.Name = "ParticleEmitterY"
  503. ParticleEmitter33.Parent = MeshPart22
  504. ParticleEmitter33.Speed = NumberRange.new(0, 0)
  505. ParticleEmitter33.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 0))
  506. ParticleEmitter33.LightEmission = 1
  507. ParticleEmitter33.LightInfluence = 1
  508. ParticleEmitter33.Texture = "rbxassetid://6888586040"
  509. ParticleEmitter33.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  510. ParticleEmitter33.EmissionDirection = Enum.NormalId.Right
  511. ParticleEmitter33.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  512. ParticleEmitter33.Rate = 7000
  513. ParticleEmitter34.Name = "ParticleEmitterY"
  514. ParticleEmitter34.Parent = MeshPart22
  515. ParticleEmitter34.Speed = NumberRange.new(0, 0)
  516. ParticleEmitter34.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 1, 0))
  517. ParticleEmitter34.LightInfluence = 1
  518. ParticleEmitter34.Texture = "rbxassetid://6888586040"
  519. ParticleEmitter34.Size = NumberSequence.new(0.30000001192092896,0.30000001192092896)
  520. ParticleEmitter34.EmissionDirection = Enum.NormalId.Right
  521. ParticleEmitter34.Lifetime = NumberRange.new(0.10000000149011612, 0.10000000149011612)
  522. ParticleEmitter34.Rate = 7000
  523. Script35.Parent = MeshPart22
  524. table.insert(cors,sandbox(Script35,function()
  525. local cooldown = false
  526. function onTouch(hit)
  527. if cooldown == false then
  528. cooldown = true
  529. local fire1 = script.Parent.ParticleEmitter:clone()
  530. fire1.Parent = hit
  531. local fire2 = script.Parent.ParticleEmitterB:clone()
  532. fire2.Parent = hit
  533. local fire3 = script.Parent.ParticleEmitterG:clone()
  534. fire3.Parent = hit
  535.  
  536. wait (0.2)
  537. wait(math.random(1,4))
  538.  
  539. cooldown = false
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549. end
  550.  
  551.  
  552. end
  553. script.Parent.Touched:connect(onTouch)
  554. end))
  555. Script36.Name = "Random Size Block Script"
  556. Script36.Parent = MeshPart22
  557. table.insert(cors,sandbox(Script36,function()
  558.  
  559. while true do
  560. script.Parent.Size = Vector3.new(math.random(45.036, 55.036), math.random(4.249, 5.749), math.random(45.036, 55.036)) --This is making it generate a random size out of the simple numbers: 1 out of 100.
  561. wait(0)
  562. end
  563.  
  564. end))
  565. Script37.Name = "Follow"
  566. Script37.Parent = MeshPart22
  567. table.insert(cors,sandbox(Script37,function()
  568. MainTarget = nil
  569. SmallestNumber = 234250
  570. while wait() do
  571. MainTarget = nil
  572. SmallestNumber = 250
  573. for _, Targets in pairs (game.Workspace:GetChildren()) do
  574. if Targets:FindFirstChildOfClass("Humanoid") and (Targets:FindFirstChildOfClass("Humanoid").Health > 0) and Targets:FindFirstChild("Head") and not (Targets == script.Parent) then
  575. if ((Targets:FindFirstChild("Head").Position - script.Parent.Position).Magnitude < SmallestNumber) then
  576. MainTarget = Targets
  577. SmallestNumber = (Targets:FindFirstChild("Head").Position - script.Parent.Position).Magnitude
  578. end
  579. end
  580. end
  581. if (MainTarget ~= nil) then
  582. script.Parent.Velocity = CFrame.lookAt(script.Parent.Position, MainTarget:FindFirstChild("Head").Position):VectorToWorldSpace(Vector3.new(0, 0, -12))
  583. else
  584. script.Parent.Velocity = Vector3.new(0, 0, 0)
  585. end
  586. end
  587. end))
  588. Script38.Name = "Gravity"
  589. Script38.Parent = MeshPart22
  590. table.insert(cors,sandbox(Script38,function()
  591. local GravityChanger = Instance.new("BodyForce")
  592. GravityChanger.Parent = script.Parent
  593. while wait() do
  594. GravityChanger.Force = Vector3.new(0, (script.Parent.Mass * game.Workspace.Gravity), 0)
  595. end
  596. end))
  597. Script39.Name = "Hurt on Touch"
  598. Script39.Parent = MeshPart22
  599. table.insert(cors,sandbox(Script39,function()
  600. function onTouched(part)
  601. if part.Parent ~= nil then
  602. local humanoid = part.Parent:findFirstChild("Humanoid")
  603. if humanoid and debounce==nil then
  604. debounce = true
  605. --script.Parent.Parent = nil
  606. local chaser = script.Parent.AI:Clone()
  607. chaser.Parent = humanoid.Parent
  608. chaser.Disabled = false
  609. wait(0.1)
  610. debounce = nil
  611. end
  612. end
  613. end
  614. script.Parent.Touched:connect(onTouched)
  615. end))
  616. Sound40.Name = "Glitch"
  617. Sound40.Parent = MeshPart22
  618. Sound40.Looped = true
  619. Sound40.MaxDistance = 700
  620. Sound40.Playing = true
  621. Sound40.SoundId = "rbxassetid://7992901987"
  622. Script41.Name = "AI"
  623. Script41.Parent = MeshPart22
  624. Script41.Enabled = false
  625. table.insert(cors,sandbox(Script41,function()
  626. local m=script.Parent local e=m.Name local k=m.HumanoidRootPart local b=1+math.random()local f=.6 if true then wait(b)local a=nil local c=m:GetChildren()for b=1,#c do local b=c[b]if(b.className=="Humanoid")then a=b.Name end end b=math.floor(b*100)f=7/m.Humanoid.WalkSpeed end local h=100 local n=k local p=k.Position local l=n.Position local d=p*2 local j=CFrame.new(p)local i=0 local b=100 local c=0 local q=100 local o=0 local g=false function findNearestTorso(b)local d=game.Workspace:children()local c=600 local h=nil local f=nil local g=nil for a=1,#d do g=d[a]if g.className=="Model"then h=g:findFirstChild("HumanoidRootPart")if h~=nil then f=g:findFirstChild("Humanoid")if f~=nil and(f.Health>0)and(g.Name~=e)then if(h.Position-b).magnitude<c then torso=h c=(h.Position-b).magnitude end end end end end return torso end function DrawRay(c,a)local a=Ray.new(c,(a).unit*7)local a,b=game.Workspace:FindPartOnRay(a,m)if false then local d=Instance.new("Part",m)if a then d.BrickColor=BrickColor.new("Bright red")else d.BrickColor=BrickColor.new("New Yeller")end d.Transparency=0.1 d.Anchored=true d.CanCollide=false d.formFactor=Enum.FormFactor.Custom local a=(b-c).magnitude d.Size=Vector3.new(0.6,0.6,a)d.CFrame=CFrame.new(b,c)*CFrame.new(0,0,-a/2)game.Debris:AddItem(d,.9)end return a end function FireRayToward()g=false local c=j*Vector3.new(1,0,0)-Vector3.new(0,.5,0)local a=j*Vector3.new(1,0,0)-j*Vector3.new(-1,0,0)local b=j.lookVector*7 local a=b-a+Vector3.new(0,2,0)local d=DrawRay(c,a)if d then if n.Parent==d.Parent then if d.Name~="HumanoidRootPart"and d.Name~="Head"then d:BreakJoints()d.CanCollide=true else d.Parent.Humanoid:TakeDamage(15)end elseif d.Parent.Name==e then if q>0 then d=nil elseif q==0 then d=k end end end if d~=k then if d then if(d.Name=="Truss"and n.Position.y>p.y-3)or n.Parent==d.Parent then d=nil g=true else if d.Name=="Terrain"then d=nil else d=DrawRay(c+Vector3.new(0,4.5,0),a)if d==nil then m.Humanoid.Jump=true end end end else local a=p.y if n then a=n.Position.y else i=0 end if p.y-3<a then d=DrawRay(p+b*.85,Vector3.new(0,-7,0))if d==nil then d=true else d=nil end end end end return d end function FireAtPlayer()j=CFrame.new(p,Vector3.new(l.x,p.y,l.z))local a=FireRayToward()return a end function FireRay()j=CFrame.new(p,p+Vector3.new(q,0,o))local a=FireRayToward()return a end function TurnRight()if q==0 then q=-o o=0 else o=q q=0 end end function TurnLeft()if q==0 then q=o o=0 else o=-q q=0 end end while k do p=k.Position local a=workspace.Terrain local e=(p-d).magnitude if n==nil then i=0 end if i==0 then n=findNearestTorso(p)if n~=nil then a=n l=n.Position if FireAtPlayer()or e<1 then q=(l.x-p.x)o=(l.z-p.z)if math.abs(q)>math.abs(o)then if q<0 then q=-h else q=h Xdag=q if o<0 then Zdag=-h else Zdag=h end end o=0 else if o<0 then o=-h else o=h end q=0 end b=q c=o i=1 end else p=p*2 end else if g==false or n.Position.y<p.y+3 then if e>=1 then TurnRight()end end end if e<1 then TurnLeft()end if i==1 then if FireRay()then TurnLeft()if FireRay()then TurnLeft()if FireRay()then TurnLeft()if FireRay()then m.Humanoid.Jump=true end end end else if q==b and c==o then i=0 end end l=p+Vector3.new(q,0,o)end script.Parent.Humanoid:MoveTo(l,a)d=p wait(f)end
  627. end))
  628. Script41.Disabled = true
  629. for i,v in pairs(mas:GetChildren()) do
  630. v.Parent = workspace
  631. pcall(function() v:MakeJoints() end)
  632. end
  633.  
  634. for i,v in pairs(cors) do
  635. spawn(function()
  636. pcall(v)
  637. end)
  638. end
  639.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement