rcubed1003

deku script fe

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