Advertisement
ElGenius

OFA

Jan 12th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.21 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. char = plr.Character
  3. hrp = plr.Character.HumanoidRootPart
  4. mode = false
  5. tors = char.Torso
  6. m = plr:GetMouse()
  7. cowl = false
  8. hum = char.Humanoid
  9. tors = char.Torso
  10. rarm = char["Right Arm"]
  11. larm = char["Left Arm"]
  12. rleg = char["Right Leg"]
  13. lleg = char["Left Leg"]
  14. cf = CFrame.new
  15.  
  16. function nooutline(p)
  17. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10
  18. end
  19. function makepart(color, name, reflec, mater, parnt, cfram)
  20. local port = Instance.new("Part")
  21. port.BrickColor = BrickColor.new(color)
  22. port.Name = name
  23. nooutline(port)
  24. port.Reflectance = reflec
  25. port.Material = mater
  26. port.Anchored = false
  27. port.CanCollide = false
  28. port.Locked = true
  29. port.Size = Vector3.new(0.2, 0.2, 0.2)
  30. port.Parent = parnt
  31. return port
  32. end
  33. function makemesh(meshtype, scale, meshid, parent)
  34. local mes = Instance.new("SpecialMesh")
  35. mes.MeshType = meshtype
  36. mes.Scale = scale
  37. if meshtype == "FileMesh" then
  38. mes.MeshId = meshid
  39. end
  40. mes.Parent = parent
  41. return mes
  42. end
  43. function makeweld(parent, p0, p1, c0, c1)
  44. local wel = Instance.new("Weld")
  45. wel.Part0 = p0
  46. wel.Part1 = p1
  47. wel.C0 = c0
  48. if c1 ~= nil then
  49. wel.C1 = c1
  50. end
  51. wel.Parent = parent
  52. return wel
  53. end
  54. function smokz(prnt)
  55. local s = Instance.new("Smoke")
  56. s.Color = Color3.new(1, 1, 1)
  57. s.Enabled = false
  58. s.Name = "smok"
  59. s.Opacity = 0.5
  60. s.RiseVelocity = 0.2
  61. s.Size = 0.1
  62. s.Parent = prnt
  63. end
  64. function glow(tz, paz, smokinz, length)
  65. if tz.Parent:FindFirstChildOfClass("Humanoid") and paz.Transparency == 1 then
  66. do
  67. local s = Instance.new("Sound")
  68. s.SoundId = ""
  69. s.Volume = 0.25
  70. s.Pitch = math.random(9, 11) / 10
  71. s.Parent = paz
  72. paz.Transparency = 0.7
  73. if smokinz == true then
  74. paz.smok.Enabled = true
  75. end
  76. delay(length, function()
  77. paz.Transparency = 1
  78. paz.smok.Enabled = false
  79. s:Destroy()
  80. end)
  81. end
  82. end
  83. end
  84. function makeglow()
  85. for _, p in pairs(char:GetChildren()) do
  86. if p.ClassName == "Accessory" then
  87. do
  88. local h = p:FindFirstChildOfClass("Part")
  89. local nh = h:Clone()
  90. nh.Parent = nil
  91. nh.CFrame = h.CFrame
  92. nh.Transparency = 1
  93. nh.Name = "Glow"
  94. nh.Material = "Green"
  95. nh.BrickColor = BrickColor.new("New Yeller")
  96. nh.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5)
  97. nh.Parent = h
  98. makeweld(nh, nh, h, cf(0, 0, 0))
  99. local m = nh:FindFirstChildOfClass("SpecialMesh")
  100. m.Scale = m.Scale + Vector3.new(0.06, 0.06, 0.06)
  101. m.TextureId = ""
  102. smokz(nh)
  103. nh.Touched:connect(function(po)
  104. glow(po, nh, true, 0.8)
  105. end)
  106. end
  107. elseif p.ClassName == "Part" and p ~= hrp then
  108. do
  109. local n = p:Clone()
  110. n.Parent = nil
  111. n.Transparency = 1
  112. n.Material = "Neon"
  113. n.Name = "Glow"
  114. n.BrickColor = BrickColor.new("Electric blue")
  115. n.CFrame = p.CFrame
  116. n.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5)
  117. n.Parent = p
  118. makeweld(n, n, p, cf(0, 0, 0))
  119. smokz(n)
  120. n.Touched:connect(function(po)
  121. glow(po, n, true, 0.8)
  122. end)
  123. if n:FindFirstChildOfClass("Decal") then
  124. n:FindFirstChildOfClass("Decal"):Destroy()
  125. end
  126. if p:FindFirstChildOfClass("SpecialMesh") then
  127. local c = p:FindFirstChildOfClass("SpecialMesh"):Clone()
  128. c.Parent = nil
  129. c.Scale = c.Scale + Vector3.new(0.05, 0.05, 0.05)
  130. c.Parent = n
  131. else
  132. local m = Instance.new("BlockMesh")
  133. m.Scale = Vector3.new(1.05, 1.025, 1.05)
  134. if p == tors then
  135. m.Scale = Vector3.new(1.05, 1.05, 1.05)
  136. end
  137. m.Parent = n
  138. end
  139. end
  140. end
  141. end
  142. end
  143. function fglow(glopart, duration)
  144. for _ = 1, 4 do
  145. swait()
  146. glopart.Transparency = glopart.Transparency - 0.075
  147. end
  148. delay(duration, function()
  149. for _ = 1, 4 do
  150. swait()
  151. glopart.Transparency = glopart.Transparency + 0.075
  152. end
  153. end)
  154. end
  155. function lerpz(joint, prop, cfrmz, alp)
  156. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  157. end
  158. char.Head.face.Texture = "http://www.roblox.com/asset/?id=988802990"
  159.  
  160.  
  161.  
  162. local acos = math.acos
  163. local sqrt = math.sqrt
  164. local Vec3 = Vector3.new
  165. local fromAxisAngle = CFrame.fromAxisAngle
  166.  
  167. local function toAxisAngle(CFr)
  168. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  169. local Angle = math.acos((R00+R11+R22-1)/2)
  170. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  171. A = A == 0 and 0.00001 or A
  172. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  173. B = B == 0 and 0.00001 or B
  174. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  175. C = C == 0 and 0.00001 or C
  176. local x = (R21-R12)/sqrt(A)
  177. local y = (R02-R20)/sqrt(B)
  178. local z = (R10-R01)/sqrt(C)
  179. return Vec3(x,y,z),Angle
  180. end
  181.  
  182.  
  183. function ApplyTrig(Num,Func)
  184. local Min,Max = Func(0),Func(1)
  185. local i = Func(Num)
  186. return (i-Min)/(Max-Min)
  187. --[[if Func == "sin" then
  188. return (math.sin((1-Num)*math.pi)+1)/2
  189. elseif Func == "cos" then
  190. return (math.cos((1-Num)*math.pi)+1)/2
  191. end]]
  192. end
  193.  
  194. function LerpCFrame(CFrame1,CFrame2,Num)
  195. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  196. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  197. end
  198.  
  199. function Crater(Torso,Radius)
  200. spawn(function()
  201. local Ray = Ray.new(char.Torso.Position,Vector3.new(0,-1,0)*10)
  202. local Ignore = {}
  203. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  204. if v.Character ~= nil then
  205. Ignore[#Ignore+1] = v.Character
  206. end
  207. end
  208. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  209. if Hit == nil then return end
  210. local Parts = {}
  211. for i = 1,360,10 do
  212. local P = Instance.new("Part",char.Torso.Parent)
  213. P.Anchored = true
  214. P.FormFactor = "Custom"
  215. P.BrickColor = Hit.BrickColor
  216. P.Material = Hit.Material
  217. P.TopSurface = "Smooth"
  218. P.BottomSurface = "Smooth"
  219. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  220. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  221. Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-45)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
  222. if math.random(0,5) == 0 then -- rubble
  223. local P = Instance.new("Part",char.Torso.Parent)
  224. P.Anchored = true
  225. P.CanCollide = false
  226. P.FormFactor = "Custom"
  227. P.BrickColor = Hit.BrickColor
  228. P.Material = Hit.Material
  229. P.TopSurface = "Smooth"
  230. P.BottomSurface = "Smooth"
  231. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  232. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  233. P.CanCollide = true
  234. Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-50)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
  235. end
  236. end
  237. for i = 0,1,0.05 do
  238. for i2,v in pairs(Parts) do
  239. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  240. end
  241. wait(0.02)
  242. end
  243. for i,v in pairs(Parts) do
  244. if v[1].Size.X > 2.1 then
  245. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  246. end
  247. v[1].Anchored = false
  248. end
  249. for i = 0,1,0.05 do
  250. for i2,v in pairs(Parts) do
  251. v[1].Transparency = i
  252. if i == 1 then
  253. v[1]:Destroy()
  254. elseif i >= 0.25 then
  255. v[1].CanCollide = false
  256. end
  257. end
  258. wait(0.02)
  259. end
  260. Parts = nil
  261. end)
  262. end
  263.  
  264. Player = game.Players.LocalPlayer
  265. Object = Player.Character.HumanoidRootPart
  266. Arm1 = Player.Character["Right Arm"]
  267. PreviousA1 = Arm1.CFrame.p
  268. Arm2 = Player.Character["Left Arm"]
  269. PreviousA2 = Arm2.CFrame.p
  270.  
  271. Leg1 = Player.Character["Torso"]
  272. PreviousL1 = Leg1.CFrame.p
  273. Leg2 = Player.Character["Torso"]
  274. PreviousL2 = Leg2.CFrame.p
  275.  
  276.  
  277. Run = game["Run Service"]
  278.  
  279.  
  280.  
  281. Debounce = false
  282.  
  283. LOADED = 1
  284.  
  285.  
  286. plr = game.Players.LocalPlayer
  287. rootpart = plr.Character.HumanoidRootPart
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300. PreviousP = Object.CFrame.p
  301. Running = false
  302. Phase = false
  303. PhaseActive = false
  304. Morph = false
  305. MorphActive = false
  306. Tornado = false
  307. TornadoRadius = 50
  308. TornadoActive = false
  309. Portal = false
  310. PortalEnd = false
  311. MaxZ = 15
  312. MinZ = -15
  313. LightMaxX = 3
  314. LightMinX = 1
  315. LightMaxX2 = -1
  316. LightMinX2 = -3
  317. LightMaxY = 3
  318. LightMinY = -1
  319. Rotation = 0
  320. Length = 10
  321. Color = BrickColor.Blue()
  322. PColor = Color3.new(0,0,255)
  323. PrevPoint1 = nil
  324. PrevPoint2 = nil
  325. PrevPoint3 = nil
  326. PrevPoint4 = nil
  327. PrevPoint5 = nil
  328. PrevPoint6 = nil
  329. PrevPoint7 = nil
  330. PrevPoint8 = nil
  331. PrevPoint9 = nil
  332. PrevPoint10 = nil
  333. PrevPoint11 = nil
  334. PrevPoint12 = nil
  335. angle = 0
  336. Mouse = Player:GetMouse()
  337.  
  338. Nil = function()
  339. PrevPoint1 = "Empty"
  340. PrevPoint2 = "Empty"
  341. PrevPoint3 = "Empty"
  342. PrevPoint4 = "Empty"
  343. PrevPoint5 = "Empty"
  344. PrevPoint6 = "Empty"
  345. PrevPoint7 = "Empty"
  346. PrevPoint8 = "Empty"
  347. PrevPoint9 = "Empty"
  348. PrevPoint10 = "Empty"
  349. PrevPoint11 = "Empty"
  350. PrevPoint12 = "Empty"
  351. end
  352.  
  353. local Lightning = (function()
  354. if Portal == false then
  355. makeglow()
  356. coroutine.resume(coroutine.create(function()
  357. fglow(lleg.Glow, 19)
  358. fglow(rleg.Glow, 19)
  359. fglow(rarm.Glow, 19)
  360. fglow(larm.Glow, 19)
  361. fglow(char.Head.Glow, 19)
  362. fglow(tors.Glow, 19)
  363. end))
  364. local s = Instance.new("Sound",game.Soundscape)
  365. s.SoundId = "rbxassetid://1071361821"
  366. s.Volume = 0.25
  367. s.Pitch = 0.5
  368. s.Looped = true
  369. s:Play()
  370. local s2 = Instance.new("Sound",game.Soundscape)
  371. s2.SoundId = "rbxassetid://610327604"
  372. s2.Volume = 0.0
  373. s2.Pitch = 3
  374. s2:Play()
  375. while cowl == true do
  376. wait()
  377. hum.WalkSpeed = 50
  378. hum.JumpPower = 95
  379.  
  380. angle = angle + 0.6
  381. local Model = Instance.new("Model",workspace)
  382. Model.Name = "Lightning"
  383. local Point1 = Instance.new("Part",Model)
  384. Point1.Transparency = 1
  385. Point1.Size = Vector3.new(0.2,0.2,0.2)
  386. Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
  387. Point1.Anchored = true
  388. Point1.CanCollide = false
  389. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  390.  
  391. local Point2 = Instance.new("Part",Model)
  392. Point2.Transparency = 1
  393. Point2.Size = Vector3.new(0.2,0.2,0.2)
  394. Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
  395. Point2.Anchored = true
  396. Point2.CanCollide = false
  397. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  398.  
  399. local Point3 = Instance.new("Part",Model)
  400. Point3.Transparency = 1
  401. Point3.Size = Vector3.new(0.2,0.2,0.2)
  402. Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
  403. Point3.Anchored = true
  404. Point3.CanCollide = false
  405. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  406.  
  407. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  408. local Light = Instance.new("Part",Model)
  409. local PointLight = Instance.new("PointLight",Light)
  410. PointLight.Range = 5
  411. PointLight.Color = PColor
  412. Light.Transparency = 0
  413. Light.BrickColor = Color
  414. Light.Material = "Neon"
  415. Light.Size = Vector3.new(0.0001,0.0001,distance)
  416. Light.Anchored = true
  417. Light.CanCollide = false
  418. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  419.  
  420.  
  421. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  422. local Light = Instance.new("Part",Model)
  423. local PointLight = Instance.new("PointLight",Light)
  424. PointLight.Range = 5
  425. PointLight.Color = PColor
  426. Light.Transparency = 0
  427. Light.BrickColor = Color
  428. Light.Material = "Neon"
  429. Light.Size = Vector3.new(0.0001,0.0001,distance2)
  430. Light.Anchored = true
  431. Light.CanCollide = false
  432. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  433.  
  434.  
  435. local Point1 = Instance.new("Part",Model)
  436. Point1.Transparency = 1
  437. Point1.Size = Vector3.new(0.2,0.2,0.2)
  438. Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
  439. Point1.Anchored = true
  440. Point1.CanCollide = false
  441. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  442.  
  443. local Point2 = Instance.new("Part",Model)
  444. Point2.Transparency = 1
  445. Point2.Size = Vector3.new(0.2,0.2,0.2)
  446. Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
  447. Point2.Anchored = true
  448. Point2.CanCollide = false
  449. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  450.  
  451. local Point3 = Instance.new("Part",Model)
  452. Point3.Transparency = 1
  453. Point3.Size = Vector3.new(0.2,0.2,0.2)
  454. Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
  455. Point3.Anchored = true
  456. Point3.CanCollide = false
  457. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  458.  
  459. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  460. local Light = Instance.new("Part",Model)
  461. local PointLight = Instance.new("PointLight",Light)
  462. PointLight.Range = 5
  463. PointLight.Color = PColor
  464. Light.Transparency = 0
  465. Light.BrickColor = Color
  466. Light.Material = "Neon"
  467. Light.Size = Vector3.new(0.0001,0.0001,distance)
  468. Light.Anchored = true
  469. Light.CanCollide = false
  470. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  471.  
  472.  
  473. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  474. local Light = Instance.new("Part",Model)
  475. local PointLight = Instance.new("PointLight",Light)
  476. PointLight.Range = 5
  477. PointLight.Color = PColor
  478. Light.Transparency = 0
  479. Light.BrickColor = Color
  480. Light.Material = "Neon"
  481. Light.Size = Vector3.new(0.0001,0.0001,distance2)
  482. Light.Anchored = true
  483. Light.CanCollide = false
  484. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  485.  
  486.  
  487. local Point1 = Instance.new("Part",Model)
  488. Point1.Transparency = 1
  489. Point1.Size = Vector3.new(0.2,0.2,0.2)
  490. Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  491. Point1.Anchored = true
  492. Point1.CanCollide = false
  493. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  494.  
  495. local Point2 = Instance.new("Part",Model)
  496. Point2.Transparency = 1
  497. Point2.Size = Vector3.new(0.2,0.2,0.2)
  498. Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  499. Point2.Anchored = true
  500. Point2.CanCollide = false
  501. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  502.  
  503. local Point3 = Instance.new("Part",Model)
  504. Point3.Transparency = 1
  505. Point3.Size = Vector3.new(0.2,0.2,0.2)
  506. Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  507. Point3.Anchored = true
  508. Point3.CanCollide = false
  509. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  510.  
  511. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  512. local Light = Instance.new("Part",Model)
  513. local PointLight = Instance.new("PointLight",Light)
  514. PointLight.Range = 5
  515. PointLight.Color = PColor
  516. Light.Transparency = 0
  517. Light.BrickColor = Color
  518. Light.Material = "Neon"
  519. Light.Size = Vector3.new(0.0001,0.0001,distance)
  520. Light.Anchored = true
  521. Light.CanCollide = false
  522. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  523.  
  524.  
  525. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  526. local Light = Instance.new("Part",Model)
  527. local PointLight = Instance.new("PointLight",Light)
  528. PointLight.Range = 5
  529. PointLight.Color = PColor
  530. Light.Transparency = 0
  531. Light.BrickColor = Color
  532. Light.Material = "Neon"
  533. Light.Size = Vector3.new(0.0001,0.0001,distance2)
  534. Light.Anchored = true
  535. Light.CanCollide = false
  536. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  537.  
  538.  
  539. local Point1 = Instance.new("Part",Model)
  540. Point1.Transparency = 1
  541. Point1.Size = Vector3.new(0.2,0.2,0.2)
  542. Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  543. Point1.Anchored = true
  544. Point1.CanCollide = false
  545. Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  546.  
  547. local Point2 = Instance.new("Part",Model)
  548. Point2.Transparency = 1
  549. Point2.Size = Vector3.new(0.2,0.2,0.2)
  550. Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  551. Point2.Anchored = true
  552. Point2.CanCollide = false
  553. Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  554.  
  555. local Point3 = Instance.new("Part",Model)
  556. Point3.Transparency = 1
  557. Point3.Size = Vector3.new(0.2,0.2,0.2)
  558. Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  559. Point3.Anchored = true
  560. Point3.CanCollide = false
  561. Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  562.  
  563. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  564. local Light = Instance.new("Part",Model)
  565. local PointLight = Instance.new("PointLight",Light)
  566. PointLight.Range = 5
  567. PointLight.Color = PColor
  568. Light.Transparency = 0
  569. Light.BrickColor = Color
  570. Light.Material = "Neon"
  571. Light.Size = Vector3.new(0.0001,0.0001,distance)
  572. Light.Anchored = true
  573. Light.CanCollide = false
  574. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  575.  
  576.  
  577. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  578. local Light = Instance.new("Part",Model)
  579. local PointLight = Instance.new("PointLight",Light)
  580. PointLight.Range = 5
  581. PointLight.Color = PColor
  582. Light.Transparency = 0
  583. Light.BrickColor = Color
  584. Light.Material = "Neon"
  585. Light.Size = Vector3.new(0.0001,0.0001,distance2)
  586. Light.Anchored = true
  587. Light.CanCollide = false
  588. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  589.  
  590.  
  591. local Children = Model:GetChildren()
  592. wait(0.1)
  593. for i = 1,#Children do
  594. if Children[i]:IsA("Part") then
  595. Children[i].Transparency = 1
  596. end
  597. game.Debris:AddItem(Children[i],0)
  598. end
  599. end
  600. s:remove()
  601. s2:remove()
  602. hum.WalkSpeed = 16
  603. hum.JumpPower = 50
  604. for i = 0.2,1,0.03 do
  605. wait()
  606. lleg.Glow.Transparency = lleg.Glow.Transparency + 0.005
  607. rleg.Glow.Transparency = rleg.Glow.Transparency + 0.005
  608. larm.Glow.Transparency = larm.Glow.Transparency + 0.005
  609. rarm.Glow.Transparency = rarm.Glow.Transparency + 0.005
  610. tors.Glow.Transparency = tors.Glow.Transparency + 0.005
  611. char.Head.Glow.Transparency = char.Head.Glow.Transparency + 0.05
  612. end
  613. lleg.Glow:remove()
  614. larm.Glow:remove()
  615. rarm.Glow:remove()
  616. rleg.Glow:remove()
  617. tors.Glow:remove()
  618. char.Head.Glow:remove()
  619. end
  620. end)
  621.  
  622.  
  623.  
  624. function FindNearestTorso(Position,Distance,SinglePlayer)
  625. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  626. local List = {}
  627. for i,v in pairs(workspace:GetChildren())do
  628. if v:IsA("Model")then
  629. if v:findFirstChild("Torso")then
  630. if v ~= char then
  631. if(v.char.Torso.Position -Position).magnitude <= Distance then
  632. table.insert(List,v)
  633. end
  634. end
  635. end
  636. end
  637. end
  638. return List
  639. end
  640.  
  641.  
  642.  
  643.  
  644. function hito(partoz, magn, dmg, debtim)
  645. for _, guy in pairs(workspace:GetChildren()) do
  646. if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("Head") and guy ~= plr.Character and magn > (guy:FindFirstChild("Head").Position - partoz.Position).magnitude and guy:FindFirstChild("Head"):FindFirstChild("alabo") == nil then
  647. do
  648. local humz = guy:FindFirstChild("Humanoid")
  649. local hed = guy:FindFirstChild("Head")
  650. humz:TakeDamage(dmg)
  651. local db = Instance.new("StringValue")
  652. db.Name = "alabo"
  653. db.Parent = hed
  654. delay(debtim, function()
  655. db:Destroy()
  656. end)
  657. end
  658. end
  659. end
  660. end
  661.  
  662.  
  663. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  664. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  665. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  666. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  667. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  668. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  669. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  670. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  671. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  672. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  673. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  674. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  675. RS = tors:FindFirstChild("Right Shoulder")
  676. LS = tors:FindFirstChild("Left Shoulder")
  677. RH = tors:FindFirstChild("Right Hip")
  678. LH = tors:FindFirstChild("Left Hip")
  679. RJ = hrp:FindFirstChild("RootJoint")
  680. N = tors:FindFirstChild("Neck")
  681. cf = CFrame.new
  682. ang = CFrame.Angles
  683. rd = math.rad
  684. rd2 = math.random
  685. LOADED = 1
  686.  
  687. Heartbeat = Instance.new("BindableEvent")
  688. Heartbeat.Name = "Heartbeat"
  689. Heartbeat.Parent = script
  690. frame = 0.03333333333333333
  691. tf = 0
  692. game:GetService("RunService").Heartbeat:connect(function(s, p)
  693. tf = tf + s
  694. if tf >= frame then
  695. for i = 1, math.floor(tf / frame) do
  696. Heartbeat:Fire()
  697. end
  698. tf = tf - frame * math.floor(tf / frame)
  699. end
  700. end)
  701. function swait(num)
  702. if num == 0 or num == nil then
  703. Heartbeat.Event:wait()
  704. else
  705. for i = 1, num do
  706. Heartbeat.Event:wait()
  707. end
  708. end
  709. end
  710.  
  711. function makeweld(parent, p0, p1, c0, c1)
  712. local wel = Instance.new("Weld")
  713. wel.Part0 = p0
  714. wel.Part1 = p1
  715. wel.C0 = c0
  716. if c1 ~= nil then
  717. wel.C1 = c1
  718. end
  719. wel.Parent = parent
  720. return wel
  721. end
  722.  
  723.  
  724.  
  725. function smash()
  726. hum.WalkSpeed = 2
  727. hum.JumpPower = 1
  728. local S = Instance.new("Sound",game.Soundscape)
  729. S.SoundId = "rbxassetid://938838122"
  730. S.Volume = 0.0
  731. local S4 = Instance.new("Sound",game.Soundscape)
  732. S4.SoundId = "rbxassetid://991726501"
  733. S4.Volume = 1.5
  734. local S3 = Instance.new("Sound",game.Soundscape)
  735. S3.SoundId = "rbxassetid://610327604"
  736. S3.Volume = 0.0
  737. S3.PlaybackSpeed = 0.85
  738. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
  739. pe.Texture = "rbxassetid://272050333"
  740. pe.Size = NumberSequence.new(1)
  741. pe.LightEmission = 1
  742. pe.LightInfluence = 1
  743. pe.Rate = 1000000.000
  744. pe.Rotation = NumberRange.new(0, 360)
  745. pe.Speed = NumberRange.new(10)
  746. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  747. pe.Lifetime = NumberRange.new(0.06)
  748. pe.LockedToPart = true
  749. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
  750. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  751. pe2.Size = NumberSequence.new(3)
  752. pe2.LightEmission = 1
  753. pe2.LightInfluence = 1
  754. pe2.Rate = 1000
  755. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  756. pe2.Rotation = NumberRange.new(0, 360)
  757. pe2.RotSpeed = NumberRange.new(2)
  758. pe2.Speed = NumberRange.new(15)
  759. pe2.SpreadAngle = Vector2.new(360,306)
  760. pe2.Lifetime = NumberRange.new(0.06)
  761. pe2.ZOffset = 1
  762. pe2.LockedToPart = true
  763. pe2.Name = "ParticleEmitter2"
  764.  
  765. S:Play()
  766. for _ = 1, 45 do
  767. swait()
  768. lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2)
  769. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2)
  770. lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(25, 35)), rd(rd2(-15, -5)), rd(rd2(80, 90))), 0.2)
  771. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  772. lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2)
  773. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2)
  774. lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2)
  775. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  776. lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
  777. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  778. end
  779. for _ = 1, 30 do
  780. swait()
  781. lerpz(RJ, "C0", RJC0 * cf(0, 1.2, -0.2) * ang(rd(5), rd(6), rd(-109)), 0.2)
  782. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(-6), rd(96)), 0.2)
  783. lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(10, 20)), rd(rd2(-25, -15)), rd(rd2(100, 110))), 0.2)
  784. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-46)), 0.2)
  785. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.2)
  786. lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.2)
  787. lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
  788. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.2)
  789.  
  790. end
  791. for l = 1, 3 do
  792. swait()
  793. lerpz(RJ, "C0", RJC0 * cf(0.4, -1.6, -0.2) * ang(rd(5), rd(6), rd(60)), 0.3 + l / 4)
  794. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-4), rd(-35)), 0.3 + l / 4)
  795. lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(-58), rd(95)), 0.3 + l / 4)
  796. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.3 + l / 4)
  797. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-66)), 0.3 + l / 4)
  798. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.3 + l / 4)
  799. lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.3 + l / 4)
  800. lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.3 + l / 4)
  801. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.3 + l / 4)
  802. end
  803. local woosh = Instance.new("Part",workspace)
  804. woosh.Size = Vector3.new(12, 12, 20)
  805. woosh.BrickColor = BrickColor.new("Institutional white")
  806. local me = Instance.new("FileMesh",woosh)
  807. me.MeshId = "rbxassetid://437347603"
  808. me.Scale = Vector3.new(1.3, 1.3, 1)
  809. woosh.CanCollide = false
  810. woosh.Anchored = false
  811. woosh.CFrame = woosh.CFrame:lerp(woosh.CFrame * CFrame.new(0, 0, -22), 0.4)
  812. woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  813. woosh.CFrame = char:FindFirstChild("Right Arm").CFrame
  814. woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  815. local woosh2 = Instance.new("Part",workspace)
  816. woosh2.Size = Vector3.new(12, 12, 20)
  817. woosh2.BrickColor = BrickColor.new("Institutional white")
  818. local me2 = Instance.new("FileMesh",woosh2)
  819. me2.MeshId = "rbxassetid://3270017"
  820. me2.Scale = Vector3.new(1.3, 1.3, 0.4)
  821. woosh2.CanCollide = false
  822. woosh2.Anchored = true
  823. woosh2.CFrame = woosh2.CFrame:lerp(woosh2.CFrame * CFrame.new(0, 0, -22), 0.4)
  824. woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  825. woosh2.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-3,0)
  826. woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  827. local woosh3 = Instance.new("Part",workspace)
  828. woosh3.Size = Vector3.new(12, 12, 20)
  829. woosh3.BrickColor = BrickColor.new("Institutional white")
  830. local me3 = Instance.new("FileMesh",woosh3)
  831. me3.MeshId = "rbxassetid://3270017"
  832. me3.Scale = Vector3.new(1, 1, 0.4)
  833. woosh3.CanCollide = false
  834. woosh3.Anchored = true
  835. woosh3.CFrame = woosh3.CFrame:lerp(woosh3.CFrame * CFrame.new(0, 0, -22), 0.4)
  836. woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  837. woosh3.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  838. woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  839. local woosh1 = Instance.new("Part",workspace)
  840. woosh1.Size = Vector3.new(12, 12, 20)
  841. woosh1.BrickColor = BrickColor.new("Institutional white")
  842. local me1 = Instance.new("FileMesh",woosh1)
  843. me1.MeshId = "rbxassetid://489415447"
  844. me1.Scale = Vector3.new(1, 1, 0.4)
  845. woosh1.CanCollide = false
  846. woosh1.Anchored = true
  847. woosh1.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  848. local woosh4 = Instance.new("Part",workspace)
  849. woosh4.Size = Vector3.new(12, 12, 20)
  850. woosh4.BrickColor = BrickColor.new("Institutional white")
  851. local me4 = Instance.new("FileMesh",woosh4)
  852. me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
  853. me4.Scale = Vector3.new(1.3,0.1,1)
  854. woosh4.CanCollide = false
  855. woosh4.Anchored = true
  856. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  857. local woosh4 = Instance.new("Part",workspace)
  858. woosh4.Size = Vector3.new(12, 12, 20)
  859. woosh4.BrickColor = BrickColor.new("Institutional white")
  860. local me4 = Instance.new("FileMesh",woosh4)
  861. me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
  862. me4.Scale = Vector3.new(2,3.3,2)
  863. woosh4.CanCollide = false
  864. woosh4.Anchored = true
  865. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  866. local v = Instance.new("BodyVelocity", woosh)
  867. v.velocity = woosh.CFrame.lookVector *100
  868. v.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  869. S3:Play()
  870. pe:remove()
  871. pe2:remove()
  872. Crater()
  873. for i = 0.14,1,0.015 do
  874. wait()
  875. hito(woosh, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  876. woosh.CFrame = woosh.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.1)
  877. woosh1.CFrame = woosh1.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  878. woosh.Transparency = woosh.Transparency + 0.04
  879. woosh2.CFrame = woosh2.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  880. woosh2.Transparency = woosh2.Transparency + 0.03
  881. me2.Scale = me2.Scale + Vector3.new(2,2,1.8)
  882. woosh3.CFrame = woosh3.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  883. woosh3.Transparency = woosh3.Transparency + 0.035
  884. me3.Scale = me3.Scale + Vector3.new(1.3,1.3,1)
  885. me1.Scale = me1.Scale + Vector3.new(2,1,2)
  886. woosh1.Transparency = woosh1.Transparency + 0.04
  887. woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  888. woosh4.Transparency = woosh4.Transparency + 0.02
  889. me4.Scale = me4.Scale + Vector3.new(2,4,2)
  890. end
  891. woosh3:remove()
  892. woosh2:remove()
  893. woosh1:remove()
  894. woosh4:remove()
  895. woosh:remove()
  896.  
  897. for _ = 1, 24 do
  898. swait()
  899. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  900. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  901. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  902. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  903. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  904. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  905. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  906. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  907. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  908. end
  909. S:remove()
  910. hum.WalkSpeed = 16
  911. hum.JumpPower = 50
  912. wait(2.3)
  913. S4:remove()
  914. S3:remove()
  915. end
  916.  
  917. function ring()
  918. local S4 = Instance.new("Sound",game.Soundscape)
  919. S4.SoundId = "rbxassetid://991726501"
  920. S4.Volume = 1.5
  921. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  922. pe.Texture = "rbxassetid://272050333"
  923. pe.Size = NumberSequence.new(1)
  924. pe.LightEmission = 1
  925. pe.LightInfluence = 1
  926. pe.Rate = 1000000.000
  927. pe.Rotation = NumberRange.new(0, 360)
  928. pe.Speed = NumberRange.new(10)
  929. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  930. pe.Lifetime = NumberRange.new(0.06)
  931. pe.LockedToPart = true
  932. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  933. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  934. pe2.Size = NumberSequence.new(3)
  935. pe2.LightEmission = 1
  936. pe2.LightInfluence = 1
  937. pe2.Rate = 1000
  938. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  939. pe2.Rotation = NumberRange.new(0, 360)
  940. pe2.RotSpeed = NumberRange.new(2)
  941. pe2.Speed = NumberRange.new(15)
  942. pe2.SpreadAngle = Vector2.new(360,306)
  943. pe2.Lifetime = NumberRange.new(0.06)
  944. pe2.ZOffset = 1
  945. pe2.LockedToPart = true
  946. pe2.Name = "ParticleEmitter2"
  947. local me = Instance.new("Part",workspace)
  948. local mesh = Instance.new("SpecialMesh")
  949. mesh.MeshType = "FileMesh"
  950. mesh.MeshId = "rbxassetid://3270017"
  951. mesh.Scale = Vector3.new(12, 12, 0.05)
  952. mesh.Parent = me
  953. me.Anchored = true
  954. me.CanCollide = false
  955. me.BrickColor = BrickColor.new("Institutional white")
  956. me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
  957. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  958. me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
  959. me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  960. me.Anchored = false
  961. local me2 = Instance.new("Part",workspace)
  962. local mesh2 = Instance.new("SpecialMesh")
  963. mesh2.MeshType = "FileMesh"
  964. mesh2.MeshId = "rbxassetid://3270017"
  965. mesh2.Scale = Vector3.new(12, 12, 0.05)
  966. mesh2.Parent = me2
  967. me2.Anchored = true
  968. me2.CanCollide = false
  969. me2.BrickColor = BrickColor.new("Institutional white")
  970. me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
  971. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  972. me2.CFrame = hrp.CFrame
  973. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  974. local bfor = Instance.new("BodyPosition")
  975. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  976. bfor.P = 2500
  977. bfor.Position = me.Position + Vector3.new(0, 50, 0)
  978. bfor.Parent = me
  979. me.Velocity = me.CFrame.lookVector *65
  980. local sound2 = Instance.new("Sound",game.Soundscape)
  981. sound2.SoundId = "rbxassetid://157878578"
  982. sound2.MaxDistance = 300
  983. sound2.EmitterSize = 20
  984. sound2.Volume = 2
  985. sound2.Pitch = 0.9
  986. local sound3 = Instance.new("Sound",game.Soundscape)
  987. sound3.SoundId = "rbxassetid://138250406"
  988. sound2.MaxDistance = 400
  989. sound2.EmitterSize = 30
  990. sound2.Volume = 0.0
  991. sound2.Pitch = 0.6
  992. sound2:Play()
  993. sound3:Play()
  994. local bfor = Instance.new("BodyPosition")
  995. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  996. bfor.P = 2500
  997. bfor.Position = plr.Character.HumanoidRootPart.Position + Vector3.new(0, 500, 0)
  998. bfor.Parent = plr.Character.HumanoidRootPart
  999. plr.Character.HumanoidRootPart.Velocity=plr.Character.HumanoidRootPart.CFrame.lookVector *200
  1000. S4:Play()
  1001. local part = Instance.new("Part",workspace)
  1002. part.Transparency = 1
  1003. part.CanCollide = false
  1004. part.Anchored = true
  1005. part.CFrame = char:FindFirstChild("Right Leg").CFrame
  1006. local smok = Instance.new("Smoke",part)
  1007. smok.Opacity = 1
  1008. smok.Size = 20
  1009. Crater()
  1010. for e = 1, 30 do
  1011. wait()
  1012. mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
  1013. me.Transparency = me.Transparency + 0.04
  1014. me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
  1015. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  1016. mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
  1017. me2.Transparency = me2.Transparency + 0.04
  1018. me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
  1019. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  1020. smok.Size = smok.Size + 10
  1021. wait()
  1022. end
  1023. S4:remove()
  1024. pe:remove()
  1025. pe2:remove()
  1026. bfor:remove()
  1027. me2:remove()
  1028. me:remove()
  1029. for i = 0,1,0.01 do
  1030. wait()
  1031. smok.Opacity = smok.Opacity - 0.01
  1032. end
  1033. part:remove()
  1034. sound2:remove()
  1035. sound3:remove()
  1036. end
  1037.  
  1038. function ring2()
  1039. hum.WalkSpeed = 0
  1040. hum.JumpPower = 0
  1041. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  1042. pe.Texture = "rbxassetid://272050333"
  1043. pe.Size = NumberSequence.new(1)
  1044. pe.LightEmission = 1
  1045. pe.LightInfluence = 1
  1046. pe.Rate = 1000000.000
  1047. pe.Rotation = NumberRange.new(0, 360)
  1048. pe.Speed = NumberRange.new(10)
  1049. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  1050. pe.Lifetime = NumberRange.new(0.06)
  1051. pe.LockedToPart = true
  1052. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  1053. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  1054. pe2.Size = NumberSequence.new(3)
  1055. pe2.LightEmission = 1
  1056. pe2.LightInfluence = 1
  1057. pe2.Rate = 1000
  1058. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  1059. pe2.Rotation = NumberRange.new(0, 360)
  1060. pe2.RotSpeed = NumberRange.new(2)
  1061. pe2.Speed = NumberRange.new(15)
  1062. pe2.SpreadAngle = Vector2.new(360,306)
  1063. pe2.Lifetime = NumberRange.new(0.06)
  1064. pe2.ZOffset = 1
  1065. pe2.LockedToPart = true
  1066. pe2.Name = "ParticleEmitter2"
  1067. for l = 1, 30 do
  1068. swait()
  1069. lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40)
  1070. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40)
  1071. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40)
  1072. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  1073. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40)
  1074. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  1075. lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40)
  1076. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  1077. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40)
  1078. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  1079. end
  1080. local S4 = Instance.new("Sound",game.Soundscape)
  1081. S4.SoundId = "rbxassetid://991726501"
  1082. S4.Volume = 1.5
  1083. wait(0.3)
  1084. local me = Instance.new("Part",workspace)
  1085. local mesh = Instance.new("SpecialMesh")
  1086. mesh.MeshType = "FileMesh"
  1087. mesh.MeshId = "rbxassetid://3270017"
  1088. mesh.Scale = Vector3.new(12, 12, 0.05)
  1089. mesh.Parent = me
  1090. me.Anchored = true
  1091. me.CanCollide = false
  1092. me.BrickColor = BrickColor.new("Institutional white")
  1093. me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
  1094. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  1095. me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
  1096. me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1097. me.Anchored = false
  1098. local me2 = Instance.new("Part",workspace)
  1099. local mesh2 = Instance.new("SpecialMesh")
  1100. mesh2.MeshType = "FileMesh"
  1101. mesh2.MeshId = "rbxassetid://3270017"
  1102. mesh2.Scale = Vector3.new(12, 12, 0.05)
  1103. mesh2.Parent = me2
  1104. me2.Anchored = true
  1105. me2.CanCollide = false
  1106. me2.BrickColor = BrickColor.new("Institutional white")
  1107. me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
  1108. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  1109. me2.CFrame = hrp.CFrame
  1110. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1111. local bfor = Instance.new("BodyPosition")
  1112. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1113. bfor.P = 2500
  1114. bfor.Position = me.Position + Vector3.new(0, 50, 0)
  1115. bfor.Parent = me
  1116. me.Velocity = me.CFrame.lookVector *65
  1117. local sound2 = Instance.new("Sound",game.Soundscape)
  1118. sound2.SoundId = "rbxassetid://157878578"
  1119. sound2.MaxDistance = 300
  1120. sound2.EmitterSize = 20
  1121. sound2.Volume = 2
  1122. sound2.Pitch = 0.9
  1123. local sound3 = Instance.new("Sound",game.Soundscape)
  1124. sound3.SoundId = "rbxassetid://138250406"
  1125. sound2.MaxDistance = 400
  1126. sound2.EmitterSize = 30
  1127. sound2.Volume = 0.0
  1128. sound2.Pitch = 0.6
  1129. sound2:Play()
  1130. sound3:Play()
  1131.  
  1132. S4:Play()
  1133. local part = Instance.new("Part",workspace)
  1134. part.Transparency = 1
  1135. part.CanCollide = false
  1136. part.Anchored = true
  1137. part.CFrame = char:FindFirstChild("Right Leg").CFrame
  1138. local smok = Instance.new("Smoke",part)
  1139. smok.Opacity = 1
  1140. smok.Size = 20
  1141. local woosh4 = Instance.new("Part",workspace)
  1142. woosh4.Size = Vector3.new(12, 12, 20)
  1143. woosh4.BrickColor = BrickColor.new("Institutional white")
  1144. local me4 = Instance.new("FileMesh",woosh4)
  1145. me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
  1146. me4.Scale = Vector3.new(1.3,0.1,1)
  1147. woosh4.CanCollide = false
  1148. woosh4.Anchored = true
  1149. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  1150. local woosh4 = Instance.new("Part",workspace)
  1151. woosh4.Size = Vector3.new(12, 12, 20)
  1152. woosh4.BrickColor = BrickColor.new("Institutional white")
  1153. local me4 = Instance.new("FileMesh",woosh4)
  1154. me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1155. me4.Scale = Vector3.new(2,3.3,2)
  1156. woosh4.CanCollide = false
  1157. woosh4.Anchored = true
  1158. woosh4.CFrame = char:FindFirstChild("Right Leg").CFrame
  1159. Crater()
  1160. for e = 1, 30 do
  1161. wait()
  1162. hito(woosh4, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  1163. hito(me2, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  1164. hito(me, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  1165. mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
  1166. me.Transparency = me.Transparency + 0.04
  1167. me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
  1168. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  1169. mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
  1170. me2.Transparency = me2.Transparency + 0.04
  1171. me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
  1172. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  1173. smok.Size = smok.Size + 10
  1174. woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0)
  1175. woosh4.Transparency = woosh4.Transparency + 0.06
  1176. me4.Scale = me4.Scale + Vector3.new(2,4,2)
  1177. wait()
  1178. end
  1179. for _ = 1, 18 do
  1180. swait()
  1181. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1182. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1183. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1184. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1185. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1186. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1187. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1188. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1189. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1190. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1191. end
  1192. hum.WalkSpeed = 16
  1193. hum.JumpPower = 50
  1194. woosh4:remove()
  1195. S4:remove()
  1196. pe:remove()
  1197. pe2:remove()
  1198. me2:remove()
  1199. me:remove()
  1200. for i = 0,1,0.01 do
  1201. wait()
  1202. smok.Opacity = smok.Opacity - 0.01
  1203. end
  1204. part:remove()
  1205. sound2:remove()
  1206. sound3:remove()
  1207.  
  1208. end
  1209.  
  1210.  
  1211. function lerpz(joint, prop, cfrmz, alp)
  1212. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  1213. end
  1214.  
  1215. m.KeyDown:connect(function(key)
  1216. key = key:lower()
  1217. if key == "e" and LOADED == 1 then
  1218. LOADED = LOADED -1
  1219. smash()
  1220. LOADED = LOADED +1
  1221. end
  1222. end)
  1223.  
  1224. m.KeyDown:connect(function(key)
  1225. key = key:lower()
  1226. if key == "z" and LOADED == 1 then
  1227. LOADED = LOADED -1
  1228. ring()
  1229. wait(1)
  1230. LOADED = LOADED +1
  1231. end
  1232. end)
  1233.  
  1234.  
  1235. m.KeyDown:connect(function(key)
  1236. key = key:lower()
  1237. if key == "r" and LOADED == 1 then
  1238. LOADED = LOADED -1
  1239. ring2()
  1240. wait(1)
  1241. LOADED = LOADED +1
  1242. end
  1243. end)
  1244.  
  1245. m.KeyDown:connect(function(key)
  1246. key = key:lower()
  1247. if key == "b" and cowl == false and LOADED == 1 then
  1248. cowl = true
  1249. Lightning()
  1250. end
  1251. end)
  1252.  
  1253. m.KeyDown:connect(function(key)
  1254. key = key:lower()
  1255. if key == "b" and cowl == false and LOADED == 1 then
  1256. wait(20)
  1257. cowl = false
  1258. end
  1259. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement