Advertisement
Its_YeBoi

Untitled

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