Advertisement
yeetalpha

OFA

Dec 9th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 49.48 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. 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
  6. plr = game.Players.LocalPlayer
  7. char = plr.Character
  8. hrp = plr.Character.HumanoidRootPart
  9. mode = false
  10. tors = char.Torso
  11. m = plr:GetMouse()
  12. cowl = false
  13. hum = char.Humanoid
  14.  tors = char.Torso
  15.   rarm = char["Right Arm"]
  16.   larm = char["Left Arm"]
  17.   rleg = char["Right Leg"]
  18.   lleg = char["Left Leg"]
  19.   cf = CFrame.new
  20.  
  21.  function nooutline(p)
  22.     p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10
  23.   end
  24.   function makepart(color, name, reflec, mater, parnt, cfram)
  25.     local port = Instance.new("Part")
  26.     port.BrickColor = BrickColor.new(color)
  27.     port.Name = name
  28.     nooutline(port)
  29.     port.Reflectance = reflec
  30.     port.Material = mater
  31.     port.Anchored = false
  32.     port.CanCollide = false
  33.     port.Locked = true
  34.     port.Size = Vector3.new(0.2, 0.2, 0.2)
  35.     port.Parent = parnt
  36.     return port
  37.   end
  38.   function makemesh(meshtype, scale, meshid, parent)
  39.     local mes = Instance.new("SpecialMesh")
  40.     mes.MeshType = meshtype
  41.     mes.Scale = scale
  42.     if meshtype == "FileMesh" then
  43.       mes.MeshId = meshid
  44.     end
  45.     mes.Parent = parent
  46.     return mes
  47.   end
  48.   function makeweld(parent, p0, p1, c0, c1)
  49.     local wel = Instance.new("Weld")
  50.     wel.Part0 = p0
  51.     wel.Part1 = p1
  52.     wel.C0 = c0
  53.     if c1 ~= nil then
  54.       wel.C1 = c1
  55.     end
  56.     wel.Parent = parent
  57.     return wel
  58.   end
  59.   function smokz(prnt)
  60.     local s = Instance.new("Smoke")
  61.     s.Color = Color3.new(1, 1, 1)
  62.     s.Enabled = false
  63.     s.Name = "smok"
  64.     s.Opacity = 0.5
  65.     s.RiseVelocity = 0.2
  66.     s.Size = 0.1
  67.     s.Parent = prnt
  68.   end
  69.   function glow(tz, paz, smokinz, length)
  70.     if tz.Parent:FindFirstChildOfClass("Humanoid") and paz.Transparency == 1 then
  71.       do
  72.         local s = Instance.new("Sound")
  73.         s.SoundId = ""
  74.         s.Volume = 0.25
  75.         s.Pitch = math.random(9, 11) / 10
  76.         s.Parent = paz
  77.         paz.Transparency = 0.7
  78.         if smokinz == true then
  79.           paz.smok.Enabled = true
  80.         end
  81.         delay(length, function()
  82.           paz.Transparency = 1
  83.           paz.smok.Enabled = false
  84.           s:Destroy()
  85.         end)
  86.       end
  87.     end
  88.   end
  89.   function makeglow()
  90.     for _, p in pairs(char:GetChildren()) do
  91.       if p.ClassName == "Accessory" then
  92.         do
  93.           local h = p:FindFirstChildOfClass("Part")
  94.           local nh = h:Clone()
  95.           nh.Parent = nil
  96.           nh.CFrame = h.CFrame
  97.           nh.Transparency = 1
  98.           nh.Name = "Glow"
  99.           nh.Material = "Neon"
  100.           nh.BrickColor = BrickColor.new("New Yeller")
  101.           nh.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5)
  102.           nh.Parent = h
  103.           makeweld(nh, nh, h, cf(0, 0, 0))
  104.           local m = nh:FindFirstChildOfClass("SpecialMesh")
  105.           m.Scale = m.Scale + Vector3.new(0.06, 0.06, 0.06)
  106.           m.TextureId = ""
  107.           smokz(nh)
  108.           nh.Touched:connect(function(po)
  109.             glow(po, nh, true, 0.8)
  110.           end)
  111.         end
  112.       elseif p.ClassName == "Part" and p ~= hrp then
  113.         do
  114.           local n = p:Clone()
  115.           n.Parent = nil
  116.           n.Transparency = 1
  117.           n.Material = "Neon"
  118.           n.Name = "Glow"
  119.           n.BrickColor = BrickColor.new("Electric blue")
  120.           n.CFrame = p.CFrame
  121.           n.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5)
  122.           n.Parent = p
  123.           makeweld(n, n, p, cf(0, 0, 0))
  124.           smokz(n)
  125.           n.Touched:connect(function(po)
  126.             glow(po, n, true, 0.8)
  127.           end)
  128.           if n:FindFirstChildOfClass("Decal") then
  129.             n:FindFirstChildOfClass("Decal"):Destroy()
  130.           end
  131.           if p:FindFirstChildOfClass("SpecialMesh") then
  132.             local c = p:FindFirstChildOfClass("SpecialMesh"):Clone()
  133.             c.Parent = nil
  134.             c.Scale = c.Scale + Vector3.new(0.05, 0.05, 0.05)
  135.             c.Parent = n
  136.           else
  137.             local m = Instance.new("BlockMesh")
  138.             m.Scale = Vector3.new(1.05, 1.025, 1.05)
  139.             if p == tors then
  140.               m.Scale = Vector3.new(1.05, 1.05, 1.05)
  141.             end
  142.             m.Parent = n
  143.           end
  144.         end
  145.       end
  146.     end
  147.   end
  148.   function fglow(glopart, duration)
  149.     for _ = 1, 4 do
  150.       swait()
  151.       glopart.Transparency = glopart.Transparency - 0.075
  152.     end
  153.     delay(duration, function()
  154.       for _ = 1, 4 do
  155.         swait()
  156.         glopart.Transparency = glopart.Transparency + 0.075
  157.       end
  158.     end)
  159.   end
  160.   function lerpz(joint, prop, cfrmz, alp)
  161.     joint[prop] = joint[prop]:lerp(cfrmz, alp)
  162.   end
  163. char.Head.face.Texture = "http://www.roblox.com/asset/?id=988802990"
  164.  
  165. function sp()
  166. local S = Instance.new("Sound",game.Soundscape)
  167. S.SoundId = "rbxassetid://532798812"
  168. S.Volume = 0.6
  169. S.Looped = true
  170. S:Play()
  171.  
  172. end
  173.  
  174. sp()
  175.  
  176. local acos = math.acos
  177. local sqrt = math.sqrt
  178. local Vec3 = Vector3.new
  179. local fromAxisAngle = CFrame.fromAxisAngle
  180.  
  181. local function toAxisAngle(CFr)
  182.         local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  183.         local Angle = math.acos((R00+R11+R22-1)/2)
  184.         local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  185.         A = A == 0 and 0.00001 or A
  186.         local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  187.         B = B == 0 and 0.00001 or B
  188.         local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  189.         C = C == 0 and 0.00001 or C
  190.         local x = (R21-R12)/sqrt(A)
  191.         local y = (R02-R20)/sqrt(B)
  192.         local z = (R10-R01)/sqrt(C)
  193.         return Vec3(x,y,z),Angle
  194. end
  195.  
  196.  
  197. function ApplyTrig(Num,Func)
  198.         local Min,Max = Func(0),Func(1)
  199.         local i = Func(Num)
  200.         return (i-Min)/(Max-Min)
  201.         --[[if Func == "sin" then
  202.                 return (math.sin((1-Num)*math.pi)+1)/2
  203.         elseif Func == "cos" then
  204.                 return (math.cos((1-Num)*math.pi)+1)/2
  205.         end]]
  206. end
  207.  
  208. function LerpCFrame(CFrame1,CFrame2,Num)
  209.         local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  210.         return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  211. end
  212.  
  213. function Crater(Torso,Radius)
  214.         spawn(function()
  215.         local Ray = Ray.new(char.Torso.Position,Vector3.new(0,-1,0)*10)
  216.         local Ignore = {}
  217.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  218.                 if v.Character ~= nil then
  219.                         Ignore[#Ignore+1] = v.Character
  220.                 end
  221.         end
  222.         local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  223.         if Hit == nil then return end
  224.         local Parts = {}
  225.         for i = 1,360,10 do
  226.                 local P = Instance.new("Part",char.Torso.Parent)
  227.                 P.Anchored = true
  228.                 P.FormFactor = "Custom"
  229.                 P.BrickColor = Hit.BrickColor
  230.                 P.Material = Hit.Material
  231.                 P.TopSurface = "Smooth"
  232.                 P.BottomSurface = "Smooth"
  233.                 P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  234.                 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)))
  235.                 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}
  236.                 if math.random(0,5) == 0 then -- rubble
  237.                         local P = Instance.new("Part",char.Torso.Parent)
  238.                         P.Anchored = true
  239. P.CanCollide = false
  240.                         P.FormFactor = "Custom"
  241.                         P.BrickColor = Hit.BrickColor
  242.                         P.Material = Hit.Material
  243.                         P.TopSurface = "Smooth"
  244.                         P.BottomSurface = "Smooth"
  245.                         P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  246.                         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)))
  247.                       P.CanCollide = true
  248.   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}
  249.                 end
  250.         end
  251.         for i = 0,1,0.05 do
  252.                 for i2,v in pairs(Parts) do
  253.                         v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  254.                 end
  255.                 wait(0.02)
  256.         end
  257.         for i,v in pairs(Parts) do
  258.                 if v[1].Size.X > 2.1 then
  259.                         v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  260.                 end
  261.                 v[1].Anchored = false
  262.         end
  263.         for i = 0,1,0.05 do
  264.                 for i2,v in pairs(Parts) do
  265.                         v[1].Transparency = i
  266.                         if i == 1 then
  267.                                 v[1]:Destroy()
  268.                         elseif i >= 0.25 then
  269.                                 v[1].CanCollide = false
  270.                         end
  271.                 end
  272.                 wait(0.02)
  273.         end
  274.         Parts = nil
  275.         end)
  276. end
  277.  
  278. Player = game.Players.LocalPlayer
  279. Object = Player.Character.HumanoidRootPart
  280. Arm1 = Player.Character["Right Arm"]
  281. PreviousA1 = Arm1.CFrame.p
  282. Arm2 = Player.Character["Left Arm"]
  283. PreviousA2 = Arm2.CFrame.p
  284.  
  285. Leg1 = Player.Character["Torso"]
  286. PreviousL1 = Leg1.CFrame.p
  287. Leg2 = Player.Character["Torso"]
  288. PreviousL2 = Leg2.CFrame.p
  289.  
  290.  
  291. Run = game["Run Service"]
  292.  
  293.  
  294.  
  295. Debounce = false
  296.  
  297. LOADED = 1
  298.  
  299.  
  300. plr = game.Players.LocalPlayer
  301. rootpart = plr.Character.HumanoidRootPart
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314. PreviousP = Object.CFrame.p
  315. Running = false
  316. Phase = false
  317. PhaseActive = false
  318. Morph = false
  319. MorphActive = false
  320. Tornado = false
  321. TornadoRadius = 50
  322. TornadoActive = false
  323. Portal = false
  324. PortalEnd = false
  325. MaxZ = 15
  326. MinZ = -15
  327. LightMaxX = 3
  328. LightMinX = 1
  329. LightMaxX2 = -1
  330. LightMinX2 = -3
  331. LightMaxY = 3
  332. LightMinY = -1
  333. Rotation = 0
  334. Length = 10
  335. Color = BrickColor.Blue()
  336. PColor = Color3.new(0,0,255)
  337. PrevPoint1 = nil
  338. PrevPoint2 = nil
  339. PrevPoint3 = nil
  340. PrevPoint4 = nil
  341. PrevPoint5 = nil
  342. PrevPoint6 = nil
  343. PrevPoint7 = nil
  344. PrevPoint8 = nil
  345. PrevPoint9 = nil
  346. PrevPoint10 = nil
  347. PrevPoint11 = nil
  348. PrevPoint12 = nil
  349. angle = 0
  350. Mouse = Player:GetMouse()
  351.  
  352. Nil = function()
  353.     PrevPoint1 = "Empty"
  354.     PrevPoint2 = "Empty"
  355.     PrevPoint3 = "Empty"
  356.     PrevPoint4 = "Empty"
  357.     PrevPoint5 = "Empty"
  358.     PrevPoint6 = "Empty"
  359.     PrevPoint7 = "Empty"
  360.     PrevPoint8 = "Empty"
  361.     PrevPoint9 = "Empty"
  362.     PrevPoint10 = "Empty"
  363.     PrevPoint11 = "Empty"
  364.     PrevPoint12 = "Empty"
  365. end
  366.  
  367.  local Lightning = (function()
  368.         if Portal == false then
  369.     makeglow()
  370.     coroutine.resume(coroutine.create(function()
  371.       fglow(lleg.Glow, 19)
  372.       fglow(rleg.Glow, 19)
  373.       fglow(rarm.Glow, 19)
  374.       fglow(larm.Glow, 19)
  375.     fglow(char.Head.Glow, 19)
  376.       fglow(tors.Glow, 19)
  377.         end))
  378.      local s = Instance.new("Sound",game.Soundscape)
  379.         s.SoundId = "rbxassetid://1071361821"
  380.         s.Volume = 0.25
  381.        s.Pitch = 0.5
  382. s.Looped = true
  383.         s:Play()
  384.  local s2 = Instance.new("Sound",game.Soundscape)
  385.         s2.SoundId = "rbxassetid://610327604"
  386.         s2.Volume = 0.35
  387.        s2.Pitch = 3
  388.         s2:Play()
  389.     while cowl == true do
  390.         wait()
  391.         hum.WalkSpeed = 50
  392.         hum.JumpPower = 95
  393.        
  394.         angle = angle + 0.6
  395.         local Model = Instance.new("Model",workspace)
  396.         Model.Name = "Lightning"
  397.         local Point1 = Instance.new("Part",Model)
  398.         Point1.Transparency = 1
  399.         Point1.Size = Vector3.new(0.2,0.2,0.2)
  400.         Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
  401.         Point1.Anchored = true
  402.         Point1.CanCollide = false
  403.         Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  404.  
  405.         local Point2 = Instance.new("Part",Model)
  406.         Point2.Transparency = 1
  407.         Point2.Size = Vector3.new(0.2,0.2,0.2)
  408.         Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
  409.         Point2.Anchored = true
  410.         Point2.CanCollide = false
  411.         Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  412.  
  413.         local Point3 = Instance.new("Part",Model)
  414.         Point3.Transparency = 1
  415.         Point3.Size = Vector3.new(0.2,0.2,0.2)
  416.         Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
  417.         Point3.Anchored = true
  418.         Point3.CanCollide = false
  419.         Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  420.  
  421.         local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  422.         local Light = Instance.new("Part",Model)
  423.         local PointLight = Instance.new("PointLight",Light)
  424.         PointLight.Range = 5
  425.         PointLight.Color = PColor
  426.         Light.Transparency = 0
  427.         Light.BrickColor = Color
  428.         Light.Material = "Neon"
  429.         Light.Size = Vector3.new(0.0001,0.0001,distance)
  430.         Light.Anchored = true
  431.         Light.CanCollide = false
  432.         Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  433.  
  434.  
  435.         local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  436.         local Light = Instance.new("Part",Model)
  437.         local PointLight = Instance.new("PointLight",Light)
  438.         PointLight.Range = 5
  439.         PointLight.Color = PColor
  440.         Light.Transparency = 0
  441.         Light.BrickColor = Color
  442.         Light.Material = "Neon"
  443.         Light.Size = Vector3.new(0.0001,0.0001,distance2)
  444.         Light.Anchored = true
  445.         Light.CanCollide = false
  446.         Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  447.  
  448.  
  449.         local Point1 = Instance.new("Part",Model)
  450.         Point1.Transparency = 1
  451.         Point1.Size = Vector3.new(0.2,0.2,0.2)
  452.         Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
  453.         Point1.Anchored = true
  454.         Point1.CanCollide = false
  455.         Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  456.  
  457.         local Point2 = Instance.new("Part",Model)
  458.         Point2.Transparency = 1
  459.         Point2.Size = Vector3.new(0.2,0.2,0.2)
  460.         Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
  461.         Point2.Anchored = true
  462.         Point2.CanCollide = false
  463.         Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  464.  
  465.         local Point3 = Instance.new("Part",Model)
  466.         Point3.Transparency = 1
  467.         Point3.Size = Vector3.new(0.2,0.2,0.2)
  468.         Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
  469.         Point3.Anchored = true
  470.         Point3.CanCollide = false
  471.         Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  472.  
  473.         local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  474.         local Light = Instance.new("Part",Model)
  475.         local PointLight = Instance.new("PointLight",Light)
  476.         PointLight.Range = 5
  477.         PointLight.Color = PColor
  478.         Light.Transparency = 0
  479.         Light.BrickColor = Color
  480.         Light.Material = "Neon"
  481.         Light.Size = Vector3.new(0.0001,0.0001,distance)
  482.         Light.Anchored = true
  483.         Light.CanCollide = false
  484.         Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  485.  
  486.  
  487.         local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  488.         local Light = Instance.new("Part",Model)
  489.         local PointLight = Instance.new("PointLight",Light)
  490.         PointLight.Range = 5
  491.         PointLight.Color = PColor
  492.         Light.Transparency = 0
  493.         Light.BrickColor = Color
  494.         Light.Material = "Neon"
  495.         Light.Size = Vector3.new(0.0001,0.0001,distance2)
  496.         Light.Anchored = true
  497.         Light.CanCollide = false
  498.         Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  499.  
  500.        
  501.         local Point1 = Instance.new("Part",Model)
  502.         Point1.Transparency = 1
  503.         Point1.Size = Vector3.new(0.2,0.2,0.2)
  504.         Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  505.         Point1.Anchored = true
  506.         Point1.CanCollide = false
  507.         Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  508.  
  509.         local Point2 = Instance.new("Part",Model)
  510.         Point2.Transparency = 1
  511.         Point2.Size = Vector3.new(0.2,0.2,0.2)
  512.         Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  513.         Point2.Anchored = true
  514.         Point2.CanCollide = false
  515.         Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  516.  
  517.         local Point3 = Instance.new("Part",Model)
  518.         Point3.Transparency = 1
  519.         Point3.Size = Vector3.new(0.2,0.2,0.2)
  520.         Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  521.         Point3.Anchored = true
  522.         Point3.CanCollide = false
  523.         Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  524.  
  525.         local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  526.         local Light = Instance.new("Part",Model)
  527.         local PointLight = Instance.new("PointLight",Light)
  528.         PointLight.Range = 5
  529.         PointLight.Color = PColor
  530.         Light.Transparency = 0
  531.         Light.BrickColor = Color
  532.         Light.Material = "Neon"
  533.         Light.Size = Vector3.new(0.0001,0.0001,distance)
  534.         Light.Anchored = true
  535.         Light.CanCollide = false
  536.         Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  537.  
  538.  
  539.         local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  540.         local Light = Instance.new("Part",Model)
  541.         local PointLight = Instance.new("PointLight",Light)
  542.         PointLight.Range = 5
  543.         PointLight.Color = PColor
  544.         Light.Transparency = 0
  545.         Light.BrickColor = Color
  546.         Light.Material = "Neon"
  547.         Light.Size = Vector3.new(0.0001,0.0001,distance2)
  548.         Light.Anchored = true
  549.         Light.CanCollide = false
  550.         Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  551.  
  552.  
  553.         local Point1 = Instance.new("Part",Model)
  554.         Point1.Transparency = 1
  555.         Point1.Size = Vector3.new(0.2,0.2,0.2)
  556.         Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  557.         Point1.Anchored = true
  558.         Point1.CanCollide = false
  559.         Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  560.  
  561.         local Point2 = Instance.new("Part",Model)
  562.         Point2.Transparency = 1
  563.         Point2.Size = Vector3.new(0.2,0.2,0.2)
  564.         Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  565.         Point2.Anchored = true
  566.         Point2.CanCollide = false
  567.         Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  568.  
  569.         local Point3 = Instance.new("Part",Model)
  570.         Point3.Transparency = 1
  571.         Point3.Size = Vector3.new(0.2,0.2,0.2)
  572.         Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  573.         Point3.Anchored = true
  574.         Point3.CanCollide = false
  575.         Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  576.  
  577.         local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  578.         local Light = Instance.new("Part",Model)
  579.         local PointLight = Instance.new("PointLight",Light)
  580.         PointLight.Range = 5
  581.         PointLight.Color = PColor
  582.         Light.Transparency = 0
  583.         Light.BrickColor = Color
  584.         Light.Material = "Neon"
  585.         Light.Size = Vector3.new(0.0001,0.0001,distance)
  586.         Light.Anchored = true
  587.         Light.CanCollide = false
  588.         Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  589.  
  590.  
  591.         local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  592.         local Light = Instance.new("Part",Model)
  593.         local PointLight = Instance.new("PointLight",Light)
  594.         PointLight.Range = 5
  595.         PointLight.Color = PColor
  596.         Light.Transparency = 0
  597.         Light.BrickColor = Color
  598.         Light.Material = "Neon"
  599.         Light.Size = Vector3.new(0.0001,0.0001,distance2)
  600.         Light.Anchored = true
  601.         Light.CanCollide = false
  602.         Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  603.  
  604.        
  605.     local Children = Model:GetChildren()
  606.     wait(0.1)
  607.     for i = 1,#Children do
  608.         if Children[i]:IsA("Part") then
  609.         Children[i].Transparency = 1
  610.         end
  611.         game.Debris:AddItem(Children[i],0)
  612.     end
  613.      end
  614.     s:remove()
  615. s2:remove()
  616. hum.WalkSpeed = 16
  617.         hum.JumpPower = 50
  618.     for i = 0.2,1,0.03 do
  619.         wait()
  620.         lleg.Glow.Transparency = lleg.Glow.Transparency + 0.005
  621.         rleg.Glow.Transparency = rleg.Glow.Transparency + 0.005
  622.         larm.Glow.Transparency = larm.Glow.Transparency + 0.005
  623.         rarm.Glow.Transparency = rarm.Glow.Transparency + 0.005
  624.         tors.Glow.Transparency = tors.Glow.Transparency + 0.005
  625.         char.Head.Glow.Transparency = char.Head.Glow.Transparency + 0.05
  626.     end
  627.     lleg.Glow:remove()
  628.     larm.Glow:remove()
  629.     rarm.Glow:remove()
  630.     rleg.Glow:remove()
  631.     tors.Glow:remove()
  632.     char.Head.Glow:remove()
  633.         end
  634.     end)
  635.  
  636.  
  637.  
  638. function FindNearestTorso(Position,Distance,SinglePlayer)
  639.     if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  640.         local List = {}
  641.         for i,v in pairs(workspace:GetChildren())do
  642.             if v:IsA("Model")then
  643.                 if v:findFirstChild("Torso")then
  644.                     if v ~= char then
  645.                         if(v.char.Torso.Position -Position).magnitude <= Distance then
  646.                             table.insert(List,v)
  647.                         end
  648.                     end
  649.                 end
  650.             end
  651.         end
  652.     return List
  653. end
  654.  
  655.  
  656.  
  657.  
  658. function hito(partoz, magn, dmg, debtim)
  659.     for _, guy in pairs(workspace:GetChildren()) do
  660.       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
  661.         do
  662.           local humz = guy:FindFirstChild("Humanoid")
  663.           local hed = guy:FindFirstChild("Head")
  664.           humz:TakeDamage(dmg)
  665.           local db = Instance.new("StringValue")
  666.           db.Name = "alabo"
  667.           db.Parent = hed
  668.           delay(debtim, function()
  669.             db:Destroy()
  670.           end)
  671.         end
  672.       end
  673.     end
  674.   end
  675.  
  676.  
  677.  RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  678.   RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  679.   LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  680.   LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  681.   RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  682.   RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  683.   LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  684.   LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  685.   NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  686.   NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  687.   RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  688.   RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  689.   RS = tors:FindFirstChild("Right Shoulder")
  690.   LS = tors:FindFirstChild("Left Shoulder")
  691.   RH = tors:FindFirstChild("Right Hip")
  692.   LH = tors:FindFirstChild("Left Hip")
  693.   RJ = hrp:FindFirstChild("RootJoint")
  694.   N = tors:FindFirstChild("Neck")
  695.   cf = CFrame.new
  696.   ang = CFrame.Angles
  697.   rd = math.rad
  698.   rd2 = math.random
  699. LOADED = 1
  700.  
  701.  Heartbeat = Instance.new("BindableEvent")
  702.   Heartbeat.Name = "Heartbeat"
  703.   Heartbeat.Parent = script
  704.   frame = 0.03333333333333333
  705.   tf = 0
  706.   game:GetService("RunService").Heartbeat:connect(function(s, p)
  707.     tf = tf + s
  708.     if tf >= frame then
  709.       for i = 1, math.floor(tf / frame) do
  710.         Heartbeat:Fire()
  711.       end
  712.       tf = tf - frame * math.floor(tf / frame)
  713.     end
  714.   end)
  715.   function swait(num)
  716.     if num == 0 or num == nil then
  717.       Heartbeat.Event:wait()
  718.     else
  719.       for i = 1, num do
  720.         Heartbeat.Event:wait()
  721.       end
  722.     end
  723.   end
  724.  
  725.  function makeweld(parent, p0, p1, c0, c1)
  726.     local wel = Instance.new("Weld")
  727.     wel.Part0 = p0
  728.     wel.Part1 = p1
  729.     wel.C0 = c0
  730.     if c1 ~= nil then
  731.       wel.C1 = c1
  732.     end
  733.     wel.Parent = parent
  734.     return wel
  735.   end
  736.  
  737.  
  738.  
  739. function smash()
  740.     hum.WalkSpeed = 2
  741.     hum.JumpPower = 1
  742.     local S = Instance.new("Sound",game.Soundscape)
  743.     S.SoundId = "rbxassetid://938838122"
  744.     S.Volume = 1.5
  745.     local S4 = Instance.new("Sound",game.Soundscape)
  746.     S4.SoundId = "rbxassetid://991726501"
  747.     S4.Volume = 1.5
  748.     local S3 = Instance.new("Sound",game.Soundscape)
  749.     S3.SoundId = "rbxassetid://610327604"
  750.     S3.Volume = 0.3
  751.     S3.PlaybackSpeed = 0.85
  752.     local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
  753.     pe.Texture = "rbxassetid://272050333"
  754.     pe.Size = NumberSequence.new(1)
  755.     pe.LightEmission = 1
  756.     pe.LightInfluence = 1
  757.     pe.Rate = 1000000.000
  758.     pe.Rotation = NumberRange.new(0, 360)
  759.     pe.Speed = NumberRange.new(10)
  760.     pe.Color = ColorSequence.new(Color3.new(0,170,0))
  761.     pe.Lifetime = NumberRange.new(0.06)
  762.     pe.LockedToPart = true
  763.     local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
  764.     pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  765.     pe2.Size = NumberSequence.new(3)
  766.     pe2.LightEmission = 1
  767.     pe2.LightInfluence = 1
  768.     pe2.Rate = 1000
  769.     pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  770.     pe2.Rotation = NumberRange.new(0, 360)
  771.     pe2.RotSpeed = NumberRange.new(2)
  772.     pe2.Speed = NumberRange.new(15)
  773.     pe2.SpreadAngle = Vector2.new(360,306)
  774.     pe2.Lifetime = NumberRange.new(0.06)
  775.     pe2.ZOffset = 1
  776.     pe2.LockedToPart = true
  777.     pe2.Name = "ParticleEmitter2"
  778.  
  779.     S:Play()
  780.      for _ = 1, 45 do
  781.       swait()
  782.       lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2)
  783.       lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2)
  784.       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)
  785.       lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  786.       lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2)
  787.       lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2)
  788.       lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2)
  789.       lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  790.       lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
  791.       lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  792.         end
  793.     for _ = 1, 30 do
  794.       swait()
  795.       lerpz(RJ, "C0", RJC0 * cf(0, 1.2, -0.2) * ang(rd(5), rd(6), rd(-109)), 0.2)
  796.       lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(-6), rd(96)), 0.2)
  797.       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)
  798.       lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-46)), 0.2)
  799.       lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.2)
  800.       lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.2)
  801.       lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
  802.       lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.2)
  803.  
  804.     end
  805.     for l = 1, 3 do
  806.       swait()
  807.       lerpz(RJ, "C0", RJC0 * cf(0.4, -1.6, -0.2) * ang(rd(5), rd(6), rd(60)), 0.3 + l / 4)
  808.       lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-4), rd(-35)), 0.3 + l / 4)
  809.       lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(-58), rd(95)), 0.3 + l / 4)
  810.       lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.3 + l / 4)
  811.       lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-66)), 0.3 + l / 4)
  812.       lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.3 + l / 4)
  813.       lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.3 + l / 4)
  814.       lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.3 + l / 4)
  815.       lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.3 + l / 4)
  816.     end
  817. local woosh = Instance.new("Part",workspace)
  818. woosh.Size = Vector3.new(12, 12, 20)
  819. woosh.BrickColor = BrickColor.new("Institutional white")
  820. local me = Instance.new("FileMesh",woosh)
  821. me.MeshId = "rbxassetid://437347603"
  822. me.Scale = Vector3.new(1.3, 1.3, 1)
  823. woosh.CanCollide = false
  824. woosh.Anchored = false
  825. woosh.CFrame = woosh.CFrame:lerp(woosh.CFrame * CFrame.new(0, 0, -22), 0.4)
  826.         woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  827.         woosh.CFrame = char:FindFirstChild("Right Arm").CFrame
  828.         woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  829.         local woosh2 = Instance.new("Part",workspace)
  830. woosh2.Size = Vector3.new(12, 12, 20)
  831. woosh2.BrickColor = BrickColor.new("Institutional white")
  832. local me2 = Instance.new("FileMesh",woosh2)
  833. me2.MeshId = "rbxassetid://3270017"
  834. me2.Scale = Vector3.new(1.3, 1.3, 0.4)
  835. woosh2.CanCollide = false
  836. woosh2.Anchored = true
  837. woosh2.CFrame = woosh2.CFrame:lerp(woosh2.CFrame * CFrame.new(0, 0, -22), 0.4)
  838.         woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  839.         woosh2.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-3,0)
  840.         woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  841.                 local woosh3 = Instance.new("Part",workspace)
  842. woosh3.Size = Vector3.new(12, 12, 20)
  843. woosh3.BrickColor = BrickColor.new("Institutional white")
  844. local me3 = Instance.new("FileMesh",woosh3)
  845. me3.MeshId = "rbxassetid://3270017"
  846. me3.Scale = Vector3.new(1, 1, 0.4)
  847. woosh3.CanCollide = false
  848. woosh3.Anchored = true
  849. woosh3.CFrame = woosh3.CFrame:lerp(woosh3.CFrame * CFrame.new(0, 0, -22), 0.4)
  850.         woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  851.         woosh3.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  852.         woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  853.         local woosh1 = Instance.new("Part",workspace)
  854. woosh1.Size = Vector3.new(12, 12, 20)
  855. woosh1.BrickColor = BrickColor.new("Institutional white")
  856. local me1 = Instance.new("FileMesh",woosh1)
  857. me1.MeshId = "rbxassetid://489415447"
  858. me1.Scale = Vector3.new(1, 1, 0.4)
  859. woosh1.CanCollide = false
  860. woosh1.Anchored = true
  861.         woosh1.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
  862.         local woosh4 = Instance.new("Part",workspace)
  863. woosh4.Size = Vector3.new(12, 12, 20)
  864. woosh4.BrickColor = BrickColor.new("Institutional white")
  865. local me4 = Instance.new("FileMesh",woosh4)
  866. me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
  867. me4.Scale = Vector3.new(1.3,0.1,1)
  868. woosh4.CanCollide = false
  869. woosh4.Anchored = true
  870.         woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  871.         local woosh4 = Instance.new("Part",workspace)
  872. woosh4.Size = Vector3.new(12, 12, 20)
  873. woosh4.BrickColor = BrickColor.new("Institutional white")
  874. local me4 = Instance.new("FileMesh",woosh4)
  875. me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
  876. me4.Scale = Vector3.new(2,3.3,2)
  877. woosh4.CanCollide = false
  878. woosh4.Anchored = true
  879.         woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  880.          local v = Instance.new("BodyVelocity", woosh)
  881.   v.velocity = woosh.CFrame.lookVector *100
  882.  v.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  883. S3:Play()
  884. pe:remove()
  885. pe2:remove()
  886. Crater()
  887.     for i = 0.14,1,0.015 do
  888.     wait()
  889.     hito(woosh, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  890.     woosh.CFrame = woosh.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.1)
  891.         woosh1.CFrame = woosh1.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  892. woosh.Transparency = woosh.Transparency + 0.04
  893. woosh2.CFrame = woosh2.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  894. woosh2.Transparency = woosh2.Transparency + 0.03
  895. me2.Scale = me2.Scale + Vector3.new(2,2,1.8)
  896. woosh3.CFrame = woosh3.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  897. woosh3.Transparency = woosh3.Transparency + 0.035
  898. me3.Scale = me3.Scale + Vector3.new(1.3,1.3,1)
  899. me1.Scale = me1.Scale + Vector3.new(2,1,2)
  900. woosh1.Transparency = woosh1.Transparency + 0.04
  901. woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
  902. woosh4.Transparency = woosh4.Transparency + 0.02
  903. me4.Scale = me4.Scale + Vector3.new(2,4,2)
  904. end
  905. woosh3:remove()
  906. woosh2:remove()
  907. woosh1:remove()
  908. woosh4:remove()
  909. woosh:remove()
  910.  
  911.     for _ = 1, 24 do
  912.       swait()
  913.       lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  914.       lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  915.       lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  916.       lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  917.       lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  918.       lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  919.       lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  920.       lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  921.       lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  922.     end
  923. S:remove()
  924. hum.WalkSpeed = 16
  925.     hum.JumpPower = 50
  926.     wait(2.3)
  927.     S4:remove()
  928.     S3:remove()
  929. end
  930.  
  931. function ring()
  932.     local S4 = Instance.new("Sound",game.Soundscape)
  933.     S4.SoundId = "rbxassetid://991726501"
  934.     S4.Volume = 1.5
  935.         local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  936.     pe.Texture = "rbxassetid://272050333"
  937.     pe.Size = NumberSequence.new(1)
  938.     pe.LightEmission = 1
  939.     pe.LightInfluence = 1
  940.     pe.Rate = 1000000.000
  941.     pe.Rotation = NumberRange.new(0, 360)
  942.     pe.Speed = NumberRange.new(10)
  943.     pe.Color = ColorSequence.new(Color3.new(0,170,0))
  944.     pe.Lifetime = NumberRange.new(0.06)
  945.     pe.LockedToPart = true
  946.     local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  947.     pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  948.     pe2.Size = NumberSequence.new(3)
  949.     pe2.LightEmission = 1
  950.     pe2.LightInfluence = 1
  951.     pe2.Rate = 1000
  952.     pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  953.     pe2.Rotation = NumberRange.new(0, 360)
  954.     pe2.RotSpeed = NumberRange.new(2)
  955.     pe2.Speed = NumberRange.new(15)
  956.     pe2.SpreadAngle = Vector2.new(360,306)
  957.     pe2.Lifetime = NumberRange.new(0.06)
  958.     pe2.ZOffset = 1
  959.     pe2.LockedToPart = true
  960.     pe2.Name = "ParticleEmitter2"
  961.     local me = Instance.new("Part",workspace)
  962.       local mesh = Instance.new("SpecialMesh")
  963.       mesh.MeshType = "FileMesh"
  964.       mesh.MeshId = "rbxassetid://3270017"
  965.       mesh.Scale = Vector3.new(12, 12, 0.05)
  966.       mesh.Parent = me
  967. me.Anchored = true
  968. me.CanCollide = false
  969. me.BrickColor = BrickColor.new("Institutional white")
  970. me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
  971.         me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  972.         me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
  973.         me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  974.         me.Anchored = false
  975.         local me2 = Instance.new("Part",workspace)
  976.       local mesh2 = Instance.new("SpecialMesh")
  977.       mesh2.MeshType = "FileMesh"
  978.       mesh2.MeshId = "rbxassetid://3270017"
  979.       mesh2.Scale = Vector3.new(12, 12, 0.05)
  980.       mesh2.Parent = me2
  981. me2.Anchored = true
  982. me2.CanCollide = false
  983. me2.BrickColor = BrickColor.new("Institutional white")
  984. me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
  985.         me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  986.         me2.CFrame = hrp.CFrame
  987.         me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  988.         local bfor = Instance.new("BodyPosition")
  989.     bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  990.     bfor.P = 2500
  991.     bfor.Position = me.Position + Vector3.new(0, 50, 0)
  992.     bfor.Parent = me
  993. me.Velocity = me.CFrame.lookVector *65
  994.     local sound2 = Instance.new("Sound",game.Soundscape)
  995.       sound2.SoundId = "rbxassetid://157878578"
  996.       sound2.MaxDistance = 300
  997.       sound2.EmitterSize = 20
  998.       sound2.Volume = 2
  999.       sound2.Pitch = 0.9
  1000.       local sound3 = Instance.new("Sound",game.Soundscape)
  1001.       sound3.SoundId = "rbxassetid://138250406"
  1002.       sound2.MaxDistance = 400
  1003.       sound2.EmitterSize = 30
  1004.       sound2.Volume = 1.5
  1005.       sound2.Pitch = 0.6
  1006.       sound2:Play()
  1007. sound3:Play()
  1008. local bfor = Instance.new("BodyPosition")
  1009.     bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1010.     bfor.P = 2500
  1011.     bfor.Position = plr.Character.HumanoidRootPart.Position + Vector3.new(0, 500, 0)
  1012.     bfor.Parent = plr.Character.HumanoidRootPart
  1013. plr.Character.HumanoidRootPart.Velocity=plr.Character.HumanoidRootPart.CFrame.lookVector *200
  1014. S4:Play()
  1015. local part = Instance.new("Part",workspace)
  1016. part.Transparency = 1
  1017. part.CanCollide = false
  1018. part.Anchored = true
  1019. part.CFrame = char:FindFirstChild("Right Leg").CFrame
  1020. local smok = Instance.new("Smoke",part)
  1021. smok.Opacity = 1
  1022. smok.Size = 20
  1023. Crater()
  1024.       for e = 1, 30 do
  1025.         wait()
  1026.         mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
  1027.          me.Transparency =  me.Transparency + 0.04
  1028.          me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
  1029.          me.CFrame =  me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  1030.  mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
  1031.          me2.Transparency =  me2.Transparency + 0.04
  1032.          me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
  1033.          me2.CFrame =  me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  1034. smok.Size = smok.Size + 10
  1035. wait()
  1036.       end
  1037. S4:remove()
  1038. pe:remove()
  1039. pe2:remove()
  1040. bfor:remove()
  1041. me2:remove()
  1042.         me:remove()
  1043.         for i = 0,1,0.01 do
  1044.             wait()
  1045.             smok.Opacity = smok.Opacity - 0.01
  1046.         end
  1047.         part:remove()
  1048.         sound2:remove()
  1049. sound3:remove()
  1050. end
  1051.  
  1052. function ring2()
  1053.     hum.WalkSpeed = 0
  1054.     hum.JumpPower = 0
  1055.         local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  1056.     pe.Texture = "rbxassetid://272050333"
  1057.     pe.Size = NumberSequence.new(1)
  1058.     pe.LightEmission = 1
  1059.     pe.LightInfluence = 1
  1060.     pe.Rate = 1000000.000
  1061.     pe.Rotation = NumberRange.new(0, 360)
  1062.     pe.Speed = NumberRange.new(10)
  1063.     pe.Color = ColorSequence.new(Color3.new(0,170,0))
  1064.     pe.Lifetime = NumberRange.new(0.06)
  1065.     pe.LockedToPart = true
  1066.     local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
  1067.     pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
  1068.     pe2.Size = NumberSequence.new(3)
  1069.     pe2.LightEmission = 1
  1070.     pe2.LightInfluence = 1
  1071.     pe2.Rate = 1000
  1072.     pe2.Color = ColorSequence.new(Color3.new(0,170,0))
  1073.     pe2.Rotation = NumberRange.new(0, 360)
  1074.     pe2.RotSpeed = NumberRange.new(2)
  1075.     pe2.Speed = NumberRange.new(15)
  1076.     pe2.SpreadAngle = Vector2.new(360,306)
  1077.     pe2.Lifetime = NumberRange.new(0.06)
  1078.     pe2.ZOffset = 1
  1079.     pe2.LockedToPart = true
  1080.     pe2.Name = "ParticleEmitter2"
  1081.     for l = 1, 30 do
  1082.       swait()
  1083.       lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40)
  1084.       lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40)
  1085.       lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40)
  1086.       lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  1087.       lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40)
  1088.       lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  1089.       lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40)
  1090.       lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  1091.       lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40)
  1092.       lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
  1093.         end
  1094.     local S4 = Instance.new("Sound",game.Soundscape)
  1095.     S4.SoundId = "rbxassetid://991726501"
  1096.     S4.Volume = 1.5
  1097.     wait(0.3)
  1098.     local me = Instance.new("Part",workspace)
  1099.       local mesh = Instance.new("SpecialMesh")
  1100.       mesh.MeshType = "FileMesh"
  1101.       mesh.MeshId = "rbxassetid://3270017"
  1102.       mesh.Scale = Vector3.new(12, 12, 0.05)
  1103.       mesh.Parent = me
  1104. me.Anchored = true
  1105. me.CanCollide = false
  1106. me.BrickColor = BrickColor.new("Institutional white")
  1107. me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
  1108.         me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  1109.         me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
  1110.         me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1111.         me.Anchored = false
  1112.         local me2 = Instance.new("Part",workspace)
  1113.       local mesh2 = Instance.new("SpecialMesh")
  1114.       mesh2.MeshType = "FileMesh"
  1115.       mesh2.MeshId = "rbxassetid://3270017"
  1116.       mesh2.Scale = Vector3.new(12, 12, 0.05)
  1117.       mesh2.Parent = me2
  1118. me2.Anchored = true
  1119. me2.CanCollide = false
  1120. me2.BrickColor = BrickColor.new("Institutional white")
  1121. me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
  1122.         me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  1123.         me2.CFrame = hrp.CFrame
  1124.         me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1125.         local bfor = Instance.new("BodyPosition")
  1126.     bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1127.     bfor.P = 2500
  1128.     bfor.Position = me.Position + Vector3.new(0, 50, 0)
  1129.     bfor.Parent = me
  1130. me.Velocity = me.CFrame.lookVector *65
  1131.     local sound2 = Instance.new("Sound",game.Soundscape)
  1132.       sound2.SoundId = "rbxassetid://157878578"
  1133.       sound2.MaxDistance = 300
  1134.       sound2.EmitterSize = 20
  1135.       sound2.Volume = 2
  1136.       sound2.Pitch = 0.9
  1137.       local sound3 = Instance.new("Sound",game.Soundscape)
  1138.       sound3.SoundId = "rbxassetid://138250406"
  1139.       sound2.MaxDistance = 400
  1140.       sound2.EmitterSize = 30
  1141.       sound2.Volume = 1.5
  1142.       sound2.Pitch = 0.6
  1143.       sound2:Play()
  1144. sound3:Play()
  1145.  
  1146. S4:Play()
  1147. local part = Instance.new("Part",workspace)
  1148. part.Transparency = 1
  1149. part.CanCollide = false
  1150. part.Anchored = true
  1151. part.CFrame = char:FindFirstChild("Right Leg").CFrame
  1152. local smok = Instance.new("Smoke",part)
  1153. smok.Opacity = 1
  1154. smok.Size = 20
  1155. local woosh4 = Instance.new("Part",workspace)
  1156. woosh4.Size = Vector3.new(12, 12, 20)
  1157. woosh4.BrickColor = BrickColor.new("Institutional white")
  1158. local me4 = Instance.new("FileMesh",woosh4)
  1159. me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
  1160. me4.Scale = Vector3.new(1.3,0.1,1)
  1161. woosh4.CanCollide = false
  1162. woosh4.Anchored = true
  1163.         woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
  1164.         local woosh4 = Instance.new("Part",workspace)
  1165. woosh4.Size = Vector3.new(12, 12, 20)
  1166. woosh4.BrickColor = BrickColor.new("Institutional white")
  1167. local me4 = Instance.new("FileMesh",woosh4)
  1168. me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1169. me4.Scale = Vector3.new(2,3.3,2)
  1170. woosh4.CanCollide = false
  1171. woosh4.Anchored = true
  1172.         woosh4.CFrame = char:FindFirstChild("Right Leg").CFrame
  1173.         Crater()
  1174.       for e = 1, 30 do
  1175.         wait()
  1176. hito(woosh4, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  1177.         hito(me2, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  1178. hito(me, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
  1179. mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
  1180.          me.Transparency =  me.Transparency + 0.04
  1181.          me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
  1182.          me.CFrame =  me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  1183.  mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
  1184.          me2.Transparency =  me2.Transparency + 0.04
  1185.          me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
  1186.          me2.CFrame =  me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
  1187. smok.Size = smok.Size + 10
  1188. woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0)
  1189. woosh4.Transparency = woosh4.Transparency + 0.06
  1190. me4.Scale = me4.Scale + Vector3.new(2,4,2)
  1191. wait()
  1192.       end
  1193.  for _ = 1, 18 do
  1194.       swait()
  1195.       lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1196.       lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1197.       lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1198.       lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1199.       lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1200.       lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1201.       lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1202.       lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1203.       lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1204.       lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1205.     end
  1206. hum.WalkSpeed = 16
  1207.     hum.JumpPower = 50
  1208. woosh4:remove()
  1209. S4:remove()
  1210. pe:remove()
  1211. pe2:remove()
  1212. me2:remove()
  1213.         me:remove()
  1214.         for i = 0,1,0.01 do
  1215.             wait()
  1216.             smok.Opacity = smok.Opacity - 0.01
  1217.         end
  1218.         part:remove()
  1219.         sound2:remove()
  1220. sound3:remove()
  1221.  
  1222. end
  1223.  
  1224.  
  1225.  function lerpz(joint, prop, cfrmz, alp)
  1226.     joint[prop] = joint[prop]:lerp(cfrmz, alp)
  1227.   end
  1228.  
  1229. m.KeyDown:connect(function(key)
  1230.     key = key:lower()
  1231.     if key == "e" and LOADED == 1 then
  1232.         LOADED = LOADED -1
  1233.         smash()
  1234.         LOADED = LOADED +1
  1235.     end
  1236. end)
  1237.  
  1238. m.KeyDown:connect(function(key)
  1239.     key = key:lower()
  1240.     if key == "z" and LOADED == 1 then
  1241.         LOADED = LOADED -1
  1242.         ring()
  1243.         wait(1)
  1244.         LOADED = LOADED +1
  1245.     end
  1246. end)
  1247.  
  1248.  
  1249. m.KeyDown:connect(function(key)
  1250.     key = key:lower()
  1251.     if key == "r" and LOADED == 1 then
  1252.         LOADED = LOADED -1
  1253.         ring2()
  1254.         wait(1)
  1255.         LOADED = LOADED +1
  1256.     end
  1257. end)
  1258.  
  1259. m.KeyDown:connect(function(key)
  1260.     key = key:lower()
  1261.     if key == "b" and cowl == false and LOADED == 1 then
  1262.         cowl = true
  1263.         Lightning()
  1264.     end
  1265. end)
  1266.  
  1267. m.KeyDown:connect(function(key)
  1268.     key = key:lower()
  1269.     if key == "b" and cowl == false and LOADED == 1 then
  1270.         wait(20)
  1271.         cowl = false
  1272.     end
  1273. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement