Advertisement
EmeraldIT

Sonic ig

Sep 5th, 2021
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.97 KB | None | 0 0
  1. --made by phoenixclockworks
  2. --messy, but not the messiest you'll see from me
  3.  
  4. print("Run into someone to literally blow them up")
  5. print("Also you're really fast and you gain friction so your movement is quicker/choppier, so dont be surprised by whatever happens")
  6. print("Also phoenix clockworks made this <3")
  7.  
  8.  
  9. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  10. local CF = CFrame.new
  11. local ANG = CFrame.Angles
  12. local RAN = math.random
  13. local C3 = Color3.new
  14. local RGB = Color3.fromRGB
  15. local VT = Vector3.new
  16. local UD = UDim2.new
  17. local SEQ = NumberSequence.new
  18. local CSEQ = ColorSequence.new
  19. local NKEY = NumberSequenceKeypoint.new
  20. local RANGE = NumberRange.new
  21.  
  22. local pte = function(parent, lightemission, lightinfluence, color, transparency, drag, locked, accel, rate, lifetime, rotspeed, rotation, spread, speed, size, texture, z, direction, enabled)
  23. local pe = Instance.new("ParticleEmitter")
  24. pe.LightEmission = lightemission
  25. pe.LightInfluence = lightinfluence
  26. pe.Color = color
  27. pe.Size = size
  28. pe.Transparency = transparency
  29. pe.ZOffset = z
  30. pe.EmissionDirection = direction
  31. pe.Rate = rate
  32. pe.LockedToPart = locked
  33. pe.Acceleration = accel or Vector3.new(0,0,0)
  34. pe.Lifetime = lifetime
  35. pe.RotSpeed = rotspeed
  36. pe.Rotation = rotation
  37. pe.SpreadAngle = spread
  38. pe.Speed = speed
  39. pe.Texture = texture
  40. pe.Enabled = enabled
  41. pe.Drag = drag
  42. pe.Parent = parent
  43. return pe
  44. end
  45.  
  46. --[[sound = Instance.new("Sound")
  47. sound.SoundId = "rbxassetid://3277257601"
  48. sound.PlaybackSpeed = 5
  49. sound.Volume = 4
  50. sound.Parent = p
  51. sound:Play()
  52. local pt = pte(p, 1, 0, CSEQ(RGB(0,255,100)), SEQ({NKEY(0,0), NKEY(1,0)}), 0, true, nil, 0, NumberRange.new(1.7), NumberRange.new(100), NumberRange.new(0), Vector2.new(0), NumberRange.new(0), SEQ({NKEY(0,0),NKEY(0.2,50),NKEY(0.8,50),NKEY(1,0)}), "rbxassetid://2273224484", 3, "Top", false)
  53. ]]
  54.  
  55. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  56.  
  57. for _,v in pairs(owner.Character:GetChildren()) do
  58. pcall(function()
  59. local part = v
  60.  
  61. local density = 20
  62. local friction = 111
  63. local elasticity = 0.5
  64. local frictionWeight = 1
  65. local elasticityWeight = 1
  66.  
  67. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  68. part.CustomPhysicalProperties = physProperties
  69.  
  70. if p ~= owner.Character.HumanoidRootPart then
  71. at = Instance.new("Attachment", v)
  72. at2 = Instance.new("Attachment", v)
  73. at.Position = Vector3.new(0,v.Size.Y/2,0)
  74. at.Position = Vector3.new(0,-v.Size.Y/2,0)
  75. Trail = Instance.new("Trail", v)
  76. Trail.Name = "WTFHOWA"
  77. Trail.FaceCamera = true
  78. Trail.Color = ColorSequence.new(Color3.new(0,1,0.9))
  79. Trail.LightEmission = 1
  80. Trail.LightInfluence = 0
  81. Trail.Lifetime = 0.3
  82. Trail.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  83. Trail.Attachment0 = at
  84. Trail.Attachment1 = at2
  85. --the trail is too transparent, so its doubled up in the laziest way possible, copy and paste
  86. at = Instance.new("Attachment", v)
  87. at2 = Instance.new("Attachment", v)
  88. at.Position = Vector3.new(0,v.Size.Y/2,0)
  89. at.Position = Vector3.new(0,-v.Size.Y/2,0)
  90. Trail = Instance.new("Trail", v)
  91. Trail.Name = "WTFHOWB"
  92. Trail.FaceCamera = true
  93. Trail.Color = ColorSequence.new(Color3.new(0,1,0.9))
  94. Trail.LightEmission = 1
  95. Trail.LightInfluence = 0
  96. Trail.Lifetime = 0.3
  97. Trail.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  98. Trail.Attachment0 = at
  99. Trail.Attachment1 = at2
  100. end
  101. end)
  102. end
  103.  
  104. owner.Character.Humanoid.WalkSpeed = 1000
  105. local cooldown = false
  106. local fol = Instance.new("Folder", owner.Character)
  107. local wow = 0
  108.  
  109. local lightning = function(pos, lifetime, size, range, times, increment)
  110. local p = Instance.new("Part", fol)
  111. p.Size = Vector3.new(.1,.1,.1)
  112. p.Transparency = 1
  113. p.Anchored = true
  114. p.CanCollide = false
  115. p.Position = pos
  116. at = Instance.new("Attachment", p)
  117. at2 = Instance.new("Attachment", p)
  118. at.Position = Vector3.new(0,size/2,0)
  119. at.Position = Vector3.new(0,-(size/2),0)
  120. Trail = Instance.new("Trail", p)
  121. Trail.Name = "WTFHOW"
  122. Trail.FaceCamera = true
  123. Trail.Color = ColorSequence.new(Color3.new(0,1,0.9))
  124. Trail.LightEmission = 1
  125. Trail.LightInfluence = 0
  126. Trail.Lifetime = lifetime
  127. Trail.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  128. Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,0)})
  129. Trail.Attachment0 = at
  130. Trail.Attachment1 = at2
  131. spawn(function()
  132. for i = 1,times do
  133. p.CFrame = p.CFrame * CFrame.new(math.random(-range, range), increment, math.random(-range, range))
  134. wait(0.01)
  135. end
  136. end)
  137. end
  138.  
  139. --got lazy so i made a whole new function instead of a new argument
  140.  
  141. local lightningbutbetter = function(pos, lifetime, size, range, times, increment, rot)
  142. local p = Instance.new("Part", fol)
  143. p.Size = Vector3.new(.1,.1,.1)
  144. p.Transparency = 1
  145. p.Anchored = true
  146. p.CanCollide = false
  147. p.Position = pos
  148. if rot then p.CFrame = p.CFrame * rot end
  149. at = Instance.new("Attachment", p)
  150. at2 = Instance.new("Attachment", p)
  151. at.Position = Vector3.new(0,size/2,0)
  152. at.Position = Vector3.new(0,-(size/2),0)
  153. Trail = Instance.new("Trail", p)
  154. Trail.Name = "WTFHOW"
  155. Trail.FaceCamera = true
  156. Trail.Color = ColorSequence.new(Color3.new(0,0,1))
  157. Trail.LightEmission = 1
  158. Trail.LightInfluence = 0
  159. Trail.Lifetime = lifetime
  160. Trail.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  161. Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,0)})
  162. Trail.Attachment0 = at
  163. Trail.Attachment1 = at2
  164. spawn(function()
  165. for i = 1,times do
  166. p.CFrame = p.CFrame * CFrame.new(math.random(-range, range), increment, math.random(-range, range))
  167. wait(0.01)
  168. end
  169. end)
  170. end
  171.  
  172. function explosion(size, where)
  173. local sp = Instance.new("Part", fol)
  174. sp.Size = Vector3.new(1,1,1)
  175. sp.Material = "Neon"
  176. sp.Color = Color3.new(0,1,0.9)
  177. sp.Anchored = true
  178. sp.CanCollide = false
  179. sp.CastShadow = false
  180. sp.CFrame = where
  181. local zaps = Instance.new("Sound", sp)
  182. zaps.Volume = 1
  183. if math.random(1,2) == 1 then
  184. zaps.SoundId = "rbxassetid://168586586"
  185. else
  186. zaps.SoundId = "rbxassetid://821439273"
  187. end
  188. local spm = Instance.new("SpecialMesh")
  189. spm.MeshType = "Sphere"
  190. spm.Parent = sp
  191. local sp2 = sp:Clone()
  192. sp2.Parent = fol
  193. sp2.Orientation = Vector3.new(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  194. local sp3 = sp:Clone()
  195. sp3.Parent = fol
  196. sp3.Orientation = Vector3.new(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  197. spawn(function()
  198. zaps:Play()
  199. for i = 1,60 do
  200. sp.Size = sp.Size:Lerp(Vector3.new(70+(size),70+size,70+(size)), 0.1)
  201. sp2.Size = sp2.Size:Lerp(Vector3.new(100+(size),10+size,10+(size)), 0.1)
  202. sp3.Size = sp3.Size:Lerp(Vector3.new(100+(size),10+size,10+(size)), 0.1)
  203. sp.Transparency = i/60
  204. sp2.Transparency = i/60
  205. sp3.Transparency = i/60
  206. wait()
  207. end
  208. sp3:Destroy()
  209. sp2:Destroy()
  210. sp:Destroy()
  211. end)
  212. lightning(sp.Position, math.random(3,5), math.random(3,5), math.random(2,7), math.random(10,30), math.random(7,11))
  213. lightning(sp.Position, math.random(3,5), math.random(3,5), math.random(2,7), math.random(10,30), math.random(7,11))
  214. lightning(sp.Position, math.random(3,5), math.random(3,5), math.random(2,7), math.random(10,30), math.random(7,11))
  215. end
  216.  
  217.  
  218.  
  219. spawn(function()
  220. while true do
  221. wow = (owner.Character.HumanoidRootPart.Velocity.Z + owner.Character.HumanoidRootPart.Velocity.X)/10
  222. wait(0.5)
  223. end
  224. end)
  225.  
  226. mode = "AAAAAAA"
  227.  
  228. owner.Character.HumanoidRootPart.Touched:Connect(function(h)
  229. if h.Parent == owner.Character then return end
  230. if cooldown then return end
  231. if h.Parent == fol then return end
  232. if h.Parent:FindFirstChildOfClass("Humanoid") then
  233. cooldown = true
  234. explosion(wow, h.CFrame)
  235. for _,v in pairs(h.Parent:GetChildren()) do
  236. pcall(function()
  237. v.Anchored = true
  238. v.Color = Color3.new(0,1,1)
  239. v.Material = "Neon"
  240. v.Parent:BreakJoints()
  241. v.Parent = fol
  242. spawn(function()
  243. v.Anchored = false
  244. vE = Instance.new("BodyVelocity", v)
  245. vE.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  246. vE.Velocity = Vector3.new(math.random(-200,200), math.random(-200,200), math.random(-200,200))
  247. game.Debris:AddItem(vE, 0.1)
  248. game.Debris:AddItem(v, math.random(2,3))
  249. end)
  250. end)
  251. end
  252. wait(1)
  253. cooldown = false
  254. end
  255. end)
  256.  
  257. function abusemode()
  258. local zaps = Instance.new("Sound", owner.Character.HumanoidRootPart)
  259. zaps.Volume = 1
  260. zaps.SoundId = "rbxassetid://611621859"
  261. zaps.Looped = true
  262. zaps:Play()
  263. for i = 1,5 do
  264. lightningbutbetter(owner.Character.Torso.Position, math.random(4,6), math.random(7.5,10), math.random(4,6), math.random(13,20), math.random(4,6), nil) --CFrame.Angles(math.rad(math.random(-90,90)), math.rad(math.random(-180,180)), math.rad(math.random(-90,90)))
  265. end
  266. local sp = Instance.new("Part", fol)
  267. sp.Size = Vector3.new(1,1,1)
  268. sp.Material = "Neon"
  269. sp.Color = Color3.new(0,0,1)
  270. sp.Anchored = true
  271. local size = 0
  272. sp.CanCollide = false
  273. sp.CastShadow = false
  274. sp.CFrame = owner.Character.HumanoidRootPart.CFrame
  275. local zaps = Instance.new("Sound", sp)
  276. zaps.Volume = 1
  277. if math.random(1,2) == 1 then
  278. zaps.SoundId = "rbxassetid://168586586"
  279. else
  280. zaps.SoundId = "rbxassetid://821439273"
  281. end
  282. local spm = Instance.new("SpecialMesh")
  283. spm.MeshType = "Sphere"
  284. spm.Parent = sp
  285. local sp2 = sp:Clone()
  286. sp2.Parent = fol
  287. sp2.Orientation = Vector3.new(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  288. local sp3 = sp:Clone()
  289. sp3.Parent = fol
  290. sp3.Orientation = Vector3.new(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  291. spawn(function()
  292. zaps:Play()
  293. for i = 1,60 do
  294. sp.Size = sp.Size:Lerp(Vector3.new(100+(size),100+size,100+(size)), 0.1)
  295. sp2.Size = sp2.Size:Lerp(Vector3.new(50+(size),10+size,10+(size)), 0.1)
  296. sp3.Size = sp3.Size:Lerp(Vector3.new(50+(size),10+size,10+(size)), 0.1)
  297. sp.Transparency = i/60
  298. sp2.Transparency = i/60
  299. sp3.Transparency = i/60
  300. wait()
  301. end
  302. sp3:Destroy()
  303. sp2:Destroy()
  304. sp:Destroy()
  305. end)
  306. for _,v in pairs(owner.Character:GetChildren()) do
  307. pcall(function()
  308. v.WTFHOWA.Color = CSEQ(RGB(0,0,255),RGB(0,0,255))
  309. v.WTFHOWB.Color = CSEQ(RGB(0,0,255),RGB(0,0,255))
  310. local pt = pte(v, 1, 0, CSEQ(RGB(0,0,255)), SEQ({NKEY(0,0), NKEY(1,0)}), 0, false, nil, 100, NumberRange.new(0.1), NumberRange.new(100), NumberRange.new(-180,180), Vector2.new(0), NumberRange.new(0), SEQ({NKEY(0,0),NKEY(0.2,0.5),NKEY(0.8,0.5),NKEY(1,0)}), "rbxassetid://516107903", 3, "Top", true)
  311. end)
  312. end
  313. spawn(function()
  314. while true do
  315. for i = 1,math.random(1,3) do
  316. --local lightningbutbetter = function(pos, lifetime, size, range, times, increment, rot)
  317. lightningbutbetter(owner.Character.Torso.Position, math.random(1,1.5), math.random(0.5,1), math.random(1,3), math.random(13,20), math.random(2,6), CFrame.Angles(math.rad(math.random(-90,90)), math.rad(math.random(-180,180)), math.rad(math.random(-90,90)))) --CFrame.Angles(math.rad(math.random(-90,90)), math.rad(math.random(-180,180)), math.rad(math.random(-90,90)))
  318. end
  319. wait(math.random(1,3))
  320. end
  321. end)
  322.  
  323. ev = Instance.new("RemoteEvent", owner.Character)
  324. ev.Name = "Event"
  325.  
  326. ev.OnServerEvent:Connect(function(player, type)
  327. if type == "increase" and owner.Character.Humanoid.WalkSpeed < 1000000 then
  328. owner.Character.Humanoid.WalkSpeed = owner.Character.Humanoid.WalkSpeed + 100
  329. elseif type == "decrease" and owner.Character.Humanoid.WalkSpeed > 1000 then
  330. owner.Character.Humanoid.WalkSpeed = owner.Character.Humanoid.WalkSpeed - 100
  331. end
  332. end)
  333.  
  334. nl = [==[
  335. pl = game.Players.LocalPlayer
  336. mo = pl:GetMouse()
  337. hol = false
  338. mo.KeyDown:Connect(function(k)
  339. if k == "q" then
  340. hol = true
  341. repeat
  342. pl.Character:WaitForChild("Event"):FireServer("increase") wait()
  343. until hol == false
  344. elseif k == "e" then
  345. hol = true
  346. repeat
  347. pl.Character:WaitForChild("Event"):FireServer("decrease") wait()
  348. until hol == false
  349. end
  350. end)
  351.  
  352. mo.KeyUp:Connect(function() hol = false end)
  353. ]==]
  354. NLS(nl, owner.Character)
  355. end
  356.  
  357. wait(5)
  358. abusemode()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement