Advertisement
pakin2549

Untitled

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