Advertisement
memberhero

One For All Powers

Dec 21st, 2020
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.09 KB | None | 0 0
  1. --FE Template
  2. if (game:GetService('RunService'):IsServer()) then return error('This script cannot be ran server-sided, please use hl/',0); end;
  3.  
  4. NS ([=[
  5. if not game.ReplicatedStorage:FindFirstChild("Remotes") then
  6. local folder = Instance.new('Folder',game.ReplicatedStorage)
  7. folder.Name = "Remotes"
  8. remoteevent1 = Instance.new("RemoteEvent",folder)
  9. remoteevent1.Name = "Lerpz"
  10. remoteevent2 = Instance.new("RemoteFunction",folder)
  11. remoteevent2.Name = "CreateWeapon"
  12. remoteevent3 = Instance.new("RemoteFunction",folder)
  13. remoteevent3.Name = "Shoot"
  14. remoteevent4 = Instance.new("RemoteEvent",folder)
  15. remoteevent4.Name = "RequestEvent"
  16. end
  17. remoteevent1.OnServerEvent:Connect(function(plr,joint, prop, cfrmz, alp)
  18. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  19. end)
  20. remoteevent2.OnServerInvoke = function(plr,c)
  21. local Model = Instance.new("Model",plr.Character)
  22. Model.Name = "Weapon"
  23. PS = Instance.new("Sound",c.HumanoidRootPart)PS.SoundId = "rbxassetid://882101831" PS.Volume = 3 PS:Play()
  24. --[[local Hood = Instance.new("Part",c)Hood.Size = Vector3.new(0.2,0.2,0.2)Hood.BrickColor = BrickColor.new("Really black")
  25. local HM = Instance.new("SpecialMesh",Hood)HM.MeshId = "rbxassetid://16952952" HM.Scale = Vector3.new(1.05,1.05,1.05)
  26. local HW = Instance.new("Weld",c.Head)HW.Part0 = c.Head HW.Part1 = Hood HW.C0 = CFrame.new(0,0.25,0)]]
  27. LeftGun = Instance.new("Part",Model)LeftGun.Size = Vector3.new(0.4,1.4,4)LeftGun.CanCollide = false LeftGun.Anchored = false LeftGun.Name = "HellfireGun1" LeftGun.Archivable = false
  28. local LeftM = Instance.new("SpecialMesh",LeftGun)LeftM.MeshId = "rbxassetid://651422978" LeftM.TextureId = "rbxassetid://651423359" LeftM.Scale = Vector3.new(0.35,0.35,0.35)
  29. local LeftW = Instance.new("Weld",c["Left Arm"])LeftW.Part0 = c["Left Arm"] LeftW.Part1 = LeftGun LeftW.C0 = CFrame.new(0,-2,-0.25)*CFrame.Angles(math.rad(-90),0,0)
  30. local RightGun = Instance.new("Part",Model)RightGun.Size = Vector3.new(0.4,1.4,4)RightGun.CanCollide = false RightGun.Anchored = false RightGun.Name = "HellfireGun2" RightGun.Archivable = false
  31. local RightM = Instance.new("SpecialMesh",RightGun)RightM.MeshId = "rbxassetid://651422978" RightM.TextureId = "rbxassetid://651423359" RightM.Scale = Vector3.new(0.35,0.35,0.35)
  32. local RightW = Instance.new("Weld",c["Right Arm"])RightW.Part0 = c["Right Arm"] RightW.Part1 = RightGun RightW.C0 = CFrame.new(0,-2,-0.25)*CFrame.Angles(math.rad(-90),0,0)
  33. local LeftEffect = Instance.new("Part",LeftGun)LeftEffect.Size = Vector3.new(0.2,0.2,0.2)LeftEffect.Transparency = 1 LeftEffect.CanCollide = false
  34. local LEFW = Instance.new("Weld",LeftGun)LEFW.Part0 = LeftGun LEFW.Part1 = LeftEffect LEFW.C0 = CFrame.new(0,0.4,-2.4)
  35. local RightEffect = Instance.new("Part",RightGun)RightEffect.Size = Vector3.new(0.2,0.2,0.2)RightEffect.Transparency = 1 RightEffect.CanCollide = false
  36. local REFW = Instance.new("Weld",RightGun)REFW.Part0 = RightGun REFW.Part1 = RightEffect REFW.C0 = CFrame.new(0,0.4,-2.4)
  37. local ExpColors = {ColorSequenceKeypoint.new(0, Color3.new(255/255,144/255,46/255)),ColorSequenceKeypoint.new(0.121, Color3.new(0/255,0/255,0/255)),ColorSequenceKeypoint.new(1, Color3.new(0/255,0/255,0/255))}
  38. local LeftExp = Instance.new("ParticleEmitter",LeftEffect) LeftExp.Texture = "rbxassetid://850216805"
  39. LeftExp.LightEmission = 0.85 LeftExp.Color = ColorSequence.new(ExpColors) LeftExp.Rate = 500 LeftExp.Rotation = NumberRange.new(-360,360)
  40. LeftExp.Lifetime = NumberRange.new(1) LeftExp.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.0138,2,0),NumberSequenceKeypoint.new(1,4,0)})
  41. LeftExp.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) LeftExp.Speed = NumberRange.new(2) LeftExp.SpreadAngle = Vector2.new(25,25) LeftExp.Name = "Explosion"
  42. LeftExp.VelocityInheritance = 0.5 LeftExp.ZOffset = 2 LeftExp.Enabled = false LeftExp.EmissionDirection = "Front"
  43. local RightExp = Instance.new("ParticleEmitter",RightEffect) RightExp.Texture = "rbxassetid://850216805"
  44. RightExp.LightEmission = 0.85 RightExp.Color = ColorSequence.new(ExpColors) RightExp.Rate = 500 RightExp.Rotation = NumberRange.new(-360,360)
  45. RightExp.Lifetime = NumberRange.new(1) RightExp.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.0138,2,0),NumberSequenceKeypoint.new(1,4,0)})
  46. RightExp.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) RightExp.Speed = NumberRange.new(2) RightExp.SpreadAngle = Vector2.new(25,25) RightExp.Name = "Explosion"
  47. RightExp.VelocityInheritance = 0.5 RightExp.ZOffset = 2 RightExp.Enabled = false RightExp.EmissionDirection = "Front"
  48. return Model
  49. end
  50. remoteevent3.OnServerInvoke = function(player,char)
  51. local acos = math.acos
  52. local sqrt = math.sqrt
  53. local Vec3 = Vector3.new
  54. function ApplyTrig(Num,Func)
  55. local Min,Max = Func(0),Func(1)
  56. local i = Func(Num)
  57. return (i-Min)/(Max-Min)
  58. --[[if Func == "sin" then
  59. return (math.sin((1-Num)*math.pi)+1)/2
  60. elseif Func == "cos" then
  61. return (math.cos((1-Num)*math.pi)+1)/2
  62. end]]
  63. end
  64. local function toAxisAngle(CFr)
  65. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  66. local Angle = math.acos((R00+R11+R22-1)/2)
  67. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  68. A = A == 0 and 0.00001 or A
  69. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  70. B = B == 0 and 0.00001 or B
  71. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  72. C = C == 0 and 0.00001 or C
  73. local x = (R21-R12)/sqrt(A)
  74. local y = (R02-R20)/sqrt(B)
  75. local z = (R10-R01)/sqrt(C)
  76. return Vec3(x,y,z),Angle
  77. end
  78. local fromAxisAngle = CFrame.fromAxisAngle
  79. function LerpCFrame(CFrame1,CFrame2,Num)
  80. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  81. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  82. end
  83. local function Crater(Torso,Radius)
  84. spawn(function()
  85. local Ray = Ray.new(char.Torso.Position,Vector3.new(0,-1,0)*10)
  86. local Ignore = {}
  87. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  88. if v.Character ~= nil then
  89. Ignore[#Ignore+1] = v.Character
  90. end
  91. end
  92. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  93. if Hit == nil then return end
  94. local Parts = {}
  95. for i = 1,360,10 do
  96. local P = Instance.new("Part",char.Torso.Parent)
  97. P.Anchored = true
  98. P.FormFactor = "Custom"
  99. P.BrickColor = Hit.BrickColor
  100. P.Material = Hit.Material
  101. P.TopSurface = "Smooth"
  102. P.BottomSurface = "Smooth"
  103. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  104. 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)))
  105. 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}
  106. if math.random(0,5) == 0 then -- rubble
  107. local P = Instance.new("Part",char.Torso.Parent)
  108. P.Anchored = true
  109. P.CanCollide = false
  110. P.FormFactor = "Custom"
  111. P.BrickColor = Hit.BrickColor
  112. P.Material = Hit.Material
  113. P.TopSurface = "Smooth"
  114. P.BottomSurface = "Smooth"
  115. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  116. 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)))
  117. P.CanCollide = true
  118. 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}
  119. end
  120. end
  121. for i = 0,1,0.05 do
  122. for i2,v in pairs(Parts) do
  123. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  124. end
  125. wait(0.02)
  126. end
  127. for i,v in pairs(Parts) do
  128. if v[1].Size.X > 2.1 then
  129. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  130. end
  131. v[1].Anchored = false
  132. end
  133. for i = 0,1,0.05 do
  134. for i2,v in pairs(Parts) do
  135. v[1].Transparency = i
  136. if i == 1 then
  137. v[1]:Destroy()
  138. elseif i >= 0.25 then
  139. v[1].CanCollide = false
  140. end
  141. end
  142. wait(0.02)
  143. end
  144. Parts = nil
  145. end)
  146. end
  147. local woosh = Instance.new("Part",workspace)
  148. woosh.Size = Vector3.new(12, 12, 20)
  149. woosh.BrickColor = BrickColor.new("Institutional white")
  150. local me = Instance.new("FileMesh",woosh)
  151. me.MeshId = "rbxassetid://437347603"
  152. me.Scale = Vector3.new(1.3, 1.3, 1)
  153. woosh.CanCollide = false
  154. woosh.Anchored = false
  155. woosh.CFrame = woosh.CFrame:lerp(woosh.CFrame * CFrame.new(0, 0, -22), 0.4)
  156. woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  157. woosh.CFrame = char:FindFirstChild("Right Arm").CFrame
  158. woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  159. local woosh2 = Instance.new("Part",workspace)
  160. woosh2.Name = "woosh2"
  161. woosh2.Size = Vector3.new(12, 12, 20)
  162. woosh2.BrickColor = BrickColor.new("Institutional white")
  163. local me2 = Instance.new("FileMesh",woosh2)
  164. me2.MeshId = "rbxassetid://3270017"
  165. me2.Scale = Vector3.new(1.3, 1.3, 0.4)
  166. woosh2.CanCollide = false
  167. woosh2.Anchored = true
  168. woosh2.CFrame = woosh2.CFrame:lerp(woosh2.CFrame * CFrame.new(0, 0, -22), 0.4)
  169. woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  170. woosh2.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-3,0)
  171. woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  172. local woosh3 = Instance.new("Part",workspace)
  173. woosh3.Name = "woosh3"
  174. woosh3.Size = Vector3.new(12, 12, 20)
  175. woosh3.BrickColor = BrickColor.new("Institutional white")
  176. local me3 = Instance.new("FileMesh",woosh3)
  177. me3.MeshId = "rbxassetid://3270017"
  178. me3.Scale = Vector3.new(1, 1, 0.4)
  179. woosh3.CanCollide = false
  180. woosh3.Anchored = true
  181. woosh3.CFrame = woosh3.CFrame:lerp(woosh3.CFrame * CFrame.new(0, 0, -22), 0.4)
  182. woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  183. woosh3.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  184. woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  185. local woosh1 = Instance.new("Part",workspace)
  186. woosh1.Name = "woosh1"
  187. woosh1.Size = Vector3.new(12, 12, 20)
  188. woosh1.BrickColor = BrickColor.new("Institutional white")
  189. local me1 = Instance.new("FileMesh",woosh1)
  190. me1.MeshId = "rbxassetid://489415447"
  191. me1.Scale = Vector3.new(1, 1, 0.4)
  192. woosh1.CanCollide = false
  193. woosh1.Anchored = true
  194. woosh1.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  195. local woosh4 = Instance.new("Part",workspace)
  196. woosh4.Name = "woosh4"
  197. woosh4.Transparency = 1
  198. woosh4.Size = Vector3.new(12, 12, 20)
  199. woosh4.BrickColor = BrickColor.new("Institutional white")
  200. local me4 = Instance.new("FileMesh",woosh4)
  201. me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
  202. me4.Scale = Vector3.new(1.3,0.1,1)
  203. woosh4.CanCollide = false
  204. woosh4.Anchored = true
  205. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  206. local woosh4 = Instance.new("Part",workspace)
  207. woosh4.Name = "woosh4"
  208. woosh4.Size = Vector3.new(12, 12, 20)
  209. woosh4.BrickColor = BrickColor.new("Institutional white")
  210. local me4 = Instance.new("FileMesh",woosh4)
  211. me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
  212. me4.Scale = Vector3.new(2,3.3,2)
  213. woosh4.CanCollide = false
  214. woosh4.Anchored = true
  215. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  216. local v = Instance.new("BodyVelocity", woosh)
  217. v.velocity = woosh.CFrame.lookVector *100
  218. v.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  219. Crater()
  220. for i = 0.14,1,0.015 do
  221. wait()
  222. ----hito(woosh, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  223. woosh.CFrame = woosh.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.1)
  224. woosh1.CFrame = woosh1.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  225. woosh.Transparency = woosh.Transparency + 0.04
  226. woosh2.CFrame = woosh2.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  227. woosh2.Transparency = woosh2.Transparency + 0.03
  228. me2.Scale = me2.Scale + Vector3.new(2,2,1.8)
  229. woosh3.CFrame = woosh3.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  230. woosh3.Transparency = woosh3.Transparency + 0.035
  231. me3.Scale = me3.Scale + Vector3.new(1.3,1.3,1)
  232. me1.Scale = me1.Scale + Vector3.new(2,1,2)
  233. woosh1.Transparency = woosh1.Transparency + 0.04
  234. woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  235. woosh4.Transparency = woosh4.Transparency + 0.02
  236. me4.Scale = me4.Scale + Vector3.new(2,4,2)
  237. end
  238. return woosh
  239. end
  240. function hito(plr,partoz, magn, dmg, debtim)
  241. for _, guy in pairs(workspace:GetChildren()) do
  242. 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
  243. do
  244. local humz = guy:FindFirstChild("Humanoid")
  245. local hed = guy:FindFirstChild("Head")
  246. humz:TakeDamage(dmg)
  247. local db = Instance.new("StringValue")
  248. db.Name = "alabo"
  249. db.Parent = hed
  250. delay(debtim, function()
  251. db:Destroy()
  252. end)
  253. end
  254. end
  255. end
  256. end
  257. remoteevent4.OnServerEvent:Connect(function(plr, request, ...)
  258. if request == "Damage" then
  259. hito(...)
  260. end
  261. end)
  262.  
  263.  
  264. ]=], owner.Character);
  265.  
  266. -- put scripts under here! --
  267. plr = game.Players.LocalPlayer
  268. char = plr.Character
  269. hrp = plr.Character.HumanoidRootPart
  270. mode = false
  271. tors = char.Torso
  272. m = plr:GetMouse()
  273. hum = char.Humanoid
  274.  
  275. char.Head.face.Texture = "http://www.roblox.com/asset/?id=988802990"
  276.  
  277. function sp()
  278. local S = Instance.new("Sound",char)
  279. S.SoundId = "rbxassetid://532798812"
  280. S.Volume = 0.6
  281. S.Looped = true
  282. S:Play()
  283. end
  284.  
  285. sp()
  286.  
  287. local LerpzEvent = game.ReplicatedStorage:WaitForChild("Remotes").Lerpz
  288. local ShootEvent = game.ReplicatedStorage:WaitForChild("Remotes").Shoot
  289. local DamageEvent = game.ReplicatedStorage:WaitForChild("Remotes").RequestEvent
  290.  
  291. local acos = math.acos
  292. local sqrt = math.sqrt
  293. local Vec3 = Vector3.new
  294. local fromAxisAngle = CFrame.fromAxisAngle
  295.  
  296. local function toAxisAngle(CFr)
  297. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  298. local Angle = math.acos((R00+R11+R22-1)/2)
  299. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  300. A = A == 0 and 0.00001 or A
  301. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  302. B = B == 0 and 0.00001 or B
  303. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  304. C = C == 0 and 0.00001 or C
  305. local x = (R21-R12)/sqrt(A)
  306. local y = (R02-R20)/sqrt(B)
  307. local z = (R10-R01)/sqrt(C)
  308. return Vec3(x,y,z),Angle
  309. end
  310.  
  311. function ApplyTrig(Num,Func)
  312. local Min,Max = Func(0),Func(1)
  313. local i = Func(Num)
  314. return (i-Min)/(Max-Min)
  315. --[[if Func == "sin" then
  316. return (math.sin((1-Num)*math.pi)+1)/2
  317. elseif Func == "cos" then
  318. return (math.cos((1-Num)*math.pi)+1)/2
  319. end]]
  320. end
  321.  
  322. function LerpCFrame(CFrame1,CFrame2,Num)
  323. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  324. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  325. end
  326.  
  327. function Crater(Torso,Radius)
  328. spawn(function()
  329. local Ray = Ray.new(char.Torso.Position,Vector3.new(0,-1,0)*10)
  330. local Ignore = {}
  331. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  332. if v.Character ~= nil then
  333. Ignore[#Ignore+1] = v.Character
  334. end
  335. end
  336. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  337. if Hit == nil then return end
  338. local Parts = {}
  339. for i = 1,360,10 do
  340. local P = Instance.new("Part",char.Torso.Parent)
  341. P.Anchored = true
  342. P.FormFactor = "Custom"
  343. P.BrickColor = Hit.BrickColor
  344. P.Material = Hit.Material
  345. P.TopSurface = "Smooth"
  346. P.BottomSurface = "Smooth"
  347. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  348. 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)))
  349. 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}
  350. if math.random(0,5) == 0 then -- rubble
  351. local P = Instance.new("Part",char.Torso.Parent)
  352. P.Anchored = true
  353. P.CanCollide = false
  354. P.FormFactor = "Custom"
  355. P.BrickColor = Hit.BrickColor
  356. P.Material = Hit.Material
  357. P.TopSurface = "Smooth"
  358. P.BottomSurface = "Smooth"
  359. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  360. 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)))
  361. P.CanCollide = true
  362. 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}
  363. end
  364. end
  365. for i = 0,1,0.05 do
  366. for i2,v in pairs(Parts) do
  367. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  368. end
  369. wait(0.02)
  370. end
  371. for i,v in pairs(Parts) do
  372. if v[1].Size.X > 2.1 then
  373. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  374. end
  375. v[1].Anchored = false
  376. end
  377. for i = 0,1,0.05 do
  378. for i2,v in pairs(Parts) do
  379. v[1].Transparency = i
  380. if i == 1 then
  381. v[1]:Destroy()
  382. elseif i >= 0.25 then
  383. v[1].CanCollide = false
  384. end
  385. end
  386. wait(0.02)
  387. end
  388. Parts = nil
  389. end)
  390. end
  391.  
  392.  
  393. function FindNearestTorso(Position,Distance,SinglePlayer)
  394. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  395. local List = {}
  396. for i,v in pairs(workspace:GetChildren())do
  397. if v:IsA("Model")then
  398. if v:findFirstChild("Torso")then
  399. if v ~= char then
  400. if(v.char.Torso.Position -Position).magnitude <= Distance then
  401. table.insert(List,v)
  402. end
  403. end
  404. end
  405. end
  406. end
  407. return List
  408. end
  409.  
  410.  
  411.  
  412.  
  413. function hito(partoz, magn, dmg, debtim)
  414. DamageEvent:FireServer("Damage",plr,partoz,magn,dmg,debtim)
  415. end
  416.  
  417.  
  418. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  419. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  420. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  421. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  422. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  423. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  424. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  425. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  426. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  427. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  428. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  429. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  430. RS = tors:FindFirstChild("Right Shoulder")
  431. LS = tors:FindFirstChild("Left Shoulder")
  432. RH = tors:FindFirstChild("Right Hip")
  433. LH = tors:FindFirstChild("Left Hip")
  434. RJ = hrp:FindFirstChild("RootJoint")
  435. N = tors:FindFirstChild("Neck")
  436. cf = CFrame.new
  437. ang = CFrame.Angles
  438. rd = math.rad
  439. rd2 = math.random
  440. LOADED = 1
  441.  
  442. Heartbeat = Instance.new("BindableEvent")
  443. Heartbeat.Name = "Heartbeat"
  444. Heartbeat.Parent = script
  445. frame = 0.03333333333333333
  446. tf = 0
  447. game:GetService("RunService").Heartbeat:connect(function(s, p)
  448. tf = tf + s
  449. if tf >= frame then
  450. for i = 1, math.floor(tf / frame) do
  451. Heartbeat:Fire()
  452. end
  453. tf = tf - frame * math.floor(tf / frame)
  454. end
  455. end)
  456. function swait(num)
  457. if num == 0 or num == nil then
  458. Heartbeat.Event:wait()
  459. else
  460. for i = 1, num do
  461. Heartbeat.Event:wait()
  462. end
  463. end
  464. end
  465.  
  466. function makeweld(parent, p0, p1, c0, c1)
  467. local wel = Instance.new("Weld")
  468. wel.Part0 = p0
  469. wel.Part1 = p1
  470. wel.C0 = c0
  471. if c1 ~= nil then
  472. wel.C1 = c1
  473. end
  474. wel.Parent = parent
  475. return wel
  476. end
  477.  
  478. function smash()
  479. hum.WalkSpeed = 2
  480. hum.JumpPower = 1
  481. local S = Instance.new("Sound",char)
  482. S.SoundId = "rbxassetid://938838122"
  483. S.Volume = 1.5
  484. local S4 = Instance.new("Sound",char)
  485. S4.SoundId = "rbxassetid://991726501"
  486. S4.Volume = 1.5
  487. local S3 = Instance.new("Sound",char)
  488. S3.SoundId = "rbxassetid://610327604"
  489. S3.Volume = 0.3
  490. S3.PlaybackSpeed = 0.85
  491. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
  492. pe.Texture = "rbxassetid://272050333"
  493. pe.Size = NumberSequence.new(1)
  494. pe.LightEmission = 1
  495. pe.LightInfluence = 1
  496. pe.Rate = 1000000.000
  497. pe.Rotation = NumberRange.new(0, 360)
  498. pe.Speed = NumberRange.new(10)
  499. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  500. pe.Lifetime = NumberRange.new(0.06)
  501. pe.LockedToPart = true
  502. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
  503. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  504. pe2.Size = NumberSequence.new(3)
  505. pe2.LightEmission = 1
  506. pe2.LightInfluence = 1
  507. pe2.Rate = 1000
  508. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  509. pe2.Rotation = NumberRange.new(0, 360)
  510. pe2.RotSpeed = NumberRange.new(2)
  511. pe2.Speed = NumberRange.new(15)
  512. pe2.SpreadAngle = Vector2.new(360,306)
  513. pe2.Lifetime = NumberRange.new(0.06)
  514. pe2.ZOffset = 1
  515. pe2.LockedToPart = true
  516. pe2.Name = "ParticleEmitter2"
  517.  
  518. S:Play()
  519. for _ = 1, 45 do
  520. swait()
  521. LerpzEvent:FireServer(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2)
  522. LerpzEvent:FireServer(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2)
  523. LerpzEvent:FireServer(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)
  524. LerpzEvent:FireServer(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  525. LerpzEvent:FireServer(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2)
  526. LerpzEvent:FireServer(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2)
  527. LerpzEvent:FireServer(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2)
  528. LerpzEvent:FireServer(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  529. LerpzEvent:FireServer(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
  530. LerpzEvent:FireServer(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  531. end
  532. for _ = 1, 30 do
  533. swait()
  534. LerpzEvent:FireServer(RJ, "C0", RJC0 * cf(0, 1.2, -0.2) * ang(rd(5), rd(6), rd(-109)), 0.2)
  535. LerpzEvent:FireServer(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(-6), rd(96)), 0.2)
  536. LerpzEvent:FireServer(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)
  537. LerpzEvent:FireServer(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-46)), 0.2)
  538. LerpzEvent:FireServer(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.2)
  539. LerpzEvent:FireServer(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.2)
  540. LerpzEvent:FireServer(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
  541. LerpzEvent:FireServer(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.2)
  542.  
  543. end
  544. for l = 1, 3 do
  545. swait()
  546. LerpzEvent:FireServer(RJ, "C0", RJC0 * cf(0.4, -1.6, -0.2) * ang(rd(5), rd(6), rd(60)), 0.3 + l / 4)
  547. LerpzEvent:FireServer(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-4), rd(-35)), 0.3 + l / 4)
  548. LerpzEvent:FireServer(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(-58), rd(95)), 0.3 + l / 4)
  549. LerpzEvent:FireServer(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.3 + l / 4)
  550. LerpzEvent:FireServer(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-66)), 0.3 + l / 4)
  551. LerpzEvent:FireServer(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.3 + l / 4)
  552. LerpzEvent:FireServer(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.3 + l / 4)
  553. LerpzEvent:FireServer(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.3 + l / 4)
  554. LerpzEvent:FireServer(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.3 + l / 4)
  555. end
  556. --[[local woosh = Instance.new("Part",workspace)
  557. woosh.Size = Vector3.new(12, 12, 20)
  558. woosh.BrickColor = BrickColor.new("Institutional white")
  559. local me = Instance.new("FileMesh",woosh)
  560. me.MeshId = "rbxassetid://437347603"
  561. me.Scale = Vector3.new(1.3, 1.3, 1)
  562. woosh.CanCollide = false
  563. woosh.Anchored = false
  564. woosh.CFrame = woosh.CFrame:lerp(woosh.CFrame * CFrame.new(0, 0, -22), 0.4)
  565. woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  566. woosh.CFrame = char:FindFirstChild("Right Arm").CFrame
  567. woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  568. local woosh2 = Instance.new("Part",workspace)
  569. woosh2.Size = Vector3.new(12, 12, 20)
  570. woosh2.BrickColor = BrickColor.new("Institutional white")
  571. local me2 = Instance.new("FileMesh",woosh2)
  572. me2.MeshId = "rbxassetid://3270017"
  573. me2.Scale = Vector3.new(1.3, 1.3, 0.4)
  574. woosh2.CanCollide = false
  575. woosh2.Anchored = true
  576. woosh2.CFrame = woosh2.CFrame:lerp(woosh2.CFrame * CFrame.new(0, 0, -22), 0.4)
  577. woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  578. woosh2.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-3,0)
  579. woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  580. local woosh3 = Instance.new("Part",workspace)
  581. woosh3.Size = Vector3.new(12, 12, 20)
  582. woosh3.BrickColor = BrickColor.new("Institutional white")
  583. local me3 = Instance.new("FileMesh",woosh3)
  584. me3.MeshId = "rbxassetid://3270017"
  585. me3.Scale = Vector3.new(1, 1, 0.4)
  586. woosh3.CanCollide = false
  587. woosh3.Anchored = true
  588. woosh3.CFrame = woosh3.CFrame:lerp(woosh3.CFrame * CFrame.new(0, 0, -22), 0.4)
  589. woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  590. woosh3.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  591. woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  592. local woosh1 = Instance.new("Part",workspace)
  593. woosh1.Size = Vector3.new(12, 12, 20)
  594. woosh1.BrickColor = BrickColor.new("Institutional white")
  595. local me1 = Instance.new("FileMesh",woosh1)
  596. me1.MeshId = "rbxassetid://489415447"
  597. me1.Scale = Vector3.new(1, 1, 0.4)
  598. woosh1.CanCollide = false
  599. woosh1.Anchored = true
  600. woosh1.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  601. local woosh4 = Instance.new("Part",workspace)
  602. woosh4.Size = Vector3.new(12, 12, 20)
  603. woosh4.BrickColor = BrickColor.new("Institutional white")
  604. local me4 = Instance.new("FileMesh",woosh4)
  605. me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
  606. me4.Scale = Vector3.new(1.3,0.1,1)
  607. woosh4.CanCollide = false
  608. woosh4.Anchored = true
  609. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  610. local woosh4 = Instance.new("Part",workspace)
  611. woosh4.Size = Vector3.new(12, 12, 20)
  612. woosh4.BrickColor = BrickColor.new("Institutional white")
  613. local me4 = Instance.new("FileMesh",woosh4)
  614. me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
  615. me4.Scale = Vector3.new(2,3.3,2)
  616. woosh4.CanCollide = false
  617. woosh4.Anchored = true
  618. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  619. local v = Instance.new("BodyVelocity", woosh)
  620. v.velocity = woosh.CFrame.lookVector *100
  621. v.maxForce = Vector3.new(math.huge, math.huge, math.huge)--]]
  622. local woosh = ShootEvent:InvokeServer(char)
  623. local woosh1 = workspace:WaitForChild("woosh1")
  624. local woosh2 = workspace:WaitForChild("woosh2")
  625. local woosh3 = workspace:WaitForChild("woosh3")
  626. local woosh4 = workspace:WaitForChild("woosh4")
  627. local me1 = woosh1:FindFirstChildOfClass("FileMesh")
  628. local me2 = woosh2:FindFirstChildOfClass("FileMesh")
  629. local me3 = woosh3:FindFirstChildOfClass("FileMesh")
  630. local me4 = woosh4:FindFirstChildOfClass("FileMesh")
  631. S3:Play()
  632. pe:remove()
  633. pe2:remove()
  634. Crater()
  635. for i = 0.14,1,0.015 do
  636. wait()
  637. hito(woosh, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  638. ---woosh.CFrame = woosh.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.1)
  639. ---woosh1.CFrame = woosh1.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  640. ---woosh.Transparency = woosh.Transparency + 0.04
  641. ---woosh2.CFrame = woosh2.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  642. ---woosh2.Transparency = woosh2.Transparency + 0.03
  643. ---me2.Scale = me2.Scale + Vector3.new(2,2,1.8)
  644. ---woosh3.CFrame = woosh3.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  645. ---woosh3.Transparency = woosh3.Transparency + 0.035
  646. ---me3.Scale = me3.Scale + Vector3.new(1.3,1.3,1)
  647. ---me1.Scale = me1.Scale + Vector3.new(2,1,2)
  648. ---woosh1.Transparency = woosh1.Transparency + 0.04
  649. ---woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  650. ---woosh4.Transparency = woosh4.Transparency + 0.02
  651. --me4.Scale = me4.Scale + Vector3.new(2,4,2)
  652. end
  653. woosh3:remove()
  654. woosh2:remove()
  655. woosh1:remove()
  656. woosh4:remove()
  657. woosh:remove()
  658.  
  659. for _ = 1, 24 do
  660. swait()
  661. LerpzEvent:FireServer(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  662. LerpzEvent:FireServer(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  663. LerpzEvent:FireServer(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  664. LerpzEvent:FireServer(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  665. LerpzEvent:FireServer(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  666. LerpzEvent:FireServer(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  667. LerpzEvent:FireServer(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  668. LerpzEvent:FireServer(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  669. LerpzEvent:FireServer(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  670. end
  671. S:remove()
  672. hum.WalkSpeed = 16
  673. hum.JumpPower = 50
  674. wait(2.3)
  675. S4:remove()
  676. S3:remove()
  677. end
  678.  
  679. function ring()
  680. local S4 = Instance.new("Sound",game.Soundscape)
  681. S4.SoundId = "rbxassetid://991726501"
  682. S4.Volume = 1.5
  683. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  684. pe.Texture = "rbxassetid://272050333"
  685. pe.Size = NumberSequence.new(1)
  686. pe.LightEmission = 1
  687. pe.LightInfluence = 1
  688. pe.Rate = 1000000.000
  689. pe.Rotation = NumberRange.new(0, 360)
  690. pe.Speed = NumberRange.new(10)
  691. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  692. pe.Lifetime = NumberRange.new(0.06)
  693. pe.LockedToPart = true
  694. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  695. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  696. pe2.Size = NumberSequence.new(3)
  697. pe2.LightEmission = 1
  698. pe2.LightInfluence = 1
  699. pe2.Rate = 1000
  700. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  701. pe2.Rotation = NumberRange.new(0, 360)
  702. pe2.RotSpeed = NumberRange.new(2)
  703. pe2.Speed = NumberRange.new(15)
  704. pe2.SpreadAngle = Vector2.new(360,306)
  705. pe2.Lifetime = NumberRange.new(0.06)
  706. pe2.ZOffset = 1
  707. pe2.LockedToPart = true
  708. pe2.Name = "ParticleEmitter2"
  709. wait(0.3)
  710. local me = Instance.new("Part",workspace)
  711. local mesh = Instance.new("SpecialMesh")
  712. mesh.MeshType = "FileMesh"
  713. mesh.MeshId = "rbxassetid://3270017"
  714. mesh.Scale = Vector3.new(12, 12, 0.05)
  715. mesh.Parent = me
  716. me.Anchored = true
  717. me.CanCollide = false
  718. me.BrickColor = BrickColor.new("Institutional white")
  719. me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
  720. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  721. me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
  722. me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  723. me.Anchored = false
  724. local me2 = Instance.new("Part",workspace)
  725. local mesh2 = Instance.new("SpecialMesh")
  726. mesh2.MeshType = "FileMesh"
  727. mesh2.MeshId = "rbxassetid://3270017"
  728. mesh2.Scale = Vector3.new(12, 12, 0.05)
  729. mesh2.Parent = me2
  730. me2.Anchored = true
  731. me2.CanCollide = false
  732. me2.BrickColor = BrickColor.new("Institutional white")
  733. me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
  734. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  735. me2.CFrame = hrp.CFrame
  736. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  737. local bfor = Instance.new("BodyPosition")
  738. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  739. bfor.P = 2500
  740. bfor.Position = me.Position + Vector3.new(0, 50, 0)
  741. bfor.Parent = me
  742. me.Velocity = me.CFrame.lookVector *65
  743. local sound2 = Instance.new("Sound",game.Soundscape)
  744. sound2.SoundId = "rbxassetid://157878578"
  745. sound2.MaxDistance = 300
  746. sound2.EmitterSize = 20
  747. sound2.Volume = 2
  748. sound2.Pitch = 0.9
  749. local sound3 = Instance.new("Sound",game.Soundscape)
  750. sound3.SoundId = "rbxassetid://138250406"
  751. sound2.MaxDistance = 400
  752. sound2.EmitterSize = 30
  753. sound2.Volume = 1.5
  754. sound2.Pitch = 0.6
  755. sound2:Play()
  756. sound3:Play()
  757. wait(0.4)
  758. local bfor = Instance.new("BodyPosition")
  759. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  760. bfor.P = 2500
  761. bfor.Position = plr.Character.HumanoidRootPart.Position + Vector3.new(0, 500, 0)
  762. bfor.Parent = plr.Character.HumanoidRootPart
  763. plr.Character.HumanoidRootPart.Velocity=plr.Character.HumanoidRootPart.CFrame.lookVector *200
  764. S4:Play()
  765. local part = Instance.new("Part",workspace)
  766. part.Transparency = 1
  767. part.CanCollide = false
  768. part.Anchored = true
  769. part.CFrame = char:FindFirstChild("Right Leg").CFrame
  770. local smok = Instance.new("Smoke",part)
  771. smok.Opacity = 1
  772. smok.Size = 20
  773. for e = 1, 30 do
  774. wait()
  775. mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
  776. me.Transparency = me.Transparency + 0.04
  777. me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
  778. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  779. mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
  780. me2.Transparency = me2.Transparency + 0.04
  781. me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
  782. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  783. smok.Size = smok.Size + 10
  784. wait()
  785. end
  786. S4:remove()
  787. pe:remove()
  788. pe2:remove()
  789. bfor:remove()
  790. me2:remove()
  791. me:remove()
  792. for i = 0,1,0.01 do
  793. wait()
  794. smok.Opacity = smok.Opacity - 0.01
  795. end
  796. part:remove()
  797. sound2:remove()
  798. sound3:remove()
  799. end
  800.  
  801. function ring2()
  802. hum.WalkSpeed = 0
  803. hum.JumpPower = 0
  804. local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  805. pe.Texture = "rbxassetid://272050333"
  806. pe.Size = NumberSequence.new(1)
  807. pe.LightEmission = 1
  808. pe.LightInfluence = 1
  809. pe.Rate = 1000000.000
  810. pe.Rotation = NumberRange.new(0, 360)
  811. pe.Speed = NumberRange.new(10)
  812. pe.Color = ColorSequence.new(Color3.new(0,170,0))
  813. pe.Lifetime = NumberRange.new(0.06)
  814. pe.LockedToPart = true
  815. local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  816. pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  817. pe2.Size = NumberSequence.new(3)
  818. pe2.LightEmission = 1
  819. pe2.LightInfluence = 1
  820. pe2.Rate = 1000
  821. pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  822. pe2.Rotation = NumberRange.new(0, 360)
  823. pe2.RotSpeed = NumberRange.new(2)
  824. pe2.Speed = NumberRange.new(15)
  825. pe2.SpreadAngle = Vector2.new(360,306)
  826. pe2.Lifetime = NumberRange.new(0.06)
  827. pe2.ZOffset = 1
  828. pe2.LockedToPart = true
  829. pe2.Name = "ParticleEmitter2"
  830. for l = 1, 30 do
  831. swait()
  832. LerpzEvent:FireServer(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40)
  833. LerpzEvent:FireServer(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40)
  834. LerpzEvent:FireServer(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40)
  835. LerpzEvent:FireServer(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  836. LerpzEvent:FireServer(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40)
  837. LerpzEvent:FireServer(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  838. LerpzEvent:FireServer(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40)
  839. LerpzEvent:FireServer(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  840. LerpzEvent:FireServer(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40)
  841. LerpzEvent:FireServer(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  842. end
  843. local S4 = Instance.new("Sound",game.Soundscape)
  844. S4.SoundId = "rbxassetid://991726501"
  845. S4.Volume = 1.5
  846. wait(0.3)
  847. local me = Instance.new("Part",workspace)
  848. local mesh = Instance.new("SpecialMesh")
  849. mesh.MeshType = "FileMesh"
  850. mesh.MeshId = "rbxassetid://3270017"
  851. mesh.Scale = Vector3.new(12, 12, 0.05)
  852. mesh.Parent = me
  853. me.Anchored = true
  854. me.CanCollide = false
  855. me.BrickColor = BrickColor.new("Institutional white")
  856. me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
  857. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  858. me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
  859. me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  860. me.Anchored = false
  861. local me2 = Instance.new("Part",workspace)
  862. local mesh2 = Instance.new("SpecialMesh")
  863. mesh2.MeshType = "FileMesh"
  864. mesh2.MeshId = "rbxassetid://3270017"
  865. mesh2.Scale = Vector3.new(12, 12, 0.05)
  866. mesh2.Parent = me2
  867. me2.Anchored = true
  868. me2.CanCollide = false
  869. me2.BrickColor = BrickColor.new("Institutional white")
  870. me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
  871. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  872. me2.CFrame = hrp.CFrame
  873. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  874. local bfor = Instance.new("BodyPosition")
  875. bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  876. bfor.P = 2500
  877. bfor.Position = me.Position + Vector3.new(0, 50, 0)
  878. bfor.Parent = me
  879. me.Velocity = me.CFrame.lookVector *65
  880. local sound2 = Instance.new("Sound",game.Soundscape)
  881. sound2.SoundId = "rbxassetid://157878578"
  882. sound2.MaxDistance = 300
  883. sound2.EmitterSize = 20
  884. sound2.Volume = 2
  885. sound2.Pitch = 0.9
  886. local sound3 = Instance.new("Sound",game.Soundscape)
  887. sound3.SoundId = "rbxassetid://138250406"
  888. sound2.MaxDistance = 400
  889. sound2.EmitterSize = 30
  890. sound2.Volume = 1.5
  891. sound2.Pitch = 0.6
  892. sound2:Play()
  893. sound3:Play()
  894.  
  895. S4:Play()
  896. local part = Instance.new("Part",workspace)
  897. part.Transparency = 1
  898. part.CanCollide = false
  899. part.Anchored = true
  900. part.CFrame = char:FindFirstChild("Right Leg").CFrame
  901. local smok = Instance.new("Smoke",part)
  902. smok.Opacity = 1
  903. smok.Size = 20
  904. local woosh4 = Instance.new("Part",workspace)
  905. woosh4.Size = Vector3.new(12, 12, 20)
  906. woosh4.BrickColor = BrickColor.new("Institutional white")
  907. local me4 = Instance.new("FileMesh",woosh4)
  908. me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
  909. me4.Scale = Vector3.new(1.3,0.1,1)
  910. woosh4.CanCollide = false
  911. woosh4.Anchored = true
  912. woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  913. local woosh4 = Instance.new("Part",workspace)
  914. woosh4.Size = Vector3.new(12, 12, 20)
  915. woosh4.BrickColor = BrickColor.new("Institutional white")
  916. local me4 = Instance.new("FileMesh",woosh4)
  917. me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
  918. me4.Scale = Vector3.new(2,3.3,2)
  919. woosh4.CanCollide = false
  920. woosh4.Anchored = true
  921. woosh4.CFrame = char:FindFirstChild("Right Leg").CFrame
  922. Crater()
  923. for e = 1, 30 do
  924. wait()
  925. hito(woosh4, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  926. hito(me2, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  927. hito(me, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  928. mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
  929. me.Transparency = me.Transparency + 0.04
  930. me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
  931. me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  932. mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
  933. me2.Transparency = me2.Transparency + 0.04
  934. me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
  935. me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  936. smok.Size = smok.Size + 10
  937. woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0)
  938. woosh4.Transparency = woosh4.Transparency + 0.06
  939. me4.Scale = me4.Scale + Vector3.new(2,4,2)
  940. wait()
  941. end
  942. for _ = 1, 18 do
  943. swait()
  944. LerpzEvent:FireServer(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  945. LerpzEvent:FireServer(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  946. LerpzEvent:FireServer(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  947. LerpzEvent:FireServer(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  948. LerpzEvent:FireServer(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  949. LerpzEvent:FireServer(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  950. LerpzEvent:FireServer(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  951. LerpzEvent:FireServer(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  952. LerpzEvent:FireServer(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  953. LerpzEvent:FireServer(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  954. end
  955. hum.WalkSpeed = 16
  956. hum.JumpPower = 50
  957. woosh4:remove()
  958. S4:remove()
  959. pe:remove()
  960. pe2:remove()
  961. me2:remove()
  962. me:remove()
  963. for i = 0,1,0.01 do
  964. wait()
  965. smok.Opacity = smok.Opacity - 0.01
  966. end
  967. part:remove()
  968. sound2:remove()
  969. sound3:remove()
  970.  
  971. end
  972.  
  973.  
  974.  
  975.  
  976. m.KeyDown:connect(function(key)
  977. key = key:lower()
  978. if key == "e" and LOADED == 1 then
  979. LOADED = LOADED -1
  980. smash()
  981. LOADED = LOADED +1
  982. end
  983. end)
  984.  
  985. m.KeyDown:connect(function(key)
  986. key = key:lower()
  987. if key == "z" and LOADED == 1 then
  988. LOADED = LOADED -1
  989. ring()
  990. wait(1)
  991. LOADED = LOADED +1
  992. end
  993. end)
  994.  
  995.  
  996. m.KeyDown:connect(function(key)
  997. key = key:lower()
  998. if key == "r" and LOADED == 1 then
  999. LOADED = LOADED -1
  1000. ring2()
  1001. wait(1)
  1002. LOADED = LOADED +1
  1003. end
  1004. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement