Dark_EccentricYT

Untitled

Mar 30th, 2018
2,262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.77 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
Add Comment
Please, Sign In to add comment