SHARE
TWEET

Untitled

a guest Dec 14th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4.     print("FE Compatibility code by Mokiros")
  5.     script.Parent = Player.Character
  6.  
  7.     --RemoteEvent for communicating
  8.     local Event = Instance.new("RemoteEvent")
  9.     Event.Name = "UserInput_Event"
  10.  
  11.     --Fake event to make stuff like Mouse.KeyDown work
  12.     local function fakeEvent()
  13.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14.         t.connect = t.Connect
  15.         return t
  16.     end
  17.  
  18.     --Creating fake input objects with fake variables
  19.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23.     end}
  24.     --Merged 2 functions into one by checking amount of arguments
  25.     CAS.UnbindAction = CAS.BindAction
  26.  
  27.     --This function will trigger the events that have been :Connect()'ed
  28.     local function te(self,ev,...)
  29.         local t = m[ev]
  30.         if t and t._fakeEvent and t.Function then
  31.             t.Function(...)
  32.         end
  33.     end
  34.     m.TrigEvent = te
  35.     UIS.TrigEvent = te
  36.  
  37.     Event.OnServerEvent:Connect(function(plr,io)
  38.         if plr~=Player then return end
  39.         if io.isMouse then
  40.             m.Target = io.Target
  41.             m.Hit = io.Hit
  42.         else
  43.             local b = io.UserInputState == Enum.UserInputState.Begin
  44.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46.             end
  47.             for _,t in pairs(CAS.Actions) do
  48.                 for _,k in pairs(t.Keys) do
  49.                     if k==io.KeyCode then
  50.                         t.Function(t.Name,io.UserInputState,io)
  51.                     end
  52.                 end
  53.             end
  54.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56.         end
  57.     end)
  58.     Event.Parent = NLS([==[
  59.     local Player = game:GetService("Players").LocalPlayer
  60.     local Event = script:WaitForChild("UserInput_Event")
  61.  
  62.     local UIS = game:GetService("UserInputService")
  63.     local input = function(io,a)
  64.         if a then return end
  65.         --Since InputObject is a client-side instance, we create and pass table instead
  66.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67.     end
  68.     UIS.InputBegan:Connect(input)
  69.     UIS.InputEnded:Connect(input)
  70.  
  71.     local Mouse = Player:GetMouse()
  72.     local h,t
  73.     --Give the server mouse data 30 times every second, but only if the values changed
  74.     --If player is not moving their mouse, client won't fire events
  75.     while wait(1/30) do
  76.         if h~=Mouse.Hit or t~=Mouse.Target then
  77.             h,t=Mouse.Hit,Mouse.Target
  78.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  79.         end
  80.     end]==],Player.Character)
  81.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. Player=owner
  84. Character=Player.Character
  85. PlayerGui=Player.PlayerGui
  86. Backpack=Player.Backpack
  87. Torso=Character.Torso
  88. Head=Character.Head
  89. Humanoid=Character.Humanoid
  90. LeftArm=Character["Left Arm"]
  91. LeftLeg=Character["Left Leg"]
  92. rarm=Character["Right Arm"]
  93. RightLeg=Character["Right Leg"]
  94. cam=game.Workspace.CurrentCamera
  95. LS=Torso["Left Shoulder"]
  96. LH=Torso["Left Hip"]
  97. RS=Torso["Right Shoulder"]
  98. RH=Torso["Right Hip"]
  99. Face = Head.face
  100. Neck=Torso.Neck
  101. it=Instance.new
  102. attacktype=1
  103. vt=Vector3.new
  104. cf=CFrame.new
  105. euler=CFrame.fromEulerAnglesXYZ
  106. angles=CFrame.Angles
  107. cloaked=false
  108. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  109. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  110. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  111. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  112. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  113. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  114. RootPart=Character.HumanoidRootPart
  115. RootJoint=RootPart.RootJoint
  116. RootCF=euler(-1.57,0,3.14)
  117. attack = false
  118. bounce=false
  119. cooldown=false
  120. deeznuts=false
  121. attackdebounce = false
  122. deb=false
  123. equipped=true
  124. hand=false
  125. MMouse=nil
  126. combo=0
  127. mana=0
  128. trispeed=.5
  129. attackmode='none'
  130. local idle=0
  131. local Anim="Idle"
  132. local Effects={}
  133. local gun=false
  134. local shoot=false
  135. player=nil
  136. mana=0
  137. cam = workspace.CurrentCamera
  138. ZTarget = nil
  139. RocketTarget = nil
  140. local m = Instance.new("Model",Character)
  141. m.Name = "WeaponModel"
  142.  
  143. local m2 = Instance.new("Model",Character)
  144. m2.Name = "MetalMan"
  145.  
  146. for i,v in pairs(Character.Head:children())do
  147.     if v:IsA('Decal')then v:Destroy()end
  148. end
  149.  
  150.  
  151. Reaper = Instance.new("Model",Character)
  152. Reaper.Name = "Reaper"
  153. rh = Instance.new("Part")
  154. rh.Name = "rh"
  155. rh.Parent = Reaper
  156. rh.Locked = true
  157. rh.CanCollide = false
  158. mesh = Instance.new("SpecialMesh")
  159. rh.formFactor =  "Symmetric"
  160. mesh.MeshType = "FileMesh"
  161. mesh.MeshId = "http://www.roblox.com/asset/?id=22149742"
  162. mesh.TextureId = "rbxassetid://188438213"
  163. mesh.Scale = Vector3.new(1,1,1)
  164. mesh.Parent = rh
  165. local weld = Instance.new("Weld")
  166. weld.Parent = rh
  167. weld.Part0 = rh
  168. weld.Part1 = Player.Character.Head
  169. weld.C0 = CFrame.new(0, 0, -0.010)*CFrame.Angles(0, 0, 0)
  170. --save shoulders
  171. RSH, LSH=nil, nil
  172. --welds
  173. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  174. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  175. LH=Torso["Left Hip"]
  176. RH=Torso["Right Hip"]
  177. TorsoColor=Torso.BrickColor
  178. function NoOutline(Part)
  179. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  180. end
  181. player=Player
  182. ch=Character
  183. RSH=ch.Torso["Right Shoulder"]
  184. LSH=ch.Torso["Left Shoulder"]
  185. --
  186. RSH.Parent=nil
  187. LSH.Parent=nil
  188. --
  189. RW.Name="Right Shoulder"
  190. RW.Part0=ch.Torso
  191. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  192. RW.C1=cf(0, 0.5, 0)
  193. RW.Part1=ch["Right Arm"]
  194. RW.Parent=ch.Torso
  195. --
  196. LW.Name="Left Shoulder"
  197. LW.Part0=ch.Torso
  198. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  199. LW.C1=cf(0, 0.5, 0)
  200. LW.Part1=ch["Left Arm"]
  201. LW.Parent=ch.Torso
  202.  
  203.     function swait(num)
  204.     if num==0 or num==nil then
  205.     game:service'RunService'.Heartbeat:wait(0)
  206.     else
  207.     for i=0,num do
  208.     game:service'RunService'.Heartbeat:wait(0)
  209.     end
  210.     end
  211.     end
  212.    
  213.     function nooutline(part)
  214.         part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  215.     end
  216.    
  217.     function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  218.         local fp=it("Part")
  219.         fp.formFactor=formfactor
  220.         fp.Parent=parent
  221.         fp.Reflectance=reflectance
  222.         fp.Transparency=transparency
  223.         fp.CanCollide=false
  224.         fp.Locked=true
  225.         fp.BrickColor=BrickColor.new(tostring(brickcolor))
  226.         fp.Name=name
  227.         fp.Size=size
  228.         fp.Position=Character.Torso.Position
  229.         nooutline(fp)
  230.         fp.Material=material
  231.         fp:BreakJoints()
  232.         return fp
  233.     end
  234.    
  235.     function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  236.         local fp = it("Part")
  237.         fp.formFactor = formfactor
  238.         fp.Parent = parent
  239.         fp.Reflectance = reflectance
  240.         fp.Transparency = transparency
  241.         fp.CanCollide = true
  242.         fp.Locked=true
  243.         fp.BrickColor = brickcolor
  244.         fp.Name = name
  245.         fp.Size = size
  246.         fp.Position = EffectPart.Position
  247.         NoOutline(fp)
  248.         fp.Material="Neon"
  249.         fp:BreakJoints()
  250.         return fp
  251.     end
  252.    
  253.     function wweld(parent,part0,part1,c0)
  254.         local weld=it("Weld")
  255.         weld.Parent=parent 
  256.         weld.Part0=part0
  257.         weld.Part1=part1
  258.         weld.C0=c0
  259.         return weld
  260.     end
  261.    
  262.     function mesh(Mesh,part,meshtype,meshid,offset,scale)
  263.         local mesh=it(Mesh)
  264.         mesh.Parent=part
  265.         if Mesh=="SpecialMesh" then
  266.             mesh.MeshType=meshtype
  267.             mesh.MeshId=meshid
  268.         end
  269.         mesh.Offset=offset
  270.         mesh.Scale=scale
  271.         return mesh
  272.     end
  273.    
  274.     function decal(part,face,texture,transparency,shiny,specular,name)
  275.         local d=it("Decal",part)
  276.         d.Shiny=shiny
  277.         d.Face=face
  278.         d.Specular=specular
  279.         d.Transparency=transparency
  280.         d.Texture=texture
  281.         d.Name=name
  282.         return d
  283.     end
  284.    
  285.     function weld(parent,part0,part1,c0,c1)
  286.         local weld=it("Weld")
  287.         weld.Parent=parent
  288.         weld.Part0=part0
  289.         weld.Part1=part1
  290.         weld.C0=c0
  291.         weld.C1=c1
  292.         return weld
  293.     end
  294.    
  295. so = function(id,par,vol,pit)
  296. coroutine.resume(coroutine.create(function()
  297. local sou = Instance.new("Sound",par or workspace)
  298. sou.Volume=vol
  299. sou.Pitch=pit or 1
  300. sou.SoundId=id
  301. swait()
  302. sou:play()
  303. game:GetService("Debris"):AddItem(sou,6)
  304. end))
  305. end
  306.  
  307. function clerp(a,b,t)
  308. local qa = {QuaternionFromCFrame(a)}
  309. local qb = {QuaternionFromCFrame(b)}
  310. local ax, ay, az = a.x, a.y, a.z
  311. local bx, by, bz = b.x, b.y, b.z
  312. local _t = 1-t
  313. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  314. end
  315.  
  316. function QuaternionFromCFrame(cf)
  317. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  318. local trace = m00 + m11 + m22
  319. if trace > 0 then
  320. local s = math.sqrt(1 + trace)
  321. local recip = 0.5/s
  322. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  323. else
  324. local i = 0
  325. if m11 > m00 then
  326. i = 1
  327. end
  328. if m22 > (i == 0 and m00 or m11) then
  329. i = 2
  330. end
  331. if i == 0 then
  332. local s = math.sqrt(m00-m11-m22+1)
  333. local recip = 0.5/s
  334. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  335. elseif i == 1 then
  336. local s = math.sqrt(m11-m22-m00+1)
  337. local recip = 0.5/s
  338. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  339. elseif i == 2 then
  340. local s = math.sqrt(m22-m00-m11+1)
  341. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  342. end
  343. end
  344. end
  345.  
  346. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  347. local xs, ys, zs = x + x, y + y, z + z
  348. local wx, wy, wz = w*xs, w*ys, w*zs
  349. local xx = x*xs
  350. local xy = x*ys
  351. local xz = x*zs
  352. local yy = y*ys
  353. local yz = y*zs
  354. local zz = z*zs
  355. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  356. end
  357.  
  358. function QuaternionSlerp(a, b, t)
  359. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  360. local startInterp, finishInterp;
  361. if cosTheta >= 0.0001 then
  362. if (1 - cosTheta) > 0.0001 then
  363. local theta = math.acos(cosTheta)
  364. local invSinTheta = 1/math.sin(theta)
  365. startInterp = math.sin((1-t)*theta)*invSinTheta
  366. finishInterp = math.sin(t*theta)*invSinTheta  
  367. else
  368. startInterp = 1-t
  369. finishInterp = t
  370. end
  371. else
  372. if (1+cosTheta) > 0.0001 then
  373. local theta = math.acos(-cosTheta)
  374. local invSinTheta = 1/math.sin(theta)
  375. startInterp = math.sin((t-1)*theta)*invSinTheta
  376. finishInterp = math.sin(t*theta)*invSinTheta
  377. else
  378. startInterp = t-1
  379. finishInterp = t
  380. end
  381. end
  382. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  383. end
  384.  
  385. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  386. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  387. end
  388.  
  389. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  390.         if hit.Parent==nil then
  391.                 return
  392.         end
  393.         local h=hit.Parent:FindFirstChild("Humanoid")
  394.         for _,v in pairs(hit.Parent:children()) do
  395.         if v:IsA("Humanoid") then
  396.         h=v
  397.         end
  398.         end
  399.         if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  400.         h=hit.Parent.Parent:FindFirstChild("Humanoid")
  401.         end
  402.         if hit.Parent.className=="Hat" then
  403.         hit=hit.Parent.Parent:findFirstChild("Head")
  404.         end
  405.         if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  406.         if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  407.         --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  408.                         return
  409.                 end]]
  410. --                        hs(hit,1.2)
  411.                         local c=Instance.new("ObjectValue")
  412.                         c.Name="creator"
  413.                         c.Value=game:service("Players").LocalPlayer
  414.                         c.Parent=h
  415.                         game:GetService("Debris"):AddItem(c,.5)
  416.                 local Damage=math.random(minim,maxim)
  417. --                h:TakeDamage(Damage)
  418.                 local  blocked=false
  419.                 local  block=hit.Parent:findFirstChild("Block")
  420.                 if block~=nil then
  421.                 print(block.className)
  422.                 if block.className=="NumberValue" then
  423.                 if block.Value>0 then
  424.                 blocked=true
  425.                 if decreaseblock==nil then
  426.                 block.Value=block.Value-1
  427.                 end
  428.                 end
  429.                 end
  430.                 if block.className=="IntValue" then
  431.                 if block.Value>0 then
  432.                 blocked=true
  433.                 if decreaseblock~=nil then
  434.                 block.Value=block.Value-1
  435.                 end
  436.                 end
  437.                 end
  438.                 end
  439.                 if blocked==false then
  440. --                h:TakeDamage(Damage)
  441.                 h.Health=h.Health-Damage
  442.                 ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  443.                 else
  444.                 h.Health=h.Health-(Damage/2)
  445.                 ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  446.                 end
  447.                 if Type=="Knockdown" then
  448.                 local hum=hit.Parent.Humanoid
  449. hum.PlatformStand=true
  450. coroutine.resume(coroutine.create(function(HHumanoid)
  451. swait(1)
  452. HHumanoid.PlatformStand=false
  453. end),hum)
  454.                 local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  455. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  456. local bodvol=Instance.new("BodyVelocity")
  457. bodvol.velocity=angle*knockback
  458. bodvol.P=0
  459. bodvol.maxForce=Vector3.new(10e+003, 10e+003, 10e+003)
  460. bodvol.Parent=hit
  461. local rl=Instance.new("BodyAngularVelocity")
  462. rl.P=0
  463. rl.maxTorque=Vector3.new(1,1,1)*1
  464. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  465. rl.Parent=hit
  466. game:GetService("Debris"):AddItem(bodvol,2)
  467. game:GetService("Debris"):AddItem(rl,2)
  468.                 elseif Type=="Normal" then
  469.                 local vp=Instance.new("BodyVelocity")
  470.                 vp.P=0
  471.                 vp.maxForce=Vector3.new(math.huge,0,math.huge)
  472. --                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  473.                 if KnockbackType==1 then
  474.                 vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/4
  475.                 elseif KnockbackType==2 then
  476.                 vp.velocity=Property.CFrame.lookVector*knockback
  477.                 end
  478.                 if knockback>0 then
  479.                         vp.Parent=hit.Parent.Torso
  480.                 end
  481.                 game:GetService("Debris"):AddItem(vp,.1)
  482.                 elseif Type=="Up" then
  483.                 local bodyVelocity=Instance.new("BodyVelocity")
  484.                 bodyVelocity.velocity=vt(0,60,0)
  485.                 bodyVelocity.P=0
  486.                 bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  487.                 bodyVelocity.Parent=hit
  488.                 game:GetService("Debris"):AddItem(bodyVelocity,.1)
  489.                 local rl=Instance.new("BodyAngularVelocity")
  490.                 rl.P=0
  491.                 rl.maxTorque=Vector3.new(1,1,1)*1
  492.                 rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  493.                 rl.Parent=hit
  494.                 game:GetService("Debris"):AddItem(rl,2)
  495.                 elseif Type=="Snare" then
  496.                 local bp=Instance.new("BodyPosition")
  497.                 bp.P=0
  498.                 bp.D=0
  499.                 bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  500.                 bp.position=hit.Parent.Torso.Position
  501.                 bp.Parent=hit.Parent.Torso
  502.                 game:GetService("Debris"):AddItem(bp,.1)
  503.                 elseif Type=="Target" then
  504.                 local Targetting = false
  505.                 if Targetting==false then
  506.                 ZTarget=hit.Parent.Torso
  507.                 coroutine.resume(coroutine.create(function(Part)
  508.                 so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  509.                 swait(5)
  510.                 so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  511.                 end),ZTarget)
  512.                 local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  513.                 local  targetgui=Instance.new("BillboardGui")
  514.                 targetgui.Parent=ZTarget
  515.                 targetgui.Size=UDim2.new(10,100,10,100)
  516.                 local targ=Instance.new("ImageLabel")
  517.                 targ.Parent=targetgui
  518.                 targ.BackgroundTransparency=1
  519.                 targ.Image="rbxassetid://4834067"
  520.                 targ.Size=UDim2.new(1,0,1,0)
  521.                 cam.CameraType="Scriptable"
  522.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  523.                 local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  524.                 workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  525.                 Targetting=true
  526.                 RocketTarget=ZTarget
  527.                 for i=1,Property do
  528.                 --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  529.                 if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  530.                 swait()
  531.                 end
  532.                 --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  533.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  534.                 dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  535.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  536.                 end
  537.                 Targetting=false
  538.                 RocketTarget=nil
  539.                 targetgui.Parent=nil
  540.                 cam.CameraType="Custom"
  541.                 end
  542.                 end
  543.                         local debounce=Instance.new("BoolValue")
  544.                         debounce.Name="DebounceHit"
  545.                         debounce.Parent=hit.Parent
  546.                         debounce.Value=true
  547.                         game:GetService("Debris"):AddItem(debounce,1)
  548.                         c=Instance.new("ObjectValue")
  549.                         c.Name="creator"
  550.                         c.Value=Player
  551.                         c.Parent=h
  552.                         game:GetService("Debris"):AddItem(c,.5)
  553.  
  554.         end
  555. end
  556.  
  557. for i,v in pairs(Character:children()) do
  558.     if v:IsA("Accessory") then
  559.         v:Destroy()
  560.     end
  561. end
  562. for i,v in pairs(Character:children()) do
  563.     if v:IsA("Hat") then
  564.         v:Destroy()
  565.     end
  566. end
  567.  
  568. shirt = Instance.new("Shirt", Character)
  569. shirt.Name = "Shirt"
  570. pants = Instance.new("Pants", Character)
  571. pants.Name = "Pants"
  572. Character.Shirt.ShirtTemplate = "rbxassetid://752801935"
  573. Character.Pants.PantsTemplate = "rbxassetid://769974956"
  574.  
  575. function ShowDamage(Pos, Text, Time, Color)
  576.     local Rate = (1 / 30)
  577.     local Pos = (Pos or Vector3.new(0, 0, 0))
  578.     local Text = (Text or "")
  579.     local Time = (Time or 2)
  580.     local Color = (Color or Color3.new(1, 0, 0))
  581.     local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  582.     EffectPart.Anchored = true
  583.     local BillboardGui = Instance.new("BillboardGui")
  584.     BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  585.     BillboardGui.Adornee = EffectPart
  586.     local TextLabel = Instance.new("TextLabel")
  587.     TextLabel.BackgroundTransparency = 1
  588.     TextLabel.Size = UDim2.new(1, 0, 1, 0)
  589.     TextLabel.Text = Text
  590.     TextLabel.TextColor3 = Color
  591.     TextLabel.TextScaled = true
  592.     TextLabel.Font = Enum.Font.ArialBold
  593.     TextLabel.Parent = BillboardGui
  594.     BillboardGui.Parent = EffectPart
  595.     game.Debris:AddItem(EffectPart, (Time + 0.1))
  596.     EffectPart.Parent = game:GetService("Workspace")
  597.     delay(0, function()
  598.         local Frames = (Time / Rate)
  599.         for Frame = 1, Frames do
  600.             wait(Rate)
  601.             local Percent = (Frame / Frames)
  602.             EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  603.             TextLabel.TextTransparency = Percent
  604.         end
  605.         if EffectPart and EffectPart.Parent then
  606.             EffectPart:Destroy()
  607.         end
  608.     end)
  609. end
  610.  
  611. local RbxUtility = LoadLibrary("RbxUtility")
  612.     local Create = RbxUtility.Create
  613.     local co1 = 9
  614.     local co2 = 20
  615.     local co3 = 12
  616.     local co4 = 45
  617.     local cooldown1 = 0
  618.     local cooldown2 = 0
  619.     local cooldown3 = 0
  620.     local cooldown4 = 0
  621.     local skillcolorscheme = BrickColor.new("Pastel Blue").Color
  622.     local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  623.     makeframe = function(par, trans, pos, size, color)
  624.         local frame = Instance.new("Frame", par)
  625.     frame.BackgroundTransparency = trans
  626.     frame.BorderSizePixel = 0
  627.     frame.Position = pos
  628.     frame.Size = size
  629.     frame.BackgroundColor3 = color
  630.     return frame
  631. end
  632.  
  633.        
  634.    
  635.    
  636. CreatePart = function(Parent, Material, Reflectance, Transparency, PartType, BColor, Name, Size, MeshId)
  637.    
  638.     if PartType == "Part" then
  639.         local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  640.         Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  641.         return Part
  642.     else
  643.         do
  644.             if PartType == "WedgePart" then
  645.                 local Part = Create("WedgePart")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  646.                 Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  647.                 return Part
  648.             end
  649.         end
  650.     end
  651. end
  652.  
  653.     CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  654.    
  655.     local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  656.     if Mesh == "SpecialMesh" then
  657.         Msh.MeshType = MeshType
  658.         Msh.MeshId = MeshId
  659.     end
  660.     return Msh
  661. end
  662.  
  663.     CreateWeld = function(Parent, Part0, Part1, C0, C1)
  664.    
  665.     local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  666.     return Weld
  667. end
  668.  
  669. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  670.    
  671.     local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  672.     return Weld
  673. end
  674. }
  675.  
  676. handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Ghost grey","Handle",Vector3.new(0.2, .4, 0.12))
  677. handle.Transparency = 1
  678. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.Angles(math.rad(0),math.rad(0),math.rad(270))*CFrame.new(-1.35, -0.0401109691, 0.0168789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
  679. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  680. WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-1.1045, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  681. mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1.9,6.84,6.84))
  682. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  683. WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))*CFrame.new(-1.7929, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  684. mesh("SpecialMesh",Wedge,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1527559",Vector3.new(0, 0, 0),Vector3.new(0.811,0.811,0.811))
  685. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  686. WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.62, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  687. mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(4.5,4.5,4.5))
  688. --editing--
  689. WedgeSpot = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Bright red", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  690. WedgeWeld = CreateWeld(m, handle, WedgeSpot, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.84, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  691. mesh("SpecialMesh",WedgeSpot,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1.65,1.8,3.5))
  692. --editing--
  693. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,1,"Really black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
  694. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.107657909, -3.55914412, 0.00325751305, 0.999999821, -0.00011339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
  695. EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Really black","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  696. EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
  697. mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(0.1,0.2,1))
  698. EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Really black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  699. EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
  700.  
  701.  
  702. handle=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,0,"Ghost grey","Handle",Vector3.new(0.2, .4, 0.12))
  703. handle.Transparency = 1
  704. handleweld=weld(m2,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.Angles(math.rad(0),math.rad(0),math.rad(270))*CFrame.new(-1.35, -0.0401109691, 0.0168789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
  705. Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  706. WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-1.1045, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  707. mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1.9,6.84,6.84))
  708. Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  709. WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))*CFrame.new(-1.7929, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  710. mesh("SpecialMesh",Wedge,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1527559",Vector3.new(0, 0, 0),Vector3.new(0.811,0.811,0.811))
  711. Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  712. WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.62, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  713. mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(4.5,4.5,4.5))
  714. --editing--
  715. WedgeSpot = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Bright red", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  716. WedgeWeld = CreateWeld(m2, handle, WedgeSpot, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.84, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  717. mesh("SpecialMesh",WedgeSpot,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1.65,1.8,3.5))
  718. --editing--
  719. Hitbox=part(Enum.FormFactor.Custom,m2,Enum.Material.Plastic,0,1,"Really black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
  720. Hitboxweld=weld(m2,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.107657909, -3.55914412, 0.00325751305, 0.999999821, -0.00011339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
  721. EffectPart=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,1,"Really black","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  722. EffectPartweld=weld(m2,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
  723. mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(0.1,0.2,1))
  724. EffectPart2=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,1,"Really black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  725. EffectPart2weld=weld(m2,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
  726.  
  727. DarkRiftF=function(par)
  728. while lol == true do
  729. wait()
  730. local PWN={}
  731. for _,v in pairs(game.Workspace:children()) do
  732. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  733. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  734. table.insert(PWN,v.Torso)
  735. end
  736. end
  737. end
  738. for _,t in pairs(PWN) do
  739. local targ=par.Position-t.Position
  740. local Mag=targ.magnitude
  741. if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
  742. if Mag<=30 then
  743. t.Parent.Humanoid:TakeDamage(.5)
  744. local rl=Instance.new("BodyAngularVelocity")
  745. rl.P=3000
  746. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  747. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  748. rl.Parent=t
  749. game:GetService("Debris"):AddItem(rl,.1)
  750. end
  751. if Mag<=20 then
  752. t.Parent.Humanoid:TakeDamage(.1)
  753. else
  754. local vl=Instance.new("BodyVelocity")
  755. vl.P=3000
  756. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  757. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  758. vl.Parent=t
  759. game:GetService("Debris"):AddItem(vl,.1)
  760. end
  761. end
  762. end
  763. wait(.08)
  764. end
  765. end
  766.  
  767. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  768.     local msh1 = Instance.new("BlockMesh")
  769.     msh1.Scale = Vector3.new(0.5,0.5,0.5)
  770.     local S=Instance.new("Part")
  771.     S.Name="Effect"
  772.     S.Material="Neon"
  773.     S.formFactor=0
  774.     S.Size=Vector3.new(x1,y1,z1)
  775.     S.BrickColor=color
  776.     S.Reflectance = 0
  777.     S.TopSurface=0
  778.     S.BottomSurface=0
  779.     S.Transparency=0
  780.     S.Anchored=false
  781.     S.CanCollide=true
  782.     S.CFrame=part.CFrame
  783.     S.Parent=game.Workspace
  784.     msh1.Parent = S
  785.     local W=Instance.new("Weld")
  786.     W.Parent=S
  787.     W.Part0=S
  788.     W.Part1=part
  789.     W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  790.     W.Parent=nil
  791.     S.Anchored=true
  792.     coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
  793. end
  794.  
  795. local function BlackHole(parent,cframe)
  796. local effectsmsh = Instance.new("SpecialMesh")
  797. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  798. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  799. effectsmsh.Scale = Vector3.new(3,3,3)
  800. local effectsg = Instance.new("Part")
  801. effectsg.formFactor = 3
  802. effectsg.CanCollide = true
  803. effectsg.Name = "Effect"
  804. effectsg.Locked = true
  805. effectsg.Transparency = 1
  806. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  807. effectsg.Parent = parent
  808. effectsg.BrickColor = BrickColor.new("Royal purple")
  809. effectsg.Material="Neon"
  810. coroutine.resume(coroutine.create(function(Part,Mesh)
  811.     local Mesh = Instance.new("SpecialMesh")
  812.     Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  813.     Mesh.MeshType = "Sphere"
  814. --  Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
  815.     Part=Instance.new("Part")
  816.     Part.Name="Effect"
  817.     Part.formFactor=0
  818.     Part.Size=Vector3.new(1,1,1)
  819.     Part.BrickColor=BrickColor.new("Royal purple")
  820.     Part.Material="Neon"
  821.     Part.Reflectance = 0
  822.     Part.TopSurface=0
  823.     Part.BottomSurface=0
  824.     Part.Transparency=0
  825.     Part.Anchored=true
  826. NoOutline(Part)
  827.     Part.CanCollide=false
  828.     Part.CFrame=cframe
  829.     Part.Parent=parent
  830.     Mesh.Parent = Part
  831.     lol=true
  832. coroutine.resume(coroutine.create(function()
  833.     DarkRiftF(Part)
  834. end))
  835.     for i=0,200 do
  836.     wait()
  837.     DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Royal purple"))
  838.     Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
  839.     Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  840.     end
  841.     local fff=200
  842.     for i=0,100 do
  843.     wait()
  844.     DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Royal purple"))
  845.     Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  846.     end
  847.     for i=0,1,0.05 do
  848.     wait()
  849.     Part.Transparency=Part.Transparency+0.05
  850.     Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
  851.     end
  852.     lol=false
  853.     Part.Parent=nil
  854. end),nil,nil)
  855. end
  856.  
  857. function makeShockwave(height,color,speed,range,pulse)
  858. local range = range or 2000
  859. local p = Instance.new("Part")
  860. p.Anchored = true
  861. p.CanCollide = true
  862. p.FormFactor = "Custom"
  863. p.BrickColor = color
  864. p.Parent = workspace
  865. local m = Instance.new("SpecialMesh",p)
  866. m.MeshId = "rbxassetid://3270017"
  867. local estimateSurvival = math.floor(range/speed) * 0.03
  868. game:GetService("Debris"):AddItem(p,estimateSurvival)
  869. Spawn(function ()
  870. for i = 1,range,speed do
  871. p.Transparency = 1-math.min(0.5,3-(i/500))
  872. m.Scale = Vector3.new(i,i,i*height)
  873. p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
  874. wait()
  875. end
  876. p:Destroy()
  877. end)
  878. end
  879.  
  880. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  881. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  882. prt.Anchored=true
  883. prt.CFrame=cframe
  884. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
  885. game:GetService("Debris"):AddItem(prt,2)
  886. coroutine.resume(coroutine.create(function(Part,Mesh)
  887. for i=0,2,delay do
  888. wait()
  889. Part.CFrame=Part.CFrame
  890. Part.Transparency=i
  891. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  892. end
  893. Part.Parent=nil
  894. end),prt,msh)
  895. end
  896.  
  897. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  898. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  899. prt.Anchored=true
  900. prt.CFrame=cframe
  901. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  902. game:GetService("Debris"):AddItem(prt,5)
  903. coroutine.resume(coroutine.create(function(Part,Mesh)
  904. for i=0,1,delay do
  905. wait()
  906. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  907. Part.Transparency=i
  908. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  909. end
  910. Part.Parent=nil
  911. end),prt,msh)
  912. end
  913.  
  914. local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  915. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
  916. if Type~=2 then
  917. prt.Anchored=true
  918. end
  919. prt.CFrame=cframe
  920. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  921. game:GetService("Debris"):AddItem(prt,5)
  922. coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  923. local wld=nil
  924. if dur==2 then
  925. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  926. end
  927. for i=0,1,delay do
  928. swait()
  929. if dur==1 then
  930. Part.CFrame=Part.CFrame
  931. elseif dur==2 then
  932. wld.C0=cframe
  933. end
  934. Part.Transparency=i
  935. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  936. end
  937. Part.Parent=nil
  938. end),prt,msh,Type)
  939. end
  940.  
  941. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  942. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  943. prt.Anchored=true
  944. prt.CFrame=cframe
  945. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  946. game:GetService("Debris"):AddItem(prt,5)
  947. coroutine.resume(coroutine.create(function(Part,Mesh)
  948. for i=0,1,delay do
  949. swait()
  950. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  951. Part.Transparency=i
  952. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  953. end
  954. Part.Parent=nil
  955. end),prt,msh)
  956. end
  957.  
  958. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  959. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  960. prt.Anchored=true
  961. prt.CFrame=cframe
  962. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  963. game:GetService("Debris"):AddItem(prt,5)
  964. coroutine.resume(coroutine.create(function(Part,Mesh)
  965. for i=0,1,delay do
  966. wait()
  967. Part.CFrame=Part.CFrame
  968. Part.Transparency=i
  969. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  970. end
  971. Part.Parent=nil
  972. end),prt,msh)
  973. end
  974.  
  975. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  976. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
  977. prt.Anchored=true
  978. prt.CFrame=cframe
  979. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  980. game:GetService("Debris"):AddItem(prt,5)
  981. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  982. end
  983.  
  984. function Blast(parent)
  985. MagicBlock(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  986. MagicWaveThing(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  987. end
  988.  
  989. function ChargeBall(parent,t)
  990. local counter=0
  991. local size=1
  992. for i=0,t,1 do
  993. swait()
  994. counter=counter+1
  995. if counter%10==0 then
  996. if size==3 then
  997. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  998. elseif size==2 then
  999. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1000. end
  1001. end
  1002. if counter%5==0 then
  1003. if size==1 then
  1004. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1005. elseif size==2 then
  1006. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1007. elseif size==3 then
  1008. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1009. end
  1010. end
  1011. end
  1012. end
  1013.  
  1014. function ChargeBall2(parent,t)
  1015. local counter=0
  1016. local size=1
  1017. for i=0,t,1 do
  1018. swait()
  1019. counter=counter+1
  1020. if counter%10==0 then
  1021. if size==3 then
  1022. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1023. elseif size==2 then
  1024. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1025. end
  1026. end
  1027. if counter%5==0 then
  1028. if size==1 then
  1029. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1030. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1031. elseif size==2 then
  1032. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1033. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1034. elseif size==3 then
  1035. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1036. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1037. end
  1038. end
  1039. end
  1040. end
  1041.  
  1042. function MagniDamage(Part,dis,mind,maxd,force,knock)
  1043. for _,c in pairs(workspace:children()) do
  1044. local hum=c:findFirstChild("Humanoid")
  1045. if hum~=nil then
  1046. local head=c:findFirstChild("Torso")
  1047. if head~=nil then
  1048. local targ=head.Position-Part.Position
  1049. local mag=targ.magnitude
  1050. if mag<=dis and c.Name~=Character.Name then
  1051. Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
  1052. end
  1053. end
  1054. end
  1055. end
  1056. end
  1057.  
  1058.  
  1059. function computeDirection(vec)
  1060. local lenSquared = vec.magnitude * vec.magnitude
  1061. local invSqrt = 1 / math.sqrt(lenSquared)
  1062. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  1063. end
  1064.  
  1065. local rarmc1 = RW.C1
  1066. local larmc1 = LW.C1
  1067. local rlegc1 = RH.C1
  1068. local llegc1 = LH.C1
  1069. function PlayAnimationFromTable(table, speed, bool)
  1070.     RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  1071.     Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  1072.     RW.C0 = clerp(RW.C0, table[3], speed)
  1073.     LW.C0 = clerp(LW.C0, table[4], speed)
  1074.     RH.C0 = clerp(RH.C0, table[5], speed)
  1075.     LH.C0 = clerp(LH.C0, table[6], speed)
  1076.     if bool == true then
  1077.         if resetc1 == false then
  1078.             resetc1 = true
  1079.             RootJoint.C1 = RootJoint.C1
  1080.             Torso.Neck.C1 = Torso.Neck.C1
  1081.             RW.C1 = rarmc1
  1082.             LW.C1 = larmc1
  1083.             RH.C1 = rlegc1
  1084.             LH.C1 = llegc1
  1085.         end
  1086.     end
  1087. end
  1088.  
  1089. function GetsugaTenshou()
  1090.     attack=true
  1091.     local chargecounter = 0
  1092. for i=0,1,.25 do
  1093. swait()
  1094. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
  1095. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1096. end
  1097. chargecounter = chargecounter + 1
  1098. wait(0.1)
  1099. local Wave=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"New Yeller","Wave",Vector3.new(1,1,1)) Wave.Parent = WedgeSpot
  1100. Wave.Material = 'Neon'
  1101. Wave.Transparency = 0
  1102. Wave.Shape = "Ball"
  1103. Wave.CFrame = WedgeSpot.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.random(90.6,90.6),math.random(0,0),math.random(0,0))
  1104. local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*185
  1105. so("http://www.roblox.com/asset/?id=50638397", 22,handle,1,.9)
  1106. if Humanoid~=nil and bounce==false then
  1107.     bounce=true
  1108.     Wave.Touched:connect(function(hit)
  1109. if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Name ~= "Reaper" and hit.Parent.Name ~= "Reaper2" and hit.Parent.Name ~= "WeaponModel" then
  1110. Damagefunc(Wave,hit,60,60,math.random(3,3),"Normal",RootPart,.2,1)
  1111. end
  1112. end)
  1113. end
  1114.  
  1115.  
  1116. for i = 0,1,0.11 do
  1117. swait()
  1118. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
  1119. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1120. end
  1121. attack=false
  1122. bounce=false
  1123. scfr=nil
  1124. end
  1125.  
  1126. function Mugetsu()
  1127. attack=true
  1128. for i=0,1,.25 do
  1129. swait()
  1130. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
  1131. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1132. end
  1133. wait(0.3)
  1134. spawn(function()
  1135.     for i=1,55 do
  1136.         wait()
  1137.             local c = Character
  1138.             local radius = 8
  1139.             local pos = WedgeSpot.CFrame
  1140.             local clrz = {'Cyan','Teal'};
  1141.             for i = 1,2.7 do
  1142.                 local clr = clrz[math.random(1,#clrz)]
  1143.                 pos = WedgeSpot.CFrame
  1144.                 local p = Instance.new('Part',c)
  1145.                 local mafa = math.random(-360,360)
  1146.                 p.CanCollide = false
  1147.                 p.Size = Vector3.new(1,1,1)
  1148.                 local m = Instance.new('SpecialMesh',p)
  1149.                 m.MeshType = 'Sphere'
  1150.                 spawn(function()
  1151.                   for i = 0,50 do
  1152.                     local int,int2 = .05,.05
  1153.                     m.Scale = m.Scale - Vector3.new(int,int,int)
  1154.                     p.Transparency = p.Transparency + int2
  1155.                     swait()
  1156.                   end
  1157.                 end)
  1158.                 p.BrickColor = BrickColor.new(clr)
  1159.                 p.Material = 'Neon'
  1160.                 p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
  1161.                 local bp = Instance.new('BodyPosition',p)
  1162.                 bp.MaxForce = Vector3.new(0.7/0,0.7/0,0.7/0)
  1163.                 bp.D = 100
  1164.                 bp.P = 300
  1165.                 bp.Position = pos.p
  1166.                 game.Debris:AddItem(p,10)
  1167.             end
  1168.         end
  1169. end)
  1170. wait(3)
  1171. local Wave=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Cyan","Wave",Vector3.new(10,10,10)) Wave.Parent = WedgeSpot
  1172. Wave.Material = "Neon"
  1173. Wave.Transparency = 0
  1174. Wave.Shape = "Ball"
  1175. Wave.CFrame = WedgeSpot.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.random(90.6,90.6),math.random(0,0),math.random(0,0))
  1176. local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*180
  1177. so("http://www.roblox.com/asset/?id=50638397", 22,handle,1,.9)
  1178.  
  1179. if Humanoid~=nil and bounce==false then
  1180.     bounce=true
  1181.     Wave.Touched:connect(function(hit)
  1182. if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Name ~= "Reaper" and hit.Parent.Name ~= "Reaper2" and hit.Parent.Name ~= "WeaponModel" then
  1183. Damagefunc(Wave,hit,100,100,math.random(3,3),"Normal",RootPart,.2,1)
  1184. end
  1185. end)
  1186. end
  1187.  
  1188.  
  1189. for i = 0,1,0.11 do
  1190. swait()
  1191. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
  1192. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1193. end
  1194. attack=false
  1195. bounce=false
  1196. scfr=nil
  1197. end
  1198. mouse.KeyDown:connect(function(k)
  1199. k=k:lower()
  1200. if attack == false and k == 'e' then
  1201. Mugetsu()
  1202. end
  1203. if attack == false and k == 'q' then
  1204. GetsugaTenshou()
  1205. end
  1206. if attack == false and k == '1' and deeznuts==false then
  1207. deeznuts=true
  1208. MetalMan()
  1209. deeznuts=true
  1210. end
  1211. if attack == false and k == '0' and deeznuts==false then
  1212. cooldown=true
  1213. MegaMan()
  1214. deeznuts=true
  1215. end
  1216. end)
  1217.  
  1218.  
  1219. local sine = 0
  1220. local change = 1
  1221. local val = 0
  1222.  
  1223. while true do
  1224. swait()
  1225. sine = sine + change
  1226. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1227. local velderp=RootPart.Velocity.y
  1228. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1229. if equipped==true or equipped==false then
  1230. if attack==false then
  1231. idle=idle+1
  1232. else
  1233. idle=0
  1234. end
  1235. if idle>=500 then
  1236. if attack==false then
  1237. end
  1238. end
  1239.      
  1240. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1241. Anim="Jump"
  1242. if attack==false then
  1243. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1244. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1245. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
  1246. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  1247. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1248. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1249. end
  1250. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1251. Anim="Fall"
  1252. if attack==false then
  1253. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1254. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
  1255. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
  1256. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1257. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1258. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1259. end
  1260. elseif torvel<1 and hitfloor~=nil then
  1261. Anim="Idle"
  1262. if attack==false then
  1263. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1264. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1265. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3)
  1266. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1267. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
  1268. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3)
  1269. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1270. end
  1271. elseif torvel>2 and hitfloor~=nil then
  1272. Anim="Walk"
  1273. if attack==false then
  1274. change=3
  1275. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1276. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1277. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(70)*math.cos(sine/16.5), math.rad(6), math.rad(5)), 0.2)
  1278. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-70)*math.cos(sine/-16.5), math.rad(-6), math.rad(-5)), 0.2)
  1279. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2)*math.cos(sine/16),math.rad(90),math.rad(0)),.3)
  1280. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4*math.cos(sine/-16)),math.rad(-90),math.rad(0)),.3)
  1281. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1282. end
  1283. end
  1284. end
  1285. if #Effects>0 then
  1286. for e=1,#Effects do
  1287. if Effects[e]~=nil then
  1288. local Thing=Effects[e]
  1289. if Thing~=nil then
  1290. local Part=Thing[1]
  1291. local Mode=Thing[2]
  1292. local Delay=Thing[3]
  1293. local IncX=Thing[4]
  1294. local IncY=Thing[5]
  1295. local IncZ=Thing[6]
  1296. if Thing[1].Transparency<=1 then
  1297. if Thing[2]=="Block1" then
  1298. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1299. Mesh=Thing[1].Mesh
  1300. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1301. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1302. elseif Thing[2]=="Cylinder" then
  1303. Mesh=Thing[1].Mesh
  1304. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1305. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1306. elseif Thing[2]=="Blood" then
  1307. Mesh=Thing[7]
  1308. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1309. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1310. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1311. elseif Thing[2]=="Elec" then
  1312. Mesh=Thing[1].Mesh
  1313. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1314. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1315. elseif Thing[2]=="Disappear" then
  1316. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1317. end
  1318. else
  1319. Part.Parent=nil
  1320. table.remove(Effects,e)
  1321. end
  1322. end
  1323. end
  1324. end
  1325. end
  1326. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top