Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.29 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. hum = char.Humanoid
  8.  
  9. char.Head.face.Texture = "http://www.roblox.com/asset/?id=988802990"
  10.  
  11. function sp()
  12. local S = Instance.new("Sound",game.Soundscape)
  13. S.SoundId = "rbxassetid://934992368"
  14. S.Volume = 0.6
  15. S.Looped = true
  16. S:Play()
  17. end
  18.  
  19. sp()
  20.  
  21. local acos = math.acos
  22. local sqrt = math.sqrt
  23. local Vec3 = Vector3.new
  24. local fromAxisAngle = CFrame.fromAxisAngle
  25.  
  26. local function toAxisAngle(CFr)
  27. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  28. local Angle = math.acos((R00+R11+R22-1)/2)
  29. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  30. A = A == 0 and 0.00001 or A
  31. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  32. B = B == 0 and 0.00001 or B
  33. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  34. C = C == 0 and 0.00001 or C
  35. local x = (R21-R12)/sqrt(A)
  36. local y = (R02-R20)/sqrt(B)
  37. local z = (R10-R01)/sqrt(C)
  38. return Vec3(x,y,z),Angle
  39. end
  40.  
  41. function ApplyTrig(Num,Func)
  42. local Min,Max = Func(0),Func(1)
  43. local i = Func(Num)
  44. return (i-Min)/(Max-Min)
  45. --[[if Func == "sin" then
  46. return (math.sin((1-Num)*math.pi)+1)/2
  47. elseif Func == "cos" then
  48. return (math.cos((1-Num)*math.pi)+1)/2
  49. end]]
  50. end
  51.  
  52. function LerpCFrame(CFrame1,CFrame2,Num)
  53. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  54. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  55. end
  56.  
  57. function Crater(Torso,Radius)
  58. spawn(function()
  59. local Ray = Ray.new(char.Torso.Position,Vector3.new(0,-1,0)*10)
  60. local Ignore = {}
  61. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  62. if v.Character ~= nil then
  63. Ignore[#Ignore+1] = v.Character
  64. end
  65. end
  66. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  67. if Hit == nil then return end
  68. local Parts = {}
  69. for i = 1,360,10 do
  70. local P = Instance.new("Part",char.Torso.Parent)
  71. P.Anchored = true
  72. P.FormFactor = "Custom"
  73. P.BrickColor = Hit.BrickColor
  74. P.Material = Hit.Material
  75. P.TopSurface = "Smooth"
  76. P.BottomSurface = "Smooth"
  77. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  78. 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)))
  79. 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}
  80. if math.random(0,5) == 0 then -- rubble
  81. local P = Instance.new("Part",char.Torso.Parent)
  82. P.Anchored = true
  83. P.CanCollide = false
  84. P.FormFactor = "Custom"
  85. P.BrickColor = Hit.BrickColor
  86. P.Material = Hit.Material
  87. P.TopSurface = "Smooth"
  88. P.BottomSurface = "Smooth"
  89. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  90. 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)))
  91. P.CanCollide = true
  92. 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}
  93. end
  94. end
  95. for i = 0,1,0.05 do
  96. for i2,v in pairs(Parts) do
  97. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  98. end
  99. wait(0.02)
  100. end
  101. for i,v in pairs(Parts) do
  102. if v[1].Size.X > 2.1 then
  103. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  104. end
  105. v[1].Anchored = false
  106. end
  107. for i = 0,1,0.05 do
  108. for i2,v in pairs(Parts) do
  109. v[1].Transparency = i
  110. if i == 1 then
  111. v[1]:Destroy()
  112. elseif i >= 0.25 then
  113. v[1].CanCollide = false
  114. end
  115. end
  116. wait(0.02)
  117. end
  118. Parts = nil
  119. end)
  120. end
  121.  
  122.  
  123. function FindNearestTorso(Position,Distance,SinglePlayer)
  124. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  125. local List = {}
  126. for i,v in pairs(workspace:GetChildren())do
  127. if v:IsA("Model")then
  128. if v:findFirstChild("Torso")then
  129. if v ~= char then
  130. if(v.char.Torso.Position -Position).magnitude <= Distance then
  131. table.insert(List,v)
  132. end
  133. end
  134. end
  135. end
  136. end
  137. return List
  138. end
  139.  
  140.  
  141.  
  142.  
  143. function hito(partoz, magn, dmg, debtim)
  144. for _, guy in pairs(workspace:GetChildren()) do
  145. 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
  146. do
  147. local humz = guy:FindFirstChild("Humanoid")
  148. local hed = guy:FindFirstChild("Head")
  149. humz:TakeDamage(dmg)
  150. local db = Instance.new("StringValue")
  151. db.Name = "alabo"
  152. db.Parent = hed
  153. delay(debtim, function()
  154. db:Destroy()
  155. end)
  156. end
  157. end
  158. end
  159. end
  160.  
  161.  
  162. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  163. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  164. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  165. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  166. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  167. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  168. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  169. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  170. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  171. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  172. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  173. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  174. RS = tors:FindFirstChild("Right Shoulder")
  175. LS = tors:FindFirstChild("Left Shoulder")
  176. RH = tors:FindFirstChild("Right Hip")
  177. LH = tors:FindFirstChild("Left Hip")
  178. RJ = hrp:FindFirstChild("RootJoint")
  179. N = tors:FindFirstChild("Neck")
  180. cf = CFrame.new
  181. ang = CFrame.Angles
  182. rd = math.rad
  183. rd2 = math.random
  184. LOADED = 1
  185.  
  186. Heartbeat = Instance.new("BindableEvent")
  187. Heartbeat.Name = "Heartbeat"
  188. Heartbeat.Parent = script
  189. frame = 0.03333333333333333
  190. tf = 0
  191. game:GetService("RunService").Heartbeat:connect(function(s, p)
  192. tf = tf + s
  193. if tf >= frame then
  194. for i = 1, math.floor(tf / frame) do
  195. Heartbeat:Fire()
  196. end
  197. tf = tf - frame * math.floor(tf / frame)
  198. end
  199. end)
  200. function swait(num)
  201. if num == 0 or num == nil then
  202. Heartbeat.Event:wait()
  203. else
  204. for i = 1, num do
  205. Heartbeat.Event:wait()
  206. end
  207. end
  208. end
  209.  
  210. function makeweld(parent, p0, p1, c0, c1)
  211. local wel = Instance.new("Weld")
  212. wel.Part0 = p0
  213. wel.Part1 = p1
  214. wel.C0 = c0
  215. if c1 ~= nil then
  216. wel.C1 = c1
  217. end
  218. wel.Parent = parent
  219. return wel
  220. end
  221.  
  222. function smash()
  223. hum.WalkSpeed = 2
  224. hum.JumpPower = 1
  225. local S = Instance.new("Sound",game.Soundscape)
  226. S.SoundId = "rbxassetid://938838122"
  227. S.Volume = 1.5
  228. local S4 = Instance.new("Sound",game.Soundscape)
  229. S4.SoundId = "rbxassetid://991726501"
  230. S4.Volume = 1.5
  231. local S3 = Instance.new("Sound",game.Soundscape)
  232. S3.SoundId = "rbxassetid://610327604"
  233. S3.Volume = 0.3
  234. S3.PlaybackSpeed = 0.85
  235. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
  236. pe.Texture = "rbxassetid://272050333"
  237. pe.Size = NumberSequence.new(1)
  238. pe.LightEmission = 1
  239. pe.LightInfluence = 1
  240. pe.Rate = 1000000.000
  241. pe.Rotation = NumberRange.new(0, 360)
  242. pe.Speed = NumberRange.new(10)
  243. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  244. pe.Lifetime = NumberRange.new(0.06)
  245. pe.LockedToPart = true
  246. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
  247. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  248. pe2.Size = NumberSequence.new(3)
  249. pe2.LightEmission = 1
  250. pe2.LightInfluence = 1
  251. pe2.Rate = 1000
  252. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  253. pe2.Rotation = NumberRange.new(0, 360)
  254. pe2.RotSpeed = NumberRange.new(2)
  255. pe2.Speed = NumberRange.new(15)
  256. pe2.SpreadAngle = Vector2.new(360,306)
  257. pe2.Lifetime = NumberRange.new(0.06)
  258. pe2.ZOffset = 1
  259. pe2.LockedToPart = true
  260. pe2.Name = "ParticleEmitter2"
  261.  
  262. S:Play()
  263. for _ = 1, 45 do
  264. swait()
  265. lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2)
  266. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2)
  267. 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)
  268. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  269. lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2)
  270. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2)
  271. lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2)
  272. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  273. lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
  274. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  275. end
  276. for _ = 1, 30 do
  277. swait()
  278. lerpz(RJ, "C0", RJC0 * cf(0, 1.2, -0.2) * ang(rd(5), rd(6), rd(-109)), 0.2)
  279. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(-6), rd(96)), 0.2)
  280. 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)
  281. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-46)), 0.2)
  282. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.2)
  283. lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.2)
  284. lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
  285. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.2)
  286.  
  287. end
  288. for l = 1, 3 do
  289. swait()
  290. lerpz(RJ, "C0", RJC0 * cf(0.4, -1.6, -0.2) * ang(rd(5), rd(6), rd(60)), 0.3 + l / 4)
  291. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-4), rd(-35)), 0.3 + l / 4)
  292. lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(-58), rd(95)), 0.3 + l / 4)
  293. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.3 + l / 4)
  294. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-66)), 0.3 + l / 4)
  295. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.3 + l / 4)
  296. lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.3 + l / 4)
  297. lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.3 + l / 4)
  298. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.3 + l / 4)
  299. end
  300. local woosh = Instance.new("Part",workspace)
  301. woosh.Size = Vector3.new(12, 12, 20)
  302. woosh.BrickColor = BrickColor.new("Institutional white")
  303. local me = Instance.new("FileMesh",woosh)
  304. me.MeshId = "rbxassetid://437347603"
  305. me.Scale = Vector3.new(1.3, 1.3, 1)
  306. woosh.CanCollide = false
  307. woosh.Anchored = false
  308. woosh.CFrame = woosh.CFrame:lerp(woosh.CFrame * CFrame.new(0, 0, -22), 0.4)
  309. woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  310. woosh.CFrame = char:FindFirstChild("Right Arm").CFrame
  311. woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  312. local woosh2 = Instance.new("Part",workspace)
  313. woosh2.Size = Vector3.new(12, 12, 20)
  314. woosh2.BrickColor = BrickColor.new("Institutional white")
  315. local me2 = Instance.new("FileMesh",woosh2)
  316. me2.MeshId = "rbxassetid://3270017"
  317. me2.Scale = Vector3.new(1.3, 1.3, 0.4)
  318. woosh2.CanCollide = false
  319. woosh2.Anchored = true
  320. woosh2.CFrame = woosh2.CFrame:lerp(woosh2.CFrame * CFrame.new(0, 0, -22), 0.4)
  321. woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  322. woosh2.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-3,0)
  323. woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  324. local woosh3 = Instance.new("Part",workspace)
  325. woosh3.Size = Vector3.new(12, 12, 20)
  326. woosh3.BrickColor = BrickColor.new("Institutional white")
  327. local me3 = Instance.new("FileMesh",woosh3)
  328. me3.MeshId = "rbxassetid://3270017"
  329. me3.Scale = Vector3.new(1, 1, 0.4)
  330. woosh3.CanCollide = false
  331. woosh3.Anchored = true
  332. woosh3.CFrame = woosh3.CFrame:lerp(woosh3.CFrame * CFrame.new(0, 0, -22), 0.4)
  333. woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  334. woosh3.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  335. woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  336. local woosh1 = Instance.new("Part",workspace)
  337. woosh1.Size = Vector3.new(12, 12, 20)
  338. woosh1.BrickColor = BrickColor.new("Institutional white")
  339. local me1 = Instance.new("FileMesh",woosh1)
  340. me1.MeshId = "rbxassetid://489415447"
  341. me1.Scale = Vector3.new(1, 1, 0.4)
  342. woosh1.CanCollide = false
  343. woosh1.Anchored = true
  344. woosh1.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  345. local woosh4 = Instance.new("Part",workspace)
  346. woosh4.Size = Vector3.new(12, 12, 20)
  347. woosh4.BrickColor = BrickColor.new("Institutional white")
  348. local me4 = Instance.new("FileMesh",woosh4)
  349. me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
  350. me4.Scale = Vector3.new(1.3,0.1,1)
  351. woosh4.CanCollide = false
  352. woosh4.Anchored = true
  353. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  354. local woosh4 = Instance.new("Part",workspace)
  355. woosh4.Size = Vector3.new(12, 12, 20)
  356. woosh4.BrickColor = BrickColor.new("Institutional white")
  357. local me4 = Instance.new("FileMesh",woosh4)
  358. me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
  359. me4.Scale = Vector3.new(2,3.3,2)
  360. woosh4.CanCollide = false
  361. woosh4.Anchored = true
  362. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  363. local v = Instance.new("BodyVelocity", woosh)
  364. v.velocity = woosh.CFrame.lookVector *100
  365. v.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  366. S3:Play()
  367. pe:remove()
  368. pe2:remove()
  369. Crater()
  370. for i = 0.14,1,0.015 do
  371. wait()
  372. hito(woosh, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  373. woosh.CFrame = woosh.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.1)
  374. woosh1.CFrame = woosh1.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  375. woosh.Transparency = woosh.Transparency + 0.04
  376. woosh2.CFrame = woosh2.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  377. woosh2.Transparency = woosh2.Transparency + 0.03
  378. me2.Scale = me2.Scale + Vector3.new(2,2,1.8)
  379. woosh3.CFrame = woosh3.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  380. woosh3.Transparency = woosh3.Transparency + 0.035
  381. me3.Scale = me3.Scale + Vector3.new(1.3,1.3,1)
  382. me1.Scale = me1.Scale + Vector3.new(2,1,2)
  383. woosh1.Transparency = woosh1.Transparency + 0.04
  384. woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  385. woosh4.Transparency = woosh4.Transparency + 0.02
  386. me4.Scale = me4.Scale + Vector3.new(2,4,2)
  387. end
  388. woosh3:remove()
  389. woosh2:remove()
  390. woosh1:remove()
  391. woosh4:remove()
  392. woosh:remove()
  393.  
  394. for _ = 1, 24 do
  395. swait()
  396. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  397. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  398. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  399. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  400. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  401. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  402. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  403. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  404. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  405. end
  406. S:remove()
  407. hum.WalkSpeed = 16
  408. hum.JumpPower = 50
  409. wait(2.3)
  410. S4:remove()
  411. S3:remove()
  412. end
  413.  
  414. function ring()
  415. local S4 = Instance.new("Sound",game.Soundscape)
  416. S4.SoundId = "rbxassetid://991726501"
  417. S4.Volume = 1.5
  418. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  419. pe.Texture = "rbxassetid://272050333"
  420. pe.Size = NumberSequence.new(1)
  421. pe.LightEmission = 1
  422. pe.LightInfluence = 1
  423. pe.Rate = 1000000.000
  424. pe.Rotation = NumberRange.new(0, 360)
  425. pe.Speed = NumberRange.new(10)
  426. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  427. pe.Lifetime = NumberRange.new(0.06)
  428. pe.LockedToPart = true
  429. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  430. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  431. pe2.Size = NumberSequence.new(3)
  432. pe2.LightEmission = 1
  433. pe2.LightInfluence = 1
  434. pe2.Rate = 1000
  435. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  436. pe2.Rotation = NumberRange.new(0, 360)
  437. pe2.RotSpeed = NumberRange.new(2)
  438. pe2.Speed = NumberRange.new(15)
  439. pe2.SpreadAngle = Vector2.new(360,306)
  440. pe2.Lifetime = NumberRange.new(0.06)
  441. pe2.ZOffset = 1
  442. pe2.LockedToPart = true
  443. pe2.Name = "ParticleEmitter2"
  444. wait(0.3)
  445. local me = Instance.new("Part",workspace)
  446. local mesh = Instance.new("SpecialMesh")
  447. mesh.MeshType = "FileMesh"
  448. mesh.MeshId = "rbxassetid://3270017"
  449. mesh.Scale = Vector3.new(12, 12, 0.05)
  450. mesh.Parent = me
  451. me.Anchored = true
  452. me.CanCollide = false
  453. me.BrickColor = BrickColor.new("Institutional white")
  454. me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
  455. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  456. me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
  457. me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  458. me.Anchored = false
  459. local me2 = Instance.new("Part",workspace)
  460. local mesh2 = Instance.new("SpecialMesh")
  461. mesh2.MeshType = "FileMesh"
  462. mesh2.MeshId = "rbxassetid://3270017"
  463. mesh2.Scale = Vector3.new(12, 12, 0.05)
  464. mesh2.Parent = me2
  465. me2.Anchored = true
  466. me2.CanCollide = false
  467. me2.BrickColor = BrickColor.new("Institutional white")
  468. me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
  469. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  470. me2.CFrame = hrp.CFrame
  471. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  472. local bfor = Instance.new("BodyPosition")
  473. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  474. bfor.P = 2500
  475. bfor.Position = me.Position + Vector3.new(0, 50, 0)
  476. bfor.Parent = me
  477. me.Velocity = me.CFrame.lookVector *65
  478. local sound2 = Instance.new("Sound",game.Soundscape)
  479. sound2.SoundId = "rbxassetid://157878578"
  480. sound2.MaxDistance = 300
  481. sound2.EmitterSize = 20
  482. sound2.Volume = 2
  483. sound2.Pitch = 0.9
  484. local sound3 = Instance.new("Sound",game.Soundscape)
  485. sound3.SoundId = "rbxassetid://138250406"
  486. sound2.MaxDistance = 400
  487. sound2.EmitterSize = 30
  488. sound2.Volume = 1.5
  489. sound2.Pitch = 0.6
  490. sound2:Play()
  491. sound3:Play()
  492. wait(0.4)
  493. local bfor = Instance.new("BodyPosition")
  494. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  495. bfor.P = 2500
  496. bfor.Position = plr.Character.HumanoidRootPart.Position + Vector3.new(0, 500, 0)
  497. bfor.Parent = plr.Character.HumanoidRootPart
  498. plr.Character.HumanoidRootPart.Velocity=plr.Character.HumanoidRootPart.CFrame.lookVector *200
  499. S4:Play()
  500. local part = Instance.new("Part",workspace)
  501. part.Transparency = 1
  502. part.CanCollide = false
  503. part.Anchored = true
  504. part.CFrame = char:FindFirstChild("Right Leg").CFrame
  505. local smok = Instance.new("Smoke",part)
  506. smok.Opacity = 1
  507. smok.Size = 20
  508. for e = 1, 30 do
  509. wait()
  510. mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
  511. me.Transparency = me.Transparency + 0.04
  512. me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
  513. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  514. mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
  515. me2.Transparency = me2.Transparency + 0.04
  516. me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
  517. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  518. smok.Size = smok.Size + 10
  519. wait()
  520. end
  521. S4:remove()
  522. pe:remove()
  523. pe2:remove()
  524. bfor:remove()
  525. me2:remove()
  526. me:remove()
  527. for i = 0,1,0.01 do
  528. wait()
  529. smok.Opacity = smok.Opacity - 0.01
  530. end
  531. part:remove()
  532. sound2:remove()
  533. sound3:remove()
  534. end
  535.  
  536. function ring2()
  537. hum.WalkSpeed = 0
  538. hum.JumpPower = 0
  539. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  540. pe.Texture = "rbxassetid://272050333"
  541. pe.Size = NumberSequence.new(1)
  542. pe.LightEmission = 1
  543. pe.LightInfluence = 1
  544. pe.Rate = 1000000.000
  545. pe.Rotation = NumberRange.new(0, 360)
  546. pe.Speed = NumberRange.new(10)
  547. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  548. pe.Lifetime = NumberRange.new(0.06)
  549. pe.LockedToPart = true
  550. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  551. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  552. pe2.Size = NumberSequence.new(3)
  553. pe2.LightEmission = 1
  554. pe2.LightInfluence = 1
  555. pe2.Rate = 1000
  556. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  557. pe2.Rotation = NumberRange.new(0, 360)
  558. pe2.RotSpeed = NumberRange.new(2)
  559. pe2.Speed = NumberRange.new(15)
  560. pe2.SpreadAngle = Vector2.new(360,306)
  561. pe2.Lifetime = NumberRange.new(0.06)
  562. pe2.ZOffset = 1
  563. pe2.LockedToPart = true
  564. pe2.Name = "ParticleEmitter2"
  565. for l = 1, 30 do
  566. swait()
  567. lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40)
  568. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40)
  569. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40)
  570. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  571. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40)
  572. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  573. lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40)
  574. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  575. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40)
  576. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  577. end
  578. local S4 = Instance.new("Sound",game.Soundscape)
  579. S4.SoundId = "rbxassetid://991726501"
  580. S4.Volume = 1.5
  581. wait(0.3)
  582. local me = Instance.new("Part",workspace)
  583. local mesh = Instance.new("SpecialMesh")
  584. mesh.MeshType = "FileMesh"
  585. mesh.MeshId = "rbxassetid://3270017"
  586. mesh.Scale = Vector3.new(12, 12, 0.05)
  587. mesh.Parent = me
  588. me.Anchored = true
  589. me.CanCollide = false
  590. me.BrickColor = BrickColor.new("Institutional white")
  591. me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
  592. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  593. me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
  594. me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  595. me.Anchored = false
  596. local me2 = Instance.new("Part",workspace)
  597. local mesh2 = Instance.new("SpecialMesh")
  598. mesh2.MeshType = "FileMesh"
  599. mesh2.MeshId = "rbxassetid://3270017"
  600. mesh2.Scale = Vector3.new(12, 12, 0.05)
  601. mesh2.Parent = me2
  602. me2.Anchored = true
  603. me2.CanCollide = false
  604. me2.BrickColor = BrickColor.new("Institutional white")
  605. me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
  606. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  607. me2.CFrame = hrp.CFrame
  608. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  609. local bfor = Instance.new("BodyPosition")
  610. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  611. bfor.P = 2500
  612. bfor.Position = me.Position + Vector3.new(0, 50, 0)
  613. bfor.Parent = me
  614. me.Velocity = me.CFrame.lookVector *65
  615. local sound2 = Instance.new("Sound",game.Soundscape)
  616. sound2.SoundId = "rbxassetid://157878578"
  617. sound2.MaxDistance = 300
  618. sound2.EmitterSize = 20
  619. sound2.Volume = 2
  620. sound2.Pitch = 0.9
  621. local sound3 = Instance.new("Sound",game.Soundscape)
  622. sound3.SoundId = "rbxassetid://138250406"
  623. sound2.MaxDistance = 400
  624. sound2.EmitterSize = 30
  625. sound2.Volume = 1.5
  626. sound2.Pitch = 0.6
  627. sound2:Play()
  628. sound3:Play()
  629.  
  630. S4:Play()
  631. local part = Instance.new("Part",workspace)
  632. part.Transparency = 1
  633. part.CanCollide = false
  634. part.Anchored = true
  635. part.CFrame = char:FindFirstChild("Right Leg").CFrame
  636. local smok = Instance.new("Smoke",part)
  637. smok.Opacity = 1
  638. smok.Size = 20
  639. local woosh4 = Instance.new("Part",workspace)
  640. woosh4.Size = Vector3.new(12, 12, 20)
  641. woosh4.BrickColor = BrickColor.new("Institutional white")
  642. local me4 = Instance.new("FileMesh",woosh4)
  643. me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
  644. me4.Scale = Vector3.new(1.3,0.1,1)
  645. woosh4.CanCollide = false
  646. woosh4.Anchored = true
  647. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  648. local woosh4 = Instance.new("Part",workspace)
  649. woosh4.Size = Vector3.new(12, 12, 20)
  650. woosh4.BrickColor = BrickColor.new("Institutional white")
  651. local me4 = Instance.new("FileMesh",woosh4)
  652. me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
  653. me4.Scale = Vector3.new(2,3.3,2)
  654. woosh4.CanCollide = false
  655. woosh4.Anchored = true
  656. woosh4.CFrame = char:FindFirstChild("Right Leg").CFrame
  657. Crater()
  658. for e = 1, 30 do
  659. wait()
  660. hito(woosh4, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  661. hito(me2, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  662. hito(me, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  663. mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
  664. me.Transparency = me.Transparency + 0.04
  665. me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
  666. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  667. mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
  668. me2.Transparency = me2.Transparency + 0.04
  669. me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
  670. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  671. smok.Size = smok.Size + 10
  672. woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0)
  673. woosh4.Transparency = woosh4.Transparency + 0.06
  674. me4.Scale = me4.Scale + Vector3.new(2,4,2)
  675. wait()
  676. end
  677. for _ = 1, 18 do
  678. swait()
  679. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  680. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  681. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  682. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  683. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  684. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  685. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  686. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  687. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  688. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  689. end
  690. hum.WalkSpeed = 16
  691. hum.JumpPower = 50
  692. woosh4:remove()
  693. S4:remove()
  694. pe:remove()
  695. pe2:remove()
  696. me2:remove()
  697. me:remove()
  698. for i = 0,1,0.01 do
  699. wait()
  700. smok.Opacity = smok.Opacity - 0.01
  701. end
  702. part:remove()
  703. sound2:remove()
  704. sound3:remove()
  705.  
  706. end
  707.  
  708.  
  709. function lerpz(joint, prop, cfrmz, alp)
  710. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  711. end
  712.  
  713. m.KeyDown:connect(function(key)
  714. key = key:lower()
  715. if key == "e" and LOADED == 1 then
  716. LOADED = LOADED -1
  717. smash()
  718. LOADED = LOADED +1
  719. end
  720. end)
  721.  
  722. m.KeyDown:connect(function(key)
  723. key = key:lower()
  724. if key == "z" and LOADED == 1 then
  725. LOADED = LOADED -1
  726. ring()
  727. wait(1)
  728. LOADED = LOADED +1
  729. end
  730. end)
  731.  
  732.  
  733. m.KeyDown:connect(function(key)
  734. key = key:lower()
  735. if key == "r" and LOADED == 1 then
  736. LOADED = LOADED -1
  737. ring2()
  738. wait(1)
  739. LOADED = LOADED +1
  740. end
  741. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement