wamandnj

Untitled

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