Advertisement
brainsmartnessjuice

Untitled

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