Advertisement
GojiGaming1337

Untitled

Apr 13th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 156.43 KB | None | 0 0
  1. warn'Danmaku V1.6 by NoobyGames12'
  2. warn'Do not leak it! or else...'
  3. plr = game.Players.LocalPlayer
  4. char = plr.Character
  5. hum = char.Humanoid
  6. local cam = game.Workspace.CurrentCamera
  7. t = char.Torso
  8. h = char.Head
  9. ra = char["Right Arm"]
  10. la = char["Left Arm"]
  11. rl = char["Right Leg"]
  12. ll = char["Left Leg"]
  13. tors = char.Torso
  14. lleg = char["Left Leg"]
  15. root = char.HumanoidRootPart
  16. hed = char.Head
  17. rleg = char["Right Leg"]
  18. rarm = char["Right Arm"]
  19. larm = char["Left Arm"]
  20. vt = Vector3.new
  21. bc = BrickColor.new
  22. br = BrickColor.random
  23. it = Instance.new
  24. cf = CFrame.new
  25.  
  26. local Create = LoadLibrary("RbxUtility").Create
  27.  
  28. CFuncs = {
  29. ["Part"] = {
  30. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  31. local Part = Create("Part"){
  32. Parent = Parent,
  33. Reflectance = Reflectance,
  34. Transparency = Transparency,
  35. CanCollide = false,
  36. Locked = true,
  37. BrickColor = BrickColor.new(tostring(BColor)),
  38. Name = Name,
  39. Size = Size,
  40. Material = Material,
  41. }
  42. RemoveOutlines(Part)
  43. return Part
  44. end;
  45. };
  46.  
  47. ["Mesh"] = {
  48. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  49. local Msh = Create(Mesh){
  50. Parent = Part,
  51. Offset = OffSet,
  52. Scale = Scale,
  53. }
  54. if Mesh == "SpecialMesh" then
  55. Msh.MeshType = MeshType
  56. Msh.MeshId = MeshId
  57. end
  58. return Msh
  59. end;
  60. };
  61.  
  62. ["Mesh"] = {
  63. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  64. local Msh = Create(Mesh){
  65. Parent = Part,
  66. Offset = OffSet,
  67. Scale = Scale,
  68. }
  69. if Mesh == "SpecialMesh" then
  70. Msh.MeshType = MeshType
  71. Msh.MeshId = MeshId
  72. end
  73. return Msh
  74. end;
  75. };
  76.  
  77. ["Weld"] = {
  78. Create = function(Parent, Part0, Part1, C0, C1)
  79. local Weld = Create("Weld"){
  80. Parent = Parent,
  81. Part0 = Part0,
  82. Part1 = Part1,
  83. C0 = C0,
  84. C1 = C1,
  85. }
  86. return Weld
  87. end;
  88. };
  89.  
  90. ["Sound"] = {
  91. Create = function(id, par, vol, pit)
  92. coroutine.resume(coroutine.create(function()
  93. local S = Create("Sound"){
  94. Volume = vol,
  95. Pitch = pit or 1,
  96. SoundId = id,
  97. Parent = par or workspace,
  98. }
  99. wait()
  100. S:play()
  101. game:GetService("Debris"):AddItem(S, 10)
  102. end))
  103. end;
  104. };
  105.  
  106. ["ParticleEmitter"] = {
  107. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  108. local fp = Create("ParticleEmitter"){
  109. Parent = Parent,
  110. Color = ColorSequence.new(Color1, Color2),
  111. LightEmission = LightEmission,
  112. Size = Size,
  113. Texture = Texture,
  114. Transparency = Transparency,
  115. ZOffset = ZOffset,
  116. Acceleration = Accel,
  117. Drag = Drag,
  118. LockedToPart = LockedToPart,
  119. VelocityInheritance = VelocityInheritance,
  120. EmissionDirection = EmissionDirection,
  121. Enabled = Enabled,
  122. Lifetime = LifeTime,
  123. Rate = Rate,
  124. Rotation = Rotation,
  125. RotSpeed = RotSpeed,
  126. Speed = Speed,
  127. VelocitySpread = VelocitySpread,
  128. }
  129. return fp
  130. end;
  131. };
  132.  
  133. CreateTemplate = {
  134.  
  135. };
  136. }
  137.  
  138.  
  139.  
  140. New = function(Object, Parent, Name, Data)
  141. local Object = Instance.new(Object)
  142. for Index, Value in pairs(Data or {}) do
  143. Object[Index] = Value
  144. end
  145. Object.Parent = Parent
  146. Object.Name = Name
  147. return Object
  148. end
  149.  
  150. local m = Instance.new("Model",char)
  151.  
  152. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  153. local p = Instance.new("Part")
  154. p.Parent = parent
  155. p.Size = Vector3.new(1,1,1)
  156. p.Transparency = transparency
  157. p.Reflectance = reflectance
  158. p.CanCollide = false
  159. p.Locked = true
  160. p.BrickColor = brickcolor
  161. p.Material = material
  162. return p
  163. end
  164.  
  165. function CreateMesh(parent,meshtype,x1,y1,z1)
  166. local mesh = Instance.new("SpecialMesh",parent)
  167. mesh.MeshType = meshtype
  168. mesh.Scale = Vector3.new(x1,y1,z1)
  169. return mesh
  170. end
  171.  
  172. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  173. local mesh = Instance.new("SpecialMesh",parent)
  174. mesh.MeshType = "FileMesh"
  175. mesh.MeshId = meshid
  176. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  177. mesh.Scale = Vector3.new(x1,y1,z1)
  178. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  179. return mesh
  180. end
  181.  
  182. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  183. local weld = Instance.new("Weld")
  184. weld.Parent = parent
  185. weld.Part0 = part0
  186. weld.Part1 = part1
  187. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  188. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  189. return weld
  190. end
  191.  
  192.  
  193. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  194. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  195. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  196. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  197.  
  198. Player=game:GetService("Players").LocalPlayer
  199. Character=Player.Character
  200. PlayerGui=Player.PlayerGui
  201. Backpack=Player.Backpack
  202. Torso=Character.Torso
  203. Head=Character.Head
  204. Humanoid=Character.Humanoid
  205. m=Instance.new('Model',Character)
  206. LeftArm=Character["Left Arm"]
  207. LeftLeg=Character["Left Leg"]
  208. RightArm=Character["Right Arm"]
  209. RightLeg=Character["Right Leg"]
  210. LS=Torso["Left Shoulder"]
  211. LH=Torso["Left Hip"]
  212. RS=Torso["Right Shoulder"]
  213. RH=Torso["Right Hip"]
  214. Face = Head.face
  215. Neck=Torso.Neck
  216. it=Instance.new
  217. attacktype=1
  218. vt=Vector3.new
  219. cf=CFrame.new
  220. euler=CFrame.fromEulerAnglesXYZ
  221. angles=CFrame.Angles
  222. cloaked=false
  223. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  224. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  225. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  226. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  227. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  228. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  229. RootPart=Character.HumanoidRootPart
  230. RootJoint=RootPart.RootJoint
  231. RootCF=euler(-1.57,0,3.14)
  232. attack = false
  233. attackdebounce = false
  234. deb=false
  235. equipped=true
  236. hand=false
  237. MMouse=nil
  238. combo=0
  239. mana=0
  240. trispeed=.2
  241. attackmode='none'
  242. local idle=0
  243. local Anim="Idle"
  244. local Effects={}
  245. local gun=false
  246. local shoot=false
  247. local sine = 0
  248. local change = 1
  249. player=nil
  250.  
  251. mouse=Player:GetMouse()
  252. --save shoulders
  253. RSH, LSH=nil, nil
  254. --welds
  255. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  256. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  257. LH=Torso["Left Hip"]
  258. RH=Torso["Right Hip"]
  259. TorsoColor=Torso.BrickColor
  260. function NoOutline(Part)
  261. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  262. end
  263. player=Player
  264. ch=Character
  265. RSH=ch.Torso["Right Shoulder"]
  266. LSH=ch.Torso["Left Shoulder"]
  267. --
  268. RSH.Parent=nil
  269. LSH.Parent=nil
  270. --
  271. RW.Name="Right Shoulder"
  272. RW.Part0=ch.Torso
  273. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  274. RW.C1=cf(0, 0.5, 0)
  275. RW.Part1=ch["Right Arm"]
  276. RW.Parent=ch.Torso
  277. --
  278. LW.Name="Left Shoulder"
  279. LW.Part0=ch.Torso
  280. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  281. LW.C1=cf(0, 0.5, 0)
  282. LW.Part1=ch["Left Arm"]
  283. LW.Parent=ch.Torso
  284.  
  285. local Stats=Instance.new("BoolValue")
  286. Stats.Name="Stats"
  287. Stats.Parent=Character
  288. local Atk=Instance.new("NumberValue")
  289. Atk.Name="Damage"
  290. Atk.Parent=Stats
  291. Atk.Value=1
  292. local Def=Instance.new("NumberValue")
  293. Def.Name="Defense"
  294. Def.Parent=Stats
  295. Def.Value=1
  296. local Speed=Instance.new("NumberValue")
  297. Speed.Name="Speed"
  298. Speed.Parent=Stats
  299. Speed.Value=1
  300. local Mvmt=Instance.new("NumberValue")
  301. Mvmt.Name="Movement"
  302. Mvmt.Parent=Stats
  303. Mvmt.Value=1
  304.  
  305. local donum=0
  306.  
  307.  
  308. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  309. local fp=it("Part")
  310. fp.formFactor=formfactor
  311. fp.Parent=parent
  312. fp.Reflectance=reflectance
  313. fp.Transparency=transparency
  314. fp.CanCollide=false
  315. fp.Locked=true
  316. fp.BrickColor=brickcolor
  317. fp.Name=name
  318. fp.Size=size
  319. fp.Position=Torso.Position
  320. NoOutline(fp)
  321. fp.Material="SmoothPlastic"
  322. fp:BreakJoints()
  323. return fp
  324. end
  325.  
  326. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  327. local mesh=it(Mesh)
  328. mesh.Parent=part
  329. if Mesh=="SpecialMesh" then
  330. mesh.MeshType=meshtype
  331. if meshid~="nil" then
  332. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  333. end
  334. end
  335. mesh.Offset=offset
  336. mesh.Scale=scale
  337. return mesh
  338. end
  339.  
  340. function weld(parent,part0,part1,c0)
  341. local weld=it("Weld")
  342. weld.Parent=parent
  343. weld.Part0=part0
  344. weld.Part1=part1
  345. weld.C0=c0
  346. return weld
  347. end
  348.  
  349. local Color1=Torso.BrickColor
  350.  
  351. local bodvel=Instance.new("BodyVelocity")
  352. local bg=Instance.new("BodyGyro")
  353.  
  354. function swait(num)
  355. if num==0 or num==nil then
  356. game:service'RunService'.Stepped:wait(0)
  357. else
  358. for i=0,num do
  359. game:service'RunService'.Stepped:wait(0)
  360. end
  361. end
  362. end
  363.  
  364.  
  365. so = function(id,par,vol,pit)
  366. coroutine.resume(coroutine.create(function()
  367. local sou = Instance.new("Sound",par or workspace)
  368. sou.Volume=vol
  369. sou.Pitch=pit or 1
  370. sou.SoundId=id
  371. swait()
  372. sou:play()
  373. game:GetService("Debris"):AddItem(sou,6)
  374. end))
  375. end
  376.  
  377. function clerp(a,b,t)
  378. local qa = {QuaternionFromCFrame(a)}
  379. local qb = {QuaternionFromCFrame(b)}
  380. local ax, ay, az = a.x, a.y, a.z
  381. local bx, by, bz = b.x, b.y, b.z
  382. local _t = 1-t
  383. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  384. end
  385.  
  386. function QuaternionFromCFrame(cf)
  387. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  388. local trace = m00 + m11 + m22
  389. if trace > 0 then
  390. local s = math.sqrt(1 + trace)
  391. local recip = 0.5/s
  392. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  393. else
  394. local i = 0
  395. if m11 > m00 then
  396. i = 1
  397. end
  398. if m22 > (i == 0 and m00 or m11) then
  399. i = 2
  400. end
  401. if i == 0 then
  402. local s = math.sqrt(m00-m11-m22+1)
  403. local recip = 0.5/s
  404. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  405. elseif i == 1 then
  406. local s = math.sqrt(m11-m22-m00+1)
  407. local recip = 0.5/s
  408. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  409. elseif i == 2 then
  410. local s = math.sqrt(m22-m00-m11+1)
  411. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  412. end
  413. end
  414. end
  415.  
  416. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  417. local xs, ys, zs = x + x, y + y, z + z
  418. local wx, wy, wz = w*xs, w*ys, w*zs
  419. local xx = x*xs
  420. local xy = x*ys
  421. local xz = x*zs
  422. local yy = y*ys
  423. local yz = y*zs
  424. local zz = z*zs
  425. 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))
  426. end
  427.  
  428. function QuaternionSlerp(a, b, t)
  429. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  430. local startInterp, finishInterp;
  431. if cosTheta >= 0.0001 then
  432. if (1 - cosTheta) > 0.0001 then
  433. local theta = math.acos(cosTheta)
  434. local invSinTheta = 1/math.sin(theta)
  435. startInterp = math.sin((1-t)*theta)*invSinTheta
  436. finishInterp = math.sin(t*theta)*invSinTheta
  437. else
  438. startInterp = 1-t
  439. finishInterp = t
  440. end
  441. else
  442. if (1+cosTheta) > 0.0001 then
  443. local theta = math.acos(-cosTheta)
  444. local invSinTheta = 1/math.sin(theta)
  445. startInterp = math.sin((t-1)*theta)*invSinTheta
  446. finishInterp = math.sin(t*theta)*invSinTheta
  447. else
  448. startInterp = t-1
  449. finishInterp = t
  450. end
  451. end
  452. 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
  453. end
  454.  
  455. local function CFrameFromTopBack(at, top, back)
  456. local right = top:Cross(back)
  457. return CFrame.new(at.x, at.y, at.z,
  458. right.x, top.x, back.x,
  459. right.y, top.y, back.y,
  460. right.z, top.z, back.z)
  461. end
  462.  
  463. function Triangle(a, b, c)
  464. local edg1 = (c-a):Dot((b-a).unit)
  465. local edg2 = (a-b):Dot((c-b).unit)
  466. local edg3 = (b-c):Dot((a-c).unit)
  467. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  468. a, b, c = a, b, c
  469. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  470. a, b, c = b, c, a
  471. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  472. a, b, c = c, a, b
  473. else
  474. assert(false, "unreachable")
  475. end
  476.  
  477. local len1 = (c-a):Dot((b-a).unit)
  478. local len2 = (b-a).magnitude - len1
  479. local width = (a + (b-a).unit*len1 - c).magnitude
  480.  
  481. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  482.  
  483. local list = {}
  484.  
  485. if len1 > 0.01 then
  486. local w1 = Instance.new('WedgePart', m)
  487. game:GetService("Debris"):AddItem(w1,5)
  488. w1.Material = "SmoothPlastic"
  489. w1.FormFactor = 'Custom'
  490. w1.BrickColor = BrickColor.new("Really red")
  491. w1.Transparency = 0
  492. w1.Reflectance = 0
  493. w1.Material = "SmoothPlastic"
  494. w1.CanCollide = false
  495. local l1 = Instance.new("PointLight",w1)
  496. l1.Color = Color3.new(170,0,0)
  497. NoOutline(w1)
  498. local sz = Vector3.new(0.2, width, len1)
  499. w1.Size = sz
  500. local sp = Instance.new("SpecialMesh",w1)
  501. sp.MeshType = "Wedge"
  502. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  503. w1:BreakJoints()
  504. w1.Anchored = true
  505. w1.Parent = workspace
  506. w1.Transparency = 0.7
  507. table.insert(Effects,{w1,"Disappear",.01})
  508. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  509. table.insert(list,w1)
  510. end
  511.  
  512. if len2 > 0.01 then
  513. local w2 = Instance.new('WedgePart', m)
  514. game:GetService("Debris"):AddItem(w2,5)
  515. w2.Material = "SmoothPlastic"
  516. w2.FormFactor = 'Custom'
  517. w2.BrickColor = BrickColor.new("Really red")
  518. w2.Transparency = 0
  519. w2.Reflectance = 0
  520. w2.Material = "SmoothPlastic"
  521. w2.CanCollide = false
  522. local l2 = Instance.new("PointLight",w2)
  523. l2.Color = Color3.new(170,0,0)
  524. NoOutline(w2)
  525. local sz = Vector3.new(0.2, width, len2)
  526. w2.Size = sz
  527. local sp = Instance.new("SpecialMesh",w2)
  528. sp.MeshType = "Wedge"
  529. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  530. w2:BreakJoints()
  531. w2.Anchored = true
  532. w2.Parent = workspace
  533. w2.Transparency = 0.7
  534. table.insert(Effects,{w2,"Disappear",.01})
  535. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  536. table.insert(list,w2)
  537. end
  538. return unpack(list)
  539. end
  540.  
  541.  
  542. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  543. if hit.Parent==nil then
  544. return
  545. end
  546. h=hit.Parent:FindFirstChild("Humanoid")
  547. for _,v in pairs(hit.Parent:children()) do
  548. if v:IsA("Humanoid") then
  549. h=v
  550. end
  551. end
  552. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  553. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  554. end
  555. if hit.Parent.className=="Hat" then
  556. hit=hit.Parent.Parent:findFirstChild("Head")
  557. end
  558. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  559. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  560. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  561. return
  562. end]]
  563. -- hs(hit,1.2)
  564. c=Instance.new("ObjectValue")
  565. c.Name="creator"
  566. c.Value=game:service("Players").LocalPlayer
  567. c.Parent=h
  568. game:GetService("Debris"):AddItem(c,.5)
  569. Damage=math.random(minim,maxim)
  570. -- h:TakeDamage(Damage)
  571. blocked=false
  572. block=hit.Parent:findFirstChild("Block")
  573. if block~=nil then
  574. print(block.className)
  575. if block.className=="NumberValue" then
  576. if block.Value>0 then
  577. blocked=true
  578. if decreaseblock==nil then
  579. block.Value=block.Value-1
  580. end
  581. end
  582. end
  583. if block.className=="IntValue" then
  584. if block.Value>0 then
  585. blocked=true
  586. if decreaseblock~=nil then
  587. block.Value=block.Value-1
  588. end
  589. end
  590. end
  591. end
  592. if blocked==false then
  593. -- h:TakeDamage(Damage)
  594. h.Health=h.Health-Damage
  595. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  596. else
  597. h.Health=h.Health-(Damage/2)
  598. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  599. end
  600. if Type=="Knockdown" then
  601. hum=hit.Parent.Humanoid
  602. hum.PlatformStand=true
  603. coroutine.resume(coroutine.create(function(HHumanoid)
  604. swait(1)
  605. HHumanoid.PlatformStand=false
  606. end),hum)
  607. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  608. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  609. local bodvol=Instance.new("BodyVelocity")
  610. bodvol.velocity=angle*knockback
  611. bodvol.P=5000
  612. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  613. bodvol.Parent=hit
  614. rl=Instance.new("BodyAngularVelocity")
  615. rl.P=3000
  616. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  617. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  618. rl.Parent=hit
  619. game:GetService("Debris"):AddItem(bodvol,.5)
  620. game:GetService("Debris"):AddItem(rl,.5)
  621. elseif Type=="Normal" then
  622. vp=Instance.new("BodyVelocity")
  623. vp.P=500
  624. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  625. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  626. if KnockbackType==1 then
  627. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  628. elseif KnockbackType==2 then
  629. vp.velocity=Property.CFrame.lookVector*knockback
  630. end
  631. if knockback>0 then
  632. vp.Parent=hit.Parent.Torso
  633. end
  634. game:GetService("Debris"):AddItem(vp,.5)
  635. elseif Type=="Up" then
  636. local bodyVelocity=Instance.new("BodyVelocity")
  637. bodyVelocity.velocity=vt(0,60,0)
  638. bodyVelocity.P=5000
  639. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  640. bodyVelocity.Parent=hit
  641. game:GetService("Debris"):AddItem(bodyVelocity,1)
  642. rl=Instance.new("BodyAngularVelocity")
  643. rl.P=3000
  644. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  645. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  646. rl.Parent=hit
  647. game:GetService("Debris"):AddItem(rl,.5)
  648. elseif Type=="Snare" then
  649. bp=Instance.new("BodyPosition")
  650. bp.P=2000
  651. bp.D=100
  652. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  653. bp.position=hit.Parent.Torso.Position
  654. bp.Parent=hit.Parent.Torso
  655. game:GetService("Debris"):AddItem(bp,1)
  656. elseif Type=="Target" then
  657. if Targetting==false then
  658. ZTarget=hit.Parent.Torso
  659. coroutine.resume(coroutine.create(function(Part)
  660. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  661. swait(5)
  662. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  663. end),ZTarget)
  664. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  665. targetgui=Instance.new("BillboardGui")
  666. targetgui.Parent=ZTarget
  667. targetgui.Size=UDim2.new(10,100,10,100)
  668. targ=Instance.new("ImageLabel")
  669. targ.Parent=targetgui
  670. targ.BackgroundTransparency=1
  671. targ.Image="rbxassetid://4834067"
  672. targ.Size=UDim2.new(1,0,1,0)
  673. cam.CameraType="Scriptable"
  674. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  675. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  676. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  677. Targetting=true
  678. RocketTarget=ZTarget
  679. for i=1,Property do
  680. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  681. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  682. swait()
  683. end
  684. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  685. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  686. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  687. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  688. end
  689. Targetting=false
  690. RocketTarget=nil
  691. targetgui.Parent=nil
  692. cam.CameraType="Custom"
  693. end
  694. end
  695. debounce=Instance.new("BoolValue")
  696. debounce.Name="DebounceHit"
  697. debounce.Parent=hit.Parent
  698. debounce.Value=true
  699. game:GetService("Debris"):AddItem(debounce,Delay)
  700. c=Instance.new("ObjectValue")
  701. c.Name="creator"
  702. c.Value=Player
  703. c.Parent=h
  704. game:GetService("Debris"):AddItem(c,.5)
  705. CRIT=false
  706. hitDeb=true
  707. AttackPos=6
  708. end
  709. end
  710.  
  711. showDamage=function(Char,Dealt,du,Color)
  712. m=Instance.new("Model")
  713. m.Name=tostring(Dealt)
  714. h=Instance.new("Humanoid")
  715. h.Health=0
  716. h.MaxHealth=0
  717. h.Parent=m
  718. c=Instance.new("Part")
  719. c.Transparency=0
  720. c.BrickColor=Color
  721. c.Transparency = 1
  722. c.Name="Head"
  723. c.TopSurface=0
  724. c.BottomSurface=0
  725. c.formFactor="Plate"
  726. c.Size=Vector3.new(1,.4,1)
  727.  
  728. local txt = Instance.new("BillboardGui", c)
  729. txt.Adornee = c
  730. txt.Name = "_status"
  731. txt.Size = UDim2.new(2, 0, 1.2, 0)
  732. txt.StudsOffset = Vector3.new(-9, 8, 0)
  733. local text = Instance.new("TextLabel", txt)
  734. text.Size = UDim2.new(10, 0, 7, 0)
  735. text.FontSize = "Size12"
  736. text.TextScaled = true
  737. text.TextTransparency = 0.5
  738. text.BackgroundTransparency = 1
  739. text.TextTransparency = 0.5
  740. text.TextStrokeTransparency = 0.5
  741. text.Font = "SciFi"
  742. text.TextStrokeColor3 = Color3.new(0,0,0)
  743. v=Instance.new("Part")
  744. v.Name = "ColorBrick"
  745. v.Parent=c
  746. v.FormFactor="Symmetric"
  747. v.Anchored=true
  748. v.CanCollide=false
  749. v.BottomSurface="Smooth"
  750. v.TopSurface="Smooth"
  751. v.Size=Vector3.new(10,5,3)
  752. v.Transparency=1
  753. v.CFrame=c.CFrame
  754. v.BrickColor=BrickColor.random()
  755. v.Transparency=1
  756. text.TextColor3 = t.BrickColor.Color
  757. v.Shape="Block"
  758. text.Text = tostring(Dealt)
  759. ms=Instance.new("CylinderMesh")
  760. ms.Scale=Vector3.new(.8,.8,.8)
  761. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  762. local rndm=math.random(1,#hitsounds)
  763. local r=rndm
  764. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)
  765. if CRIT==true then
  766. ms.Scale=Vector3.new(1,1.25,1)
  767. end
  768. ms.Parent=c
  769. c.Reflectance=0
  770. Instance.new("BodyGyro").Parent=c
  771. c.Parent=m
  772. if Char:findFirstChild("Head")~=nil then
  773. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  774. elseif Char.Parent:findFirstChild("Head")~=nil then
  775. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  776. end
  777. f=Instance.new("BodyPosition")
  778. f.P=2000
  779. f.D=100
  780. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  781. f.position=c.Position+Vector3.new(0,3,0)
  782. f.Parent=c
  783. game:GetService("Debris"):AddItem(m,.5+du)
  784. c.CanCollide=false
  785. m.Parent=workspace
  786. c.CanCollide=false
  787. end
  788.  
  789. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  790. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  791. end
  792.  
  793. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  794. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  795. prt.Anchored=true
  796. prt.CFrame=cframe
  797. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  798. --http://www.roblox.com/asset/?id=4770560
  799. game:GetService("Debris"):AddItem(prt,2)
  800. CF=prt.CFrame
  801. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  802. for i=0,1,0.2 do
  803. wait()
  804. Part.CFrame=CF*cf(0,0,-0.4)
  805. end
  806. for i=0,1,delay do
  807. wait()
  808. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  809. Mesh.Scale=Mesh.Scale
  810. end
  811. for i=0,1,0.1 do
  812. wait()
  813. Part.Transparency=i
  814. end
  815. Part.Parent=nil
  816. end),prt,msh,CF)
  817. end
  818.  
  819. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  820. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  821. prt.Anchored=true
  822. prt.Material = "Neon"
  823. prt.CFrame=cframe
  824. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  825. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  826. game:GetService("Debris"):AddItem(prt,5)
  827. coroutine.resume(coroutine.create(function(Part,Mesh)
  828. for i=0,1,delay do
  829. swait()
  830. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  831. Part.Transparency=i
  832. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  833. end
  834. Part.Parent=nil
  835. end),prt,msh)
  836. end
  837.  
  838. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  839. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  840. prt.Anchored=true
  841. prt.Material = "Neon"
  842. prt.CFrame=cframe
  843. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  844. game:GetService("Debris"):AddItem(prt,5)
  845. coroutine.resume(coroutine.create(function(Part,Mesh)
  846. local rtype = rottype
  847. for i=0,1,delay do
  848. swait()
  849. if rtype == 1 then
  850. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  851. elseif rtype == 2 then
  852. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  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)
  859. end
  860.  
  861. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  862. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  863. prt.Anchored=true
  864. prt.CFrame=cframe
  865. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  866. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  867. game:GetService("Debris"):AddItem(prt,5)
  868. coroutine.resume(coroutine.create(function(Part,Mesh)
  869. for i=0,1,delay do
  870. wait()
  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 MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  879. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  880. prt.Anchored=true
  881. prt.Material = "Neon"
  882. prt.CFrame=cframe
  883. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  884. game:GetService("Debris"):AddItem(prt,5)
  885. coroutine.resume(coroutine.create(function(Part,Mesh)
  886. local rtype = rottype
  887. for i=0,1,delay do
  888. swait()
  889. if rtype == 1 then
  890. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  891. elseif rtype == 2 then
  892. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  893. end
  894. Part.Transparency=i
  895. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  896. end
  897. Part.Parent=nil
  898. end),prt,msh)
  899. end
  900.  
  901. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  902. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  903. prt.Anchored=true
  904. prt.Material = "Neon"
  905. prt.CFrame=cframe
  906. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  907. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  908. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  909. game:GetService("Debris"):AddItem(prt,5)
  910. coroutine.resume(coroutine.create(function(Part,Mesh)
  911. local rtype = rottype
  912. for i=0,1,delay do
  913. swait()
  914. if rtype == 1 then
  915. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  916. elseif rtype == 2 then
  917. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  918. end
  919. dec.Transparency=i
  920. dec2.Transparency=i
  921. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  922. end
  923. Part.Parent=nil
  924. end),prt,msh)
  925. end
  926.  
  927. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  928. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  929. prt.Anchored=true
  930. prt.Material = "Neon"
  931. prt.CFrame=cframe
  932. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  933. game:GetService("Debris"):AddItem(prt,5)
  934. coroutine.resume(coroutine.create(function(Part,Mesh)
  935. local rtype = rottype
  936. for i=0,1,delay do
  937. swait()
  938. if rtype == 1 then
  939. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  940. elseif rtype == 2 then
  941. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  942. end
  943. prt.Transparency=i
  944. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  945. end
  946. Part.Parent=nil
  947. end),prt,msh)
  948. end
  949.  
  950. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  951. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  952. prt.Anchored=true
  953. prt.Material = "Neon"
  954. prt.CFrame=cframe
  955. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  956. game:GetService("Debris"):AddItem(prt,5)
  957. coroutine.resume(coroutine.create(function(Part,Mesh)
  958. local rtype = rottype
  959. for i=0,1,delay do
  960. swait()
  961. if rtype == 1 then
  962. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  963. elseif rtype == 2 then
  964. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  965. end
  966. prt.Transparency=i
  967. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  968. end
  969. Part.Parent=nil
  970. end),prt,msh)
  971. end
  972.  
  973. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  974. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  975. prt.Anchored=true
  976. prt.Material = "Neon"
  977. prt.CFrame=cframe
  978. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  979. game:GetService("Debris"):AddItem(prt,5)
  980. coroutine.resume(coroutine.create(function(Part,Mesh)
  981. local rtype = rottype
  982. for i=0,1,delay do
  983. swait()
  984. if rtype == 1 then
  985. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  986. elseif rtype == 2 then
  987. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  988. end
  989. prt.Transparency=i
  990. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  991. end
  992. Part.Parent=nil
  993. end),prt,msh)
  994. end
  995.  
  996. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  997. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  998. prt.Anchored=false
  999. prt.CFrame=cframe
  1000. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1001. local wld=weld(prt,prt,Parent,cframe)
  1002. game:GetService("Debris"):AddItem(prt,5)
  1003. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1004. for i=0,1,delay do
  1005. wait()
  1006. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1007. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1008. Part.Transparency=i
  1009. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1010. end
  1011. Part.Parent=nil
  1012. end),prt,msh,wld)
  1013. end
  1014.  
  1015. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1016. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1017. prt.Anchored=false
  1018. prt.CFrame=cframe
  1019. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1020. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1021. game:GetService("Debris"):AddItem(prt,5)
  1022. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1023. for i=0,1,delay do
  1024. wait()
  1025. Weld.C0=euler(i*20,0,0)
  1026. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1027. Part.Transparency=i
  1028. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1029. end
  1030. Part.Parent=nil
  1031. end),prt,msh,wld)
  1032. end
  1033.  
  1034. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1035. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1036. prt.Anchored=true
  1037. prt.CFrame=cframe
  1038. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1039. game:GetService("Debris"):AddItem(prt,2)
  1040. coroutine.resume(coroutine.create(function(Part,Mesh)
  1041. for i=0,1,delay do
  1042. wait()
  1043. Part.CFrame=Part.CFrame
  1044. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1045. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1046. prt2.Anchored=true
  1047. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1048. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1049. game:GetService("Debris"):AddItem(prt2,2)
  1050. coroutine.resume(coroutine.create(function(Part,Mesh)
  1051. for i=0,1,0.1 do
  1052. wait()
  1053. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1054. end
  1055. Part.Parent=nil
  1056. end),prt2,msh2)
  1057. end
  1058. for i=0,1,delay*2 do
  1059. wait()
  1060. Part.CFrame=Part.CFrame
  1061. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1062. end
  1063. Part.Parent=nil
  1064. end),prt,msh)
  1065. end
  1066.  
  1067. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1068. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1069. prt.Anchored=true
  1070. prt.CFrame=cframe
  1071. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1072. game:GetService("Debris"):AddItem(prt,2)
  1073. coroutine.resume(coroutine.create(function(Part,Mesh)
  1074. for i=0,1,delay do
  1075. wait()
  1076. Part.CFrame=Part.CFrame
  1077. Part.Transparency=i
  1078. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1079. end
  1080. Part.Parent=nil
  1081. end),prt,msh)
  1082. end
  1083.  
  1084. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1085. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1086. prt.Anchored=true
  1087. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1088. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1089. game:GetService("Debris"):AddItem(prt,2)
  1090. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1091. CF=Part.CFrame
  1092. Numbb=0
  1093. randnumb=math.random()/10
  1094. rand1=math.random()/10
  1095. for i=0,1,rand1 do
  1096. wait()
  1097. CF=CF*cf(0,math.random()/2,0)
  1098. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1099. Part.CFrame=CF*euler(Numbb,0,0)
  1100. Part.Transparency=i
  1101. Numbb=Numbb+randnumb
  1102. end
  1103. Part.Parent=nil
  1104. end),prt,CF,Numbb,randnumb)
  1105. end
  1106.  
  1107. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1108. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1109. prt.Anchored=true
  1110. prt.CFrame=cframe
  1111. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1112. game:GetService("Debris"):AddItem(prt,5)
  1113. coroutine.resume(coroutine.create(function(Part,Mesh)
  1114. for i=0,1,delay do
  1115. wait()
  1116. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1117. Part.Transparency=i
  1118. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1119. end
  1120. Part.Parent=nil
  1121. end),prt,msh)
  1122. end
  1123.  
  1124. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1125. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1126. prt.Anchored=true
  1127. prt.CFrame=cframe
  1128. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1129. game:GetService("Debris"):AddItem(prt,2)
  1130. coroutine.resume(coroutine.create(function(Part,Mesh)
  1131. for i=0,1,delay do
  1132. wait()
  1133. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1134. Part.Transparency=i
  1135. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1136. end
  1137. Part.Parent=nil
  1138. end),prt,msh)
  1139. end
  1140.  
  1141. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1142. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1143. prt.Anchored=true
  1144. prt.CFrame=cframe*cf(x,y,z)
  1145. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1146. game:GetService("Debris"):AddItem(prt,5)
  1147. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1148. local num=math.random()
  1149. local num2=math.random(-3,2)+math.random()
  1150. local numm=0
  1151. for i=0,1,delay*2 do
  1152. swait()
  1153. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1154. Part.Transparency=i
  1155. numm=numm+0.01
  1156. end
  1157. Part.Parent=nil
  1158. Mesh.Parent=nil
  1159. end),prt,msh,x,y,z)
  1160. end
  1161.  
  1162. function dmgstart(dmg,what)
  1163. hitcon = what.Touched:connect(function(hit)
  1164. local hum = hit.Parent:FindFirstChild("Humanoid")
  1165. if hum and not hum:IsDescendantOf(Character) then
  1166. hum:TakeDamage(dmg)
  1167. end
  1168. end)
  1169. end
  1170.  
  1171. function dmgstop()
  1172. hitcon:disconnect()
  1173. end
  1174.  
  1175. function Cloak()
  1176. Face.Parent=nil
  1177. cloaked=true
  1178. for _,v in pairs(Torso.Parent:children()) do
  1179. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1180. coroutine.resume(coroutine.create(function()
  1181. for i=0,1,0.2 do
  1182. wait()
  1183. v.Transparency=i
  1184. end
  1185. v.Transparency=1
  1186. end))
  1187. end
  1188. if v.className=="Hat" then
  1189. hatp=v.Handle
  1190. coroutine.resume(coroutine.create(function(derp)
  1191. for i=0,1,0.2 do
  1192. wait()
  1193. derp.Transparency=i
  1194. end
  1195. derp.Transparency=1
  1196. end),hatp)
  1197. end
  1198. end
  1199. for _,v in pairs(m:children()) do
  1200. if v.className=="Part" then
  1201. coroutine.resume(coroutine.create(function()
  1202. for i=0,1,0.2 do
  1203. wait()
  1204. v.Transparency=i
  1205. end
  1206. v.Transparency=1
  1207. end))
  1208. end
  1209. end
  1210. end
  1211.  
  1212. function UnCloak()
  1213. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1214. Face.Parent=Head
  1215. cloaked=false
  1216. for _,v in pairs(Torso.Parent:children()) do
  1217. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1218. coroutine.resume(coroutine.create(function()
  1219. for i=0,1,0.1 do
  1220. wait()
  1221. v.Transparency=v.Transparency-0.1
  1222. end
  1223. v.Transparency=0
  1224. end))
  1225. end
  1226. if v.className=="Hat" then
  1227. hatp=v.Handle
  1228. coroutine.resume(coroutine.create(function(derp)
  1229. for i=0,1,0.1 do
  1230. wait()
  1231. derp.Transparency=derp.Transparency-0.1
  1232. end
  1233. derp.Transparency=0
  1234. end),hatp)
  1235. end
  1236. end
  1237. for _,v in pairs(m:children()) do
  1238. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1239. coroutine.resume(coroutine.create(function()
  1240. for i=0,1,0.1 do
  1241. wait()
  1242. v.Transparency=v.Transparency-0.1
  1243. end
  1244. v.Transparency=0
  1245. end))
  1246. v.Transparency=0
  1247. end
  1248. end
  1249. end
  1250.  
  1251. local coold = false
  1252.  
  1253. function Twinkle()
  1254. attack = true
  1255. for i = 0,5,0.1 do
  1256. swait()
  1257. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1258. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.1)
  1259. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  1260. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  1261. LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.35) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  1262. end
  1263. local bulletgos = it("Model",char)
  1264. local bulletgos2 = it("Model",char)
  1265. local a = Instance.new("Part",Character)
  1266. a.BrickColor = BrickColor.random()
  1267. a.Name = "Lazer"
  1268. a.Anchored = true
  1269. a.Material = "Neon"
  1270. a.Transparency = 1
  1271. a.CanCollide = false
  1272. local hitbox = Instance.new("Part",char)
  1273. hitbox.Size = Vector3.new(5,5,5)
  1274. hitbox.CFrame = mouse.hit
  1275. hitbox.Anchored = true
  1276. hitbox.Transparency = 1
  1277. hitbox.CanCollide = false
  1278. local ray = Ray.new(
  1279. sorb.CFrame.p, -- origin
  1280. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1281. )
  1282. local ignore = Character
  1283. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1284. if hit then
  1285. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1286.  
  1287. if not humanoid then
  1288. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1289. end
  1290. if humanoid then
  1291. if humanoid.Parent:IsA"Model" then
  1292. end
  1293. end
  1294. end
  1295. a.BottomSurface = 10
  1296. a.TopSurface = 10
  1297. local distance = (sorb.CFrame.p - position).magnitude
  1298. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1299. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1300. game:GetService("Debris"):AddItem(a, 10)
  1301. game:GetService("Debris"):AddItem(hitbox, 1)
  1302. local newmesh = Instance.new("BlockMesh",a)
  1303. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,5,5,5,0.25,0.25,0.25,0.025)
  1304. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.5,1.5,0.015,1)
  1305. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.25,1.25,0.015,2)
  1306. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1,1,0.015,1)
  1307. local lbs = Instance.new("Part")
  1308. lbs.Parent = char
  1309. CFuncs["Sound"].Create("rbxassetid://929619479", lbs, 1.5, 1)
  1310. lbs.Material = "Neon"
  1311. lbs.Color = BrickColor.new("Really black").Color
  1312. lbs.CanCollide = false
  1313. lbs.Shape = "Ball"
  1314. lbs.Anchored = true
  1315. lbs.Transparency = 0
  1316. lbs.Size = vt(10,10,10)
  1317. lbs.CFrame = a.CFrame
  1318. local thing = Instance.new("SpecialMesh",lbs)
  1319. thing.MeshType = "Sphere"
  1320. lbs.Anchored = false
  1321. local bvs = Instance.new("BodyVelocity")
  1322. bvs.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1323. bvs.velocity = a.CFrame.lookVector*75
  1324. bvs.Parent = lbs
  1325. lbs.Touched:connect(function(hit)
  1326. Damagefunc(hit,25,60,math.random(10,20),"Normal",root,.2,1)
  1327. end)
  1328. game:GetService("Debris"):AddItem(lbs, 10)
  1329. local rotation = 0
  1330. local rotation2 = 0
  1331. for z = 0, 24 do
  1332. wait()
  1333. rotation = rotation + 25
  1334. rotation2 = rotation2 - 25
  1335. local lb = Instance.new("Part")
  1336. lb.Parent = bulletgos
  1337. lb.Material = "Neon"
  1338. lb.Color = BrickColor.new("Dark indigo").Color
  1339. lb.CanCollide = false
  1340. lb.Anchored = true
  1341. lb.Transparency = 0
  1342. lb.Size = vt(2,2,2)
  1343. local thing = Instance.new("SpecialMesh",lb)
  1344. thing.MeshType = "Sphere"
  1345. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1346. lb.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation2),0)
  1347. local lb2 = Instance.new("Part")
  1348. lb2.Parent = bulletgos
  1349. lb2.Material = "Neon"
  1350. lb2.Color = lb.Color
  1351. lb2.CanCollide = false
  1352. lb2.Anchored = true
  1353. lb2.Transparency = 0
  1354. lb2.Size = vt(2,2,2)
  1355. lb2.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  1356. local thing2 = Instance.new("SpecialMesh",lb2)
  1357. thing2.MeshType = "Sphere"
  1358. thing2.Scale = Vector3.new(0.5,0.5,1.5)
  1359. lb.Touched:connect(function(hit)
  1360. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1361. end)
  1362. lb2.Touched:connect(function(hit)
  1363. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1364. end)
  1365. local lb3 = Instance.new("Part")
  1366. lb3.Parent = bulletgos2
  1367. lb3.Material = "Neon"
  1368. lb3.Color = BrickColor.new("Dark indigo").Color
  1369. lb3.CanCollide = false
  1370. lb3.Anchored = true
  1371. lb3.Transparency = 0
  1372. lb3.Size = vt(2,2,2)
  1373. local thing3 = Instance.new("SpecialMesh",lb3)
  1374. thing3.MeshType = "Sphere"
  1375. thing3.Scale = Vector3.new(0.5,0.5,1.5)
  1376. lb3.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation2),0)
  1377. local lb4 = Instance.new("Part")
  1378. lb4.Parent = bulletgos2
  1379. lb4.Material = "Neon"
  1380. lb4.Color = lb3.Color
  1381. lb4.CanCollide = false
  1382. lb4.Anchored = true
  1383. lb4.Transparency = 0
  1384. lb4.Size = vt(2,2,2)
  1385. lb4.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  1386. local thing4 = Instance.new("SpecialMesh",lb4)
  1387. thing4.MeshType = "Sphere"
  1388. thing4.Scale = Vector3.new(0.5,0.5,1.5)
  1389. lb3.Touched:connect(function(hit)
  1390. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1391. end)
  1392. lb4.Touched:connect(function(hit)
  1393. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1394. end)
  1395. end
  1396. bvs:Destroy()
  1397. lbs.Anchored = true
  1398. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1399. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1400. lbs.Transparency = 1
  1401. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1402. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1403. CFuncs["Sound"].Create("rbxassetid://925629856", lbs, 5, 1)
  1404. game:GetService("Debris"):AddItem(bulletgos, 7)
  1405. game:GetService("Debris"):AddItem(bulletgos2, 7)
  1406. for i,v in pairs(bulletgos:children()) do
  1407. if v:IsA("Part") then
  1408. v.Anchored = false
  1409. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1410. local bv = Instance.new("BodyVelocity")
  1411. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1412. bv.velocity = v.CFrame.lookVector*25
  1413. bv.Parent = v
  1414. game:GetService("Debris"):AddItem(v, 5)
  1415. end
  1416. end
  1417. for i,v in pairs(bulletgos2:children()) do
  1418. if v:IsA("Part") then
  1419. v.Anchored = false
  1420. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1421. local bv = Instance.new("BodyVelocity")
  1422. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1423. bv.velocity = v.CFrame.lookVector*50
  1424. bv.Parent = v
  1425. game:GetService("Debris"):AddItem(v, 5)
  1426. end
  1427. end
  1428. attack = false
  1429. end
  1430.  
  1431. function TwinkleBurst()
  1432. attack = true
  1433. for i = 0,5,0.1 do
  1434. swait()
  1435. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1436. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.1)
  1437. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  1438. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  1439. LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.35) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  1440. end
  1441. local a = Instance.new("Part",Character)
  1442. a.BrickColor = BrickColor.random()
  1443. a.Name = "Lazer"
  1444. a.Anchored = true
  1445. a.Material = "Neon"
  1446. a.Transparency = 1
  1447. a.CanCollide = false
  1448. local hitbox = Instance.new("Part",char)
  1449. hitbox.Size = Vector3.new(5,5,5)
  1450. hitbox.CFrame = mouse.hit
  1451. hitbox.Anchored = true
  1452. hitbox.Transparency = 1
  1453. hitbox.CanCollide = false
  1454. local ray = Ray.new(
  1455. sorb.CFrame.p, -- origin
  1456. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1457. )
  1458. local ignore = Character
  1459. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1460. if hit then
  1461. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1462.  
  1463. if not humanoid then
  1464. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1465. end
  1466. if humanoid then
  1467. if humanoid.Parent:IsA"Model" then
  1468. end
  1469. end
  1470. end
  1471. a.BottomSurface = 10
  1472. a.TopSurface = 10
  1473. local distance = (sorb.CFrame.p - position).magnitude
  1474. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1475. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1476. game:GetService("Debris"):AddItem(a, 5)
  1477. game:GetService("Debris"):AddItem(hitbox, 1)
  1478. local newmesh = Instance.new("BlockMesh",a)
  1479. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,5,5,5,0.25,0.25,0.25,0.025)
  1480. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.5,1.5,0.015,1)
  1481. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.25,1.25,0.015,2)
  1482. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1,1,0.015,1)
  1483. local lbs = Instance.new("Part")
  1484. lbs.Parent = char
  1485. CFuncs["Sound"].Create("rbxassetid://929619479", lbs, 1, 1)
  1486. lbs.Material = "Neon"
  1487. lbs.Color = BrickColor.new("Really black").Color
  1488. lbs.CanCollide = false
  1489. lbs.Shape = "Ball"
  1490. lbs.Anchored = true
  1491. lbs.Transparency = 0
  1492. lbs.Size = vt(20,20,20)
  1493. lbs.CFrame = a.CFrame
  1494. local thing = Instance.new("SpecialMesh",lbs)
  1495. thing.MeshType = "Sphere"
  1496. lbs.Anchored = false
  1497. local bvs = Instance.new("BodyVelocity")
  1498. bvs.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1499. bvs.velocity = a.CFrame.lookVector*75
  1500. bvs.Parent = lbs
  1501. lbs.Touched:connect(function(hit)
  1502. Damagefunc(hit,25,60,math.random(10,20),"Normal",root,.2,1)
  1503. end)
  1504. attack = false
  1505. game:GetService("Debris"):AddItem(lbs, 10)
  1506. for x = 0, 4 do
  1507. local bulletgos = it("Model",char)
  1508. local bulletgos2 = it("Model",char)
  1509. for z = 0, 24 do
  1510. local lb = Instance.new("Part")
  1511. lb.Parent = bulletgos
  1512. lb.Material = "Neon"
  1513. lb.Color = BrickColor.new("Dark indigo").Color
  1514. lb.CanCollide = false
  1515. lb.Anchored = true
  1516. lb.Transparency = 0
  1517. lb.Size = vt(2,2,2)
  1518. local thing = Instance.new("SpecialMesh",lb)
  1519. thing.MeshType = "Sphere"
  1520. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1521. lb.CFrame = lbs.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1522. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*15
  1523. local lb2 = Instance.new("Part")
  1524. lb2.Parent = bulletgos2
  1525. lb2.Material = "Neon"
  1526. lb2.Color = lb.Color
  1527. lb2.CanCollide = false
  1528. lb2.Anchored = true
  1529. lb2.Transparency = 0
  1530. lb2.Size = vt(2,2,2)
  1531. lb2.CFrame = lbs.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1532. lb2.CFrame = lb2.CFrame + lb.CFrame.lookVector*15
  1533. local thing2 = Instance.new("SpecialMesh",lb2)
  1534. thing2.MeshType = "Sphere"
  1535. thing2.Scale = Vector3.new(0.5,0.5,1.5)
  1536. lb.Touched:connect(function(hit)
  1537. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1538. end)
  1539. lb2.Touched:connect(function(hit)
  1540. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1541. end)
  1542. end
  1543. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1544. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1545. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1546. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1547. CFuncs["Sound"].Create("rbxassetid://925629856", lbs, 5, 1)
  1548. game:GetService("Debris"):AddItem(bulletgos, 7)
  1549. game:GetService("Debris"):AddItem(bulletgos2, 7)
  1550. for i,v in pairs(bulletgos:children()) do
  1551. if v:IsA("Part") then
  1552. v.Anchored = false
  1553. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1554. local bv = Instance.new("BodyVelocity")
  1555. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1556. bv.velocity = v.CFrame.lookVector*25
  1557. bv.Parent = v
  1558. game:GetService("Debris"):AddItem(v, 5)
  1559. end
  1560. end
  1561. for i,v in pairs(bulletgos2:children()) do
  1562. if v:IsA("Part") then
  1563. v.Anchored = false
  1564. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1565. local bv = Instance.new("BodyVelocity")
  1566. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1567. bv.velocity = v.CFrame.lookVector*-25
  1568. bv.Parent = v
  1569. game:GetService("Debris"):AddItem(v, 5)
  1570. end
  1571. end
  1572. wait(1)
  1573. end
  1574. end
  1575.  
  1576. function TargetTwinkle()
  1577. attack = true
  1578. for i = 0,1,0.1 do
  1579. swait()
  1580. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1581. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.1)
  1582. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  1583. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  1584. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1)
  1585. end
  1586. attack = false
  1587. local a = Instance.new("Part",Character)
  1588. a.BrickColor = BrickColor.random()
  1589. a.Name = "Lazer"
  1590. a.Anchored = true
  1591. a.Material = "Neon"
  1592. a.Transparency = 1
  1593. a.CanCollide = false
  1594. local hitbox = Instance.new("Part",char)
  1595. hitbox.Size = Vector3.new(5,5,5)
  1596. hitbox.CFrame = mouse.hit
  1597. hitbox.Anchored = true
  1598. hitbox.Transparency = 1
  1599. hitbox.CanCollide = false
  1600. local ray = Ray.new(
  1601. sorb.CFrame.p, -- origin
  1602. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1603. )
  1604. local ignore = Character
  1605. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1606. if hit then
  1607. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1608.  
  1609. if not humanoid then
  1610. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1611. end
  1612. if humanoid then
  1613. if humanoid.Parent:IsA"Model" then
  1614. local bulletgos = it("Model",char)
  1615. local bulletgos2 = it("Model",char)
  1616. for z = 0, 24 do
  1617. wait(0.05)
  1618. local lb = Instance.new("Part")
  1619. lb.Parent = bulletgos2
  1620. lb.Material = "Neon"
  1621. lb.Color = BrickColor.new("Dark indigo").Color
  1622. lb.CanCollide = false
  1623. lb.Anchored = true
  1624. lb.Transparency = 0
  1625. lb.Size = vt(2,2,2)
  1626. local thing = Instance.new("SpecialMesh",lb)
  1627. thing.MeshType = "Sphere"
  1628. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1629. lb.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1630. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*15
  1631. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.5, 1)
  1632. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1633. lb.Touched:connect(function(hit)
  1634. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1635. end)
  1636. end
  1637. wait(1)
  1638. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1639. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1640. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1641. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1642. CFuncs["Sound"].Create("rbxassetid://925629856", hit, 5, 1)
  1643. game:GetService("Debris"):AddItem(bulletgos, 7)
  1644. game:GetService("Debris"):AddItem(bulletgos2, 7)
  1645. for i,v in pairs(bulletgos:children()) do
  1646. if v:IsA("Part") then
  1647. v.Anchored = false
  1648. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1649. local bv = Instance.new("BodyVelocity")
  1650. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1651. bv.velocity = v.CFrame.lookVector*25
  1652. bv.Parent = v
  1653. game:GetService("Debris"):AddItem(v, 5)
  1654. end
  1655. end
  1656. for i,v in pairs(bulletgos2:children()) do
  1657. if v:IsA("Part") then
  1658. v.Anchored = false
  1659. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1660. local bv = Instance.new("BodyVelocity")
  1661. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1662. bv.velocity = v.CFrame.lookVector*-25
  1663. bv.Parent = v
  1664. game:GetService("Debris"):AddItem(v, 5)
  1665. end
  1666. end
  1667. end
  1668. end
  1669. end
  1670. a.BottomSurface = 10
  1671. a.TopSurface = 10
  1672. local distance = (sorb.CFrame.p - position).magnitude
  1673. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1674. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1675. game:GetService("Debris"):AddItem(a, 5)
  1676. game:GetService("Debris"):AddItem(hitbox, 1)
  1677. game:GetService("Debris"):AddItem(lbs, 10)
  1678. end
  1679.  
  1680. function TargetTwinkleCurse()
  1681. CFuncs["Sound"].Create("rbxassetid://925333540", char, 0.5, 1)
  1682. coold = true
  1683. MagicBlock(BrickColor.new("Really black"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  1684. MagicBlock(BrickColor.new("Dark indigo"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  1685. wait(1)
  1686. attack = true
  1687. coold = false
  1688. for i = 0,4,0.1 do
  1689. swait()
  1690. MagicBlock(BrickColor.new("Really black"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1691. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.1)
  1692. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  1693. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  1694. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1)
  1695. end
  1696. attack = false
  1697. local a = Instance.new("Part",Character)
  1698. a.BrickColor = BrickColor.random()
  1699. a.Name = "Lazer"
  1700. a.Anchored = true
  1701. a.Material = "Neon"
  1702. a.Transparency = 1
  1703. a.CanCollide = false
  1704. local hitbox = Instance.new("Part",char)
  1705. hitbox.Size = Vector3.new(5,5,5)
  1706. hitbox.CFrame = mouse.hit
  1707. hitbox.Anchored = true
  1708. hitbox.Transparency = 1
  1709. hitbox.CanCollide = false
  1710. local ray = Ray.new(
  1711. sorb.CFrame.p, -- origin
  1712. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1713. )
  1714. local ignore = Character
  1715. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1716. if hit then
  1717. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1718.  
  1719. if not humanoid then
  1720. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1721. end
  1722. if humanoid then
  1723. if humanoid.Parent:IsA"Model" then
  1724. for z = 0, 49 do
  1725. wait(0.1)
  1726. local lb = Instance.new("Part")
  1727. lb.Anchored = true
  1728. lb.Parent = char
  1729. lb.Material = "Neon"
  1730. lb.Color = BrickColor.new("Dark indigo").Color
  1731. lb.CanCollide = false
  1732. lb.Transparency = 0
  1733. lb.Size = vt(2,2,2)
  1734. local thing = Instance.new("SpecialMesh",lb)
  1735. thing.MeshType = "Sphere"
  1736. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1737. lb.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1738. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*7.5
  1739. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.5, 1)
  1740. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1741. lb.Touched:connect(function(hit)
  1742. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1743. end)
  1744. wait(0.1)
  1745. lb.Anchored = false
  1746. local bv = Instance.new("BodyVelocity")
  1747. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1748. bv.velocity = lb.CFrame.lookVector*-5
  1749. bv.Parent = lb
  1750. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,1,1,1,-0.1,-0.1,-0.1,0.025)
  1751. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,1,1,1,0.1,0.1,0.1,0.025)
  1752. CFuncs["Sound"].Create("rbxassetid://925629856", lb, 0.1, 1)
  1753. game:GetService("Debris"):AddItem(lb, 7)
  1754. end
  1755. end
  1756. end
  1757. end
  1758. a.BottomSurface = 10
  1759. a.TopSurface = 10
  1760. local distance = (sorb.CFrame.p - position).magnitude
  1761. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1762. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1763. game:GetService("Debris"):AddItem(a, 5)
  1764. game:GetService("Debris"):AddItem(hitbox, 1)
  1765. game:GetService("Debris"):AddItem(lbs, 10)
  1766. end
  1767.  
  1768. function TargetPulse()
  1769. CFuncs["Sound"].Create("rbxassetid://925333540", char, 0.5, 1)
  1770. coold = true
  1771. MagicBlock(BrickColor.new("Really black"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  1772. MagicBlock(BrickColor.new("Dark indigo"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  1773. wait(1)
  1774. attack = true
  1775. coold = false
  1776. for i = 0,3,0.1 do
  1777. swait()
  1778. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1779. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.1)
  1780. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  1781. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  1782. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1)
  1783. end
  1784. attack = false
  1785. local a = Instance.new("Part",Character)
  1786. a.BrickColor = BrickColor.random()
  1787. a.Name = "Lazer"
  1788. a.Anchored = true
  1789. a.Material = "Neon"
  1790. a.Transparency = 1
  1791. a.CanCollide = false
  1792. local hitbox = Instance.new("Part",char)
  1793. hitbox.Size = Vector3.new(5,5,5)
  1794. hitbox.CFrame = mouse.hit
  1795. hitbox.Anchored = true
  1796. hitbox.Transparency = 1
  1797. hitbox.CanCollide = false
  1798. local ray = Ray.new(
  1799. sorb.CFrame.p, -- origin
  1800. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1801. )
  1802. local ignore = Character
  1803. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1804. if hit then
  1805. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1806.  
  1807. if not humanoid then
  1808. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1809. end
  1810. if humanoid then
  1811. if humanoid.Parent:IsA"Model" then
  1812. local bulletgos = it("Model",char)
  1813. local bulletgos2 = it("Model",char)
  1814. for z = 0, 49 do
  1815. wait(0.05)
  1816. local lb = Instance.new("Part")
  1817. lb.Parent = bulletgos2
  1818. lb.Material = "Neon"
  1819. lb.Color = BrickColor.new("Dark indigo").Color
  1820. lb.CanCollide = false
  1821. lb.Anchored = true
  1822. lb.Transparency = 0
  1823. lb.Size = vt(1,1,10)
  1824. local thing = Instance.new("SpecialMesh",lb)
  1825. thing.MeshType = "Sphere"
  1826. thing.Scale = Vector3.new(1,1,1.25)
  1827. lb.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1828. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*45
  1829. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.5, 1)
  1830. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1831. lb.Touched:connect(function(hit)
  1832. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1833. end)
  1834. local lb2 = Instance.new("Part")
  1835. lb2.Parent = bulletgos
  1836. lb2.Material = "Neon"
  1837. lb2.Color = BrickColor.new("Really black").Color
  1838. lb2.CanCollide = false
  1839. lb2.Anchored = true
  1840. lb2.Transparency = 0
  1841. lb2.Size = vt(2,2,2)
  1842. local thing = Instance.new("SpecialMesh",lb2)
  1843. thing.MeshType = "Sphere"
  1844. lb2.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1845. lb2.CFrame = lb2.CFrame + lb2.CFrame.lookVector*10
  1846. CFuncs["Sound"].Create("rbxassetid://929619479", lb2, 0.5, 1)
  1847. MagicBlock(BrickColor.new("Dark indigo"),lb2.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1848. lb2.Touched:connect(function(hit)
  1849. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1850. end)
  1851. end
  1852. wait(1)
  1853. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1854. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1855. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1856. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1857. CFuncs["Sound"].Create("rbxassetid://925629856", hit, 5, 1)
  1858. game:GetService("Debris"):AddItem(bulletgos, 7)
  1859. game:GetService("Debris"):AddItem(bulletgos2, 7)
  1860. for i,v in pairs(bulletgos:children()) do
  1861. if v:IsA("Part") then
  1862. v.Anchored = false
  1863. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1864. local bv = Instance.new("BodyVelocity")
  1865. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1866. bv.velocity = v.CFrame.lookVector*-2.5
  1867. bv.Parent = v
  1868. game:GetService("Debris"):AddItem(v, 10)
  1869. end
  1870. end
  1871. for i,v in pairs(bulletgos2:children()) do
  1872. if v:IsA("Part") then
  1873. v.Anchored = false
  1874. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1875. local bv = Instance.new("BodyVelocity")
  1876. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1877. bv.velocity = v.CFrame.lookVector*-10
  1878. bv.Parent = v
  1879. game:GetService("Debris"):AddItem(v, 10)
  1880. end
  1881. end
  1882. end
  1883. end
  1884. end
  1885. a.BottomSurface = 10
  1886. a.TopSurface = 10
  1887. local distance = (sorb.CFrame.p - position).magnitude
  1888. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1889. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1890. game:GetService("Debris"):AddItem(a, 5)
  1891. game:GetService("Debris"):AddItem(hitbox, 1)
  1892. game:GetService("Debris"):AddItem(lbs, 10)
  1893. end
  1894.  
  1895. function TwinkleSpiral()
  1896. attack = true
  1897. hum.WalkSpeed = 0
  1898. for i = 0,3,0.1 do
  1899. swait()
  1900. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1901. MagicBlock(BrickColor.new("Dark indigo"),sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1902. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(30)),.1)
  1903. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-30)),.1)
  1904. RW.C0 = clerp(RW.C0, CFrame.new(0.85, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-90)), 0.1)
  1905. LW.C0 = clerp(LW.C0, CFrame.new(-0.85, 0.5, -0.5) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  1906. end
  1907. local bulletgos = it("Model",char)
  1908. local bulletgos2 = it("Model",char)
  1909. local rotation = 0
  1910. local dis = 75
  1911. for z = 0, 99 do
  1912. wait(0.05)
  1913. rotation = rotation + 6.15
  1914. local lb = Instance.new("Part")
  1915. lb.Parent = bulletgos
  1916. lb.Material = "Neon"
  1917. lb.Color = BrickColor.new("Dark indigo").Color
  1918. lb.CanCollide = false
  1919. lb.Anchored = true
  1920. lb.Transparency = 0
  1921. lb.Size = vt(2,2,2)
  1922. local thing = Instance.new("SpecialMesh",lb)
  1923. thing.MeshType = "Sphere"
  1924. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1925. lb.CFrame = root.CFrame
  1926. lb.CFrame = lb.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  1927. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*dis/6
  1928. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.25, 1)
  1929. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1930. lb.Touched:connect(function(hit)
  1931. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1932. end)
  1933. local lb2 = Instance.new("Part")
  1934. lb2.Parent = bulletgos2
  1935. lb2.Material = "Neon"
  1936. lb2.Color = BrickColor.new("Dark indigo").Color
  1937. lb2.CanCollide = false
  1938. lb2.Anchored = true
  1939. lb2.Transparency = 0
  1940. lb2.Size = vt(2,2,2)
  1941. local thing = Instance.new("SpecialMesh",lb2)
  1942. thing.MeshType = "Sphere"
  1943. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1944. lb2.CFrame = root.CFrame
  1945. lb2.CFrame = lb2.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  1946. lb2.CFrame = lb2.CFrame - lb2.CFrame.lookVector*dis/6
  1947. CFuncs["Sound"].Create("rbxassetid://929619479", lb2, 0.25, 1)
  1948. MagicBlock(BrickColor.new("Dark indigo"),lb2.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1949. lb2.Touched:connect(function(hit)
  1950. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1951. end)
  1952. dis = dis + 2.5
  1953. end
  1954. wait(0.5)
  1955. hum.WalkSpeed = 16
  1956. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1957. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1958. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1959. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1960. CFuncs["Sound"].Create("rbxassetid://925629856", root, 5, 1)
  1961. game:GetService("Debris"):AddItem(bulletgos, 7)
  1962. game:GetService("Debris"):AddItem(bulletgos2, 7)
  1963. for i,v in pairs(bulletgos:children()) do
  1964. if v:IsA("Part") then
  1965. v.Anchored = false
  1966. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1967. local bv = Instance.new("BodyVelocity")
  1968. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1969. bv.velocity = v.CFrame.lookVector*25
  1970. bv.Parent = v
  1971. game:GetService("Debris"):AddItem(v, 5)
  1972. end
  1973. end
  1974. for i,v in pairs(bulletgos2:children()) do
  1975. if v:IsA("Part") then
  1976. v.Anchored = false
  1977. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1978. local bv = Instance.new("BodyVelocity")
  1979. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1980. bv.velocity = v.CFrame.lookVector*-25
  1981. bv.Parent = v
  1982. game:GetService("Debris"):AddItem(v, 5)
  1983. end
  1984. end
  1985. attack = false
  1986. end
  1987.  
  1988. function TwinkleSpiralInpulse()
  1989. attack = true
  1990. hum.WalkSpeed = 0
  1991. for i = 0,3,0.1 do
  1992. swait()
  1993. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1994. MagicBlock(BrickColor.new("Dark indigo"),sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1995. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(30)),.1)
  1996. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-30)),.1)
  1997. RW.C0 = clerp(RW.C0, CFrame.new(0.85, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-90)), 0.1)
  1998. LW.C0 = clerp(LW.C0, CFrame.new(-0.85, 0.5, -0.5) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  1999. end
  2000. local bulletgos = it("Model",char)
  2001. local bulletgos2 = it("Model",char)
  2002. local rotation = 0
  2003. local dis = 75
  2004. for z = 0, 99 do
  2005. wait(0.05)
  2006. rotation = rotation + 6.15
  2007. local lb = Instance.new("Part")
  2008. lb.Parent = bulletgos2
  2009. lb.Material = "Neon"
  2010. lb.Color = BrickColor.new("Dark indigo").Color
  2011. lb.CanCollide = false
  2012. lb.Anchored = true
  2013. lb.Transparency = 0
  2014. lb.Size = vt(2,2,2)
  2015. local thing = Instance.new("SpecialMesh",lb)
  2016. thing.MeshType = "Sphere"
  2017. thing.Scale = Vector3.new(0.5,0.5,1.5)
  2018. lb.CFrame = root.CFrame
  2019. lb.CFrame = lb.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  2020. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*dis/6
  2021. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.25, 1)
  2022. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  2023. lb.Touched:connect(function(hit)
  2024. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  2025. end)
  2026. local lb2 = Instance.new("Part")
  2027. lb2.Parent = bulletgos
  2028. lb2.Material = "Neon"
  2029. lb2.Color = BrickColor.new("Dark indigo").Color
  2030. lb2.CanCollide = false
  2031. lb2.Anchored = true
  2032. lb2.Transparency = 0
  2033. lb2.Size = vt(2,2,2)
  2034. local thing = Instance.new("SpecialMesh",lb2)
  2035. thing.MeshType = "Sphere"
  2036. thing.Scale = Vector3.new(0.5,0.5,1.5)
  2037. lb2.CFrame = root.CFrame
  2038. lb2.CFrame = lb2.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  2039. lb2.CFrame = lb2.CFrame - lb2.CFrame.lookVector*dis/6
  2040. CFuncs["Sound"].Create("rbxassetid://929619479", lb2, 0.25, 1)
  2041. MagicBlock(BrickColor.new("Dark indigo"),lb2.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  2042. lb2.Touched:connect(function(hit)
  2043. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  2044. end)
  2045. dis = dis + 2.5
  2046. end
  2047. wait(0.5)
  2048. hum.WalkSpeed = 16
  2049. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  2050. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  2051. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  2052. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  2053. CFuncs["Sound"].Create("rbxassetid://925629856", root, 5, 1)
  2054. game:GetService("Debris"):AddItem(bulletgos, 7)
  2055. game:GetService("Debris"):AddItem(bulletgos2, 7)
  2056. for i,v in pairs(bulletgos:children()) do
  2057. if v:IsA("Part") then
  2058. v.Anchored = false
  2059. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  2060. local bv = Instance.new("BodyVelocity")
  2061. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2062. bv.velocity = v.CFrame.lookVector*25
  2063. bv.Parent = v
  2064. game:GetService("Debris"):AddItem(v, 5)
  2065. end
  2066. end
  2067. for i,v in pairs(bulletgos2:children()) do
  2068. if v:IsA("Part") then
  2069. v.Anchored = false
  2070. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  2071. local bv = Instance.new("BodyVelocity")
  2072. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2073. bv.velocity = v.CFrame.lookVector*-25
  2074. bv.Parent = v
  2075. game:GetService("Debris"):AddItem(v, 5)
  2076. end
  2077. end
  2078. attack = false
  2079. end
  2080.  
  2081.  
  2082.  
  2083.  
  2084.  
  2085. local enabledb = false
  2086.  
  2087. mouse.KeyDown:connect(function(k)
  2088. if k == "z" and attack == false and coold == false then
  2089. Twinkle()
  2090. end
  2091. if k == "x" and attack == false and coold == false then
  2092. TwinkleBurst()
  2093. end
  2094. if k == "c" and attack == false and coold == false then
  2095. TargetTwinkle()
  2096. end
  2097. if k == "v" and attack == false and coold == false then
  2098. TwinkleSpiral()
  2099. end
  2100. if k == "b" and attack == false and coold == false then
  2101. TwinkleSpiralInpulse()
  2102. end
  2103. if k == "n" and attack == false and coold == false then
  2104. TargetPulse()
  2105. end
  2106. if k == "m" and attack == false and coold == false then
  2107. TargetTwinkleCurse()
  2108. end
  2109. end)
  2110.  
  2111. Humanoid.Animator.Parent = nil
  2112. idleanim=.4
  2113. while true do
  2114. swait()
  2115. sine = sine + change
  2116. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2117. local velderp=RootPart.Velocity.y
  2118. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2119. if equipped==true or equipped==false then
  2120. if attack==false then
  2121. idle=idle+1
  2122. else
  2123. idle=0
  2124. end
  2125. if idle>=500 then
  2126. if attack==false then
  2127. --Sheath()
  2128. end
  2129. end
  2130. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2131. Anim="Jump"
  2132. if attack==false then
  2133. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2134. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2135. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2136. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  2137. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2138. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  2139. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2140. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2141. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2142. end
  2143. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2144. Anim="Fall"
  2145. if attack==false then
  2146. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  2147. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2148. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2149. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  2150. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2151. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  2152. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2153. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2154. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2155. end
  2156. elseif torvel<1 and hitfloor~=nil then
  2157. Anim="Idle"
  2158. if plr.Name ~= "ShADow0nYx" then
  2159. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  2160. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  2161. if attack==false then
  2162. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2163. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  2164. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(5 + 2.5 * math.cos(sine / 25))),.3)
  2165. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.3)
  2166. end
  2167. elseif plr.Name == "ShADow0nYx" then
  2168. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2.5 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  2169. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  2170. if attack==false then
  2171. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2172. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(10),math.rad(0)),.3)
  2173. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 25))),.3)
  2174. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 25))),.3)
  2175. end
  2176. end
  2177. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2178. Anim="Walk"
  2179. if plr.Name ~= "ShADow0nYx" then
  2180. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  2181. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  2182. if attack==false then
  2183. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  2184. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2185. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3)
  2186. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3)
  2187. end
  2188. elseif plr.Name == "ShADow0nYx" then
  2189. RH.C0=clerp(RH.C0,cf(1 - 0.015 * math.cos(sine / 4),-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0 + 5 * math.cos(sine / 4)),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  2190. LH.C0=clerp(LH.C0,cf(-1 + 0.015 * math.cos(sine / 4),-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0 + 5 * math.cos(sine / 4)),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  2191. if attack==false then
  2192. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0 - 10 * math.cos(sine / 8))),.3)
  2193. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0 + 10 * math.cos(sine / 8))),.3)
  2194. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(20 - 7.5 * math.cos(sine / 4))),.3)
  2195. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-20 + 7.5 * math.cos(sine / 4))),.3)
  2196. end
  2197. end
  2198. elseif torvel>=22 and hitfloor~=nil then
  2199. Anim="Run"
  2200. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2201. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2202. if attack==false then
  2203. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  2204. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2205. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  2206. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  2207. end
  2208. end
  2209. end
  2210. end
  2211. local basgui = it("GuiMain")
  2212. basgui.Parent = Player.PlayerGui
  2213. basgui.Name = "CooldownsGUI"
  2214. local basframe = it("Frame")
  2215. basframe.Parent = basgui
  2216. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  2217. basframe.BackgroundTransparency = 1
  2218. basframe.BorderColor3 = Color3.new(17, 17, 17)
  2219. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  2220. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  2221. local basicgui = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Royal purple").Color, UDim2.new(0.35, 0, -0.125, 0), UDim2.new(0.45, 0, 0.35, 0))
  2222. basicgui.ZIndex = 2
  2223. basicgui.Font = "Highway"
  2224. basicgui.BackgroundTransparency = 0.5
  2225. basicgui.BorderSizePixel = 0.65
  2226. basicgui.TextScaled = true
  2227. basicgui.Text = "(C)\n???"
  2228. basicgui.TextSize = 24
  2229. local basicgui2 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Royal purple").Color, UDim2.new(-0.15, 0, -0.125, 0), UDim2.new(0.45, 0, 0.35, 0))
  2230. basicgui2.ZIndex = 2
  2231. basicgui2.Font = "Highway"
  2232. basicgui2.BackgroundTransparency = 0.5
  2233. basicgui2.BorderSizePixel = 0.65
  2234. basicgui2.TextScaled = true
  2235. basicgui2.Text = "(M)\nTarget"
  2236. basicgui2.TextSize = 24
  2237. local basicgui3 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Royal purple").Color, UDim2.new(-0.15, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
  2238. basicgui3.ZIndex = 2
  2239. basicgui3.Font = "Highway"
  2240. basicgui3.BackgroundTransparency = 0.5
  2241. basicgui3.BorderSizePixel = 0.65
  2242. basicgui3.TextScaled = true
  2243. basicgui3.Text = "(N)\nTarget"
  2244. basicgui3.TextSize = 24
  2245. local basicgui4 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Royal purple").Color, UDim2.new(0.35, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
  2246. basicgui4.ZIndex = 2
  2247. basicgui4.Font = "Highway"
  2248. basicgui4.BackgroundTransparency = 0.5
  2249. basicgui4.BorderSizePixel = 0.65
  2250. basicgui4.TextScaled = true
  2251. basicgui4.Text = "(V)\nSpiral Out"
  2252. basicgui4.TextSize = 24
  2253. local basicgui5 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Royal purple").Color, UDim2.new(-0.15, 0, -0.475, 0), UDim2.new(0.45, 0, 0.35, 0))
  2254. basicgui5.ZIndex = 2
  2255. basicgui5.Font = "Highway"
  2256. basicgui5.BackgroundTransparency = 0.5
  2257. basicgui5.BorderSizePixel = 0.65
  2258. basicgui5.TextScaled = true
  2259. basicgui5.Text = "(X)\nMulti Shot"
  2260. basicgui5.TextSize = 24
  2261. local basicgui6 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Royal purple").Color, UDim2.new(0.35, 0, -0.475, 0), UDim2.new(0.45, 0, 0.35, 0))
  2262. basicgui6.ZIndex = 2
  2263. basicgui6.Font = "Highway"
  2264. basicgui6.BackgroundTransparency = 0.5
  2265. basicgui6.BorderSizePixel = 0.65
  2266. basicgui6.TextScaled = true
  2267. basicgui6.Text = "(Z)\nExploding Shot"
  2268. basicgui6.TextSize = 24
  2269.  
  2270. local healthg = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.675, 0), UDim2.new(0.95, 0, 0.15, 0))
  2271. healthg.ZIndex = 2
  2272. healthg.Font = "Highway"
  2273. healthg.BackgroundTransparency = 0.5
  2274. healthg.BorderSizePixel = 0.65
  2275. healthg.TextScaled = true
  2276. healthg.Text = "health"
  2277. healthg.TextSize = 24
  2278.  
  2279. char.Humanoid.Animator.Parent = nil
  2280. warn'Danmaku V1.6 by NoobyGames12'
  2281. warn'Do not leak it! or else...'
  2282. plr = game.Players.LocalPlayer
  2283. char = plr.Character
  2284. hum = char.Humanoid
  2285. local cam = game.Workspace.CurrentCamera
  2286. t = char.Torso
  2287. h = char.Head
  2288. ra = char["Right Arm"]
  2289. la = char["Left Arm"]
  2290. rl = char["Right Leg"]
  2291. ll = char["Left Leg"]
  2292. tors = char.Torso
  2293. lleg = char["Left Leg"]
  2294. root = char.HumanoidRootPart
  2295. hed = char.Head
  2296. rleg = char["Right Leg"]
  2297. rarm = char["Right Arm"]
  2298. larm = char["Left Arm"]
  2299. vt = Vector3.new
  2300. bc = BrickColor.new
  2301. br = BrickColor.random
  2302. it = Instance.new
  2303. cf = CFrame.new
  2304.  
  2305. local Create = LoadLibrary("RbxUtility").Create
  2306.  
  2307. CFuncs = {
  2308. ["Part"] = {
  2309. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2310. local Part = Create("Part"){
  2311. Parent = Parent,
  2312. Reflectance = Reflectance,
  2313. Transparency = Transparency,
  2314. CanCollide = false,
  2315. Locked = true,
  2316. BrickColor = BrickColor.new(tostring(BColor)),
  2317. Name = Name,
  2318. Size = Size,
  2319. Material = Material,
  2320. }
  2321. RemoveOutlines(Part)
  2322. return Part
  2323. end;
  2324. };
  2325.  
  2326. ["Mesh"] = {
  2327. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2328. local Msh = Create(Mesh){
  2329. Parent = Part,
  2330. Offset = OffSet,
  2331. Scale = Scale,
  2332. }
  2333. if Mesh == "SpecialMesh" then
  2334. Msh.MeshType = MeshType
  2335. Msh.MeshId = MeshId
  2336. end
  2337. return Msh
  2338. end;
  2339. };
  2340.  
  2341. ["Mesh"] = {
  2342. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2343. local Msh = Create(Mesh){
  2344. Parent = Part,
  2345. Offset = OffSet,
  2346. Scale = Scale,
  2347. }
  2348. if Mesh == "SpecialMesh" then
  2349. Msh.MeshType = MeshType
  2350. Msh.MeshId = MeshId
  2351. end
  2352. return Msh
  2353. end;
  2354. };
  2355.  
  2356. ["Weld"] = {
  2357. Create = function(Parent, Part0, Part1, C0, C1)
  2358. local Weld = Create("Weld"){
  2359. Parent = Parent,
  2360. Part0 = Part0,
  2361. Part1 = Part1,
  2362. C0 = C0,
  2363. C1 = C1,
  2364. }
  2365. return Weld
  2366. end;
  2367. };
  2368.  
  2369. ["Sound"] = {
  2370. Create = function(id, par, vol, pit)
  2371. coroutine.resume(coroutine.create(function()
  2372. local S = Create("Sound"){
  2373. Volume = vol,
  2374. Pitch = pit or 1,
  2375. SoundId = id,
  2376. Parent = par or workspace,
  2377. }
  2378. wait()
  2379. S:play()
  2380. game:GetService("Debris"):AddItem(S, 10)
  2381. end))
  2382. end;
  2383. };
  2384.  
  2385. ["ParticleEmitter"] = {
  2386. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  2387. local fp = Create("ParticleEmitter"){
  2388. Parent = Parent,
  2389. Color = ColorSequence.new(Color1, Color2),
  2390. LightEmission = LightEmission,
  2391. Size = Size,
  2392. Texture = Texture,
  2393. Transparency = Transparency,
  2394. ZOffset = ZOffset,
  2395. Acceleration = Accel,
  2396. Drag = Drag,
  2397. LockedToPart = LockedToPart,
  2398. VelocityInheritance = VelocityInheritance,
  2399. EmissionDirection = EmissionDirection,
  2400. Enabled = Enabled,
  2401. Lifetime = LifeTime,
  2402. Rate = Rate,
  2403. Rotation = Rotation,
  2404. RotSpeed = RotSpeed,
  2405. Speed = Speed,
  2406. VelocitySpread = VelocitySpread,
  2407. }
  2408. return fp
  2409. end;
  2410. };
  2411.  
  2412. CreateTemplate = {
  2413.  
  2414. };
  2415. }
  2416.  
  2417.  
  2418.  
  2419. New = function(Object, Parent, Name, Data)
  2420. local Object = Instance.new(Object)
  2421. for Index, Value in pairs(Data or {}) do
  2422. Object[Index] = Value
  2423. end
  2424. Object.Parent = Parent
  2425. Object.Name = Name
  2426. return Object
  2427. end
  2428.  
  2429. local m = Instance.new("Model",char)
  2430.  
  2431. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  2432. local p = Instance.new("Part")
  2433. p.Parent = parent
  2434. p.Size = Vector3.new(1,1,1)
  2435. p.Transparency = transparency
  2436. p.Reflectance = reflectance
  2437. p.CanCollide = false
  2438. p.Locked = true
  2439. p.BrickColor = brickcolor
  2440. p.Material = material
  2441. return p
  2442. end
  2443.  
  2444. function CreateMesh(parent,meshtype,x1,y1,z1)
  2445. local mesh = Instance.new("SpecialMesh",parent)
  2446. mesh.MeshType = meshtype
  2447. mesh.Scale = Vector3.new(x1,y1,z1)
  2448. return mesh
  2449. end
  2450.  
  2451. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  2452. local mesh = Instance.new("SpecialMesh",parent)
  2453. mesh.MeshType = "FileMesh"
  2454. mesh.MeshId = meshid
  2455. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  2456. mesh.Scale = Vector3.new(x1,y1,z1)
  2457. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  2458. return mesh
  2459. end
  2460.  
  2461. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  2462. local weld = Instance.new("Weld")
  2463. weld.Parent = parent
  2464. weld.Part0 = part0
  2465. weld.Part1 = part1
  2466. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  2467. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  2468. return weld
  2469. end
  2470.  
  2471.  
  2472. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  2473. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  2474. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  2475. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  2476.  
  2477. Player=game:GetService("Players").LocalPlayer
  2478. Character=Player.Character
  2479. PlayerGui=Player.PlayerGui
  2480. Backpack=Player.Backpack
  2481. Torso=Character.Torso
  2482. Head=Character.Head
  2483. Humanoid=Character.Humanoid
  2484. m=Instance.new('Model',Character)
  2485. LeftArm=Character["Left Arm"]
  2486. LeftLeg=Character["Left Leg"]
  2487. RightArm=Character["Right Arm"]
  2488. RightLeg=Character["Right Leg"]
  2489. LS=Torso["Left Shoulder"]
  2490. LH=Torso["Left Hip"]
  2491. RS=Torso["Right Shoulder"]
  2492. RH=Torso["Right Hip"]
  2493. Face = Head.face
  2494. Neck=Torso.Neck
  2495. it=Instance.new
  2496. attacktype=1
  2497. vt=Vector3.new
  2498. cf=CFrame.new
  2499. euler=CFrame.fromEulerAnglesXYZ
  2500. angles=CFrame.Angles
  2501. cloaked=false
  2502. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2503. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2504. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  2505. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  2506. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  2507. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  2508. RootPart=Character.HumanoidRootPart
  2509. RootJoint=RootPart.RootJoint
  2510. RootCF=euler(-1.57,0,3.14)
  2511. attack = false
  2512. attackdebounce = false
  2513. deb=false
  2514. equipped=true
  2515. hand=false
  2516. MMouse=nil
  2517. combo=0
  2518. mana=0
  2519. trispeed=.2
  2520. attackmode='none'
  2521. local idle=0
  2522. local Anim="Idle"
  2523. local Effects={}
  2524. local gun=false
  2525. local shoot=false
  2526. local sine = 0
  2527. local change = 1
  2528. player=nil
  2529.  
  2530. mouse=Player:GetMouse()
  2531. --save shoulders
  2532. RSH, LSH=nil, nil
  2533. --welds
  2534. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  2535. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  2536. LH=Torso["Left Hip"]
  2537. RH=Torso["Right Hip"]
  2538. TorsoColor=Torso.BrickColor
  2539. function NoOutline(Part)
  2540. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2541. end
  2542. player=Player
  2543. ch=Character
  2544. RSH=ch.Torso["Right Shoulder"]
  2545. LSH=ch.Torso["Left Shoulder"]
  2546. --
  2547. RSH.Parent=nil
  2548. LSH.Parent=nil
  2549. --
  2550. RW.Name="Right Shoulder"
  2551. RW.Part0=ch.Torso
  2552. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2553. RW.C1=cf(0, 0.5, 0)
  2554. RW.Part1=ch["Right Arm"]
  2555. RW.Parent=ch.Torso
  2556. --
  2557. LW.Name="Left Shoulder"
  2558. LW.Part0=ch.Torso
  2559. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2560. LW.C1=cf(0, 0.5, 0)
  2561. LW.Part1=ch["Left Arm"]
  2562. LW.Parent=ch.Torso
  2563.  
  2564. local Stats=Instance.new("BoolValue")
  2565. Stats.Name="Stats"
  2566. Stats.Parent=Character
  2567. local Atk=Instance.new("NumberValue")
  2568. Atk.Name="Damage"
  2569. Atk.Parent=Stats
  2570. Atk.Value=1
  2571. local Def=Instance.new("NumberValue")
  2572. Def.Name="Defense"
  2573. Def.Parent=Stats
  2574. Def.Value=1
  2575. local Speed=Instance.new("NumberValue")
  2576. Speed.Name="Speed"
  2577. Speed.Parent=Stats
  2578. Speed.Value=1
  2579. local Mvmt=Instance.new("NumberValue")
  2580. Mvmt.Name="Movement"
  2581. Mvmt.Parent=Stats
  2582. Mvmt.Value=1
  2583.  
  2584. local donum=0
  2585.  
  2586.  
  2587. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  2588. local fp=it("Part")
  2589. fp.formFactor=formfactor
  2590. fp.Parent=parent
  2591. fp.Reflectance=reflectance
  2592. fp.Transparency=transparency
  2593. fp.CanCollide=false
  2594. fp.Locked=true
  2595. fp.BrickColor=brickcolor
  2596. fp.Name=name
  2597. fp.Size=size
  2598. fp.Position=Torso.Position
  2599. NoOutline(fp)
  2600. fp.Material="SmoothPlastic"
  2601. fp:BreakJoints()
  2602. return fp
  2603. end
  2604.  
  2605. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2606. local mesh=it(Mesh)
  2607. mesh.Parent=part
  2608. if Mesh=="SpecialMesh" then
  2609. mesh.MeshType=meshtype
  2610. if meshid~="nil" then
  2611. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  2612. end
  2613. end
  2614. mesh.Offset=offset
  2615. mesh.Scale=scale
  2616. return mesh
  2617. end
  2618.  
  2619. function weld(parent,part0,part1,c0)
  2620. local weld=it("Weld")
  2621. weld.Parent=parent
  2622. weld.Part0=part0
  2623. weld.Part1=part1
  2624. weld.C0=c0
  2625. return weld
  2626. end
  2627.  
  2628. local Color1=Torso.BrickColor
  2629.  
  2630. local bodvel=Instance.new("BodyVelocity")
  2631. local bg=Instance.new("BodyGyro")
  2632.  
  2633. function swait(num)
  2634. if num==0 or num==nil then
  2635. game:service'RunService'.Stepped:wait(0)
  2636. else
  2637. for i=0,num do
  2638. game:service'RunService'.Stepped:wait(0)
  2639. end
  2640. end
  2641. end
  2642.  
  2643.  
  2644. so = function(id,par,vol,pit)
  2645. coroutine.resume(coroutine.create(function()
  2646. local sou = Instance.new("Sound",par or workspace)
  2647. sou.Volume=vol
  2648. sou.Pitch=pit or 1
  2649. sou.SoundId=id
  2650. swait()
  2651. sou:play()
  2652. game:GetService("Debris"):AddItem(sou,6)
  2653. end))
  2654. end
  2655.  
  2656. function clerp(a,b,t)
  2657. local qa = {QuaternionFromCFrame(a)}
  2658. local qb = {QuaternionFromCFrame(b)}
  2659. local ax, ay, az = a.x, a.y, a.z
  2660. local bx, by, bz = b.x, b.y, b.z
  2661. local _t = 1-t
  2662. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  2663. end
  2664.  
  2665. function QuaternionFromCFrame(cf)
  2666. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2667. local trace = m00 + m11 + m22
  2668. if trace > 0 then
  2669. local s = math.sqrt(1 + trace)
  2670. local recip = 0.5/s
  2671. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  2672. else
  2673. local i = 0
  2674. if m11 > m00 then
  2675. i = 1
  2676. end
  2677. if m22 > (i == 0 and m00 or m11) then
  2678. i = 2
  2679. end
  2680. if i == 0 then
  2681. local s = math.sqrt(m00-m11-m22+1)
  2682. local recip = 0.5/s
  2683. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  2684. elseif i == 1 then
  2685. local s = math.sqrt(m11-m22-m00+1)
  2686. local recip = 0.5/s
  2687. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  2688. elseif i == 2 then
  2689. local s = math.sqrt(m22-m00-m11+1)
  2690. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  2691. end
  2692. end
  2693. end
  2694.  
  2695. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2696. local xs, ys, zs = x + x, y + y, z + z
  2697. local wx, wy, wz = w*xs, w*ys, w*zs
  2698. local xx = x*xs
  2699. local xy = x*ys
  2700. local xz = x*zs
  2701. local yy = y*ys
  2702. local yz = y*zs
  2703. local zz = z*zs
  2704. 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))
  2705. end
  2706.  
  2707. function QuaternionSlerp(a, b, t)
  2708. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2709. local startInterp, finishInterp;
  2710. if cosTheta >= 0.0001 then
  2711. if (1 - cosTheta) > 0.0001 then
  2712. local theta = math.acos(cosTheta)
  2713. local invSinTheta = 1/math.sin(theta)
  2714. startInterp = math.sin((1-t)*theta)*invSinTheta
  2715. finishInterp = math.sin(t*theta)*invSinTheta
  2716. else
  2717. startInterp = 1-t
  2718. finishInterp = t
  2719. end
  2720. else
  2721. if (1+cosTheta) > 0.0001 then
  2722. local theta = math.acos(-cosTheta)
  2723. local invSinTheta = 1/math.sin(theta)
  2724. startInterp = math.sin((t-1)*theta)*invSinTheta
  2725. finishInterp = math.sin(t*theta)*invSinTheta
  2726. else
  2727. startInterp = t-1
  2728. finishInterp = t
  2729. end
  2730. end
  2731. 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
  2732. end
  2733.  
  2734. local function CFrameFromTopBack(at, top, back)
  2735. local right = top:Cross(back)
  2736. return CFrame.new(at.x, at.y, at.z,
  2737. right.x, top.x, back.x,
  2738. right.y, top.y, back.y,
  2739. right.z, top.z, back.z)
  2740. end
  2741.  
  2742. function Triangle(a, b, c)
  2743. local edg1 = (c-a):Dot((b-a).unit)
  2744. local edg2 = (a-b):Dot((c-b).unit)
  2745. local edg3 = (b-c):Dot((a-c).unit)
  2746. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2747. a, b, c = a, b, c
  2748. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2749. a, b, c = b, c, a
  2750. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2751. a, b, c = c, a, b
  2752. else
  2753. assert(false, "unreachable")
  2754. end
  2755.  
  2756. local len1 = (c-a):Dot((b-a).unit)
  2757. local len2 = (b-a).magnitude - len1
  2758. local width = (a + (b-a).unit*len1 - c).magnitude
  2759.  
  2760. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2761.  
  2762. local list = {}
  2763.  
  2764. if len1 > 0.01 then
  2765. local w1 = Instance.new('WedgePart', m)
  2766. game:GetService("Debris"):AddItem(w1,5)
  2767. w1.Material = "SmoothPlastic"
  2768. w1.FormFactor = 'Custom'
  2769. w1.BrickColor = BrickColor.new("Really red")
  2770. w1.Transparency = 0
  2771. w1.Reflectance = 0
  2772. w1.Material = "SmoothPlastic"
  2773. w1.CanCollide = false
  2774. local l1 = Instance.new("PointLight",w1)
  2775. l1.Color = Color3.new(170,0,0)
  2776. NoOutline(w1)
  2777. local sz = Vector3.new(0.2, width, len1)
  2778. w1.Size = sz
  2779. local sp = Instance.new("SpecialMesh",w1)
  2780. sp.MeshType = "Wedge"
  2781. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2782. w1:BreakJoints()
  2783. w1.Anchored = true
  2784. w1.Parent = workspace
  2785. w1.Transparency = 0.7
  2786. table.insert(Effects,{w1,"Disappear",.01})
  2787. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2788. table.insert(list,w1)
  2789. end
  2790.  
  2791. if len2 > 0.01 then
  2792. local w2 = Instance.new('WedgePart', m)
  2793. game:GetService("Debris"):AddItem(w2,5)
  2794. w2.Material = "SmoothPlastic"
  2795. w2.FormFactor = 'Custom'
  2796. w2.BrickColor = BrickColor.new("Really red")
  2797. w2.Transparency = 0
  2798. w2.Reflectance = 0
  2799. w2.Material = "SmoothPlastic"
  2800. w2.CanCollide = false
  2801. local l2 = Instance.new("PointLight",w2)
  2802. l2.Color = Color3.new(170,0,0)
  2803. NoOutline(w2)
  2804. local sz = Vector3.new(0.2, width, len2)
  2805. w2.Size = sz
  2806. local sp = Instance.new("SpecialMesh",w2)
  2807. sp.MeshType = "Wedge"
  2808. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2809. w2:BreakJoints()
  2810. w2.Anchored = true
  2811. w2.Parent = workspace
  2812. w2.Transparency = 0.7
  2813. table.insert(Effects,{w2,"Disappear",.01})
  2814. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2815. table.insert(list,w2)
  2816. end
  2817. return unpack(list)
  2818. end
  2819.  
  2820.  
  2821. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  2822. if hit.Parent==nil then
  2823. return
  2824. end
  2825. h=hit.Parent:FindFirstChild("Humanoid")
  2826. for _,v in pairs(hit.Parent:children()) do
  2827. if v:IsA("Humanoid") then
  2828. h=v
  2829. end
  2830. end
  2831. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2832. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2833. end
  2834. if hit.Parent.className=="Hat" then
  2835. hit=hit.Parent.Parent:findFirstChild("Head")
  2836. end
  2837. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2838. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2839. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2840. return
  2841. end]]
  2842. -- hs(hit,1.2)
  2843. c=Instance.new("ObjectValue")
  2844. c.Name="creator"
  2845. c.Value=game:service("Players").LocalPlayer
  2846. c.Parent=h
  2847. game:GetService("Debris"):AddItem(c,.5)
  2848. Damage=math.random(minim,maxim)
  2849. -- h:TakeDamage(Damage)
  2850. blocked=false
  2851. block=hit.Parent:findFirstChild("Block")
  2852. if block~=nil then
  2853. print(block.className)
  2854. if block.className=="NumberValue" then
  2855. if block.Value>0 then
  2856. blocked=true
  2857. if decreaseblock==nil then
  2858. block.Value=block.Value-1
  2859. end
  2860. end
  2861. end
  2862. if block.className=="IntValue" then
  2863. if block.Value>0 then
  2864. blocked=true
  2865. if decreaseblock~=nil then
  2866. block.Value=block.Value-1
  2867. end
  2868. end
  2869. end
  2870. end
  2871. if blocked==false then
  2872. -- h:TakeDamage(Damage)
  2873. h.Health=h.Health-Damage
  2874. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  2875. else
  2876. h.Health=h.Health-(Damage/2)
  2877. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  2878. end
  2879. if Type=="Knockdown" then
  2880. hum=hit.Parent.Humanoid
  2881. hum.PlatformStand=true
  2882. coroutine.resume(coroutine.create(function(HHumanoid)
  2883. swait(1)
  2884. HHumanoid.PlatformStand=false
  2885. end),hum)
  2886. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2887. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2888. local bodvol=Instance.new("BodyVelocity")
  2889. bodvol.velocity=angle*knockback
  2890. bodvol.P=5000
  2891. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2892. bodvol.Parent=hit
  2893. rl=Instance.new("BodyAngularVelocity")
  2894. rl.P=3000
  2895. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2896. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2897. rl.Parent=hit
  2898. game:GetService("Debris"):AddItem(bodvol,.5)
  2899. game:GetService("Debris"):AddItem(rl,.5)
  2900. elseif Type=="Normal" then
  2901. vp=Instance.new("BodyVelocity")
  2902. vp.P=500
  2903. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2904. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2905. if KnockbackType==1 then
  2906. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2907. elseif KnockbackType==2 then
  2908. vp.velocity=Property.CFrame.lookVector*knockback
  2909. end
  2910. if knockback>0 then
  2911. vp.Parent=hit.Parent.Torso
  2912. end
  2913. game:GetService("Debris"):AddItem(vp,.5)
  2914. elseif Type=="Up" then
  2915. local bodyVelocity=Instance.new("BodyVelocity")
  2916. bodyVelocity.velocity=vt(0,60,0)
  2917. bodyVelocity.P=5000
  2918. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2919. bodyVelocity.Parent=hit
  2920. game:GetService("Debris"):AddItem(bodyVelocity,1)
  2921. rl=Instance.new("BodyAngularVelocity")
  2922. rl.P=3000
  2923. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2924. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  2925. rl.Parent=hit
  2926. game:GetService("Debris"):AddItem(rl,.5)
  2927. elseif Type=="Snare" then
  2928. bp=Instance.new("BodyPosition")
  2929. bp.P=2000
  2930. bp.D=100
  2931. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2932. bp.position=hit.Parent.Torso.Position
  2933. bp.Parent=hit.Parent.Torso
  2934. game:GetService("Debris"):AddItem(bp,1)
  2935. elseif Type=="Target" then
  2936. if Targetting==false then
  2937. ZTarget=hit.Parent.Torso
  2938. coroutine.resume(coroutine.create(function(Part)
  2939. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2940. swait(5)
  2941. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2942. end),ZTarget)
  2943. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  2944. targetgui=Instance.new("BillboardGui")
  2945. targetgui.Parent=ZTarget
  2946. targetgui.Size=UDim2.new(10,100,10,100)
  2947. targ=Instance.new("ImageLabel")
  2948. targ.Parent=targetgui
  2949. targ.BackgroundTransparency=1
  2950. targ.Image="rbxassetid://4834067"
  2951. targ.Size=UDim2.new(1,0,1,0)
  2952. cam.CameraType="Scriptable"
  2953. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2954. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2955. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2956. Targetting=true
  2957. RocketTarget=ZTarget
  2958. for i=1,Property do
  2959. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  2960. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  2961. swait()
  2962. end
  2963. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  2964. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2965. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2966. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  2967. end
  2968. Targetting=false
  2969. RocketTarget=nil
  2970. targetgui.Parent=nil
  2971. cam.CameraType="Custom"
  2972. end
  2973. end
  2974. debounce=Instance.new("BoolValue")
  2975. debounce.Name="DebounceHit"
  2976. debounce.Parent=hit.Parent
  2977. debounce.Value=true
  2978. game:GetService("Debris"):AddItem(debounce,Delay)
  2979. c=Instance.new("ObjectValue")
  2980. c.Name="creator"
  2981. c.Value=Player
  2982. c.Parent=h
  2983. game:GetService("Debris"):AddItem(c,.5)
  2984. CRIT=false
  2985. hitDeb=true
  2986. AttackPos=6
  2987. end
  2988. end
  2989.  
  2990. showDamage=function(Char,Dealt,du,Color)
  2991. m=Instance.new("Model")
  2992. m.Name=tostring(Dealt)
  2993. h=Instance.new("Humanoid")
  2994. h.Health=0
  2995. h.MaxHealth=0
  2996. h.Parent=m
  2997. c=Instance.new("Part")
  2998. c.Transparency=0
  2999. c.BrickColor=Color
  3000. c.Transparency = 1
  3001. c.Name="Head"
  3002. c.TopSurface=0
  3003. c.BottomSurface=0
  3004. c.formFactor="Plate"
  3005. c.Size=Vector3.new(1,.4,1)
  3006.  
  3007. local txt = Instance.new("BillboardGui", c)
  3008. txt.Adornee = c
  3009. txt.Name = "_status"
  3010. txt.Size = UDim2.new(2, 0, 1.2, 0)
  3011. txt.StudsOffset = Vector3.new(-9, 8, 0)
  3012. local text = Instance.new("TextLabel", txt)
  3013. text.Size = UDim2.new(10, 0, 7, 0)
  3014. text.FontSize = "Size12"
  3015. text.TextScaled = true
  3016. text.TextTransparency = 0.5
  3017. text.BackgroundTransparency = 1
  3018. text.TextTransparency = 0.5
  3019. text.TextStrokeTransparency = 0.5
  3020. text.Font = "SciFi"
  3021. text.TextStrokeColor3 = Color3.new(0,0,0)
  3022. v=Instance.new("Part")
  3023. v.Name = "ColorBrick"
  3024. v.Parent=c
  3025. v.FormFactor="Symmetric"
  3026. v.Anchored=true
  3027. v.CanCollide=false
  3028. v.BottomSurface="Smooth"
  3029. v.TopSurface="Smooth"
  3030. v.Size=Vector3.new(10,5,3)
  3031. v.Transparency=1
  3032. v.CFrame=c.CFrame
  3033. v.BrickColor=BrickColor.random()
  3034. v.Transparency=1
  3035. text.TextColor3 = t.BrickColor.Color
  3036. v.Shape="Block"
  3037. text.Text = tostring(Dealt)
  3038. ms=Instance.new("CylinderMesh")
  3039. ms.Scale=Vector3.new(.8,.8,.8)
  3040. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  3041. local rndm=math.random(1,#hitsounds)
  3042. local r=rndm
  3043. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)
  3044. if CRIT==true then
  3045. ms.Scale=Vector3.new(1,1.25,1)
  3046. end
  3047. ms.Parent=c
  3048. c.Reflectance=0
  3049. Instance.new("BodyGyro").Parent=c
  3050. c.Parent=m
  3051. if Char:findFirstChild("Head")~=nil then
  3052. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  3053. elseif Char.Parent:findFirstChild("Head")~=nil then
  3054. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  3055. end
  3056. f=Instance.new("BodyPosition")
  3057. f.P=2000
  3058. f.D=100
  3059. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  3060. f.position=c.Position+Vector3.new(0,3,0)
  3061. f.Parent=c
  3062. game:GetService("Debris"):AddItem(m,.5+du)
  3063. c.CanCollide=false
  3064. m.Parent=workspace
  3065. c.CanCollide=false
  3066. end
  3067.  
  3068. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  3069. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  3070. end
  3071.  
  3072. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  3073. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3074. prt.Anchored=true
  3075. prt.CFrame=cframe
  3076. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  3077. --http://www.roblox.com/asset/?id=4770560
  3078. game:GetService("Debris"):AddItem(prt,2)
  3079. CF=prt.CFrame
  3080. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  3081. for i=0,1,0.2 do
  3082. wait()
  3083. Part.CFrame=CF*cf(0,0,-0.4)
  3084. end
  3085. for i=0,1,delay do
  3086. wait()
  3087. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  3088. Mesh.Scale=Mesh.Scale
  3089. end
  3090. for i=0,1,0.1 do
  3091. wait()
  3092. Part.Transparency=i
  3093. end
  3094. Part.Parent=nil
  3095. end),prt,msh,CF)
  3096. end
  3097.  
  3098. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3099. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3100. prt.Anchored=true
  3101. prt.Material = "Neon"
  3102. prt.CFrame=cframe
  3103. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3104. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3105. game:GetService("Debris"):AddItem(prt,5)
  3106. coroutine.resume(coroutine.create(function(Part,Mesh)
  3107. for i=0,1,delay do
  3108. swait()
  3109. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3110. Part.Transparency=i
  3111. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3112. end
  3113. Part.Parent=nil
  3114. end),prt,msh)
  3115. end
  3116.  
  3117. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  3118. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3119. prt.Anchored=true
  3120. prt.Material = "Neon"
  3121. prt.CFrame=cframe
  3122. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3123. game:GetService("Debris"):AddItem(prt,5)
  3124. coroutine.resume(coroutine.create(function(Part,Mesh)
  3125. local rtype = rottype
  3126. for i=0,1,delay do
  3127. swait()
  3128. if rtype == 1 then
  3129. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  3130. elseif rtype == 2 then
  3131. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  3132. end
  3133. Part.Transparency=i
  3134. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3135. end
  3136. Part.Parent=nil
  3137. end),prt,msh)
  3138. end
  3139.  
  3140. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3141. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3142. prt.Anchored=true
  3143. prt.CFrame=cframe
  3144. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3145. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  3146. game:GetService("Debris"):AddItem(prt,5)
  3147. coroutine.resume(coroutine.create(function(Part,Mesh)
  3148. for i=0,1,delay do
  3149. wait()
  3150. Part.Transparency=i
  3151. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3152. end
  3153. Part.Parent=nil
  3154. end),prt,msh)
  3155. end
  3156.  
  3157. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  3158. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3159. prt.Anchored=true
  3160. prt.Material = "Neon"
  3161. prt.CFrame=cframe
  3162. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3163. game:GetService("Debris"):AddItem(prt,5)
  3164. coroutine.resume(coroutine.create(function(Part,Mesh)
  3165. local rtype = rottype
  3166. for i=0,1,delay do
  3167. swait()
  3168. if rtype == 1 then
  3169. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  3170. elseif rtype == 2 then
  3171. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  3172. end
  3173. Part.Transparency=i
  3174. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3175. end
  3176. Part.Parent=nil
  3177. end),prt,msh)
  3178. end
  3179.  
  3180. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  3181. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3182. prt.Anchored=true
  3183. prt.Material = "Neon"
  3184. prt.CFrame=cframe
  3185. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  3186. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  3187. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  3188. game:GetService("Debris"):AddItem(prt,5)
  3189. coroutine.resume(coroutine.create(function(Part,Mesh)
  3190. local rtype = rottype
  3191. for i=0,1,delay do
  3192. swait()
  3193. if rtype == 1 then
  3194. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  3195. elseif rtype == 2 then
  3196. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  3197. end
  3198. dec.Transparency=i
  3199. dec2.Transparency=i
  3200. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  3201. end
  3202. Part.Parent=nil
  3203. end),prt,msh)
  3204. end
  3205.  
  3206. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  3207. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3208. prt.Anchored=true
  3209. prt.Material = "Neon"
  3210. prt.CFrame=cframe
  3211. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  3212. game:GetService("Debris"):AddItem(prt,5)
  3213. coroutine.resume(coroutine.create(function(Part,Mesh)
  3214. local rtype = rottype
  3215. for i=0,1,delay do
  3216. swait()
  3217. if rtype == 1 then
  3218. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  3219. elseif rtype == 2 then
  3220. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  3221. end
  3222. prt.Transparency=i
  3223. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  3224. end
  3225. Part.Parent=nil
  3226. end),prt,msh)
  3227. end
  3228.  
  3229. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  3230. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3231. prt.Anchored=true
  3232. prt.Material = "Neon"
  3233. prt.CFrame=cframe
  3234. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  3235. game:GetService("Debris"):AddItem(prt,5)
  3236. coroutine.resume(coroutine.create(function(Part,Mesh)
  3237. local rtype = rottype
  3238. for i=0,1,delay do
  3239. swait()
  3240. if rtype == 1 then
  3241. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  3242. elseif rtype == 2 then
  3243. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  3244. end
  3245. prt.Transparency=i
  3246. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  3247. end
  3248. Part.Parent=nil
  3249. end),prt,msh)
  3250. end
  3251.  
  3252. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  3253. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3254. prt.Anchored=true
  3255. prt.Material = "Neon"
  3256. prt.CFrame=cframe
  3257. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3258. game:GetService("Debris"):AddItem(prt,5)
  3259. coroutine.resume(coroutine.create(function(Part,Mesh)
  3260. local rtype = rottype
  3261. for i=0,1,delay do
  3262. swait()
  3263. if rtype == 1 then
  3264. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  3265. elseif rtype == 2 then
  3266. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  3267. end
  3268. prt.Transparency=i
  3269. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  3270. end
  3271. Part.Parent=nil
  3272. end),prt,msh)
  3273. end
  3274.  
  3275. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  3276. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3277. prt.Anchored=false
  3278. prt.CFrame=cframe
  3279. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3280. local wld=weld(prt,prt,Parent,cframe)
  3281. game:GetService("Debris"):AddItem(prt,5)
  3282. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  3283. for i=0,1,delay do
  3284. wait()
  3285. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  3286. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3287. Part.Transparency=i
  3288. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3289. end
  3290. Part.Parent=nil
  3291. end),prt,msh,wld)
  3292. end
  3293.  
  3294. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  3295. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3296. prt.Anchored=false
  3297. prt.CFrame=cframe
  3298. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3299. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  3300. game:GetService("Debris"):AddItem(prt,5)
  3301. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  3302. for i=0,1,delay do
  3303. wait()
  3304. Weld.C0=euler(i*20,0,0)
  3305. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3306. Part.Transparency=i
  3307. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3308. end
  3309. Part.Parent=nil
  3310. end),prt,msh,wld)
  3311. end
  3312.  
  3313. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3314. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3315. prt.Anchored=true
  3316. prt.CFrame=cframe
  3317. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3318. game:GetService("Debris"):AddItem(prt,2)
  3319. coroutine.resume(coroutine.create(function(Part,Mesh)
  3320. for i=0,1,delay do
  3321. wait()
  3322. Part.CFrame=Part.CFrame
  3323. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3324. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3325. prt2.Anchored=true
  3326. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3327. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  3328. game:GetService("Debris"):AddItem(prt2,2)
  3329. coroutine.resume(coroutine.create(function(Part,Mesh)
  3330. for i=0,1,0.1 do
  3331. wait()
  3332. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  3333. end
  3334. Part.Parent=nil
  3335. end),prt2,msh2)
  3336. end
  3337. for i=0,1,delay*2 do
  3338. wait()
  3339. Part.CFrame=Part.CFrame
  3340. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  3341. end
  3342. Part.Parent=nil
  3343. end),prt,msh)
  3344. end
  3345.  
  3346. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3347. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3348. prt.Anchored=true
  3349. prt.CFrame=cframe
  3350. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  3351. game:GetService("Debris"):AddItem(prt,2)
  3352. coroutine.resume(coroutine.create(function(Part,Mesh)
  3353. for i=0,1,delay do
  3354. wait()
  3355. Part.CFrame=Part.CFrame
  3356. Part.Transparency=i
  3357. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3358. end
  3359. Part.Parent=nil
  3360. end),prt,msh)
  3361. end
  3362.  
  3363. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  3364. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3365. prt.Anchored=true
  3366. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3367. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  3368. game:GetService("Debris"):AddItem(prt,2)
  3369. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  3370. CF=Part.CFrame
  3371. Numbb=0
  3372. randnumb=math.random()/10
  3373. rand1=math.random()/10
  3374. for i=0,1,rand1 do
  3375. wait()
  3376. CF=CF*cf(0,math.random()/2,0)
  3377. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  3378. Part.CFrame=CF*euler(Numbb,0,0)
  3379. Part.Transparency=i
  3380. Numbb=Numbb+randnumb
  3381. end
  3382. Part.Parent=nil
  3383. end),prt,CF,Numbb,randnumb)
  3384. end
  3385.  
  3386. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3387. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3388. prt.Anchored=true
  3389. prt.CFrame=cframe
  3390. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  3391. game:GetService("Debris"):AddItem(prt,5)
  3392. coroutine.resume(coroutine.create(function(Part,Mesh)
  3393. for i=0,1,delay do
  3394. wait()
  3395. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  3396. Part.Transparency=i
  3397. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3398. end
  3399. Part.Parent=nil
  3400. end),prt,msh)
  3401. end
  3402.  
  3403. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3404. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3405. prt.Anchored=true
  3406. prt.CFrame=cframe
  3407. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  3408. game:GetService("Debris"):AddItem(prt,2)
  3409. coroutine.resume(coroutine.create(function(Part,Mesh)
  3410. for i=0,1,delay do
  3411. wait()
  3412. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  3413. Part.Transparency=i
  3414. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3415. end
  3416. Part.Parent=nil
  3417. end),prt,msh)
  3418. end
  3419.  
  3420. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  3421. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3422. prt.Anchored=true
  3423. prt.CFrame=cframe*cf(x,y,z)
  3424. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  3425. game:GetService("Debris"):AddItem(prt,5)
  3426. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  3427. local num=math.random()
  3428. local num2=math.random(-3,2)+math.random()
  3429. local numm=0
  3430. for i=0,1,delay*2 do
  3431. swait()
  3432. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  3433. Part.Transparency=i
  3434. numm=numm+0.01
  3435. end
  3436. Part.Parent=nil
  3437. Mesh.Parent=nil
  3438. end),prt,msh,x,y,z)
  3439. end
  3440.  
  3441. function dmgstart(dmg,what)
  3442. hitcon = what.Touched:connect(function(hit)
  3443. local hum = hit.Parent:FindFirstChild("Humanoid")
  3444. if hum and not hum:IsDescendantOf(Character) then
  3445. hum:TakeDamage(dmg)
  3446. end
  3447. end)
  3448. end
  3449.  
  3450. function dmgstop()
  3451. hitcon:disconnect()
  3452. end
  3453.  
  3454. function Cloak()
  3455. Face.Parent=nil
  3456. cloaked=true
  3457. for _,v in pairs(Torso.Parent:children()) do
  3458. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  3459. coroutine.resume(coroutine.create(function()
  3460. for i=0,1,0.2 do
  3461. wait()
  3462. v.Transparency=i
  3463. end
  3464. v.Transparency=1
  3465. end))
  3466. end
  3467. if v.className=="Hat" then
  3468. hatp=v.Handle
  3469. coroutine.resume(coroutine.create(function(derp)
  3470. for i=0,1,0.2 do
  3471. wait()
  3472. derp.Transparency=i
  3473. end
  3474. derp.Transparency=1
  3475. end),hatp)
  3476. end
  3477. end
  3478. for _,v in pairs(m:children()) do
  3479. if v.className=="Part" then
  3480. coroutine.resume(coroutine.create(function()
  3481. for i=0,1,0.2 do
  3482. wait()
  3483. v.Transparency=i
  3484. end
  3485. v.Transparency=1
  3486. end))
  3487. end
  3488. end
  3489. end
  3490.  
  3491. function UnCloak()
  3492. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  3493. Face.Parent=Head
  3494. cloaked=false
  3495. for _,v in pairs(Torso.Parent:children()) do
  3496. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  3497. coroutine.resume(coroutine.create(function()
  3498. for i=0,1,0.1 do
  3499. wait()
  3500. v.Transparency=v.Transparency-0.1
  3501. end
  3502. v.Transparency=0
  3503. end))
  3504. end
  3505. if v.className=="Hat" then
  3506. hatp=v.Handle
  3507. coroutine.resume(coroutine.create(function(derp)
  3508. for i=0,1,0.1 do
  3509. wait()
  3510. derp.Transparency=derp.Transparency-0.1
  3511. end
  3512. derp.Transparency=0
  3513. end),hatp)
  3514. end
  3515. end
  3516. for _,v in pairs(m:children()) do
  3517. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  3518. coroutine.resume(coroutine.create(function()
  3519. for i=0,1,0.1 do
  3520. wait()
  3521. v.Transparency=v.Transparency-0.1
  3522. end
  3523. v.Transparency=0
  3524. end))
  3525. v.Transparency=0
  3526. end
  3527. end
  3528. end
  3529.  
  3530. local coold = false
  3531.  
  3532. function Twinkle()
  3533. attack = true
  3534. for i = 0,5,0.1 do
  3535. swait()
  3536. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  3537. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.1)
  3538. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  3539. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  3540. LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.35) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  3541. end
  3542. local bulletgos = it("Model",char)
  3543. local bulletgos2 = it("Model",char)
  3544. local a = Instance.new("Part",Character)
  3545. a.BrickColor = BrickColor.random()
  3546. a.Name = "Lazer"
  3547. a.Anchored = true
  3548. a.Material = "Neon"
  3549. a.Transparency = 1
  3550. a.CanCollide = false
  3551. local hitbox = Instance.new("Part",char)
  3552. hitbox.Size = Vector3.new(5,5,5)
  3553. hitbox.CFrame = mouse.hit
  3554. hitbox.Anchored = true
  3555. hitbox.Transparency = 1
  3556. hitbox.CanCollide = false
  3557. local ray = Ray.new(
  3558. sorb.CFrame.p, -- origin
  3559. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3560. )
  3561. local ignore = Character
  3562. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3563. if hit then
  3564. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  3565.  
  3566. if not humanoid then
  3567. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  3568. end
  3569. if humanoid then
  3570. if humanoid.Parent:IsA"Model" then
  3571. end
  3572. end
  3573. end
  3574. a.BottomSurface = 10
  3575. a.TopSurface = 10
  3576. local distance = (sorb.CFrame.p - position).magnitude
  3577. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3578. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3579. game:GetService("Debris"):AddItem(a, 10)
  3580. game:GetService("Debris"):AddItem(hitbox, 1)
  3581. local newmesh = Instance.new("BlockMesh",a)
  3582. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,5,5,5,0.25,0.25,0.25,0.025)
  3583. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.5,1.5,0.015,1)
  3584. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.25,1.25,0.015,2)
  3585. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1,1,0.015,1)
  3586. local lbs = Instance.new("Part")
  3587. lbs.Parent = char
  3588. CFuncs["Sound"].Create("rbxassetid://929619479", lbs, 1.5, 1)
  3589. lbs.Material = "Neon"
  3590. lbs.Color = BrickColor.new("Really black").Color
  3591. lbs.CanCollide = false
  3592. lbs.Shape = "Ball"
  3593. lbs.Anchored = true
  3594. lbs.Transparency = 0
  3595. lbs.Size = vt(10,10,10)
  3596. lbs.CFrame = a.CFrame
  3597. local thing = Instance.new("SpecialMesh",lbs)
  3598. thing.MeshType = "Sphere"
  3599. lbs.Anchored = false
  3600. local bvs = Instance.new("BodyVelocity")
  3601. bvs.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3602. bvs.velocity = a.CFrame.lookVector*75
  3603. bvs.Parent = lbs
  3604. lbs.Touched:connect(function(hit)
  3605. Damagefunc(hit,25,60,math.random(10,20),"Normal",root,.2,1)
  3606. end)
  3607. game:GetService("Debris"):AddItem(lbs, 10)
  3608. local rotation = 0
  3609. local rotation2 = 0
  3610. for z = 0, 24 do
  3611. wait()
  3612. rotation = rotation + 25
  3613. rotation2 = rotation2 - 25
  3614. local lb = Instance.new("Part")
  3615. lb.Parent = bulletgos
  3616. lb.Material = "Neon"
  3617. lb.Color = BrickColor.new("Dark indigo").Color
  3618. lb.CanCollide = false
  3619. lb.Anchored = true
  3620. lb.Transparency = 0
  3621. lb.Size = vt(2,2,2)
  3622. local thing = Instance.new("SpecialMesh",lb)
  3623. thing.MeshType = "Sphere"
  3624. thing.Scale = Vector3.new(0.5,0.5,1.5)
  3625. lb.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation2),0)
  3626. local lb2 = Instance.new("Part")
  3627. lb2.Parent = bulletgos
  3628. lb2.Material = "Neon"
  3629. lb2.Color = lb.Color
  3630. lb2.CanCollide = false
  3631. lb2.Anchored = true
  3632. lb2.Transparency = 0
  3633. lb2.Size = vt(2,2,2)
  3634. lb2.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  3635. local thing2 = Instance.new("SpecialMesh",lb2)
  3636. thing2.MeshType = "Sphere"
  3637. thing2.Scale = Vector3.new(0.5,0.5,1.5)
  3638. lb.Touched:connect(function(hit)
  3639. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  3640. end)
  3641. lb2.Touched:connect(function(hit)
  3642. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  3643. end)
  3644. local lb3 = Instance.new("Part")
  3645. lb3.Parent = bulletgos2
  3646. lb3.Material = "Neon"
  3647. lb3.Color = BrickColor.new("Dark indigo").Color
  3648. lb3.CanCollide = false
  3649. lb3.Anchored = true
  3650. lb3.Transparency = 0
  3651. lb3.Size = vt(2,2,2)
  3652. local thing3 = Instance.new("SpecialMesh",lb3)
  3653. thing3.MeshType = "Sphere"
  3654. thing3.Scale = Vector3.new(0.5,0.5,1.5)
  3655. lb3.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation2),0)
  3656. local lb4 = Instance.new("Part")
  3657. lb4.Parent = bulletgos2
  3658. lb4.Material = "Neon"
  3659. lb4.Color = lb3.Color
  3660. lb4.CanCollide = false
  3661. lb4.Anchored = true
  3662. lb4.Transparency = 0
  3663. lb4.Size = vt(2,2,2)
  3664. lb4.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  3665. local thing4 = Instance.new("SpecialMesh",lb4)
  3666. thing4.MeshType = "Sphere"
  3667. thing4.Scale = Vector3.new(0.5,0.5,1.5)
  3668. lb3.Touched:connect(function(hit)
  3669. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  3670. end)
  3671. lb4.Touched:connect(function(hit)
  3672. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  3673. end)
  3674. end
  3675. bvs:Destroy()
  3676. lbs.Anchored = true
  3677. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  3678. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  3679. lbs.Transparency = 1
  3680. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  3681. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  3682. CFuncs["Sound"].Create("rbxassetid://925629856", lbs, 5, 1)
  3683. game:GetService("Debris"):AddItem(bulletgos, 7)
  3684. game:GetService("Debris"):AddItem(bulletgos2, 7)
  3685. for i,v in pairs(bulletgos:children()) do
  3686. if v:IsA("Part") then
  3687. v.Anchored = false
  3688. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  3689. local bv = Instance.new("BodyVelocity")
  3690. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3691. bv.velocity = v.CFrame.lookVector*25
  3692. bv.Parent = v
  3693. game:GetService("Debris"):AddItem(v, 5)
  3694. end
  3695. end
  3696. for i,v in pairs(bulletgos2:children()) do
  3697. if v:IsA("Part") then
  3698. v.Anchored = false
  3699. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  3700. local bv = Instance.new("BodyVelocity")
  3701. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3702. bv.velocity = v.CFrame.lookVector*50
  3703. bv.Parent = v
  3704. game:GetService("Debris"):AddItem(v, 5)
  3705. end
  3706. end
  3707. attack = false
  3708. end
  3709.  
  3710. function TwinkleBurst()
  3711. attack = true
  3712. for i = 0,5,0.1 do
  3713. swait()
  3714. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  3715. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.1)
  3716. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  3717. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  3718. LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.35) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  3719. end
  3720. local a = Instance.new("Part",Character)
  3721. a.BrickColor = BrickColor.random()
  3722. a.Name = "Lazer"
  3723. a.Anchored = true
  3724. a.Material = "Neon"
  3725. a.Transparency = 1
  3726. a.CanCollide = false
  3727. local hitbox = Instance.new("Part",char)
  3728. hitbox.Size = Vector3.new(5,5,5)
  3729. hitbox.CFrame = mouse.hit
  3730. hitbox.Anchored = true
  3731. hitbox.Transparency = 1
  3732. hitbox.CanCollide = false
  3733. local ray = Ray.new(
  3734. sorb.CFrame.p, -- origin
  3735. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3736. )
  3737. local ignore = Character
  3738. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3739. if hit then
  3740. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  3741.  
  3742. if not humanoid then
  3743. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  3744. end
  3745. if humanoid then
  3746. if humanoid.Parent:IsA"Model" then
  3747. end
  3748. end
  3749. end
  3750. a.BottomSurface = 10
  3751. a.TopSurface = 10
  3752. local distance = (sorb.CFrame.p - position).magnitude
  3753. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3754. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3755. game:GetService("Debris"):AddItem(a, 5)
  3756. game:GetService("Debris"):AddItem(hitbox, 1)
  3757. local newmesh = Instance.new("BlockMesh",a)
  3758. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,5,5,5,0.25,0.25,0.25,0.025)
  3759. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.5,1.5,0.015,1)
  3760. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.25,1.25,0.015,2)
  3761. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1,1,0.015,1)
  3762. local lbs = Instance.new("Part")
  3763. lbs.Parent = char
  3764. CFuncs["Sound"].Create("rbxassetid://929619479", lbs, 1, 1)
  3765. lbs.Material = "Neon"
  3766. lbs.Color = BrickColor.new("Really black").Color
  3767. lbs.CanCollide = false
  3768. lbs.Shape = "Ball"
  3769. lbs.Anchored = true
  3770. lbs.Transparency = 0
  3771. lbs.Size = vt(20,20,20)
  3772. lbs.CFrame = a.CFrame
  3773. local thing = Instance.new("SpecialMesh",lbs)
  3774. thing.MeshType = "Sphere"
  3775. lbs.Anchored = false
  3776. local bvs = Instance.new("BodyVelocity")
  3777. bvs.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3778. bvs.velocity = a.CFrame.lookVector*75
  3779. bvs.Parent = lbs
  3780. lbs.Touched:connect(function(hit)
  3781. Damagefunc(hit,25,60,math.random(10,20),"Normal",root,.2,1)
  3782. end)
  3783. attack = false
  3784. game:GetService("Debris"):AddItem(lbs, 10)
  3785. for x = 0, 4 do
  3786. local bulletgos = it("Model",char)
  3787. local bulletgos2 = it("Model",char)
  3788. for z = 0, 24 do
  3789. local lb = Instance.new("Part")
  3790. lb.Parent = bulletgos
  3791. lb.Material = "Neon"
  3792. lb.Color = BrickColor.new("Dark indigo").Color
  3793. lb.CanCollide = false
  3794. lb.Anchored = true
  3795. lb.Transparency = 0
  3796. lb.Size = vt(2,2,2)
  3797. local thing = Instance.new("SpecialMesh",lb)
  3798. thing.MeshType = "Sphere"
  3799. thing.Scale = Vector3.new(0.5,0.5,1.5)
  3800. lb.CFrame = lbs.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3801. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*15
  3802. local lb2 = Instance.new("Part")
  3803. lb2.Parent = bulletgos2
  3804. lb2.Material = "Neon"
  3805. lb2.Color = lb.Color
  3806. lb2.CanCollide = false
  3807. lb2.Anchored = true
  3808. lb2.Transparency = 0
  3809. lb2.Size = vt(2,2,2)
  3810. lb2.CFrame = lbs.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3811. lb2.CFrame = lb2.CFrame + lb.CFrame.lookVector*15
  3812. local thing2 = Instance.new("SpecialMesh",lb2)
  3813. thing2.MeshType = "Sphere"
  3814. thing2.Scale = Vector3.new(0.5,0.5,1.5)
  3815. lb.Touched:connect(function(hit)
  3816. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  3817. end)
  3818. lb2.Touched:connect(function(hit)
  3819. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  3820. end)
  3821. end
  3822. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  3823. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  3824. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  3825. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  3826. CFuncs["Sound"].Create("rbxassetid://925629856", lbs, 5, 1)
  3827. game:GetService("Debris"):AddItem(bulletgos, 7)
  3828. game:GetService("Debris"):AddItem(bulletgos2, 7)
  3829. for i,v in pairs(bulletgos:children()) do
  3830. if v:IsA("Part") then
  3831. v.Anchored = false
  3832. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  3833. local bv = Instance.new("BodyVelocity")
  3834. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3835. bv.velocity = v.CFrame.lookVector*25
  3836. bv.Parent = v
  3837. game:GetService("Debris"):AddItem(v, 5)
  3838. end
  3839. end
  3840. for i,v in pairs(bulletgos2:children()) do
  3841. if v:IsA("Part") then
  3842. v.Anchored = false
  3843. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  3844. local bv = Instance.new("BodyVelocity")
  3845. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3846. bv.velocity = v.CFrame.lookVector*-25
  3847. bv.Parent = v
  3848. game:GetService("Debris"):AddItem(v, 5)
  3849. end
  3850. end
  3851. wait(1)
  3852. end
  3853. end
  3854.  
  3855. function TargetTwinkle()
  3856. attack = true
  3857. for i = 0,1,0.1 do
  3858. swait()
  3859. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  3860. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.1)
  3861. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  3862. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  3863. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1)
  3864. end
  3865. attack = false
  3866. local a = Instance.new("Part",Character)
  3867. a.BrickColor = BrickColor.random()
  3868. a.Name = "Lazer"
  3869. a.Anchored = true
  3870. a.Material = "Neon"
  3871. a.Transparency = 1
  3872. a.CanCollide = false
  3873. local hitbox = Instance.new("Part",char)
  3874. hitbox.Size = Vector3.new(5,5,5)
  3875. hitbox.CFrame = mouse.hit
  3876. hitbox.Anchored = true
  3877. hitbox.Transparency = 1
  3878. hitbox.CanCollide = false
  3879. local ray = Ray.new(
  3880. sorb.CFrame.p, -- origin
  3881. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3882. )
  3883. local ignore = Character
  3884. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3885. if hit then
  3886. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  3887.  
  3888. if not humanoid then
  3889. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  3890. end
  3891. if humanoid then
  3892. if humanoid.Parent:IsA"Model" then
  3893. local bulletgos = it("Model",char)
  3894. local bulletgos2 = it("Model",char)
  3895. for z = 0, 24 do
  3896. wait(0.05)
  3897. local lb = Instance.new("Part")
  3898. lb.Parent = bulletgos2
  3899. lb.Material = "Neon"
  3900. lb.Color = BrickColor.new("Dark indigo").Color
  3901. lb.CanCollide = false
  3902. lb.Anchored = true
  3903. lb.Transparency = 0
  3904. lb.Size = vt(2,2,2)
  3905. local thing = Instance.new("SpecialMesh",lb)
  3906. thing.MeshType = "Sphere"
  3907. thing.Scale = Vector3.new(0.5,0.5,1.5)
  3908. lb.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3909. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*15
  3910. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.5, 1)
  3911. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  3912. lb.Touched:connect(function(hit)
  3913. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  3914. end)
  3915. end
  3916. wait(1)
  3917. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  3918. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  3919. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  3920. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  3921. CFuncs["Sound"].Create("rbxassetid://925629856", hit, 5, 1)
  3922. game:GetService("Debris"):AddItem(bulletgos, 7)
  3923. game:GetService("Debris"):AddItem(bulletgos2, 7)
  3924. for i,v in pairs(bulletgos:children()) do
  3925. if v:IsA("Part") then
  3926. v.Anchored = false
  3927. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  3928. local bv = Instance.new("BodyVelocity")
  3929. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3930. bv.velocity = v.CFrame.lookVector*25
  3931. bv.Parent = v
  3932. game:GetService("Debris"):AddItem(v, 5)
  3933. end
  3934. end
  3935. for i,v in pairs(bulletgos2:children()) do
  3936. if v:IsA("Part") then
  3937. v.Anchored = false
  3938. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  3939. local bv = Instance.new("BodyVelocity")
  3940. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3941. bv.velocity = v.CFrame.lookVector*-25
  3942. bv.Parent = v
  3943. game:GetService("Debris"):AddItem(v, 5)
  3944. end
  3945. end
  3946. end
  3947. end
  3948. end
  3949. a.BottomSurface = 10
  3950. a.TopSurface = 10
  3951. local distance = (sorb.CFrame.p - position).magnitude
  3952. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3953. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3954. game:GetService("Debris"):AddItem(a, 5)
  3955. game:GetService("Debris"):AddItem(hitbox, 1)
  3956. game:GetService("Debris"):AddItem(lbs, 10)
  3957. end
  3958.  
  3959. function TargetTwinkleCurse()
  3960. CFuncs["Sound"].Create("rbxassetid://925333540", char, 0.5, 1)
  3961. coold = true
  3962. MagicBlock(BrickColor.new("Really black"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  3963. MagicBlock(BrickColor.new("Dark indigo"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  3964. wait(1)
  3965. attack = true
  3966. coold = false
  3967. for i = 0,4,0.1 do
  3968. swait()
  3969. MagicBlock(BrickColor.new("Really black"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  3970. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.1)
  3971. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  3972. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  3973. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1)
  3974. end
  3975. attack = false
  3976. local a = Instance.new("Part",Character)
  3977. a.BrickColor = BrickColor.random()
  3978. a.Name = "Lazer"
  3979. a.Anchored = true
  3980. a.Material = "Neon"
  3981. a.Transparency = 1
  3982. a.CanCollide = false
  3983. local hitbox = Instance.new("Part",char)
  3984. hitbox.Size = Vector3.new(5,5,5)
  3985. hitbox.CFrame = mouse.hit
  3986. hitbox.Anchored = true
  3987. hitbox.Transparency = 1
  3988. hitbox.CanCollide = false
  3989. local ray = Ray.new(
  3990. sorb.CFrame.p, -- origin
  3991. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3992. )
  3993. local ignore = Character
  3994. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3995. if hit then
  3996. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  3997.  
  3998. if not humanoid then
  3999. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  4000. end
  4001. if humanoid then
  4002. if humanoid.Parent:IsA"Model" then
  4003. for z = 0, 49 do
  4004. wait(0.1)
  4005. local lb = Instance.new("Part")
  4006. lb.Anchored = true
  4007. lb.Parent = char
  4008. lb.Material = "Neon"
  4009. lb.Color = BrickColor.new("Dark indigo").Color
  4010. lb.CanCollide = false
  4011. lb.Transparency = 0
  4012. lb.Size = vt(2,2,2)
  4013. local thing = Instance.new("SpecialMesh",lb)
  4014. thing.MeshType = "Sphere"
  4015. thing.Scale = Vector3.new(0.5,0.5,1.5)
  4016. lb.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4017. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*7.5
  4018. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.5, 1)
  4019. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  4020. lb.Touched:connect(function(hit)
  4021. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  4022. end)
  4023. wait(0.1)
  4024. lb.Anchored = false
  4025. local bv = Instance.new("BodyVelocity")
  4026. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4027. bv.velocity = lb.CFrame.lookVector*-5
  4028. bv.Parent = lb
  4029. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,1,1,1,-0.1,-0.1,-0.1,0.025)
  4030. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,1,1,1,0.1,0.1,0.1,0.025)
  4031. CFuncs["Sound"].Create("rbxassetid://925629856", lb, 0.1, 1)
  4032. game:GetService("Debris"):AddItem(lb, 7)
  4033. end
  4034. end
  4035. end
  4036. end
  4037. a.BottomSurface = 10
  4038. a.TopSurface = 10
  4039. local distance = (sorb.CFrame.p - position).magnitude
  4040. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4041. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4042. game:GetService("Debris"):AddItem(a, 5)
  4043. game:GetService("Debris"):AddItem(hitbox, 1)
  4044. game:GetService("Debris"):AddItem(lbs, 10)
  4045. end
  4046.  
  4047. function TargetPulse()
  4048. CFuncs["Sound"].Create("rbxassetid://925333540", char, 0.5, 1)
  4049. coold = true
  4050. MagicBlock(BrickColor.new("Really black"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  4051. MagicBlock(BrickColor.new("Dark indigo"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  4052. wait(1)
  4053. attack = true
  4054. coold = false
  4055. for i = 0,3,0.1 do
  4056. swait()
  4057. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  4058. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.1)
  4059. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  4060. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  4061. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1)
  4062. end
  4063. attack = false
  4064. local a = Instance.new("Part",Character)
  4065. a.BrickColor = BrickColor.random()
  4066. a.Name = "Lazer"
  4067. a.Anchored = true
  4068. a.Material = "Neon"
  4069. a.Transparency = 1
  4070. a.CanCollide = false
  4071. local hitbox = Instance.new("Part",char)
  4072. hitbox.Size = Vector3.new(5,5,5)
  4073. hitbox.CFrame = mouse.hit
  4074. hitbox.Anchored = true
  4075. hitbox.Transparency = 1
  4076. hitbox.CanCollide = false
  4077. local ray = Ray.new(
  4078. sorb.CFrame.p, -- origin
  4079. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4080. )
  4081. local ignore = Character
  4082. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4083. if hit then
  4084. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  4085.  
  4086. if not humanoid then
  4087. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  4088. end
  4089. if humanoid then
  4090. if humanoid.Parent:IsA"Model" then
  4091. local bulletgos = it("Model",char)
  4092. local bulletgos2 = it("Model",char)
  4093. for z = 0, 49 do
  4094. wait(0.05)
  4095. local lb = Instance.new("Part")
  4096. lb.Parent = bulletgos2
  4097. lb.Material = "Neon"
  4098. lb.Color = BrickColor.new("Dark indigo").Color
  4099. lb.CanCollide = false
  4100. lb.Anchored = true
  4101. lb.Transparency = 0
  4102. lb.Size = vt(1,1,10)
  4103. local thing = Instance.new("SpecialMesh",lb)
  4104. thing.MeshType = "Sphere"
  4105. thing.Scale = Vector3.new(1,1,1.25)
  4106. lb.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4107. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*45
  4108. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.5, 1)
  4109. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  4110. lb.Touched:connect(function(hit)
  4111. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  4112. end)
  4113. local lb2 = Instance.new("Part")
  4114. lb2.Parent = bulletgos
  4115. lb2.Material = "Neon"
  4116. lb2.Color = BrickColor.new("Really black").Color
  4117. lb2.CanCollide = false
  4118. lb2.Anchored = true
  4119. lb2.Transparency = 0
  4120. lb2.Size = vt(2,2,2)
  4121. local thing = Instance.new("SpecialMesh",lb2)
  4122. thing.MeshType = "Sphere"
  4123. lb2.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4124. lb2.CFrame = lb2.CFrame + lb2.CFrame.lookVector*10
  4125. CFuncs["Sound"].Create("rbxassetid://929619479", lb2, 0.5, 1)
  4126. MagicBlock(BrickColor.new("Dark indigo"),lb2.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  4127. lb2.Touched:connect(function(hit)
  4128. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  4129. end)
  4130. end
  4131. wait(1)
  4132. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  4133. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  4134. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  4135. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  4136. CFuncs["Sound"].Create("rbxassetid://925629856", hit, 5, 1)
  4137. game:GetService("Debris"):AddItem(bulletgos, 7)
  4138. game:GetService("Debris"):AddItem(bulletgos2, 7)
  4139. for i,v in pairs(bulletgos:children()) do
  4140. if v:IsA("Part") then
  4141. v.Anchored = false
  4142. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  4143. local bv = Instance.new("BodyVelocity")
  4144. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4145. bv.velocity = v.CFrame.lookVector*-2.5
  4146. bv.Parent = v
  4147. game:GetService("Debris"):AddItem(v, 10)
  4148. end
  4149. end
  4150. for i,v in pairs(bulletgos2:children()) do
  4151. if v:IsA("Part") then
  4152. v.Anchored = false
  4153. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  4154. local bv = Instance.new("BodyVelocity")
  4155. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4156. bv.velocity = v.CFrame.lookVector*-10
  4157. bv.Parent = v
  4158. game:GetService("Debris"):AddItem(v, 10)
  4159. end
  4160. end
  4161. end
  4162. end
  4163. end
  4164. a.BottomSurface = 10
  4165. a.TopSurface = 10
  4166. local distance = (sorb.CFrame.p - position).magnitude
  4167. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4168. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4169. game:GetService("Debris"):AddItem(a, 5)
  4170. game:GetService("Debris"):AddItem(hitbox, 1)
  4171. game:GetService("Debris"):AddItem(lbs, 10)
  4172. end
  4173.  
  4174. function TwinkleSpiral()
  4175. attack = true
  4176. hum.WalkSpeed = 0
  4177. for i = 0,3,0.1 do
  4178. swait()
  4179. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  4180. MagicBlock(BrickColor.new("Dark indigo"),sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  4181. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(30)),.1)
  4182. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-30)),.1)
  4183. RW.C0 = clerp(RW.C0, CFrame.new(0.85, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-90)), 0.1)
  4184. LW.C0 = clerp(LW.C0, CFrame.new(-0.85, 0.5, -0.5) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  4185. end
  4186. local bulletgos = it("Model",char)
  4187. local bulletgos2 = it("Model",char)
  4188. local rotation = 0
  4189. local dis = 75
  4190. for z = 0, 99 do
  4191. wait(0.05)
  4192. rotation = rotation + 6.15
  4193. local lb = Instance.new("Part")
  4194. lb.Parent = bulletgos
  4195. lb.Material = "Neon"
  4196. lb.Color = BrickColor.new("Dark indigo").Color
  4197. lb.CanCollide = false
  4198. lb.Anchored = true
  4199. lb.Transparency = 0
  4200. lb.Size = vt(2,2,2)
  4201. local thing = Instance.new("SpecialMesh",lb)
  4202. thing.MeshType = "Sphere"
  4203. thing.Scale = Vector3.new(0.5,0.5,1.5)
  4204. lb.CFrame = root.CFrame
  4205. lb.CFrame = lb.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  4206. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*dis/6
  4207. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.25, 1)
  4208. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  4209. lb.Touched:connect(function(hit)
  4210. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  4211. end)
  4212. local lb2 = Instance.new("Part")
  4213. lb2.Parent = bulletgos2
  4214. lb2.Material = "Neon"
  4215. lb2.Color = BrickColor.new("Dark indigo").Color
  4216. lb2.CanCollide = false
  4217. lb2.Anchored = true
  4218. lb2.Transparency = 0
  4219. lb2.Size = vt(2,2,2)
  4220. local thing = Instance.new("SpecialMesh",lb2)
  4221. thing.MeshType = "Sphere"
  4222. thing.Scale = Vector3.new(0.5,0.5,1.5)
  4223. lb2.CFrame = root.CFrame
  4224. lb2.CFrame = lb2.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  4225. lb2.CFrame = lb2.CFrame - lb2.CFrame.lookVector*dis/6
  4226. CFuncs["Sound"].Create("rbxassetid://929619479", lb2, 0.25, 1)
  4227. MagicBlock(BrickColor.new("Dark indigo"),lb2.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  4228. lb2.Touched:connect(function(hit)
  4229. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  4230. end)
  4231. dis = dis + 2.5
  4232. end
  4233. wait(0.5)
  4234. hum.WalkSpeed = 16
  4235. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  4236. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  4237. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  4238. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  4239. CFuncs["Sound"].Create("rbxassetid://925629856", root, 5, 1)
  4240. game:GetService("Debris"):AddItem(bulletgos, 7)
  4241. game:GetService("Debris"):AddItem(bulletgos2, 7)
  4242. for i,v in pairs(bulletgos:children()) do
  4243. if v:IsA("Part") then
  4244. v.Anchored = false
  4245. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  4246. local bv = Instance.new("BodyVelocity")
  4247. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4248. bv.velocity = v.CFrame.lookVector*25
  4249. bv.Parent = v
  4250. game:GetService("Debris"):AddItem(v, 5)
  4251. end
  4252. end
  4253. for i,v in pairs(bulletgos2:children()) do
  4254. if v:IsA("Part") then
  4255. v.Anchored = false
  4256. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  4257. local bv = Instance.new("BodyVelocity")
  4258. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4259. bv.velocity = v.CFrame.lookVector*-25
  4260. bv.Parent = v
  4261. game:GetService("Debris"):AddItem(v, 5)
  4262. end
  4263. end
  4264. attack = false
  4265. end
  4266.  
  4267. function TwinkleSpiralInpulse()
  4268. attack = true
  4269. hum.WalkSpeed = 0
  4270. for i = 0,3,0.1 do
  4271. swait()
  4272. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  4273. MagicBlock(BrickColor.new("Dark indigo"),sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  4274. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(30)),.1)
  4275. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-30)),.1)
  4276. RW.C0 = clerp(RW.C0, CFrame.new(0.85, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-90)), 0.1)
  4277. LW.C0 = clerp(LW.C0, CFrame.new(-0.85, 0.5, -0.5) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  4278. end
  4279. local bulletgos = it("Model",char)
  4280. local bulletgos2 = it("Model",char)
  4281. local rotation = 0
  4282. local dis = 75
  4283. for z = 0, 99 do
  4284. wait(0.05)
  4285. rotation = rotation + 6.15
  4286. local lb = Instance.new("Part")
  4287. lb.Parent = bulletgos2
  4288. lb.Material = "Neon"
  4289. lb.Color = BrickColor.new("Dark indigo").Color
  4290. lb.CanCollide = false
  4291. lb.Anchored = true
  4292. lb.Transparency = 0
  4293. lb.Size = vt(2,2,2)
  4294. local thing = Instance.new("SpecialMesh",lb)
  4295. thing.MeshType = "Sphere"
  4296. thing.Scale = Vector3.new(0.5,0.5,1.5)
  4297. lb.CFrame = root.CFrame
  4298. lb.CFrame = lb.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  4299. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*dis/6
  4300. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.25, 1)
  4301. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  4302. lb.Touched:connect(function(hit)
  4303. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  4304. end)
  4305. local lb2 = Instance.new("Part")
  4306. lb2.Parent = bulletgos
  4307. lb2.Material = "Neon"
  4308. lb2.Color = BrickColor.new("Dark indigo").Color
  4309. lb2.CanCollide = false
  4310. lb2.Anchored = true
  4311. lb2.Transparency = 0
  4312. lb2.Size = vt(2,2,2)
  4313. local thing = Instance.new("SpecialMesh",lb2)
  4314. thing.MeshType = "Sphere"
  4315. thing.Scale = Vector3.new(0.5,0.5,1.5)
  4316. lb2.CFrame = root.CFrame
  4317. lb2.CFrame = lb2.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  4318. lb2.CFrame = lb2.CFrame - lb2.CFrame.lookVector*dis/6
  4319. CFuncs["Sound"].Create("rbxassetid://929619479", lb2, 0.25, 1)
  4320. MagicBlock(BrickColor.new("Dark indigo"),lb2.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  4321. lb2.Touched:connect(function(hit)
  4322. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  4323. end)
  4324. dis = dis + 2.5
  4325. end
  4326. wait(0.5)
  4327. hum.WalkSpeed = 16
  4328. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  4329. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  4330. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  4331. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  4332. CFuncs["Sound"].Create("rbxassetid://925629856", root, 5, 1)
  4333. game:GetService("Debris"):AddItem(bulletgos, 7)
  4334. game:GetService("Debris"):AddItem(bulletgos2, 7)
  4335. for i,v in pairs(bulletgos:children()) do
  4336. if v:IsA("Part") then
  4337. v.Anchored = false
  4338. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  4339. local bv = Instance.new("BodyVelocity")
  4340. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4341. bv.velocity = v.CFrame.lookVector*25
  4342. bv.Parent = v
  4343. game:GetService("Debris"):AddItem(v, 5)
  4344. end
  4345. end
  4346. for i,v in pairs(bulletgos2:children()) do
  4347. if v:IsA("Part") then
  4348. v.Anchored = false
  4349. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  4350. local bv = Instance.new("BodyVelocity")
  4351. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4352. bv.velocity = v.CFrame.lookVector*-25
  4353. bv.Parent = v
  4354. game:GetService("Debris"):AddItem(v, 5)
  4355. end
  4356. end
  4357. attack = false
  4358. end
  4359.  
  4360.  
  4361.  
  4362.  
  4363.  
  4364. local enabledb = false
  4365.  
  4366. mouse.KeyDown:connect(function(k)
  4367. if k == "z" and attack == false and coold == false then
  4368. Twinkle()
  4369. end
  4370. if k == "x" and attack == false and coold == false then
  4371. TwinkleBurst()
  4372. end
  4373. if k == "c" and attack == false and coold == false then
  4374. TargetTwinkle()
  4375. end
  4376. if k == "v" and attack == false and coold == false then
  4377. TwinkleSpiral()
  4378. end
  4379. if k == "b" and attack == false and coold == false then
  4380. TwinkleSpiralInpulse()
  4381. end
  4382. if k == "n" and attack == false and coold == false then
  4383. TargetPulse()
  4384. end
  4385. if k == "m" and attack == false and coold == false then
  4386. TargetTwinkleCurse()
  4387. end
  4388. end)
  4389.  
  4390. Humanoid.Animator.Parent = nil
  4391. idleanim=.4
  4392. while true do
  4393. swait()
  4394. sine = sine + change
  4395. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4396. local velderp=RootPart.Velocity.y
  4397. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4398. if equipped==true or equipped==false then
  4399. if attack==false then
  4400. idle=idle+1
  4401. else
  4402. idle=0
  4403. end
  4404. if idle>=500 then
  4405. if attack==false then
  4406. --Sheath()
  4407. end
  4408. end
  4409. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4410. Anim="Jump"
  4411. if attack==false then
  4412. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  4413. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4414. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4415. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  4416. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4417. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  4418. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4419. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  4420. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  4421. end
  4422. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4423. Anim="Fall"
  4424. if attack==false then
  4425. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  4426. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4427. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  4428. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  4429. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4430. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  4431. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4432. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  4433. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  4434. end
  4435. elseif torvel<1 and hitfloor~=nil then
  4436. Anim="Idle"
  4437. if plr.Name ~= "ShADow0nYx" then
  4438. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  4439. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  4440. if attack==false then
  4441. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4442. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  4443. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(5 + 2.5 * math.cos(sine / 25))),.3)
  4444. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.3)
  4445. end
  4446. elseif plr.Name == "ShADow0nYx" then
  4447. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2.5 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  4448. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  4449. if attack==false then
  4450. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(10),math.rad(0)),.3)
  4452. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 25))),.3)
  4453. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 25))),.3)
  4454. end
  4455. end
  4456. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  4457. Anim="Walk"
  4458. if plr.Name ~= "ShADow0nYx" then
  4459. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  4460. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  4461. if attack==false then
  4462. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  4463. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4464. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3)
  4465. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3)
  4466. end
  4467. elseif plr.Name == "ShADow0nYx" then
  4468. RH.C0=clerp(RH.C0,cf(1 - 0.015 * math.cos(sine / 4),-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0 + 5 * math.cos(sine / 4)),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  4469. LH.C0=clerp(LH.C0,cf(-1 + 0.015 * math.cos(sine / 4),-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0 + 5 * math.cos(sine / 4)),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  4470. if attack==false then
  4471. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0 - 10 * math.cos(sine / 8))),.3)
  4472. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0 + 10 * math.cos(sine / 8))),.3)
  4473. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(20 - 7.5 * math.cos(sine / 4))),.3)
  4474. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-20 + 7.5 * math.cos(sine / 4))),.3)
  4475. end
  4476. end
  4477. elseif torvel>=22 and hitfloor~=nil then
  4478. Anim="Run"
  4479. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  4480. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  4481. if attack==false then
  4482. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  4483. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4484. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  4485. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  4486. end
  4487. end
  4488. end
  4489. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement