Dark_EccentricYT

Untitled

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