Advertisement
Guest User

Untitled

a guest
May 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 101.46 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. Player= owner
  87. Character=Player.Character
  88. PlayerGui=Player.PlayerGui
  89. Backpack=Player.Backpack
  90. Torso=Character.Torso
  91. Head=Character.Head
  92. Humanoid=Character.Humanoid
  93. LeftArm=Character["Left Arm"]
  94. LeftLeg=Character["Left Leg"]
  95. RightArm=Character["Right Arm"]
  96. RightLeg=Character["Right Leg"]
  97. cam=game.Workspace.CurrentCamera
  98. LS=Torso["Left Shoulder"]
  99. LH=Torso["Left Hip"]
  100. RS=Torso["Right Shoulder"]
  101. RH=Torso["Right Hip"]
  102. Face = Head.face
  103. Neck=Torso.Neck
  104. it=Instance.new
  105. attacktype=1
  106. vt=Vector3.new
  107. cf=CFrame.new
  108. euler=CFrame.fromEulerAnglesXYZ
  109. angles=CFrame.Angles
  110. cloaked=false
  111. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  112. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  113. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  114. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  115. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  116. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  117. RootPart=Character.HumanoidRootPart
  118. RootJoint=RootPart.RootJoint
  119. RootCF=euler(-1.57,0,3.14)
  120. attack = false
  121. bounce=false
  122. cooldown=false
  123. deeznuts=false
  124. attackdebounce = false
  125. deb=false
  126. equipped=true
  127. hand=false
  128. MMouse=nil
  129. combo=0
  130. mana=0
  131. trispeed=.2
  132. attackmode='none'
  133. local idle=0
  134. local Anim="Idle"
  135. local Effects={}
  136. local gun=false
  137. local shoot=false
  138. player=nil
  139. mana=0
  140. cam = workspace.CurrentCamera
  141. ZTarget = nil
  142. RocketTarget = nil
  143. local m = Instance.new("Model",Character)
  144. m.Name = "WeaponModel"
  145.  
  146.  
  147. --save shoulders
  148. RSH, LSH=nil, nil
  149. --welds
  150. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  151. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  152. LH=Torso["Left Hip"]
  153. RH=Torso["Right Hip"]
  154. function NoOutline(Part)
  155. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  156. end
  157. player=Player
  158. ch=Character
  159. RSH=ch.Torso["Right Shoulder"]
  160. LSH=ch.Torso["Left Shoulder"]
  161. --
  162. RSH.Parent=nil
  163. LSH.Parent=nil
  164. --
  165. RW.Name="Right Shoulder"
  166. RW.Part0=ch.Torso
  167. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  168. RW.C1=cf(0, 0.5, 0)
  169. RW.Part1=ch["Right Arm"]
  170. RW.Parent=ch.Torso
  171. --
  172. LW.Name="Left Shoulder"
  173. LW.Part0=ch.Torso
  174. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  175. LW.C1=cf(0, 0.5, 0)
  176. LW.Part1=ch["Left Arm"]
  177. LW.Parent=ch.Torso
  178.  
  179. function swait(num)
  180. if num==0 or num==nil then
  181. game:service'RunService'.Heartbeat:wait(0)
  182. else
  183. for i=0,num do
  184. game:service'RunService'.Heartbeat:wait(0)
  185. end
  186. end
  187. end
  188.  
  189. function nooutline(part)
  190. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  191. end
  192.  
  193. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  194. local fp=it("Part")
  195. fp.formFactor=formfactor
  196. fp.Parent=parent
  197. fp.Reflectance=reflectance
  198. fp.Transparency=transparency
  199. fp.CanCollide=false
  200. fp.Locked=true
  201. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  202. fp.Name=name
  203. fp.Size=size
  204. fp.Position=Character.Torso.Position
  205. nooutline(fp)
  206. fp.Material=material
  207. fp:BreakJoints()
  208. return fp
  209. end
  210.  
  211. function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  212. local fp = it("Part")
  213. fp.formFactor = formfactor
  214. fp.Parent = parent
  215. fp.Reflectance = reflectance
  216. fp.Transparency = transparency
  217. fp.CanCollide = false
  218. fp.Locked=true
  219. fp.BrickColor = brickcolor
  220. fp.Name = name
  221. fp.Size = size
  222. fp.Position = EffectPart.Position
  223. NoOutline(fp)
  224. fp.Material="Neon"
  225. fp:BreakJoints()
  226. return fp
  227. end
  228.  
  229. function wweld(parent,part0,part1,c0)
  230. local weld=it("Weld")
  231. weld.Parent=parent
  232. weld.Part0=part0
  233. weld.Part1=part1
  234. weld.C0=c0
  235. return weld
  236. end
  237.  
  238. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  239. local mesh=it(Mesh)
  240. mesh.Parent=part
  241. if Mesh=="SpecialMesh" then
  242. mesh.MeshType=meshtype
  243. mesh.MeshId=meshid
  244. end
  245. mesh.Offset=offset
  246. mesh.Scale=scale
  247. return mesh
  248. end
  249.  
  250. function decal(part,face,texture,transparency,shiny,specular,name)
  251. local d=it("Decal",part)
  252. d.Shiny=shiny
  253. d.Face=face
  254. d.Specular=specular
  255. d.Transparency=transparency
  256. d.Texture=texture
  257. d.Name=name
  258. return d
  259. end
  260.  
  261. function weld(parent,part0,part1,c0,c1)
  262. local weld=it("Weld")
  263. weld.Parent=parent
  264. weld.Part0=part0
  265. weld.Part1=part1
  266. weld.C0=c0
  267. weld.C1=c1
  268. return weld
  269. end
  270.  
  271.  
  272. local function CFrameFromTopBack(at, top, back)
  273. local right = top:Cross(back)
  274. return CFrame.new(at.x, at.y, at.z,
  275. right.x, top.x, back.x,
  276. right.y, top.y, back.y,
  277. right.z, top.z, back.z)
  278. end
  279.  
  280. function Triangle(a, b, c)
  281. local edg1 = (c-a):Dot((b-a).unit)
  282. local edg2 = (a-b):Dot((c-b).unit)
  283. local edg3 = (b-c):Dot((a-c).unit)
  284. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  285. a, b, c = a, b, c
  286. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  287. a, b, c = b, c, a
  288. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  289. a, b, c = c, a, b
  290. else
  291. assert(false, "unreachable")
  292. end
  293.  
  294. local len1 = (c-a):Dot((b-a).unit)
  295. local len2 = (b-a).magnitude - len1
  296. local width = (a + (b-a).unit*len1 - c).magnitude
  297.  
  298. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  299.  
  300. local list = {}
  301.  
  302. local TrailColor = ("Institutional white")
  303.  
  304. if len1 > 0.01 then
  305. local w1 = Instance.new('WedgePart', m)
  306. game:GetService("Debris"):AddItem(w1,5)
  307. w1.Material = "Neon"
  308. w1.FormFactor = 'Custom'
  309. w1.BrickColor = BrickColor.new(TrailColor)
  310. w1.Transparency = 0
  311. w1.Reflectance = 0
  312. w1.Material = "Neon"
  313. w1.CanCollide = false
  314. NoOutline(w1)
  315. local sz = Vector3.new(0.2, width, len1)
  316. w1.Size = sz
  317. local sp = Instance.new("SpecialMesh",w1)
  318. sp.MeshType = "Wedge"
  319. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  320. w1:BreakJoints()
  321. w1.Anchored = true
  322. w1.Parent = workspace
  323. w1.Transparency = 0.7
  324. table.insert(Effects,{w1,"Disappear",.01})
  325. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  326. table.insert(list,w1)
  327. end
  328.  
  329. if len2 > 0.01 then
  330. local w2 = Instance.new('WedgePart', m)
  331. game:GetService("Debris"):AddItem(w2,5)
  332. w2.Material = "Neon"
  333. w2.FormFactor = 'Custom'
  334. w2.BrickColor = BrickColor.new(TrailColor)
  335. w2.Transparency = 0
  336. w2.Reflectance = 0
  337. w2.Material = "Neon"
  338. w2.CanCollide = false
  339. NoOutline(w2)
  340. local sz = Vector3.new(0.2, width, len2)
  341. w2.Size = sz
  342. local sp = Instance.new("SpecialMesh",w2)
  343. sp.MeshType = "Wedge"
  344. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  345. w2:BreakJoints()
  346. w2.Anchored = true
  347. w2.Parent = workspace
  348. w2.Transparency = 0.7
  349. table.insert(Effects,{w2,"Disappear",.01})
  350. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  351. table.insert(list,w2)
  352. end
  353. return unpack(list)
  354. end
  355.  
  356.  
  357. so = function(id,par,vol,pit)
  358. coroutine.resume(coroutine.create(function()
  359. local sou = Instance.new("Sound",par or workspace)
  360. sou.Volume=vol
  361. sou.Pitch=pit or 1
  362. sou.SoundId=id
  363. swait()
  364. sou:play()
  365. game:GetService("Debris"):AddItem(sou,6)
  366. end))
  367. end
  368.  
  369. function clerp(a,b,t)
  370. local qa = {QuaternionFromCFrame(a)}
  371. local qb = {QuaternionFromCFrame(b)}
  372. local ax, ay, az = a.x, a.y, a.z
  373. local bx, by, bz = b.x, b.y, b.z
  374. local _t = 1-t
  375. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  376. end
  377.  
  378. function QuaternionFromCFrame(cf)
  379. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  380. local trace = m00 + m11 + m22
  381. if trace > 0 then
  382. local s = math.sqrt(1 + trace)
  383. local recip = 0.5/s
  384. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  385. else
  386. local i = 0
  387. if m11 > m00 then
  388. i = 1
  389. end
  390. if m22 > (i == 0 and m00 or m11) then
  391. i = 2
  392. end
  393. if i == 0 then
  394. local s = math.sqrt(m00-m11-m22+1)
  395. local recip = 0.5/s
  396. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  397. elseif i == 1 then
  398. local s = math.sqrt(m11-m22-m00+1)
  399. local recip = 0.5/s
  400. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  401. elseif i == 2 then
  402. local s = math.sqrt(m22-m00-m11+1)
  403. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  404. end
  405. end
  406. end
  407.  
  408. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  409. local xs, ys, zs = x + x, y + y, z + z
  410. local wx, wy, wz = w*xs, w*ys, w*zs
  411. local xx = x*xs
  412. local xy = x*ys
  413. local xz = x*zs
  414. local yy = y*ys
  415. local yz = y*zs
  416. local zz = z*zs
  417. 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))
  418. end
  419.  
  420. function QuaternionSlerp(a, b, t)
  421. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  422. local startInterp, finishInterp;
  423. if cosTheta >= 0.0001 then
  424. if (1 - cosTheta) > 0.0001 then
  425. local theta = math.acos(cosTheta)
  426. local invSinTheta = 1/math.sin(theta)
  427. startInterp = math.sin((1-t)*theta)*invSinTheta
  428. finishInterp = math.sin(t*theta)*invSinTheta
  429. else
  430. startInterp = 1-t
  431. finishInterp = t
  432. end
  433. else
  434. if (1+cosTheta) > 0.0001 then
  435. local theta = math.acos(-cosTheta)
  436. local invSinTheta = 1/math.sin(theta)
  437. startInterp = math.sin((t-1)*theta)*invSinTheta
  438. finishInterp = math.sin(t*theta)*invSinTheta
  439. else
  440. startInterp = t-1
  441. finishInterp = t
  442. end
  443. end
  444. 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
  445. end
  446.  
  447. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  448. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  449. end
  450.  
  451. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  452. if hit.Parent==nil then
  453. return
  454. end
  455. local h=hit.Parent:FindFirstChild("Humanoid")
  456. for _,v in pairs(hit.Parent:children()) do
  457. if v:IsA("Humanoid") then
  458. h=v
  459. end
  460. end
  461. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  462. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  463. end
  464. if hit.Parent.className=="Hat" then
  465. hit=hit.Parent.Parent:findFirstChild("Head")
  466. end
  467. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  468. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  469. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  470. return
  471. end]]
  472. -- hs(hit,1.2)
  473. local c=Instance.new("ObjectValue")
  474. c.Name="creator"
  475. c.Value= owner
  476. c.Parent=h
  477. game:GetService("Debris"):AddItem(c,.5)
  478. local Damage=math.rad(minim,maxim)
  479. -- h:TakeDamage(Damage)
  480. local blocked=false
  481. local block=hit.Parent:findFirstChild("Block")
  482. if block~=nil then
  483. print(block.className)
  484. if block.className=="NumberValue" then
  485. if block.Value>0 then
  486. blocked=true
  487. if decreaseblock==nil then
  488. block.Value=block.Value-1
  489. end
  490. end
  491. end
  492. if block.className=="IntValue" then
  493. if block.Value>0 then
  494. blocked=true
  495. if decreaseblock~=nil then
  496. block.Value=block.Value-1
  497. end
  498. end
  499. end
  500. end
  501. if blocked==false then
  502. -- h:TakeDamage(Damage)
  503. h.Health=h.Health-Damage
  504. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  505. else
  506. h.Health=h.Health-(Damage/2)
  507. 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)
  508. end
  509. if Type=="Knockdown" then
  510. local hum=hit.Parent.Humanoid
  511. hum.PlatformStand=true
  512. coroutine.resume(coroutine.create(function(HHumanoid)
  513. swait(1)
  514. HHumanoid.PlatformStand=false
  515. end),hum)
  516. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  517. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  518. local bodvol=Instance.new("BodyVelocity")
  519. bodvol.velocity=angle*knockback
  520. bodvol.P=5000
  521. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  522. bodvol.Parent=hit
  523. local rl=Instance.new("BodyAngularVelocity")
  524. rl.P=3000
  525. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  526. rl.angularvelocity=Vector3.new(math.rad(-10,10),math.rad(-10,10),math.rad(-10,10))
  527. rl.Parent=hit
  528. game:GetService("Debris"):AddItem(bodvol,.5)
  529. game:GetService("Debris"):AddItem(rl,.5)
  530. elseif Type=="Normal" then
  531. local vp=Instance.new("BodyVelocity")
  532. vp.P=500
  533. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  534. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  535. if KnockbackType==1 then
  536. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  537. elseif KnockbackType==2 then
  538. vp.velocity=Property.CFrame.lookVector*knockback
  539. end
  540. if knockback>0 then
  541. vp.Parent=hit.Parent.Torso
  542. end
  543. game:GetService("Debris"):AddItem(vp,.5)
  544. elseif Type=="Up" then
  545. local bodyVelocity=Instance.new("BodyVelocity")
  546. bodyVelocity.velocity=vt(0,60,0)
  547. bodyVelocity.P=5000
  548. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  549. bodyVelocity.Parent=hit
  550. game:GetService("Debris"):AddItem(bodyVelocity,1)
  551. local rl=Instance.new("BodyAngularVelocity")
  552. rl.P=3000
  553. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  554. rl.angularvelocity=Vector3.new(math.rad(-30,30),math.rad(-30,30),math.rad(-30,30))
  555. rl.Parent=hit
  556. game:GetService("Debris"):AddItem(rl,.5)
  557. elseif Type=="Snare" then
  558. local bp=Instance.new("BodyPosition")
  559. bp.P=2000
  560. bp.D=100
  561. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  562. bp.position=hit.Parent.Torso.Position
  563. bp.Parent=hit.Parent.Torso
  564. game:GetService("Debris"):AddItem(bp,1)
  565. elseif Type=="Target" then
  566. local Targetting = false
  567. if Targetting==false then
  568. ZTarget=hit.Parent.Torso
  569. coroutine.resume(coroutine.create(function(Part)
  570. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  571. swait(5)
  572. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  573. end),ZTarget)
  574. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  575. local targetgui=Instance.new("BillboardGui")
  576. targetgui.Parent=ZTarget
  577. targetgui.Size=UDim2.new(10,100,10,100)
  578. local targ=Instance.new("ImageLabel")
  579. targ.Parent=targetgui
  580. targ.BackgroundTransparency=1
  581. targ.Image="rbxassetid://4834067"
  582. targ.Size=UDim2.new(1,0,1,0)
  583. cam.CameraType="Scriptable"
  584. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  585. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  586. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  587. Targetting=true
  588. RocketTarget=ZTarget
  589. for i=1,Property do
  590. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  591. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  592. swait()
  593. end
  594. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  595. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  596. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  597. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  598. end
  599. Targetting=false
  600. RocketTarget=nil
  601. targetgui.Parent=nil
  602. cam.CameraType="Custom"
  603. end
  604. end
  605. local debounce=Instance.new("BoolValue")
  606. debounce.Name="DebounceHit"
  607. debounce.Parent=hit.Parent
  608. debounce.Value=true
  609. game:GetService("Debris"):AddItem(debounce,Delay)
  610. c=Instance.new("ObjectValue")
  611. c.Name="creator"
  612. c.Value=Player
  613. c.Parent=h
  614. game:GetService("Debris"):AddItem(c,.5)
  615. end
  616. end
  617.  
  618.  
  619. function ShowDamage(Pos, Text, Time, Color)
  620. local Rate = (1 / 30)
  621. local Pos = (Pos or Vector3.new(0, 0, 0))
  622. local Text = (Text or "")
  623. local Time = (Time or 2)
  624. local Color = (Color or Color3.new(1, 0, 0))
  625. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  626. EffectPart.Anchored = true
  627. local BillboardGui = Instance.new("BillboardGui")
  628. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  629. BillboardGui.Adornee = EffectPart
  630. local TextLabel = Instance.new("TextLabel")
  631. TextLabel.BackgroundTransparency = 1
  632. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  633. TextLabel.Text = Text
  634. TextLabel.TextColor3 = Color
  635. TextLabel.TextScaled = true
  636. TextLabel.Font = Enum.Font.ArialBold
  637. TextLabel.Parent = BillboardGui
  638. BillboardGui.Parent = EffectPart
  639. game.Debris:AddItem(EffectPart, (Time + 0.1))
  640. EffectPart.Parent = game:GetService("Workspace")
  641. Delay(0, function()
  642. local Frames = (Time / Rate)
  643. for Frame = 1, Frames do
  644. wait(Rate)
  645. local Percent = (Frame / Frames)
  646. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  647. TextLabel.TextTransparency = Percent
  648. end
  649. if EffectPart and EffectPart.Parent then
  650. EffectPart:Destroy()
  651. end
  652. end)
  653. end
  654.  
  655. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  656. local fp=it("Part")
  657. fp.formFactor=formfactor
  658. fp.Parent=parent
  659. fp.Reflectance=reflectance
  660. fp.Transparency=transparency
  661. fp.CanCollide=false
  662. fp.Locked=true
  663. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  664. fp.Name=name
  665. fp.Size=size
  666. fp.Position=Character.Torso.Position
  667. nooutline(fp)
  668. fp.Material=material
  669. fp:BreakJoints()
  670. return fp
  671. end
  672.  
  673. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  674. local mesh=it(Mesh)
  675. mesh.Parent=part
  676. if Mesh=="SpecialMesh" then
  677. mesh.MeshType=meshtype
  678. mesh.MeshId=meshid
  679. end
  680. mesh.Offset=offset
  681. mesh.Scale=scale
  682. return mesh
  683. end
  684.  
  685. function weld(parent,part0,part1,c0,c1)
  686. local weld=it("Weld")
  687. weld.Parent=parent
  688. weld.Part0=part0
  689. weld.Part1=part1
  690. weld.C0=c0
  691. weld.C1=c1
  692. return weld
  693. end
  694.  
  695. -----Asriel {R} Arm-----
  696. p=Instance.new('Part',Character)
  697. p.BrickColor=BrickColor.new('Institutional white')
  698. p.Material=("Neon")
  699. p.Name="P1"
  700. p.Size=Vector3.new(1.2,2.2,1.2)
  701. w=Instance.new('Weld',Character.P1)
  702. w.Part0=Character.P1
  703. w.Part1=RightArm
  704. ------------------------------
  705. p=Instance.new('Part',Character)
  706. p.BrickColor=BrickColor.new('Really black')
  707. p.Material=("Neon")
  708. p.Name="P2"
  709. p.Size=Vector3.new(1.3, 0.2, 1.3)
  710. w=Instance.new('Weld',Character.P2)
  711. w.Part0=Character.P2
  712. w.Part1=RightArm
  713. w.C0=CFrame.new(0,0.8,0)
  714. ------------------------------
  715. p=Instance.new('Part',Character)
  716. p.BrickColor=BrickColor.new('Really black')
  717. p.Material=("Neon")
  718. p.Name="Diamond1"
  719. p.Size=Vector3.new(1.3, 0.2, 1.3)
  720. m=Instance.new('SpecialMesh',Character.Diamond1)
  721. m.MeshId="http://www.roblox.com/asset/?id=9756362"
  722. m.Scale=Vector3.new(1.3, 1.4, 1.3)
  723. w=Instance.new('Weld',Character.Diamond1)
  724. w.Part0=Character.Diamond1
  725. w.Part1=RightArm
  726. w.C0=CFrame.new(0,0,0)
  727. ----------------------------------
  728. p=Instance.new('Part',Character)
  729. p.BrickColor=BrickColor.new('Really black')
  730. p.Material=("Neon")
  731. p.Name="P3"
  732. p.Size=Vector3.new(1.3, 0.2, 1.3)
  733. w=Instance.new('Weld',Character.P3)
  734. w.Part0=Character.P3
  735. w.Part1=RightArm
  736. w.C0=CFrame.new(0,0.4,0)
  737. ------------------------------------------
  738. p=Instance.new('Part',Character)
  739. p.BrickColor=BrickColor.new('Really black')
  740. p.Material=("Neon")
  741. p.Name="P5"
  742. p.Size=Vector3.new(1.3, 0.2, 1.3)
  743. w=Instance.new('Weld',Character.P5)
  744. w.Part0=Character.P5
  745. w.Part1=RightArm
  746. w.C0=CFrame.new(0,-0.8,0)
  747. -----------------------------------------------------
  748. p=Instance.new('Part',Character)
  749. p.BrickColor=BrickColor.new('Really black')
  750. p.Material=("Neon")
  751. p.Name="P4"
  752. p.Size=Vector3.new(1.3, 0.2, 1.3)
  753. w=Instance.new('Weld',Character.P4)
  754. w.Part0=Character.P4
  755. w.Part1=RightArm
  756. w.C0=CFrame.new(0,-0.4,0)
  757. -----Left Asriel {R} Arm Two----------------------
  758. p=Instance.new('Part',Character)
  759. p.BrickColor=BrickColor.new('Institutional white')
  760. p.Material=("Neon")
  761. p.Name="P6"
  762. p.Size=Vector3.new(1.2,2.2,1.2)
  763. w=Instance.new('Weld',Character.P6)
  764. w.Part0=Character.P6
  765. w.Part1=LeftArm
  766. ------------------------------
  767. p=Instance.new('Part',Character)
  768. p.BrickColor=BrickColor.new('Really black')
  769. p.Material=("Neon")
  770. p.Name="P7"
  771. p.Size=Vector3.new(1.3, 0.2, 1.3)
  772. w=Instance.new('Weld',Character.P7)
  773. w.Part0=Character.P7
  774. w.Part1=LeftArm
  775. w.C0=CFrame.new(0,0.8,0)
  776. ------------------------------
  777. p=Instance.new('Part',Character)
  778. p.BrickColor=BrickColor.new('Really black')
  779. p.Material=("Neon")
  780. p.Name="Diamond2"
  781. p.Size=Vector3.new(1.3, 0.2, 1.3)
  782. m=Instance.new('SpecialMesh',Character.Diamond2)
  783. m.MeshId="http://www.roblox.com/asset/?id=9756362"
  784. m.Scale=Vector3.new(1.3, 1.4, 1.3)
  785. w=Instance.new('Weld',Character.Diamond2)
  786. w.Part0=Character.Diamond2
  787. w.Part1=LeftArm
  788. w.C0=CFrame.new(0,0,0)
  789. ----------------------------------
  790. p=Instance.new('Part',Character)
  791. p.BrickColor=BrickColor.new('Really black')
  792. p.Material=("Neon")
  793. p.Name="P8"
  794. p.Size=Vector3.new(1.3, 0.2, 1.3)
  795. w=Instance.new('Weld',Character.P8)
  796. w.Part0=Character.P8
  797. w.Part1=LeftArm
  798. w.C0=CFrame.new(0,0.4,0)
  799. ------------------------------------------
  800. p=Instance.new('Part',Character)
  801. p.BrickColor=BrickColor.new('Really black')
  802. p.Material=("Neon")
  803. p.Name="P9"
  804. p.Size=Vector3.new(1.3, 0.2, 1.3)
  805. w=Instance.new('Weld',Character.P9)
  806. w.Part0=Character.P9
  807. w.Part1=LeftArm
  808. w.C0=CFrame.new(0,-0.8,0)
  809. -----------------------------------------------------
  810. p=Instance.new('Part',Character)
  811. p.BrickColor=BrickColor.new('Really black')
  812. p.Material=("Neon")
  813. p.Name="P10"
  814. p.Size=Vector3.new(1.3, 0.2, 1.3)
  815. w=Instance.new('Weld',Character.P10)
  816. w.Part0=Character.P10
  817. w.Part1=LeftArm
  818. w.C0=CFrame.new(0,-0.4,0)
  819. ------- Asriel {R} Leg-------
  820. p=Instance.new('Part',Character)
  821. p.BrickColor=BrickColor.new('Institutional white')
  822. p.Material=("Neon")
  823. p.Name="R1"
  824. p.Size=Vector3.new(1.2,2,1.2)
  825. w=Instance.new('Weld',Character.R1)
  826. w.Part0=Character.R1
  827. w.Part1=RightLeg
  828. ------------------------------
  829. p=Instance.new('Part',Character)
  830. p.BrickColor=BrickColor.new('Really black')
  831. p.Material=("Neon")
  832. p.Name="R2"
  833. p.Size=Vector3.new(1.3, 0.2, 1.3)
  834. w=Instance.new('Weld',Character.R2)
  835. w.Part0=Character.R2
  836. w.Part1=RightLeg
  837. w.C0=CFrame.new(0,0.7,0)
  838. ------------------------------
  839. p=Instance.new('Part',Character)
  840. p.BrickColor=BrickColor.new('Really black')
  841. p.Material=("Neon")
  842. p.Name="Diamond3"
  843. p.Size=Vector3.new(1.3, 0.2, 1.3)
  844. m=Instance.new('SpecialMesh',Character.Diamond3)
  845. m.MeshId="http://www.roblox.com/asset/?id=9756362"
  846. m.Scale=Vector3.new(1, 1, 1)
  847. w=Instance.new('Weld',Character.Diamond3)
  848. w.Part0=Character.Diamond3
  849. w.Part1=RightLeg
  850. w.C0=CFrame.new(0,0,0)
  851. ----------------------------------
  852. p=Instance.new('Part',Character)
  853. p.BrickColor=BrickColor.new('Really black')
  854. p.Material=("Neon")
  855. p.Name="Bash1"
  856. p.Size=Vector3.new(1.3, 0.2, 1.3)
  857. m=Instance.new('SpecialMesh',Character.Bash1)
  858. m.Scale=Vector3.new(5, 0, 1)
  859. w=Instance.new('Weld',Character.Bash1)
  860. w.Part0=Character.Bash1
  861. w.Part1=RightLeg
  862. w.C0=CFrame.new(0,0,0)
  863. ----------------------------------
  864. p=Instance.new('Part',Character)
  865. p.BrickColor=BrickColor.new('Really black')
  866. p.Material=("Neon")
  867. p.Name="R3"
  868. p.Size=Vector3.new(1.3, 0.2, 1.3)
  869. w=Instance.new('Weld',Character.R3)
  870. w.Part0=Character.R3
  871. w.Part1=RightLeg
  872. w.C0=CFrame.new(0,-0.7,0)
  873. ------------------------------
  874. p=Instance.new('Part',Character)
  875. p.BrickColor=BrickColor.new('Institutional white')
  876. p.Material=("Neon")
  877. p.Name="R4"
  878. p.Size=Vector3.new(1.2,2,1.2)
  879. w=Instance.new('Weld',Character.R4)
  880. w.Part0=Character.R4
  881. w.Part1=LeftLeg
  882. ------------------------------
  883. p=Instance.new('Part',Character)
  884. p.BrickColor=BrickColor.new('Really black')
  885. p.Material=("Neon")
  886. p.Name="R5"
  887. p.Size=Vector3.new(1.3, 0.2, 1.3)
  888. w=Instance.new('Weld',Character.R5)
  889. w.Part0=Character.R5
  890. w.Part1=LeftLeg
  891. w.C0=CFrame.new(0,0.7,0)
  892. ------------------------------
  893. p=Instance.new('Part',Character)
  894. p.BrickColor=BrickColor.new('Really black')
  895. p.Material=("Neon")
  896. p.Name="Diamond4"
  897. p.Size=Vector3.new(1.3, 0.2, 1.3)
  898. m=Instance.new('SpecialMesh',Character.Diamond4)
  899. m.MeshId="http://www.roblox.com/asset/?id=9756362"
  900. m.Scale=Vector3.new(1, 1, 1)
  901. w=Instance.new('Weld',Character.Diamond4)
  902. w.Part0=Character.Diamond4
  903. w.Part1=LeftLeg
  904. w.C0=CFrame.new(0,0,0)
  905. ----------------------------------
  906. p=Instance.new('Part',Character)
  907. p.BrickColor=BrickColor.new('Really black')
  908. p.Material=("Neon")
  909. p.Name="Bash2"
  910. p.Size=Vector3.new(1.3, 0.2, 1.3)
  911. m=Instance.new('SpecialMesh',Character.Bash2)
  912. m.Scale=Vector3.new(5, 0, 1)
  913. w=Instance.new('Weld',Character.Bash2)
  914. w.Part0=Character.Bash2
  915. w.Part1=LeftLeg
  916. w.C0=CFrame.new(0,0,0)
  917. ----------------------------------
  918. p=Instance.new('Part',Character)
  919. p.BrickColor=BrickColor.new('Really black')
  920. p.Material=("Neon")
  921. p.Name="R6"
  922. p.Size=Vector3.new(1.3, 0.2, 1.3)
  923. w=Instance.new('Weld',Character.R6)
  924. w.Part0=Character.R6
  925. w.Part1=LeftLeg
  926. w.C0=CFrame.new(0,-0.7,0)
  927. ------- Death {A} Ray --------
  928. p=Instance.new('Part',Character)
  929. p.Name="DeathRay"
  930. p.Size=Vector3.new(0.2, 5.22, 2.13)
  931. p.BrickColor=BrickColor.new('White')
  932. p.Transparency=1
  933. d=Instance.new('Decal',Character.DeathRay)
  934. d.Face="Left"
  935. d.Texture="http://www.roblox.com/asset/?id=340395528"
  936. d=Instance.new('Decal',Character.DeathRay)
  937. d.Face="Right"
  938. d.Texture="http://www.roblox.com/asset/?id=340395528"
  939. w=Instance.new('Weld',Character.DeathRay)
  940. w.Part0=Character.DeathRay
  941. w.Part1=LeftArm
  942. w.C0=CFrame.new(0.7,0,0)
  943. ------- Left Death {A} Ray --------
  944. p=Instance.new('Part',Character)
  945. p.Name="DeathRay2"
  946. p.Size=Vector3.new(0.2, 5.22, 2.13)
  947. p.BrickColor=BrickColor.new('White')
  948. p.Transparency=1
  949. d=Instance.new('Decal',Character.DeathRay2)
  950. d.Face="Left"
  951. d.Texture="http://www.roblox.com/asset/?id=340395528"
  952. d=Instance.new('Decal',Character.DeathRay2)
  953. d.Face="Right"
  954. d.Texture="http://www.roblox.com/asset/?id=340395528"
  955. w=Instance.new('Weld',Character.DeathRay2)
  956. w.Part0=Character.DeathRay2
  957. w.Part1=RightArm
  958. w.C0=CFrame.new(-0.7,0,0)
  959. ---Asrielovania {R} Music---
  960. s=Instance.new('Sound',Character)
  961. s.SoundId="rbxassetid://306154368"
  962. s.Volume=1
  963. s.Pitch=1
  964. s.Looped=true
  965. s:Play()
  966. -----------------------------
  967. Player= owner
  968. Character=Player.Character
  969. PlayerGui=Player.PlayerGui
  970. Backpack=Player.Backpack
  971. Torso=Character.Torso
  972. Head=Character.Head
  973. Humanoid=Character.Humanoid
  974. LeftArm=Character["Left Arm"]
  975. LeftLeg=Character["Left Leg"]
  976. RightArm=Character["Right Arm"]
  977. RightLeg=Character["Right Leg"]
  978. cam=game.Workspace.CurrentCamera
  979. LS=Torso["Left Shoulder"]
  980. LH=Torso["Left Hip"]
  981. RS=Torso["Right Shoulder"]
  982. RH=Torso["Right Hip"]
  983. Face = Head.face
  984. Neck=Torso.Neck
  985. it=Instance.new
  986. attacktype=1
  987. vt=Vector3.new
  988. cf=CFrame.new
  989. euler=CFrame.fromEulerAnglesXYZ
  990. angles=CFrame.Angles
  991. cloaked=false
  992. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  993. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  994. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  995. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  996. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  997. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  998. RootPart=Character.HumanoidRootPart
  999. RootJoint=RootPart.RootJoint
  1000. RootCF=euler(-1.57,0,3.14)
  1001. attack = false
  1002. bounce=false
  1003. cooldown=false
  1004. deeznuts=false
  1005. attackdebounce = false
  1006. deb=false
  1007. equipped=true
  1008. hand=false
  1009. MMouse=nil
  1010. combo=0
  1011. mana=0
  1012. trispeed=.2
  1013. attackmode='none'
  1014. local idle=0
  1015. local Anim="Idle"
  1016. local Effects={}
  1017. local gun=false
  1018. local shoot=false
  1019. player=nil
  1020. mana=0
  1021. cam = workspace.CurrentCamera
  1022. ZTarget = nil
  1023. RocketTarget = nil
  1024. local m = Instance.new("Model",Character)
  1025. m.Name = "WeaponModel"
  1026.  
  1027. mouse=Player:GetMouse()
  1028. --save shoulders
  1029. RSH, LSH=nil, nil
  1030. --welds
  1031. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1032. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1033. LH=Torso["Left Hip"]
  1034. RH=Torso["Right Hip"]
  1035. TorsoColor=Torso.BrickColor
  1036. function NoOutline(Part)
  1037. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1038. end
  1039. player=Player
  1040. ch=Character
  1041. RSH=ch.Torso["Right Shoulder"]
  1042. LSH=ch.Torso["Left Shoulder"]
  1043. --
  1044. RSH.Parent=nil
  1045. LSH.Parent=nil
  1046. --
  1047. RW.Name="Right Shoulder"
  1048. RW.Part0=ch.Torso
  1049. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1050. RW.C1=cf(0, 0.5, 0)
  1051. RW.Part1=ch["Right Arm"]
  1052. RW.Parent=ch.Torso
  1053. --
  1054. LW.Name="Left Shoulder"
  1055. LW.Part0=ch.Torso
  1056. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1057. LW.C1=cf(0, 0.5, 0)
  1058. LW.Part1=ch["Left Arm"]
  1059. LW.Parent=ch.Torso
  1060.  
  1061. function swait(num)
  1062. if num==0 or num==nil then
  1063. game:service'RunService'.Heartbeat:wait(0)
  1064. else
  1065. for i=0,num do
  1066. game:service'RunService'.Heartbeat:wait(0)
  1067. end
  1068. end
  1069. end
  1070.  
  1071. function nooutline(part)
  1072. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1073. end
  1074.  
  1075. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1076. local fp=it("Part")
  1077. fp.formFactor=formfactor
  1078. fp.Parent=parent
  1079. fp.Reflectance=reflectance
  1080. fp.Transparency=transparency
  1081. fp.CanCollide=false
  1082. fp.Locked=true
  1083. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1084. fp.Name=name
  1085. fp.Size=size
  1086. fp.Position=Character.Torso.Position
  1087. nooutline(fp)
  1088. fp.Material=material
  1089. fp:BreakJoints()
  1090. return fp
  1091. end
  1092.  
  1093. function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1094. local fp = it("Part")
  1095. fp.formFactor = formfactor
  1096. fp.Parent = parent
  1097. fp.Reflectance = reflectance
  1098. fp.Transparency = transparency
  1099. fp.CanCollide = false
  1100. fp.Locked=true
  1101. fp.BrickColor = brickcolor
  1102. fp.Name = name
  1103. fp.Size = size
  1104. fp.Position = EffectPart.Position
  1105. NoOutline(fp)
  1106. fp.Material="Neon"
  1107. fp:BreakJoints()
  1108. return fp
  1109. end
  1110.  
  1111. function wweld(parent,part0,part1,c0)
  1112. local weld=it("Weld")
  1113. weld.Parent=parent
  1114. weld.Part0=part0
  1115. weld.Part1=part1
  1116. weld.C0=c0
  1117. return weld
  1118. end
  1119.  
  1120. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1121. local mesh=it(Mesh)
  1122. mesh.Parent=part
  1123. if Mesh=="SpecialMesh" then
  1124. mesh.MeshType=meshtype
  1125. mesh.MeshId=meshid
  1126. end
  1127. mesh.Offset=offset
  1128. mesh.Scale=scale
  1129. return mesh
  1130. end
  1131.  
  1132. function decal(part,face,texture,transparency,shiny,specular,name)
  1133. local d=it("Decal",part)
  1134. d.Shiny=shiny
  1135. d.Face=face
  1136. d.Specular=specular
  1137. d.Transparency=transparency
  1138. d.Texture=texture
  1139. d.Name=name
  1140. return d
  1141. end
  1142.  
  1143. function weld(parent,part0,part1,c0,c1)
  1144. local weld=it("Weld")
  1145. weld.Parent=parent
  1146. weld.Part0=part0
  1147. weld.Part1=part1
  1148. weld.C0=c0
  1149. weld.C1=c1
  1150. return weld
  1151. end
  1152.  
  1153.  
  1154. local function CFrameFromTopBack(at, top, back)
  1155. local right = top:Cross(back)
  1156. return CFrame.new(at.x, at.y, at.z,
  1157. right.x, top.x, back.x,
  1158. right.y, top.y, back.y,
  1159. right.z, top.z, back.z)
  1160. end
  1161.  
  1162. function Triangle(a, b, c)
  1163. local edg1 = (c-a):Dot((b-a).unit)
  1164. local edg2 = (a-b):Dot((c-b).unit)
  1165. local edg3 = (b-c):Dot((a-c).unit)
  1166. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1167. a, b, c = a, b, c
  1168. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1169. a, b, c = b, c, a
  1170. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1171. a, b, c = c, a, b
  1172. else
  1173. assert(false, "unreachable")
  1174. end
  1175.  
  1176. local len1 = (c-a):Dot((b-a).unit)
  1177. local len2 = (b-a).magnitude - len1
  1178. local width = (a + (b-a).unit*len1 - c).magnitude
  1179.  
  1180. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1181.  
  1182. local list = {}
  1183.  
  1184. local TrailColor = ("Institutional white")
  1185.  
  1186. if len1 > 0.01 then
  1187. local w1 = Instance.new('WedgePart', m)
  1188. game:GetService("Debris"):AddItem(w1,5)
  1189. w1.Material = "Neon"
  1190. w1.FormFactor = 'Custom'
  1191. w1.BrickColor = BrickColor.new(TrailColor)
  1192. w1.Transparency = 0
  1193. w1.Reflectance = 0
  1194. w1.Material = "Neon"
  1195. w1.CanCollide = false
  1196. NoOutline(w1)
  1197. local sz = Vector3.new(0.2, width, len1)
  1198. w1.Size = sz
  1199. local sp = Instance.new("SpecialMesh",w1)
  1200. sp.MeshType = "Wedge"
  1201. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1202. w1:BreakJoints()
  1203. w1.Anchored = true
  1204. w1.Parent = workspace
  1205. w1.Transparency = 0.7
  1206. table.insert(Effects,{w1,"Disappear",.01})
  1207. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1208. table.insert(list,w1)
  1209. end
  1210.  
  1211. if len2 > 0.01 then
  1212. local w2 = Instance.new('WedgePart', m)
  1213. game:GetService("Debris"):AddItem(w2,5)
  1214. w2.Material = "Neon"
  1215. w2.FormFactor = 'Custom'
  1216. w2.BrickColor = BrickColor.new(TrailColor)
  1217. w2.Transparency = 0
  1218. w2.Reflectance = 0
  1219. w2.Material = "Neon"
  1220. w2.CanCollide = false
  1221. NoOutline(w2)
  1222. local sz = Vector3.new(0.2, width, len2)
  1223. w2.Size = sz
  1224. local sp = Instance.new("SpecialMesh",w2)
  1225. sp.MeshType = "Wedge"
  1226. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1227. w2:BreakJoints()
  1228. w2.Anchored = true
  1229. w2.Parent = workspace
  1230. w2.Transparency = 0.7
  1231. table.insert(Effects,{w2,"Disappear",.01})
  1232. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1233. table.insert(list,w2)
  1234. end
  1235. return unpack(list)
  1236. end
  1237.  
  1238.  
  1239. so = function(id,par,vol,pit)
  1240. coroutine.resume(coroutine.create(function()
  1241. local sou = Instance.new("Sound",par or workspace)
  1242. sou.Volume=vol
  1243. sou.Pitch=pit or 1
  1244. sou.SoundId=id
  1245. swait()
  1246. sou:play()
  1247. game:GetService("Debris"):AddItem(sou,6)
  1248. end))
  1249. end
  1250.  
  1251. function clerp(a,b,t)
  1252. local qa = {QuaternionFromCFrame(a)}
  1253. local qb = {QuaternionFromCFrame(b)}
  1254. local ax, ay, az = a.x, a.y, a.z
  1255. local bx, by, bz = b.x, b.y, b.z
  1256. local _t = 1-t
  1257. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1258. end
  1259.  
  1260. function QuaternionFromCFrame(cf)
  1261. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1262. local trace = m00 + m11 + m22
  1263. if trace > 0 then
  1264. local s = math.sqrt(1 + trace)
  1265. local recip = 0.5/s
  1266. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1267. else
  1268. local i = 0
  1269. if m11 > m00 then
  1270. i = 1
  1271. end
  1272. if m22 > (i == 0 and m00 or m11) then
  1273. i = 2
  1274. end
  1275. if i == 0 then
  1276. local s = math.sqrt(m00-m11-m22+1)
  1277. local recip = 0.5/s
  1278. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1279. elseif i == 1 then
  1280. local s = math.sqrt(m11-m22-m00+1)
  1281. local recip = 0.5/s
  1282. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1283. elseif i == 2 then
  1284. local s = math.sqrt(m22-m00-m11+1)
  1285. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1286. end
  1287. end
  1288. end
  1289.  
  1290. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1291. local xs, ys, zs = x + x, y + y, z + z
  1292. local wx, wy, wz = w*xs, w*ys, w*zs
  1293. local xx = x*xs
  1294. local xy = x*ys
  1295. local xz = x*zs
  1296. local yy = y*ys
  1297. local yz = y*zs
  1298. local zz = z*zs
  1299. 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))
  1300. end
  1301.  
  1302. function QuaternionSlerp(a, b, t)
  1303. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1304. local startInterp, finishInterp;
  1305. if cosTheta >= 0.0001 then
  1306. if (1 - cosTheta) > 0.0001 then
  1307. local theta = math.acos(cosTheta)
  1308. local invSinTheta = 1/math.sin(theta)
  1309. startInterp = math.sin((1-t)*theta)*invSinTheta
  1310. finishInterp = math.sin(t*theta)*invSinTheta
  1311. else
  1312. startInterp = 1-t
  1313. finishInterp = t
  1314. end
  1315. else
  1316. if (1+cosTheta) > 0.0001 then
  1317. local theta = math.acos(-cosTheta)
  1318. local invSinTheta = 1/math.sin(theta)
  1319. startInterp = math.sin((t-1)*theta)*invSinTheta
  1320. finishInterp = math.sin(t*theta)*invSinTheta
  1321. else
  1322. startInterp = t-1
  1323. finishInterp = t
  1324. end
  1325. end
  1326. 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
  1327. end
  1328.  
  1329. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1330. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1331. end
  1332.  
  1333. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1334. if hit.Parent==nil then
  1335. return
  1336. end
  1337. local h=hit.Parent:FindFirstChild("Humanoid")
  1338. for _,v in pairs(hit.Parent:children()) do
  1339. if v:IsA("Humanoid") then
  1340. h=v
  1341. end
  1342. end
  1343. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1344. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1345. end
  1346. if hit.Parent.className=="Hat" then
  1347. hit=hit.Parent.Parent:findFirstChild("Head")
  1348. end
  1349. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1350. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1351. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1352. return
  1353. end]]
  1354. -- hs(hit,1.2)
  1355. local c=Instance.new("ObjectValue")
  1356. c.Name="creator"
  1357. c.Value= owner
  1358. c.Parent=h
  1359. game:GetService("Debris"):AddItem(c,.5)
  1360. local Damage=math.random(minim,maxim)
  1361. -- h:TakeDamage(Damage)
  1362. local blocked=false
  1363. local block=hit.Parent:findFirstChild("Block")
  1364. if block~=nil then
  1365. print(block.className)
  1366. if block.className=="NumberValue" then
  1367. if block.Value>0 then
  1368. blocked=true
  1369. if decreaseblock==nil then
  1370. block.Value=block.Value-1
  1371. end
  1372. end
  1373. end
  1374. if block.className=="IntValue" then
  1375. if block.Value>0 then
  1376. blocked=true
  1377. if decreaseblock~=nil then
  1378. block.Value=block.Value-1
  1379. end
  1380. end
  1381. end
  1382. end
  1383. if blocked==false then
  1384. -- h:TakeDamage(Damage)
  1385. h.Health=h.Health-Damage
  1386. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  1387. else
  1388. h.Health=h.Health-(Damage/2)
  1389. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Institutional white").Color)
  1390. end
  1391. if Type=="Knockdown" then
  1392. local hum=hit.Parent.Humanoid
  1393. hum.PlatformStand=true
  1394. coroutine.resume(coroutine.create(function(HHumanoid)
  1395. swait(1)
  1396. HHumanoid.PlatformStand=false
  1397. end),hum)
  1398. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1399. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1400. local bodvol=Instance.new("BodyVelocity")
  1401. bodvol.velocity=angle*knockback
  1402. bodvol.P=5000
  1403. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1404. bodvol.Parent=hit
  1405. local rl=Instance.new("BodyAngularVelocity")
  1406. rl.P=3000
  1407. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1408. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1409. rl.Parent=hit
  1410. game:GetService("Debris"):AddItem(bodvol,.5)
  1411. game:GetService("Debris"):AddItem(rl,.5)
  1412. elseif Type=="Normal" then
  1413. local vp=Instance.new("BodyVelocity")
  1414. vp.P=500
  1415. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1416. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1417. if KnockbackType==1 then
  1418. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1419. elseif KnockbackType==2 then
  1420. vp.velocity=Property.CFrame.lookVector*knockback
  1421. end
  1422. if knockback>0 then
  1423. vp.Parent=hit.Parent.Torso
  1424. end
  1425. game:GetService("Debris"):AddItem(vp,.5)
  1426. elseif Type=="Up" then
  1427. local bodyVelocity=Instance.new("BodyVelocity")
  1428. bodyVelocity.velocity=vt(0,60,0)
  1429. bodyVelocity.P=5000
  1430. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1431. bodyVelocity.Parent=hit
  1432. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1433. local rl=Instance.new("BodyAngularVelocity")
  1434. rl.P=3000
  1435. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1436. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1437. rl.Parent=hit
  1438. game:GetService("Debris"):AddItem(rl,.5)
  1439. elseif Type=="Snare" then
  1440. local bp=Instance.new("BodyPosition")
  1441. bp.P=2000
  1442. bp.D=100
  1443. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1444. bp.position=hit.Parent.Torso.Position
  1445. bp.Parent=hit.Parent.Torso
  1446. game:GetService("Debris"):AddItem(bp,1)
  1447. elseif Type=="Target" then
  1448. local Targetting = false
  1449. if Targetting==false then
  1450. ZTarget=hit.Parent.Torso
  1451. coroutine.resume(coroutine.create(function(Part)
  1452. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1453. swait(5)
  1454. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1455. end),ZTarget)
  1456. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1457. local targetgui=Instance.new("BillboardGui")
  1458. targetgui.Parent=ZTarget
  1459. targetgui.Size=UDim2.new(10,100,10,100)
  1460. local targ=Instance.new("ImageLabel")
  1461. targ.Parent=targetgui
  1462. targ.BackgroundTransparency=1
  1463. targ.Image="rbxassetid://4834067"
  1464. targ.Size=UDim2.new(1,0,1,0)
  1465. cam.CameraType="Scriptable"
  1466. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1467. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1468. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1469. Targetting=true
  1470. RocketTarget=ZTarget
  1471. for i=1,Property do
  1472. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1473. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1474. swait()
  1475. end
  1476. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1477. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1478. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1479. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1480. end
  1481. Targetting=false
  1482. RocketTarget=nil
  1483. targetgui.Parent=nil
  1484. cam.CameraType="Custom"
  1485. end
  1486. end
  1487. local debounce=Instance.new("BoolValue")
  1488. debounce.Name="DebounceHit"
  1489. debounce.Parent=hit.Parent
  1490. debounce.Value=true
  1491. game:GetService("Debris"):AddItem(debounce,Delay)
  1492. c=Instance.new("ObjectValue")
  1493. c.Name="creator"
  1494. c.Value=Player
  1495. c.Parent=h
  1496. game:GetService("Debris"):AddItem(c,.5)
  1497. end
  1498. end
  1499.  
  1500.  
  1501. function ShowDamage(Pos, Text, Time, Color)
  1502. local Rate = (1 / 30)
  1503. local Pos = (Pos or Vector3.new(0, 0, 0))
  1504. local Text = (Text or "")
  1505. local Time = (Time or 2)
  1506. local Color = (Color or Color3.new(1, 0, 0))
  1507. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  1508. EffectPart.Anchored = true
  1509. local BillboardGui = Instance.new("BillboardGui")
  1510. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  1511. BillboardGui.Adornee = EffectPart
  1512. local TextLabel = Instance.new("TextLabel")
  1513. TextLabel.BackgroundTransparency = 1
  1514. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  1515. TextLabel.Text = Text
  1516. TextLabel.TextColor3 = Color
  1517. TextLabel.TextScaled = true
  1518. TextLabel.Font = Enum.Font.ArialBold
  1519. TextLabel.Parent = BillboardGui
  1520. BillboardGui.Parent = EffectPart
  1521. game.Debris:AddItem(EffectPart, (Time + 0.1))
  1522. EffectPart.Parent = game:GetService("Workspace")
  1523. Delay(0, function()
  1524. local Frames = (Time / Rate)
  1525. for Frame = 1, Frames do
  1526. wait(Rate)
  1527. local Percent = (Frame / Frames)
  1528. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1529. TextLabel.TextTransparency = Percent
  1530. end
  1531. if EffectPart and EffectPart.Parent then
  1532. EffectPart:Destroy()
  1533. end
  1534. end)
  1535. end
  1536.  
  1537. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003))
  1538. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.995889783, -0.101109691, 0.0468789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
  1539. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746))
  1540. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571))
  1541. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00982296467, -0.128642559, 5.57254982, -1.21753502e-007, -2.87620594e-010, 1, -1, -1.04306673e-006, -1.2175461e-007, 1.04306673e-006, -1, -2.87123214e-010))
  1542. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  1543. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657))
  1544. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0100114346, 3.24283266, 2.64644623e-005, -2.98713599e-006, -1.63886575e-008, -1, -1.18017197e-005, -0.99999994, 1.64265153e-008, -0.99999994, 1.18017197e-005, 2.98713007e-006))
  1545. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  1546. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743))
  1547. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00896048546, 3.24313331, -6.2584877e-006, -2.62832918e-006, -1.58840017e-008, -1, -1.16825104e-005, -0.99999994, 1.59122848e-008, -0.99999994, 1.16825104e-005, 2.62831986e-006))
  1548. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  1549. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723))
  1550. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0080575943, -5.57459974, 0.127099097, -7.20826961e-007, -1.18548371e-009, 1, 6.25863322e-007, 1, 1.18891563e-009, -1, 6.25863322e-007, -7.20827984e-007))
  1551. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  1552. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715))
  1553. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00858414173, -5.58866072, 0.142816901, -5.41048905e-007, -8.99582631e-010, 1, -5.96046448e-007, 0.99999994, 9.00953978e-010, -0.99999994, -5.96046448e-007, -5.41057148e-007))
  1554. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  1555. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057))
  1556. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.011053443, -0.142930448, 5.58944941, 2.97432763e-007, 3.64387631e-010, 1, -1, 6.25863322e-007, 2.9743137e-007, -6.25863322e-007, -1, 3.63804986e-010))
  1557. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  1558. Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(1, 1.20000005, 1))
  1559. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.57627869e-007, -0.809324801, 1.96695328e-006, 6.20105922e-008, 2.27451835e-010, -1, 1.81795622e-006, 1, 2.27856845e-010, 1, -1.81795622e-006, 6.2011928e-008))
  1560. mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298))
  1561. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  1562. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00226664543, 0.69951874, 1.00827909, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
  1563. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  1564. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  1565. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487548, -0.00217807293, 3.74913216e-005, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
  1566. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1))
  1567. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  1568. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487882, -0.00217807293, 4.00543213e-005, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
  1569. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002))
  1570. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601))
  1571. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00595891476, -1.00750566, 1.00747085, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
  1572. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  1573. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  1574. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00534570217, -1.00757694, -0.698815584, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
  1575. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  1576. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601))
  1577. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000260472298, 0.6988675, -0.698937058, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
  1578. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  1579. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  1580. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00927072763, -0.0121991634, 1.19311547, 0.999999881, -2.08614802e-006, 1.9306286e-007, -1.93059051e-007, -1.09411957e-007, 1, -2.08616257e-006, -0.999999881, -1.09408283e-007))
  1581. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1582. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  1583. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604586363, -0.0121991634, 1.02863288, 0.866026282, 0.499998033, 2.28958157e-007, -1.93872992e-007, -1.22099237e-007, 1, 0.499998033, -0.866026282, -8.79730777e-009))
  1584. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1585. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  1586. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.03790355, -0.0121991634, 0.588528812, 0.500001669, 0.866024196, 1.74744486e-007, -1.6279435e-007, -1.0777579e-007, 1, 0.866024196, -0.500001669, 8.71042545e-008))
  1587. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1588. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003))
  1589. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39311564, -0.0121991634, -0.00927072763, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  1590. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1591. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003))
  1592. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.02863288, -0.0121997595, -0.604586482, -0.499998093, 0.866026223, -6.44970513e-008, -1.45620604e-007, -9.60127267e-009, 1, 0.866026223, 0.499998093, 1.30918266e-007))
  1593. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1594. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  1595. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.588528991, -0.0121992826, -1.03790355, -0.866024137, 0.500001729, -9.11133142e-008, -1.16737233e-007, -1.99774206e-008, 1, 0.500001729, 0.866024137, 7.56750538e-008))
  1596. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1597. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285))
  1598. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00338602066, -0.736121356, -0.540583551, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
  1599. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364))
  1600. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285))
  1601. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00803625584, -0.737174749, 0.736498654, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
  1602. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408))
  1603. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  1604. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00594449043, 0.540397167, 0.737201214, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
  1605. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408))
  1606. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  1607. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00681877136, 0.540436149, -0.541088939, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
  1608. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364))
  1609. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  1610. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910848916, -0.00147974491, 0.000465214252, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
  1611. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057))
  1612. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  1613. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910846829, -0.00147974491, 0.000467300415, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
  1614. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268))
  1615. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1616. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.98755074e-005, -0.86527884, -0.00526940823, 0.99999994, -3.33786011e-006, -1.61662047e-006, 3.33786011e-006, 0.99999994, -1.75251103e-009, 1.61662604e-006, 1.74897963e-009, 1))
  1617. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746))
  1618. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
  1619. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0107657909, -3.95914412, 0.00325751305, 0.999999821, -0.000211339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
  1620. EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1621. 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))
  1622. mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1623. EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1624. 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))
  1625.  
  1626. DarkRiftF=function(par)
  1627. while lol == true do
  1628. wait()
  1629. local PWN={}
  1630. for _,v in pairs(game.Workspace:children()) do
  1631. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  1632. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  1633. table.insert(PWN,v.Torso)
  1634. end
  1635. end
  1636. end
  1637. for _,t in pairs(PWN) do
  1638. local targ=par.Position-t.Position
  1639. local Mag=targ.magnitude
  1640. if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
  1641. if Mag<=30 then
  1642. t.Parent.Humanoid:TakeDamage(.5)
  1643. local rl=Instance.new("BodyAngularVelocity")
  1644. rl.P=3000
  1645. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  1646. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  1647. rl.Parent=t
  1648. game:GetService("Debris"):AddItem(rl,.1)
  1649. end
  1650. if Mag<=20 then
  1651. t.Parent.Humanoid:TakeDamage(.1)
  1652. else
  1653. local vl=Instance.new("BodyVelocity")
  1654. vl.P=3000
  1655. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  1656. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  1657. vl.Parent=t
  1658. game:GetService("Debris"):AddItem(vl,.1)
  1659. end
  1660. end
  1661. end
  1662. wait(.08)
  1663. end
  1664. end
  1665.  
  1666. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  1667. local msh1 = Instance.new("BlockMesh")
  1668. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1669. local S=Instance.new("Part")
  1670. S.Name="Effect"
  1671. S.Material="Neon"
  1672. S.formFactor=0
  1673. S.Size=Vector3.new(x1,y1,z1)
  1674. S.BrickColor=color
  1675. S.Reflectance = 0
  1676. S.TopSurface=0
  1677. S.BottomSurface=0
  1678. S.Transparency=0
  1679. S.Anchored=false
  1680. S.CanCollide=false
  1681. S.CFrame=part.CFrame
  1682. S.Parent=game.Workspace
  1683. msh1.Parent = S
  1684. local W=Instance.new("Weld")
  1685. W.Parent=S
  1686. W.Part0=S
  1687. W.Part1=part
  1688. W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1689. W.Parent=nil
  1690. S.Anchored=true
  1691. 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)
  1692. end
  1693.  
  1694. local function BlackHole(parent,cframe)
  1695. local effectsmsh = Instance.new("SpecialMesh")
  1696. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1697. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  1698. effectsmsh.Scale = Vector3.new(3,3,3)
  1699. local effectsg = Instance.new("Part")
  1700. effectsg.formFactor = 3
  1701. effectsg.CanCollide = false
  1702. effectsg.Name = "Effect"
  1703. effectsg.Locked = true
  1704. effectsg.Transparency = 1
  1705. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1706. effectsg.Parent = parent
  1707. effectsg.BrickColor = BrickColor.new("Institutional white")
  1708. effectsg.Material="Neon"
  1709. coroutine.resume(coroutine.create(function(Part,Mesh)
  1710. local Mesh = Instance.new("SpecialMesh")
  1711. Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  1712. Mesh.MeshType = "Sphere"
  1713. -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
  1714. Part=Instance.new("Part")
  1715. Part.Name="Effect"
  1716. Part.formFactor=0
  1717. Part.Size=Vector3.new(1,1,1)
  1718. Part.BrickColor=BrickColor.new("Institutional white")
  1719. Part.Material="Neon"
  1720. Part.Reflectance = 0
  1721. Part.TopSurface=0
  1722. Part.BottomSurface=0
  1723. Part.Transparency=0
  1724. Part.Anchored=true
  1725. NoOutline(Part)
  1726. Part.CanCollide=false
  1727. Part.CFrame=cframe
  1728. Part.Parent=parent
  1729. Mesh.Parent = Part
  1730. lol=true
  1731. coroutine.resume(coroutine.create(function()
  1732. DarkRiftF(Part)
  1733. end))
  1734. for i=0,200 do
  1735. wait()
  1736. DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Institutional white"))
  1737. Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
  1738. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1739. end
  1740. local fff=200
  1741. for i=0,100 do
  1742. wait()
  1743. DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Institutional white"))
  1744. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1745. end
  1746. for i=0,1,0.05 do
  1747. wait()
  1748. Part.Transparency=Part.Transparency+0.05
  1749. Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
  1750. end
  1751. lol=false
  1752. Part.Parent=nil
  1753. end),nil,nil)
  1754. end
  1755.  
  1756. function makeShockwave(height,color,speed,range,pulse)
  1757. local range = range or 2000
  1758. local p = Instance.new("Part")
  1759. p.Anchored = true
  1760. p.CanCollide = false
  1761. p.FormFactor = "Custom"
  1762. p.BrickColor = color
  1763. p.Parent = workspace
  1764. local m = Instance.new("SpecialMesh",p)
  1765. m.MeshId = "rbxassetid://3270017"
  1766. local estimateSurvival = math.floor(range/speed) * 0.03
  1767. game:GetService("Debris"):AddItem(p,estimateSurvival)
  1768. Spawn(function ()
  1769. for i = 1,range,speed do
  1770. p.Transparency = 1-math.min(0.5,3-(i/500))
  1771. m.Scale = Vector3.new(i,i,i*height)
  1772. p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
  1773. wait()
  1774. end
  1775. p:Destroy()
  1776. end)
  1777. end
  1778.  
  1779. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1780. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1781. prt.Anchored=true
  1782. prt.CFrame=cframe
  1783. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
  1784. game:GetService("Debris"):AddItem(prt,2)
  1785. coroutine.resume(coroutine.create(function(Part,Mesh)
  1786. for i=0,2,delay do
  1787. wait()
  1788. Part.CFrame=Part.CFrame
  1789. Part.Transparency=i
  1790. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1791. end
  1792. Part.Parent=nil
  1793. end),prt,msh)
  1794. end
  1795.  
  1796. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1797. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1798. prt.Anchored=true
  1799. prt.CFrame=cframe
  1800. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1801. game:GetService("Debris"):AddItem(prt,5)
  1802. coroutine.resume(coroutine.create(function(Part,Mesh)
  1803. for i=0,1,delay do
  1804. wait()
  1805. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1806. Part.Transparency=i
  1807. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1808. end
  1809. Part.Parent=nil
  1810. end),prt,msh)
  1811. end
  1812.  
  1813. local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  1814. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
  1815. if Type~=2 then
  1816. prt.Anchored=true
  1817. end
  1818. prt.CFrame=cframe
  1819. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1820. game:GetService("Debris"):AddItem(prt,5)
  1821. coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  1822. local wld=nil
  1823. if dur==2 then
  1824. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  1825. end
  1826. for i=0,1,delay do
  1827. swait()
  1828. if dur==1 then
  1829. Part.CFrame=Part.CFrame
  1830. elseif dur==2 then
  1831. wld.C0=cframe
  1832. end
  1833. Part.Transparency=i
  1834. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1835. end
  1836. Part.Parent=nil
  1837. end),prt,msh,Type)
  1838. end
  1839.  
  1840. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1841. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1842. prt.Anchored=true
  1843. prt.CFrame=cframe
  1844. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1845. game:GetService("Debris"):AddItem(prt,5)
  1846. coroutine.resume(coroutine.create(function(Part,Mesh)
  1847. for i=0,1,delay do
  1848. swait()
  1849. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1850. Part.Transparency=i
  1851. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1852. end
  1853. Part.Parent=nil
  1854. end),prt,msh)
  1855. end
  1856.  
  1857. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1858. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1859. prt.Anchored=true
  1860. prt.CFrame=cframe
  1861. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1862. game:GetService("Debris"):AddItem(prt,5)
  1863. coroutine.resume(coroutine.create(function(Part,Mesh)
  1864. for i=0,1,delay do
  1865. wait()
  1866. Part.CFrame=Part.CFrame
  1867. Part.Transparency=i
  1868. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1869. end
  1870. Part.Parent=nil
  1871. end),prt,msh)
  1872. end
  1873.  
  1874. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1875. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
  1876. prt.Anchored=true
  1877. prt.CFrame=cframe
  1878. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1879. game:GetService("Debris"):AddItem(prt,5)
  1880. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1881. end
  1882.  
  1883. function Blast(parent)
  1884. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  1885. MagicWaveThing(BrickColor.new("Institutional white"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  1886. end
  1887.  
  1888. function ChargeBall(parent,t)
  1889. local counter=0
  1890. local size=1
  1891. for i=0,t,1 do
  1892. swait()
  1893. counter=counter+1
  1894. if counter%10==0 then
  1895. if size==3 then
  1896. MagicRing(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1897. elseif size==2 then
  1898. MagicRing(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1899. end
  1900. end
  1901. if counter%5==0 then
  1902. if size==1 then
  1903. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1904. elseif size==2 then
  1905. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1906. elseif size==3 then
  1907. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1908. end
  1909. end
  1910. end
  1911. end
  1912.  
  1913. function ChargeBall2(parent,t)
  1914. local counter=0
  1915. local size=1
  1916. for i=0,t,1 do
  1917. swait()
  1918. counter=counter+1
  1919. if counter%10==0 then
  1920. if size==3 then
  1921. MagicRing(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1922. elseif size==2 then
  1923. MagicRing(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1924. end
  1925. end
  1926. if counter%5==0 then
  1927. if size==1 then
  1928. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1929. MagicWave(BrickColor.new("Institutional white"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1930. elseif size==2 then
  1931. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1932. MagicWave(BrickColor.new("Institutional white"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1933. elseif size==3 then
  1934. MagicBlock(BrickColor.new("Institutional white"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1935. MagicWave(BrickColor.new("Institutional white"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1936. end
  1937. end
  1938. end
  1939. end
  1940.  
  1941. function MagniDamage(Part,dis,mind,maxd,force,knock)
  1942. for _,c in pairs(workspace:children()) do
  1943. local hum=c:findFirstChild("Humanoid")
  1944. if hum~=nil then
  1945. local head=c:findFirstChild("Torso")
  1946. if head~=nil then
  1947. local targ=head.Position-Part.Position
  1948. local mag=targ.magnitude
  1949. if mag<=dis and c.Name~=Character.Name then
  1950. Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
  1951. end
  1952. end
  1953. end
  1954. end
  1955. end
  1956.  
  1957. function computeDirection(vec)
  1958. local lenSquared = vec.magnitude * vec.magnitude
  1959. local invSqrt = 1 / math.sqrt(lenSquared)
  1960. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  1961. end
  1962.  
  1963. function attackone()
  1964. attack = true
  1965. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1966. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end)
  1967. local fx=Hitbox.Touched:connect(function(part)
  1968. local human=part.Parent:findFirstChild("Humanoid")
  1969. if human~=nil and bounce==false then
  1970. bounce=true
  1971. local rndm=math.random(1,#hitsounds)
  1972. local r=rndm
  1973. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1974. end
  1975. end)
  1976. for i = 0,1,0.1 do
  1977. swait()
  1978. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
  1979. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1980. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
  1981. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
  1982. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
  1983. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  1984. end
  1985. so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
  1986. for i = 0,1,0.1 do
  1987. swait()
  1988. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1989. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1990. local h = 5
  1991. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1992. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1993. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1994. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1995. scfr = blcf
  1996. elseif not scfr then
  1997. scfr = blcf
  1998. end
  1999. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
  2000. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
  2001. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  2002. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  2003. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
  2004. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
  2005. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  2006. end
  2007. attack = false
  2008. bounce=false
  2009. scfr=nil
  2010. fx:disconnect()
  2011. con:disconnect()
  2012. end
  2013.  
  2014. function attacktwo()
  2015. attack=true
  2016. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  2017. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end)
  2018. local fx=Hitbox.Touched:connect(function(part)
  2019. local human=part.Parent:findFirstChild("Humanoid")
  2020. if human~=nil and bounce==false then
  2021. bounce=true
  2022. local rndm=math.random(1,#hitsounds)
  2023. local r=rndm
  2024. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  2025. end
  2026. end)
  2027. for i=0,1,.1 do
  2028. swait()
  2029. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  2030. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  2031. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  2032. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  2033. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  2034. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  2035. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  2036. end
  2037. so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
  2038. for i = 0,1,0.1 do
  2039. swait()
  2040. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  2041. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  2042. local h = 5
  2043. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2044. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2045. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2046. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2047. scfr = blcf
  2048. elseif not scfr then
  2049. scfr = blcf
  2050. end
  2051. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  2052. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  2053. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  2054. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  2055. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  2056. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  2057. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2058. end
  2059. scfr=nil
  2060. attack=false
  2061. bounce=false
  2062. con:disconnect()
  2063. fx:disconnect()
  2064. end
  2065.  
  2066. function attackthree()
  2067. attack=true
  2068. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  2069. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,6222,152222,math.random(5,5),"Normal",RootPart,.2,1) end)
  2070. local fx=Hitbox.Touched:connect(function(part)
  2071. local human=part.Parent:findFirstChild("Humanoid")
  2072. if human~=nil and bounce==false then
  2073. bounce=true
  2074. local rndm=math.random(1,#hitsounds)
  2075. local r=rndm
  2076. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  2077. end
  2078. end)
  2079. for i=0,1,.1 do
  2080. swait()
  2081. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4)
  2082. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  2083. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
  2084. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4)
  2085. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4)
  2086. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4)
  2087. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2088. end
  2089. so("http://www.roblox.com/asset/?id=199145913",handle,1,.9)
  2090. for i = 0,1,0.1 do
  2091. swait()
  2092. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  2093. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  2094. local h = 5
  2095. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2096. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2097. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2098. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2099. scfr = blcf
  2100. elseif not scfr then
  2101. scfr = blcf
  2102. end
  2103. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  2104. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  2105. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4)
  2106. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
  2107. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4)
  2108. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4)
  2109. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4)
  2110. end
  2111. attack=false
  2112. bounce=false
  2113. scfr=nil
  2114. con:disconnect()
  2115. fx:disconnect()
  2116. end
  2117.  
  2118. function attackfour()
  2119. attack = true
  2120. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  2121. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,9222,18222,math.random(20,30),"Normal",RootPart,.2,1) end)
  2122. local fx=Hitbox.Touched:connect(function(part)
  2123. local human=part.Parent:findFirstChild("Humanoid")
  2124. if human~=nil and bounce==false then
  2125. bounce=true
  2126. local rndm=math.random(1,#hitsounds)
  2127. local r=rndm
  2128. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  2129. end
  2130. end)
  2131. for i = 0,1,0.1 do
  2132. swait()
  2133. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.3)
  2134. Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.3)
  2135. RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.3)
  2136. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3)
  2137. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.3)
  2138. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.3)
  2139. handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.3)
  2140. end
  2141. so("http://www.roblox.com/asset/?id=199145433",Hitbox,1,1.1)
  2142. local v=it("BodyVelocity",Torso)
  2143. v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1
  2144. v.velocity=RootPart.CFrame.lookVector*50
  2145. for i = 0,1,0.1 do
  2146. swait()
  2147. local blcf = Hitbox.CFrame*cf(0,0,0)
  2148. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  2149. local h = 5
  2150. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2151. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2152. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2153. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2154. scfr = blcf
  2155. elseif not scfr then
  2156. scfr = blcf
  2157. end
  2158. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.3)
  2159. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  2160. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.3)
  2161. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.3)
  2162. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2163. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2164. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.3)
  2165. end
  2166. v.Parent=nil
  2167. scfr=nil
  2168. attack = false
  2169. bounce=false
  2170. con:disconnect()
  2171. fx:disconnect()
  2172. end
  2173.  
  2174. function LustrisFulgo()
  2175. attack=true
  2176. Humanoid.WalkSpeed=0
  2177. for i=0,1,0.1 do
  2178. swait()
  2179. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-15),math.rad(0),math.rad(10)),.3)
  2180. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(-10)),.3)
  2181. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(7)), 0.3)
  2182. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(4), math.rad(-15)), 0.3)
  2183. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-15),math.rad(90),math.rad(0)),.3)
  2184. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-25),math.rad(-90),math.rad(0)),.3)
  2185. handleweld.C0=clerp(handleweld.C0,cf(0,0,-.5)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  2186. end
  2187. local function boom()
  2188. local pprt=ppart(3,game.Workspace,0,1,BrickColor.new("Institutional white"),"Effect",vt(1,1,1))
  2189. pprt.Anchored=true
  2190. pprt.CFrame=EffectPart.CFrame
  2191. game:GetService("Debris"):AddItem(pprt,2)
  2192. MagicCircle(BrickColor.new("Institutional white"),EffectPart.CFrame,20,20,20,-0.01,-0.01,-0.01,0.01)
  2193. so("http://roblox.com/asset/?id=228343412",EffectPart,1,0.6)
  2194. so("http://roblox.com/asset/?id=228343408",EffectPart,1,1.4)
  2195. local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Institutional white"),"Effect",vt(1,1,1))
  2196. local waveweld=weld(game.Workspace,handle,wave,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))
  2197. local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
  2198. MagniDamage(wave,20,15222,25222,math.random(20,30),"Knockdown",RootPart)
  2199. for i=0,80 do
  2200. swait()
  2201. MagicBlock(BrickColor.new("Institutional white"),EffectPart.CFrame,7,7,7,-0.5,-0.5,-0.5,0.05)
  2202. MagicCircle(BrickColor.new("Institutional white"),EffectPart.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,5,0),0.5,1,0.5,0.02,1,0.02,0.05)
  2203. wave.Size=vt(1+i,1+i,1+i)
  2204. wavemesh.Scale=vt(1+i,1+i,1+i)
  2205. wave.CFrame=EffectPart.CFrame
  2206. Humanoid.Health=Humanoid.Health+.15
  2207. end
  2208. wave:Destroy()
  2209. end
  2210. boom()
  2211. attack=false
  2212. Humanoid.WalkSpeed=16
  2213. end
  2214.  
  2215. function LeviterGlomus()
  2216. attack=true
  2217. for i=0,1,.1 do
  2218. swait()
  2219. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  2220. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  2221. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
  2222. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
  2223. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-3),math.rad(65),math.rad(0)),.3)
  2224. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(-25),math.rad(-110),math.rad(0))*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  2225. handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(-35),math.rad(-15),math.rad(0)),.3)
  2226. end
  2227. so("http://www.roblox.com/asset/?id=199145659",EffectPart2,1,1)
  2228. efprt=part(Enum.FormFactor.Custom,game.Workspace,Enum.Material.Neon,0,0,"Institutional white","BallEffect",Vector3.new(2, 2, 2))
  2229. weld(m,Character["Left Arm"],efprt,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))
  2230. mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  2231. ChargeBall(EffectPart2,35)
  2232. for i=0,1,.1 do
  2233. swait()
  2234. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  2235. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  2236. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
  2237. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
  2238. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  2239. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  2240. handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(0),math.rad(-15),math.rad(0)),.3)
  2241. end
  2242. so("http://www.roblox.com/asset/?id=199145534",EffectPart2,1,1.2)
  2243. efprt:BreakJoints()
  2244. local Target=mouse.Hit.p
  2245. local direction = Target - handle.Position
  2246. direction = computeDirection(direction)
  2247. local pos = handle.Position + (direction * 10.0)
  2248. efprt.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(math.pi/2, 0, 0)
  2249. local floatForce = Instance.new("BodyForce")
  2250. floatForce.force = Vector3.new(0, efprt:GetMass() * 196.1, 0.0)
  2251. floatForce.Parent = efprt
  2252. efprt.Velocity = direction * 160
  2253. efprt.Touched:connect(function(hit)
  2254. if not hit:IsDescendantOf(Character) then
  2255. if hit.Name~="Effect" then
  2256. MagniDamage(efprt,15,12225,22225,math.random(20,30),"Knockdown",RootPart)
  2257. floatForce.Parent=nil
  2258. efprt.Anchored=true
  2259. so("http://www.roblox.com/asset/?id=228343330",hit,1,.8)
  2260. Blast(efprt)
  2261. efprt:Destroy()
  2262. end
  2263. end
  2264. end)
  2265. game:GetService("Debris"):AddItem(efprt,6)
  2266. attack=false
  2267. end
  2268.  
  2269. function PortalStorm()
  2270. Humanoid.WalkSpeed=0
  2271. attack=true
  2272. for i=0,1,.1 do
  2273. swait()
  2274. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2275. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2276. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-40)), 0.3)
  2277. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(40)), 0.3)
  2278. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(5),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2279. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2280. handleweld.C0=clerp(handleweld.C0,cf(-1,-2.3,-.4)*angles(math.rad(-165),math.rad(-15),math.rad(50)),.3)
  2281. end
  2282. so("http://www.roblox.com/asset/?id=199145446",handle,1,1)
  2283. ChargeBall2(handle,100)
  2284. makeShockwave(0.5,BrickColor.new("Institutional white"),30,1000,0)
  2285. MagicWave(BrickColor.new("Institutional white"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
  2286. so("http://www.roblox.com/asset/?id=280247455",game.Workspace,1,1)
  2287. wait(2)
  2288. so("http://www.roblox.com/asset/?id=110284742",game.Workspace,1,0)
  2289. delay(0.5,function ()
  2290. MagniDamage(Torso,2000,32225,52220,math.random(50,70),"Knockdown",RootPart)
  2291. end)
  2292. Humanoid.Health=Humanoid.Health-0
  2293. makeShockwave(4,BrickColor.new("Institutional white"),10,2000,1)
  2294. attack=false
  2295. Humanoid.WalkSpeed=9
  2296. wait(4)
  2297. Humanoid.WalkSpeed=16
  2298. end
  2299.  
  2300. function SolSiderea()
  2301. Humanoid.WalkSpeed=0
  2302. attack=true
  2303. so("http://www.roblox.com/asset/?id=280758833",Workspace,1,1.3)
  2304. for i=0,1,.1 do
  2305. swait()
  2306. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2307. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2308. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(95), math.rad(-10), math.rad(-17)), 0.3)
  2309. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(95), math.rad(10), math.rad(17)), 0.3)
  2310. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2311. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2312. handleweld.C0=clerp(handleweld.C0,cf(0,-2,-.5)*angles(math.rad(0),math.rad(7.5),math.rad(-75)),.3)
  2313. end
  2314. for i=0,1,.1 do
  2315. swait()
  2316. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2317. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  2318. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(-5), math.rad(8)), 0.3)
  2319. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(5), math.rad(-8)), 0.3)
  2320. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2321. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2322. handleweld.C0=clerp(handleweld.C0,cf(-1.1,-4,-2)*angles(math.rad(-72),math.rad(8.5),math.rad(-92)),.3)
  2323. end
  2324. coroutine.resume(coroutine.create(function() ChargeBall(EffectPart,120) end))
  2325. local n=2
  2326. local orb=ppart(3,Character,0,1,BrickColor.new("Institutional white"),"Orb",vt())
  2327. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
  2328. local owld=wweld(orb,orb,Torso,cf(-10,-150,0))
  2329. for i=1,0.3,-0.01 do
  2330. wait()
  2331. orb.Transparency=i
  2332. omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
  2333. MagicBlock(BrickColor.new("Institutional white"),orb.CFrame,15,15,15,2,2,2,0.1)
  2334. local ef=ppart(3,workspace,0,0,BrickColor.new("Institutional white"),"Effect",vt())
  2335. ef.Anchored=true
  2336. local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
  2337. local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0)
  2338. ef.CFrame=orb.CFrame*ceef
  2339. game:GetService("Debris"):AddItem(ef,2)
  2340. coroutine.resume(coroutine.create(function(Part,Mesh)
  2341. for i=0,1,0.1 do
  2342. wait()
  2343. Part.Transparency=i
  2344. Part.CFrame=Part.CFrame*cf(0,-1,0)
  2345. end
  2346. Part.Parent=nil
  2347. end),ef,emsh)
  2348. end
  2349. local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector
  2350. wait(.5)
  2351. orb.Parent=nil
  2352. wait(1)
  2353. local hit,pos = rayCast(orb.Position,Pos,1000,Character)
  2354. local mag=(orb.Position-pos).magnitude
  2355. BlackHole(game.Workspace,cf(pos))
  2356. coroutine.resume(coroutine.create(function()
  2357. local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Institutional white"),"Effect",vt(1,1,1))
  2358. wweld(game.Workspace,wave,orb,Torso.CFrame)
  2359. local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
  2360. for i=1,100 do
  2361. swait()
  2362. wave.Size=vt(1+i,1+i,1+i)
  2363. wavemesh.Scale=vt(1+i,1+i,1+i)
  2364. wave.CFrame=cf(pos)
  2365. end
  2366. end))
  2367. coroutine.resume(coroutine.create(function()
  2368. for i=0,20 do
  2369. swait(15)
  2370. local range = 1500
  2371. local p = Instance.new("Part")
  2372. p.Anchored = true
  2373. p.CanCollide = false
  2374. p.FormFactor = "Custom"
  2375. p.BrickColor = BrickColor.new("Institutional white")
  2376. p.Parent = workspace
  2377. p.Name="Effect"
  2378. p.CFrame=cf(pos)
  2379. local m = Instance.new("SpecialMesh",p)
  2380. m.MeshId = "rbxassetid://3270017"
  2381. local estimateSurvival = math.floor(range/30) * 0.03
  2382. game:GetService("Debris"):AddItem(p,estimateSurvival)
  2383. Spawn(function ()
  2384. for i = 1,range,30 do
  2385. p.Transparency = 1-math.min(0.5,3-(i/500))
  2386. m.Scale = Vector3.new(i,i,i*0.5)
  2387. p.CFrame = cf(pos) * CFrame.Angles(math.rad(90),0,0)
  2388. wait()
  2389. end
  2390. p:Destroy()
  2391. end)
  2392. end
  2393. end))
  2394. MagicCylinder(BrickColor.new("Institutional white"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  2395. for i=1,2 do
  2396. end
  2397. for i=1,5 do
  2398. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  2399. end
  2400. for i=0,5 do
  2401. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  2402. end
  2403. local ref=ppart(3,workspace,0,1,BrickColor.new("Institutional white"),"Effect",vt())
  2404. ref.CFrame=cf(pos)
  2405. coroutine.resume(coroutine.create(function(Part)
  2406. wait(1)
  2407. Part.Parent=nil
  2408. end),ref)
  2409. MagniDamage(ref,25,22220,32220,40,"Knockdown",ref)
  2410. if hit~=nil then
  2411. Damagefunc(ref,hit,5022,70222,60,"Knockdown",RootPart,0)
  2412. end
  2413. local n=2
  2414. MagicWave(BrickColor.new("Institutional white"),cf(pos)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
  2415. swait(75)
  2416. Humanoid.WalkSpeed=16
  2417. attack=false
  2418. end
  2419.  
  2420. attacktype=1
  2421. mouse.Button1Down:connect(function()
  2422. if attacktype==1 and attack==false then
  2423. attacktype=2
  2424. attackone()
  2425. elseif attacktype==2 and attack==false then
  2426. attacktype=3
  2427. attacktwo()
  2428. elseif attacktype==3 and attack==false then
  2429. attacktype=4
  2430. attackthree()
  2431. elseif attacktype==4 and attack==false then
  2432. attacktype=1
  2433. attackfour()
  2434. end
  2435. end)
  2436.  
  2437. mouse.KeyDown:connect(function(k)
  2438. k=k:lower()
  2439. if attack == false and k == 'e' then
  2440. LeviterGlomus()
  2441. ChargeBall(efprt,100)
  2442. end
  2443. if attack == false and k == 'q' then
  2444. LustrisFulgo()
  2445. end
  2446. if attack == false and k == 'f' and deeznuts==false then
  2447. deeznuts=true
  2448. SolSiderea()
  2449. deeznuts=false
  2450. end
  2451. if attack == false and k == 'r' and cooldown==false then
  2452. cooldown=true
  2453. PortalStorm()
  2454. cooldown=false
  2455. end
  2456. end)
  2457.  
  2458.  
  2459. local sine = 0
  2460. local change = 1
  2461. local val = 0
  2462.  
  2463. while true do
  2464. swait()
  2465. sine = sine + change
  2466. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2467. local velderp=RootPart.Velocity.y
  2468. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2469. if equipped==true or equipped==false then
  2470. if attack==false then
  2471. idle=idle+1
  2472. else
  2473. idle=0
  2474. end
  2475. if idle>=500 then
  2476. if attack==false then
  2477. end
  2478. end
  2479. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2480. Anim="Jump"
  2481. if attack==false then
  2482. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2483. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2484. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
  2485. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  2486. 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)
  2487. 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)
  2488. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2489. end
  2490. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2491. Anim="Fall"
  2492. if attack==false then
  2493. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2494. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
  2495. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
  2496. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  2497. 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)
  2498. 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)
  2499. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  2500. end
  2501. elseif torvel<1 and hitfloor~=nil then
  2502. Anim="Idle"
  2503. if attack==false then
  2504. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3)
  2505. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3)
  2506. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3)
  2507. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2508. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
  2509. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3)
  2510. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2)
  2511. end
  2512. elseif torvel>2 and hitfloor~=nil then
  2513. Anim="Walk"
  2514. if attack==false then
  2515. change=3
  2516. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  2517. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3)
  2518. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3)
  2519. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30)*math.cos(sine/10), math.rad(5), math.rad(0)), 0.3)
  2520. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  2521. LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  2522. handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2523. end
  2524. end
  2525. end
  2526. if #Effects>0 then
  2527. for e=1,#Effects do
  2528. if Effects[e]~=nil then
  2529. local Thing=Effects[e]
  2530. if Thing~=nil then
  2531. local Part=Thing[1]
  2532. local Mode=Thing[2]
  2533. local Delay=Thing[3]
  2534. local IncX=Thing[4]
  2535. local IncY=Thing[5]
  2536. local IncZ=Thing[6]
  2537. if Thing[1].Transparency<=1 then
  2538. if Thing[2]=="Block1" then
  2539. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2540. Mesh=Thing[1].Mesh
  2541. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2542. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2543. elseif Thing[2]=="Cylinder" then
  2544. Mesh=Thing[1].Mesh
  2545. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2546. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2547. elseif Thing[2]=="Blood" then
  2548. Mesh=Thing[7]
  2549. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2550. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2551. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2552. elseif Thing[2]=="Elec" then
  2553. Mesh=Thing[1].Mesh
  2554. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2555. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2556. elseif Thing[2]=="Disappear" then
  2557. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2558. end
  2559. else
  2560. Part.Parent=nil
  2561. table.remove(Effects,e)
  2562. end
  2563. end
  2564. end
  2565. end
  2566. end
  2567. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement