Advertisement
ItsFentix

Danmaku

Oct 7th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 77.99 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. char.Humanoid.MaxHealth = math.huge
  27. char.Humanoid.Health = math.huge
  28.  
  29. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  30. ff.Visible = false
  31.  
  32. local Create = LoadLibrary("RbxUtility").Create
  33.  
  34. CFuncs = {
  35. ["Part"] = {
  36. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  37. local Part = Create("Part"){
  38. Parent = Parent,
  39. Reflectance = Reflectance,
  40. Transparency = Transparency,
  41. CanCollide = false,
  42. Locked = true,
  43. BrickColor = BrickColor.new(tostring(BColor)),
  44. Name = Name,
  45. Size = Size,
  46. Material = Material,
  47. }
  48. RemoveOutlines(Part)
  49. return Part
  50. end;
  51. };
  52.  
  53. ["Mesh"] = {
  54. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  55. local Msh = Create(Mesh){
  56. Parent = Part,
  57. Offset = OffSet,
  58. Scale = Scale,
  59. }
  60. if Mesh == "SpecialMesh" then
  61. Msh.MeshType = MeshType
  62. Msh.MeshId = MeshId
  63. end
  64. return Msh
  65. end;
  66. };
  67.  
  68. ["Mesh"] = {
  69. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  70. local Msh = Create(Mesh){
  71. Parent = Part,
  72. Offset = OffSet,
  73. Scale = Scale,
  74. }
  75. if Mesh == "SpecialMesh" then
  76. Msh.MeshType = MeshType
  77. Msh.MeshId = MeshId
  78. end
  79. return Msh
  80. end;
  81. };
  82.  
  83. ["Weld"] = {
  84. Create = function(Parent, Part0, Part1, C0, C1)
  85. local Weld = Create("Weld"){
  86. Parent = Parent,
  87. Part0 = Part0,
  88. Part1 = Part1,
  89. C0 = C0,
  90. C1 = C1,
  91. }
  92. return Weld
  93. end;
  94. };
  95.  
  96. ["Sound"] = {
  97. Create = function(id, par, vol, pit)
  98. coroutine.resume(coroutine.create(function()
  99. local S = Create("Sound"){
  100. Volume = vol,
  101. Pitch = pit or 1,
  102. SoundId = id,
  103. Parent = par or workspace,
  104. }
  105. wait()
  106. S:play()
  107. game:GetService("Debris"):AddItem(S, 10)
  108. end))
  109. end;
  110. };
  111.  
  112. ["ParticleEmitter"] = {
  113. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  114. local fp = Create("ParticleEmitter"){
  115. Parent = Parent,
  116. Color = ColorSequence.new(Color1, Color2),
  117. LightEmission = LightEmission,
  118. Size = Size,
  119. Texture = Texture,
  120. Transparency = Transparency,
  121. ZOffset = ZOffset,
  122. Acceleration = Accel,
  123. Drag = Drag,
  124. LockedToPart = LockedToPart,
  125. VelocityInheritance = VelocityInheritance,
  126. EmissionDirection = EmissionDirection,
  127. Enabled = Enabled,
  128. Lifetime = LifeTime,
  129. Rate = Rate,
  130. Rotation = Rotation,
  131. RotSpeed = RotSpeed,
  132. Speed = Speed,
  133. VelocitySpread = VelocitySpread,
  134. }
  135. return fp
  136. end;
  137. };
  138.  
  139. CreateTemplate = {
  140.  
  141. };
  142. }
  143.  
  144.  
  145.  
  146. New = function(Object, Parent, Name, Data)
  147. local Object = Instance.new(Object)
  148. for Index, Value in pairs(Data or {}) do
  149. Object[Index] = Value
  150. end
  151. Object.Parent = Parent
  152. Object.Name = Name
  153. return Object
  154. end
  155.  
  156. local m = Instance.new("Model",char)
  157.  
  158. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  159. local p = Instance.new("Part")
  160. p.Parent = parent
  161. p.Size = Vector3.new(1,1,1)
  162. p.Transparency = transparency
  163. p.Reflectance = reflectance
  164. p.CanCollide = false
  165. p.Locked = true
  166. p.BrickColor = brickcolor
  167. p.Material = material
  168. return p
  169. end
  170.  
  171. function CreateMesh(parent,meshtype,x1,y1,z1)
  172. local mesh = Instance.new("SpecialMesh",parent)
  173. mesh.MeshType = meshtype
  174. mesh.Scale = Vector3.new(x1,y1,z1)
  175. return mesh
  176. end
  177.  
  178. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  179. local mesh = Instance.new("SpecialMesh",parent)
  180. mesh.MeshType = "FileMesh"
  181. mesh.MeshId = meshid
  182. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  183. mesh.Scale = Vector3.new(x1,y1,z1)
  184. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  185. return mesh
  186. end
  187.  
  188. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  189. local weld = Instance.new("Weld")
  190. weld.Parent = parent
  191. weld.Part0 = part0
  192. weld.Part1 = part1
  193. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  194. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  195. return weld
  196. end
  197.  
  198.  
  199. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  200. 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))
  201. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  202. 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))
  203.  
  204. Player=game:GetService("Players").LocalPlayer
  205. Character=Player.Character
  206. PlayerGui=Player.PlayerGui
  207. Backpack=Player.Backpack
  208. Torso=Character.Torso
  209. Head=Character.Head
  210. Humanoid=Character.Humanoid
  211. m=Instance.new('Model',Character)
  212. LeftArm=Character["Left Arm"]
  213. LeftLeg=Character["Left Leg"]
  214. RightArm=Character["Right Arm"]
  215. RightLeg=Character["Right Leg"]
  216. LS=Torso["Left Shoulder"]
  217. LH=Torso["Left Hip"]
  218. RS=Torso["Right Shoulder"]
  219. RH=Torso["Right Hip"]
  220. Face = Head.face
  221. Neck=Torso.Neck
  222. it=Instance.new
  223. attacktype=1
  224. vt=Vector3.new
  225. cf=CFrame.new
  226. euler=CFrame.fromEulerAnglesXYZ
  227. angles=CFrame.Angles
  228. cloaked=false
  229. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  230. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  231. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  232. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  233. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  234. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  235. RootPart=Character.HumanoidRootPart
  236. RootJoint=RootPart.RootJoint
  237. RootCF=euler(-1.57,0,3.14)
  238. attack = false
  239. attackdebounce = false
  240. deb=false
  241. equipped=true
  242. hand=false
  243. MMouse=nil
  244. combo=0
  245. mana=0
  246. trispeed=.2
  247. attackmode='none'
  248. local idle=0
  249. local Anim="Idle"
  250. local Effects={}
  251. local gun=false
  252. local shoot=false
  253. local sine = 0
  254. local change = 1
  255. player=nil
  256.  
  257. mouse=Player:GetMouse()
  258. --save shoulders
  259. RSH, LSH=nil, nil
  260. --welds
  261. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  262. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  263. LH=Torso["Left Hip"]
  264. RH=Torso["Right Hip"]
  265. TorsoColor=Torso.BrickColor
  266. function NoOutline(Part)
  267. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  268. end
  269. player=Player
  270. ch=Character
  271. RSH=ch.Torso["Right Shoulder"]
  272. LSH=ch.Torso["Left Shoulder"]
  273. --
  274. RSH.Parent=nil
  275. LSH.Parent=nil
  276. --
  277. RW.Name="Right Shoulder"
  278. RW.Part0=ch.Torso
  279. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  280. RW.C1=cf(0, 0.5, 0)
  281. RW.Part1=ch["Right Arm"]
  282. RW.Parent=ch.Torso
  283. --
  284. LW.Name="Left Shoulder"
  285. LW.Part0=ch.Torso
  286. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  287. LW.C1=cf(0, 0.5, 0)
  288. LW.Part1=ch["Left Arm"]
  289. LW.Parent=ch.Torso
  290.  
  291. local Stats=Instance.new("BoolValue")
  292. Stats.Name="Stats"
  293. Stats.Parent=Character
  294. local Atk=Instance.new("NumberValue")
  295. Atk.Name="Damage"
  296. Atk.Parent=Stats
  297. Atk.Value=1
  298. local Def=Instance.new("NumberValue")
  299. Def.Name="Defense"
  300. Def.Parent=Stats
  301. Def.Value=1
  302. local Speed=Instance.new("NumberValue")
  303. Speed.Name="Speed"
  304. Speed.Parent=Stats
  305. Speed.Value=1
  306. local Mvmt=Instance.new("NumberValue")
  307. Mvmt.Name="Movement"
  308. Mvmt.Parent=Stats
  309. Mvmt.Value=1
  310.  
  311. local donum=0
  312.  
  313.  
  314. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  315. local fp=it("Part")
  316. fp.formFactor=formfactor
  317. fp.Parent=parent
  318. fp.Reflectance=reflectance
  319. fp.Transparency=transparency
  320. fp.CanCollide=false
  321. fp.Locked=true
  322. fp.BrickColor=brickcolor
  323. fp.Name=name
  324. fp.Size=size
  325. fp.Position=Torso.Position
  326. NoOutline(fp)
  327. fp.Material="SmoothPlastic"
  328. fp:BreakJoints()
  329. return fp
  330. end
  331.  
  332. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  333. local mesh=it(Mesh)
  334. mesh.Parent=part
  335. if Mesh=="SpecialMesh" then
  336. mesh.MeshType=meshtype
  337. if meshid~="nil" then
  338. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  339. end
  340. end
  341. mesh.Offset=offset
  342. mesh.Scale=scale
  343. return mesh
  344. end
  345.  
  346. function weld(parent,part0,part1,c0)
  347. local weld=it("Weld")
  348. weld.Parent=parent
  349. weld.Part0=part0
  350. weld.Part1=part1
  351. weld.C0=c0
  352. return weld
  353. end
  354.  
  355. local Color1=Torso.BrickColor
  356.  
  357. local bodvel=Instance.new("BodyVelocity")
  358. local bg=Instance.new("BodyGyro")
  359.  
  360. function swait(num)
  361. if num==0 or num==nil then
  362. game:service'RunService'.Stepped:wait(0)
  363. else
  364. for i=0,num do
  365. game:service'RunService'.Stepped:wait(0)
  366. end
  367. end
  368. end
  369.  
  370.  
  371. so = function(id,par,vol,pit)
  372. coroutine.resume(coroutine.create(function()
  373. local sou = Instance.new("Sound",par or workspace)
  374. sou.Volume=vol
  375. sou.Pitch=pit or 1
  376. sou.SoundId=id
  377. swait()
  378. sou:play()
  379. game:GetService("Debris"):AddItem(sou,6)
  380. end))
  381. end
  382.  
  383. function clerp(a,b,t)
  384. local qa = {QuaternionFromCFrame(a)}
  385. local qb = {QuaternionFromCFrame(b)}
  386. local ax, ay, az = a.x, a.y, a.z
  387. local bx, by, bz = b.x, b.y, b.z
  388. local _t = 1-t
  389. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  390. end
  391.  
  392. function QuaternionFromCFrame(cf)
  393. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  394. local trace = m00 + m11 + m22
  395. if trace > 0 then
  396. local s = math.sqrt(1 + trace)
  397. local recip = 0.5/s
  398. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  399. else
  400. local i = 0
  401. if m11 > m00 then
  402. i = 1
  403. end
  404. if m22 > (i == 0 and m00 or m11) then
  405. i = 2
  406. end
  407. if i == 0 then
  408. local s = math.sqrt(m00-m11-m22+1)
  409. local recip = 0.5/s
  410. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  411. elseif i == 1 then
  412. local s = math.sqrt(m11-m22-m00+1)
  413. local recip = 0.5/s
  414. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  415. elseif i == 2 then
  416. local s = math.sqrt(m22-m00-m11+1)
  417. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  418. end
  419. end
  420. end
  421.  
  422. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  423. local xs, ys, zs = x + x, y + y, z + z
  424. local wx, wy, wz = w*xs, w*ys, w*zs
  425. local xx = x*xs
  426. local xy = x*ys
  427. local xz = x*zs
  428. local yy = y*ys
  429. local yz = y*zs
  430. local zz = z*zs
  431. 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))
  432. end
  433.  
  434. function QuaternionSlerp(a, b, t)
  435. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  436. local startInterp, finishInterp;
  437. if cosTheta >= 0.0001 then
  438. if (1 - cosTheta) > 0.0001 then
  439. local theta = math.acos(cosTheta)
  440. local invSinTheta = 1/math.sin(theta)
  441. startInterp = math.sin((1-t)*theta)*invSinTheta
  442. finishInterp = math.sin(t*theta)*invSinTheta
  443. else
  444. startInterp = 1-t
  445. finishInterp = t
  446. end
  447. else
  448. if (1+cosTheta) > 0.0001 then
  449. local theta = math.acos(-cosTheta)
  450. local invSinTheta = 1/math.sin(theta)
  451. startInterp = math.sin((t-1)*theta)*invSinTheta
  452. finishInterp = math.sin(t*theta)*invSinTheta
  453. else
  454. startInterp = t-1
  455. finishInterp = t
  456. end
  457. end
  458. 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
  459. end
  460.  
  461. local function CFrameFromTopBack(at, top, back)
  462. local right = top:Cross(back)
  463. return CFrame.new(at.x, at.y, at.z,
  464. right.x, top.x, back.x,
  465. right.y, top.y, back.y,
  466. right.z, top.z, back.z)
  467. end
  468.  
  469. function Triangle(a, b, c)
  470. local edg1 = (c-a):Dot((b-a).unit)
  471. local edg2 = (a-b):Dot((c-b).unit)
  472. local edg3 = (b-c):Dot((a-c).unit)
  473. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  474. a, b, c = a, b, c
  475. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  476. a, b, c = b, c, a
  477. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  478. a, b, c = c, a, b
  479. else
  480. assert(false, "unreachable")
  481. end
  482.  
  483. local len1 = (c-a):Dot((b-a).unit)
  484. local len2 = (b-a).magnitude - len1
  485. local width = (a + (b-a).unit*len1 - c).magnitude
  486.  
  487. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  488.  
  489. local list = {}
  490.  
  491. if len1 > 0.01 then
  492. local w1 = Instance.new('WedgePart', m)
  493. game:GetService("Debris"):AddItem(w1,5)
  494. w1.Material = "SmoothPlastic"
  495. w1.FormFactor = 'Custom'
  496. w1.BrickColor = BrickColor.new("Really red")
  497. w1.Transparency = 0
  498. w1.Reflectance = 0
  499. w1.Material = "SmoothPlastic"
  500. w1.CanCollide = false
  501. local l1 = Instance.new("PointLight",w1)
  502. l1.Color = Color3.new(170,0,0)
  503. NoOutline(w1)
  504. local sz = Vector3.new(0.2, width, len1)
  505. w1.Size = sz
  506. local sp = Instance.new("SpecialMesh",w1)
  507. sp.MeshType = "Wedge"
  508. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  509. w1:BreakJoints()
  510. w1.Anchored = true
  511. w1.Parent = workspace
  512. w1.Transparency = 0.7
  513. table.insert(Effects,{w1,"Disappear",.01})
  514. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  515. table.insert(list,w1)
  516. end
  517.  
  518. if len2 > 0.01 then
  519. local w2 = Instance.new('WedgePart', m)
  520. game:GetService("Debris"):AddItem(w2,5)
  521. w2.Material = "SmoothPlastic"
  522. w2.FormFactor = 'Custom'
  523. w2.BrickColor = BrickColor.new("Really red")
  524. w2.Transparency = 0
  525. w2.Reflectance = 0
  526. w2.Material = "SmoothPlastic"
  527. w2.CanCollide = false
  528. local l2 = Instance.new("PointLight",w2)
  529. l2.Color = Color3.new(170,0,0)
  530. NoOutline(w2)
  531. local sz = Vector3.new(0.2, width, len2)
  532. w2.Size = sz
  533. local sp = Instance.new("SpecialMesh",w2)
  534. sp.MeshType = "Wedge"
  535. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  536. w2:BreakJoints()
  537. w2.Anchored = true
  538. w2.Parent = workspace
  539. w2.Transparency = 0.7
  540. table.insert(Effects,{w2,"Disappear",.01})
  541. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  542. table.insert(list,w2)
  543. end
  544. return unpack(list)
  545. end
  546.  
  547.  
  548. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  549. if hit.Parent==nil then
  550. return
  551. end
  552. h=hit.Parent:FindFirstChild("Humanoid")
  553. for _,v in pairs(hit.Parent:children()) do
  554. if v:IsA("Humanoid") then
  555. h=v
  556. end
  557. end
  558. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  559. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  560. end
  561. if hit.Parent.className=="Hat" then
  562. hit=hit.Parent.Parent:findFirstChild("Head")
  563. end
  564. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  565. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  566. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  567. return
  568. end]]
  569. -- hs(hit,1.2)
  570. c=Instance.new("ObjectValue")
  571. c.Name="creator"
  572. c.Value=game:service("Players").LocalPlayer
  573. c.Parent=h
  574. game:GetService("Debris"):AddItem(c,.5)
  575. Damage=math.huge
  576. -- h:TakeDamage(Damage)
  577. blocked=false
  578. block=hit.Parent:findFirstChild("Block")
  579. if block~=nil then
  580. print(block.className)
  581. if block.className=="NumberValue" then
  582. if block.Value>0 then
  583. blocked=true
  584. if decreaseblock==nil then
  585. block.Value=block.Value-1
  586. end
  587. end
  588. end
  589. if block.className=="IntValue" then
  590. if block.Value>0 then
  591. blocked=true
  592. if decreaseblock~=nil then
  593. block.Value=block.Value-1
  594. end
  595. end
  596. end
  597. end
  598. if blocked==false then
  599. -- h:TakeDamage(Damage)
  600. h.Health=h.Health-Damage
  601. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  602. else
  603. h.Health=h.Health-(Damage/2)
  604. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  605. end
  606. if Type=="Knockdown" then
  607. hum=hit.Parent.Humanoid
  608. hum.PlatformStand=true
  609. coroutine.resume(coroutine.create(function(HHumanoid)
  610. swait(1)
  611. HHumanoid.PlatformStand=false
  612. end),hum)
  613. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  614. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  615. local bodvol=Instance.new("BodyVelocity")
  616. bodvol.velocity=angle*knockback
  617. bodvol.P=5000
  618. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  619. bodvol.Parent=hit
  620. rl=Instance.new("BodyAngularVelocity")
  621. rl.P=3000
  622. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  623. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  624. rl.Parent=hit
  625. game:GetService("Debris"):AddItem(bodvol,.5)
  626. game:GetService("Debris"):AddItem(rl,.5)
  627. elseif Type=="Normal" then
  628. vp=Instance.new("BodyVelocity")
  629. vp.P=500
  630. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  631. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  632. if KnockbackType==1 then
  633. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  634. elseif KnockbackType==2 then
  635. vp.velocity=Property.CFrame.lookVector*knockback
  636. end
  637. if knockback>0 then
  638. vp.Parent=hit.Parent.Torso
  639. end
  640. game:GetService("Debris"):AddItem(vp,.5)
  641. elseif Type=="Up" then
  642. local bodyVelocity=Instance.new("BodyVelocity")
  643. bodyVelocity.velocity=vt(0,60,0)
  644. bodyVelocity.P=5000
  645. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  646. bodyVelocity.Parent=hit
  647. game:GetService("Debris"):AddItem(bodyVelocity,1)
  648. rl=Instance.new("BodyAngularVelocity")
  649. rl.P=3000
  650. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  651. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  652. rl.Parent=hit
  653. game:GetService("Debris"):AddItem(rl,.5)
  654. elseif Type=="Snare" then
  655. bp=Instance.new("BodyPosition")
  656. bp.P=2000
  657. bp.D=100
  658. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  659. bp.position=hit.Parent.Torso.Position
  660. bp.Parent=hit.Parent.Torso
  661. game:GetService("Debris"):AddItem(bp,1)
  662. elseif Type=="Target" then
  663. if Targetting==false then
  664. ZTarget=hit.Parent.Torso
  665. coroutine.resume(coroutine.create(function(Part)
  666. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  667. swait(5)
  668. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  669. end),ZTarget)
  670. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  671. targetgui=Instance.new("BillboardGui")
  672. targetgui.Parent=ZTarget
  673. targetgui.Size=UDim2.new(10,100,10,100)
  674. targ=Instance.new("ImageLabel")
  675. targ.Parent=targetgui
  676. targ.BackgroundTransparency=1
  677. targ.Image="rbxassetid://4834067"
  678. targ.Size=UDim2.new(1,0,1,0)
  679. cam.CameraType="Scriptable"
  680. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  681. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  682. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  683. Targetting=true
  684. RocketTarget=ZTarget
  685. for i=1,Property do
  686. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  687. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  688. swait()
  689. end
  690. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  691. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  692. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  693. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  694. end
  695. Targetting=false
  696. RocketTarget=nil
  697. targetgui.Parent=nil
  698. cam.CameraType="Custom"
  699. end
  700. end
  701. debounce=Instance.new("BoolValue")
  702. debounce.Name="DebounceHit"
  703. debounce.Parent=hit.Parent
  704. debounce.Value=true
  705. game:GetService("Debris"):AddItem(debounce,Delay)
  706. c=Instance.new("ObjectValue")
  707. c.Name="creator"
  708. c.Value=Player
  709. c.Parent=h
  710. game:GetService("Debris"):AddItem(c,.5)
  711. CRIT=false
  712. hitDeb=true
  713. AttackPos=6
  714. end
  715. end
  716.  
  717. showDamage=function(Char,Dealt,du,Color)
  718. m=Instance.new("Model")
  719. m.Name=tostring(Dealt)
  720. h=Instance.new("Humanoid")
  721. h.Health=0
  722. h.MaxHealth=0
  723. h.Parent=m
  724. c=Instance.new("Part")
  725. c.Transparency=0
  726. c.BrickColor=Color
  727. c.Transparency = 1
  728. c.Name="Head"
  729. c.TopSurface=0
  730. c.BottomSurface=0
  731. c.formFactor="Plate"
  732. c.Size=Vector3.new(1,.4,1)
  733.  
  734. local txt = Instance.new("BillboardGui", c)
  735. txt.Adornee = c
  736. txt.Name = "_status"
  737. txt.Size = UDim2.new(2, 0, 1.2, 0)
  738. txt.StudsOffset = Vector3.new(-9, 8, 0)
  739. local text = Instance.new("TextLabel", txt)
  740. text.Size = UDim2.new(10, 0, 7, 0)
  741. text.FontSize = "Size12"
  742. text.TextScaled = true
  743. text.TextTransparency = 0.5
  744. text.BackgroundTransparency = 1
  745. text.TextTransparency = 0.5
  746. text.TextStrokeTransparency = 0.5
  747. text.Font = "SciFi"
  748. text.TextStrokeColor3 = Color3.new(0,0,0)
  749. v=Instance.new("Part")
  750. v.Name = "ColorBrick"
  751. v.Parent=c
  752. v.FormFactor="Symmetric"
  753. v.Anchored=true
  754. v.CanCollide=false
  755. v.BottomSurface="Smooth"
  756. v.TopSurface="Smooth"
  757. v.Size=Vector3.new(10,5,3)
  758. v.Transparency=1
  759. v.CFrame=c.CFrame
  760. v.BrickColor=BrickColor.random()
  761. v.Transparency=1
  762. text.TextColor3 = t.BrickColor.Color
  763. v.Shape="Block"
  764. text.Text = tostring(Dealt)
  765. ms=Instance.new("CylinderMesh")
  766. ms.Scale=Vector3.new(.8,.8,.8)
  767. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  768. local rndm=math.random(1,#hitsounds)
  769. local r=rndm
  770. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)
  771. if CRIT==true then
  772. ms.Scale=Vector3.new(1,1.25,1)
  773. end
  774. ms.Parent=c
  775. c.Reflectance=0
  776. Instance.new("BodyGyro").Parent=c
  777. c.Parent=m
  778. if Char:findFirstChild("Head")~=nil then
  779. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  780. elseif Char.Parent:findFirstChild("Head")~=nil then
  781. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  782. end
  783. f=Instance.new("BodyPosition")
  784. f.P=2000
  785. f.D=100
  786. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  787. f.position=c.Position+Vector3.new(0,3,0)
  788. f.Parent=c
  789. game:GetService("Debris"):AddItem(m,.5+du)
  790. c.CanCollide=false
  791. m.Parent=workspace
  792. c.CanCollide=false
  793. end
  794.  
  795. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  796. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  797. end
  798.  
  799. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  800. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  801. prt.Anchored=true
  802. prt.CFrame=cframe
  803. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  804. --http://www.roblox.com/asset/?id=4770560
  805. game:GetService("Debris"):AddItem(prt,2)
  806. CF=prt.CFrame
  807. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  808. for i=0,1,0.2 do
  809. wait()
  810. Part.CFrame=CF*cf(0,0,-0.4)
  811. end
  812. for i=0,1,delay do
  813. wait()
  814. --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)
  815. Mesh.Scale=Mesh.Scale
  816. end
  817. for i=0,1,0.1 do
  818. wait()
  819. Part.Transparency=i
  820. end
  821. Part.Parent=nil
  822. end),prt,msh,CF)
  823. end
  824.  
  825. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  826. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  827. prt.Anchored=true
  828. prt.Material = "Neon"
  829. prt.CFrame=cframe
  830. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  831. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  832. game:GetService("Debris"):AddItem(prt,5)
  833. coroutine.resume(coroutine.create(function(Part,Mesh)
  834. for i=0,1,delay do
  835. swait()
  836. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  837. Part.Transparency=i
  838. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  839. end
  840. Part.Parent=nil
  841. end),prt,msh)
  842. end
  843.  
  844. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  845. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  846. prt.Anchored=true
  847. prt.Material = "Neon"
  848. prt.CFrame=cframe
  849. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  850. game:GetService("Debris"):AddItem(prt,5)
  851. coroutine.resume(coroutine.create(function(Part,Mesh)
  852. local rtype = rottype
  853. for i=0,1,delay do
  854. swait()
  855. if rtype == 1 then
  856. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  857. elseif rtype == 2 then
  858. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  859. end
  860. Part.Transparency=i
  861. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  862. end
  863. Part.Parent=nil
  864. end),prt,msh)
  865. end
  866.  
  867. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  868. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  869. prt.Anchored=true
  870. prt.CFrame=cframe
  871. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  872. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  873. game:GetService("Debris"):AddItem(prt,5)
  874. coroutine.resume(coroutine.create(function(Part,Mesh)
  875. for i=0,1,delay do
  876. wait()
  877. Part.Transparency=i
  878. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  879. end
  880. Part.Parent=nil
  881. end),prt,msh)
  882. end
  883.  
  884. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  885. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  886. prt.Anchored=true
  887. prt.Material = "Neon"
  888. prt.CFrame=cframe
  889. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  890. game:GetService("Debris"):AddItem(prt,5)
  891. coroutine.resume(coroutine.create(function(Part,Mesh)
  892. local rtype = rottype
  893. for i=0,1,delay do
  894. swait()
  895. if rtype == 1 then
  896. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  897. elseif rtype == 2 then
  898. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  899. end
  900. Part.Transparency=i
  901. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  902. end
  903. Part.Parent=nil
  904. end),prt,msh)
  905. end
  906.  
  907. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  908. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  909. prt.Anchored=true
  910. prt.Material = "Neon"
  911. prt.CFrame=cframe
  912. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  913. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  914. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  915. game:GetService("Debris"):AddItem(prt,5)
  916. coroutine.resume(coroutine.create(function(Part,Mesh)
  917. local rtype = rottype
  918. for i=0,1,delay do
  919. swait()
  920. if rtype == 1 then
  921. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  922. elseif rtype == 2 then
  923. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  924. end
  925. dec.Transparency=i
  926. dec2.Transparency=i
  927. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  928. end
  929. Part.Parent=nil
  930. end),prt,msh)
  931. end
  932.  
  933. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  934. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  935. prt.Anchored=true
  936. prt.Material = "Neon"
  937. prt.CFrame=cframe
  938. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  939. game:GetService("Debris"):AddItem(prt,5)
  940. coroutine.resume(coroutine.create(function(Part,Mesh)
  941. local rtype = rottype
  942. for i=0,1,delay do
  943. swait()
  944. if rtype == 1 then
  945. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  946. elseif rtype == 2 then
  947. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  948. end
  949. prt.Transparency=i
  950. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  951. end
  952. Part.Parent=nil
  953. end),prt,msh)
  954. end
  955.  
  956. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  957. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  958. prt.Anchored=true
  959. prt.Material = "Neon"
  960. prt.CFrame=cframe
  961. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  962. game:GetService("Debris"):AddItem(prt,5)
  963. coroutine.resume(coroutine.create(function(Part,Mesh)
  964. local rtype = rottype
  965. for i=0,1,delay do
  966. swait()
  967. if rtype == 1 then
  968. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  969. elseif rtype == 2 then
  970. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  971. end
  972. prt.Transparency=i
  973. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  974. end
  975. Part.Parent=nil
  976. end),prt,msh)
  977. end
  978.  
  979. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  980. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  981. prt.Anchored=true
  982. prt.Material = "Neon"
  983. prt.CFrame=cframe
  984. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  985. game:GetService("Debris"):AddItem(prt,5)
  986. coroutine.resume(coroutine.create(function(Part,Mesh)
  987. local rtype = rottype
  988. for i=0,1,delay do
  989. swait()
  990. if rtype == 1 then
  991. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  992. elseif rtype == 2 then
  993. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  994. end
  995. prt.Transparency=i
  996. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  997. end
  998. Part.Parent=nil
  999. end),prt,msh)
  1000. end
  1001.  
  1002. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1003. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1004. prt.Anchored=false
  1005. prt.CFrame=cframe
  1006. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1007. local wld=weld(prt,prt,Parent,cframe)
  1008. game:GetService("Debris"):AddItem(prt,5)
  1009. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1010. for i=0,1,delay do
  1011. wait()
  1012. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1013. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1014. Part.Transparency=i
  1015. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1016. end
  1017. Part.Parent=nil
  1018. end),prt,msh,wld)
  1019. end
  1020.  
  1021. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1022. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1023. prt.Anchored=false
  1024. prt.CFrame=cframe
  1025. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1026. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1027. game:GetService("Debris"):AddItem(prt,5)
  1028. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1029. for i=0,1,delay do
  1030. wait()
  1031. Weld.C0=euler(i*20,0,0)
  1032. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1033. Part.Transparency=i
  1034. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1035. end
  1036. Part.Parent=nil
  1037. end),prt,msh,wld)
  1038. end
  1039.  
  1040. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1041. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1042. prt.Anchored=true
  1043. prt.CFrame=cframe
  1044. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1045. game:GetService("Debris"):AddItem(prt,2)
  1046. coroutine.resume(coroutine.create(function(Part,Mesh)
  1047. for i=0,1,delay do
  1048. wait()
  1049. Part.CFrame=Part.CFrame
  1050. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1051. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1052. prt2.Anchored=true
  1053. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1054. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1055. game:GetService("Debris"):AddItem(prt2,2)
  1056. coroutine.resume(coroutine.create(function(Part,Mesh)
  1057. for i=0,1,0.1 do
  1058. wait()
  1059. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1060. end
  1061. Part.Parent=nil
  1062. end),prt2,msh2)
  1063. end
  1064. for i=0,1,delay*2 do
  1065. wait()
  1066. Part.CFrame=Part.CFrame
  1067. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1068. end
  1069. Part.Parent=nil
  1070. end),prt,msh)
  1071. end
  1072.  
  1073. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1074. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1075. prt.Anchored=true
  1076. prt.CFrame=cframe
  1077. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1078. game:GetService("Debris"):AddItem(prt,2)
  1079. coroutine.resume(coroutine.create(function(Part,Mesh)
  1080. for i=0,1,delay do
  1081. wait()
  1082. Part.CFrame=Part.CFrame
  1083. Part.Transparency=i
  1084. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1085. end
  1086. Part.Parent=nil
  1087. end),prt,msh)
  1088. end
  1089.  
  1090. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1091. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1092. prt.Anchored=true
  1093. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1094. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1095. game:GetService("Debris"):AddItem(prt,2)
  1096. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1097. CF=Part.CFrame
  1098. Numbb=0
  1099. randnumb=math.random()/10
  1100. rand1=math.random()/10
  1101. for i=0,1,rand1 do
  1102. wait()
  1103. CF=CF*cf(0,math.random()/2,0)
  1104. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1105. Part.CFrame=CF*euler(Numbb,0,0)
  1106. Part.Transparency=i
  1107. Numbb=Numbb+randnumb
  1108. end
  1109. Part.Parent=nil
  1110. end),prt,CF,Numbb,randnumb)
  1111. end
  1112.  
  1113. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1114. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1115. prt.Anchored=true
  1116. prt.CFrame=cframe
  1117. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1118. game:GetService("Debris"):AddItem(prt,5)
  1119. coroutine.resume(coroutine.create(function(Part,Mesh)
  1120. for i=0,1,delay do
  1121. wait()
  1122. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1123. Part.Transparency=i
  1124. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1125. end
  1126. Part.Parent=nil
  1127. end),prt,msh)
  1128. end
  1129.  
  1130. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1131. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1132. prt.Anchored=true
  1133. prt.CFrame=cframe
  1134. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1135. game:GetService("Debris"):AddItem(prt,2)
  1136. coroutine.resume(coroutine.create(function(Part,Mesh)
  1137. for i=0,1,delay do
  1138. wait()
  1139. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1140. Part.Transparency=i
  1141. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1142. end
  1143. Part.Parent=nil
  1144. end),prt,msh)
  1145. end
  1146.  
  1147. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1148. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1149. prt.Anchored=true
  1150. prt.CFrame=cframe*cf(x,y,z)
  1151. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1152. game:GetService("Debris"):AddItem(prt,5)
  1153. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1154. local num=math.random()
  1155. local num2=math.random(-3,2)+math.random()
  1156. local numm=0
  1157. for i=0,1,delay*2 do
  1158. swait()
  1159. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1160. Part.Transparency=i
  1161. numm=numm+0.01
  1162. end
  1163. Part.Parent=nil
  1164. Mesh.Parent=nil
  1165. end),prt,msh,x,y,z)
  1166. end
  1167.  
  1168. function dmgstart(dmg,what)
  1169. hitcon = what.Touched:connect(function(hit)
  1170. local hum = hit.Parent:FindFirstChild("Humanoid")
  1171. if hum and not hum:IsDescendantOf(Character) then
  1172. hum:TakeDamage(dmg)
  1173. end
  1174. end)
  1175. end
  1176.  
  1177. function dmgstop()
  1178. hitcon:disconnect()
  1179. end
  1180.  
  1181. function Cloak()
  1182. Face.Parent=nil
  1183. cloaked=true
  1184. for _,v in pairs(Torso.Parent:children()) do
  1185. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1186. coroutine.resume(coroutine.create(function()
  1187. for i=0,1,0.2 do
  1188. wait()
  1189. v.Transparency=i
  1190. end
  1191. v.Transparency=1
  1192. end))
  1193. end
  1194. if v.className=="Hat" then
  1195. hatp=v.Handle
  1196. coroutine.resume(coroutine.create(function(derp)
  1197. for i=0,1,0.2 do
  1198. wait()
  1199. derp.Transparency=i
  1200. end
  1201. derp.Transparency=1
  1202. end),hatp)
  1203. end
  1204. end
  1205. for _,v in pairs(m:children()) do
  1206. if v.className=="Part" then
  1207. coroutine.resume(coroutine.create(function()
  1208. for i=0,1,0.2 do
  1209. wait()
  1210. v.Transparency=i
  1211. end
  1212. v.Transparency=1
  1213. end))
  1214. end
  1215. end
  1216. end
  1217.  
  1218. function UnCloak()
  1219. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1220. Face.Parent=Head
  1221. cloaked=false
  1222. for _,v in pairs(Torso.Parent:children()) do
  1223. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1224. coroutine.resume(coroutine.create(function()
  1225. for i=0,1,0.1 do
  1226. wait()
  1227. v.Transparency=v.Transparency-0.1
  1228. end
  1229. v.Transparency=0
  1230. end))
  1231. end
  1232. if v.className=="Hat" then
  1233. hatp=v.Handle
  1234. coroutine.resume(coroutine.create(function(derp)
  1235. for i=0,1,0.1 do
  1236. wait()
  1237. derp.Transparency=derp.Transparency-0.1
  1238. end
  1239. derp.Transparency=0
  1240. end),hatp)
  1241. end
  1242. end
  1243. for _,v in pairs(m:children()) do
  1244. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1245. coroutine.resume(coroutine.create(function()
  1246. for i=0,1,0.1 do
  1247. wait()
  1248. v.Transparency=v.Transparency-0.1
  1249. end
  1250. v.Transparency=0
  1251. end))
  1252. v.Transparency=0
  1253. end
  1254. end
  1255. end
  1256.  
  1257. local coold = false
  1258.  
  1259. function Twinkle()
  1260. attack = true
  1261. for i = 0,5,0.1 do
  1262. swait()
  1263. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1264. 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)
  1265. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  1266. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  1267. 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)
  1268. end
  1269. local bulletgos = it("Model",char)
  1270. local bulletgos2 = it("Model",char)
  1271. local a = Instance.new("Part",Character)
  1272. a.BrickColor = BrickColor.random()
  1273. a.Name = "Lazer"
  1274. a.Anchored = true
  1275. a.Material = "Neon"
  1276. a.Transparency = 1
  1277. a.CanCollide = false
  1278. local hitbox = Instance.new("Part",char)
  1279. hitbox.Size = Vector3.new(5,5,5)
  1280. hitbox.CFrame = mouse.hit
  1281. hitbox.Anchored = true
  1282. hitbox.Transparency = 1
  1283. hitbox.CanCollide = false
  1284. local ray = Ray.new(
  1285. sorb.CFrame.p, -- origin
  1286. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1287. )
  1288. local ignore = Character
  1289. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1290. if hit then
  1291. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1292.  
  1293. if not humanoid then
  1294. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1295. end
  1296. if humanoid then
  1297. if humanoid.Parent:IsA"Model" then
  1298. end
  1299. end
  1300. end
  1301. a.BottomSurface = 10
  1302. a.TopSurface = 10
  1303. local distance = (sorb.CFrame.p - position).magnitude
  1304. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1305. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1306. game:GetService("Debris"):AddItem(a, 10)
  1307. game:GetService("Debris"):AddItem(hitbox, 1)
  1308. local newmesh = Instance.new("BlockMesh",a)
  1309. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,5,5,5,0.25,0.25,0.25,0.025)
  1310. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.5,1.5,0.015,1)
  1311. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.25,1.25,0.015,2)
  1312. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1,1,0.015,1)
  1313. local lbs = Instance.new("Part")
  1314. lbs.Parent = char
  1315. CFuncs["Sound"].Create("rbxassetid://929619479", lbs, 1.5, 1)
  1316. lbs.Material = "Neon"
  1317. lbs.Color = BrickColor.new("Really black").Color
  1318. lbs.CanCollide = false
  1319. lbs.Shape = "Ball"
  1320. lbs.Anchored = true
  1321. lbs.Transparency = 0
  1322. lbs.Size = vt(10,10,10)
  1323. lbs.CFrame = a.CFrame
  1324. local thing = Instance.new("SpecialMesh",lbs)
  1325. thing.MeshType = "Sphere"
  1326. lbs.Anchored = false
  1327. local bvs = Instance.new("BodyVelocity")
  1328. bvs.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1329. bvs.velocity = a.CFrame.lookVector*75
  1330. bvs.Parent = lbs
  1331. lbs.Touched:connect(function(hit)
  1332. Damagefunc(hit,25,60,math.random(10,20),"Normal",root,.2,1)
  1333. end)
  1334. game:GetService("Debris"):AddItem(lbs, 10)
  1335. local rotation = 0
  1336. local rotation2 = 0
  1337. for z = 0, 24 do
  1338. wait()
  1339. rotation = rotation + 25
  1340. rotation2 = rotation2 - 25
  1341. local lb = Instance.new("Part")
  1342. lb.Parent = bulletgos
  1343. lb.Material = "Neon"
  1344. lb.Color = BrickColor.new("Dark indigo").Color
  1345. lb.CanCollide = false
  1346. lb.Anchored = true
  1347. lb.Transparency = 0
  1348. lb.Size = vt(2,2,2)
  1349. local thing = Instance.new("SpecialMesh",lb)
  1350. thing.MeshType = "Sphere"
  1351. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1352. lb.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation2),0)
  1353. local lb2 = Instance.new("Part")
  1354. lb2.Parent = bulletgos
  1355. lb2.Material = "Neon"
  1356. lb2.Color = lb.Color
  1357. lb2.CanCollide = false
  1358. lb2.Anchored = true
  1359. lb2.Transparency = 0
  1360. lb2.Size = vt(2,2,2)
  1361. lb2.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  1362. local thing2 = Instance.new("SpecialMesh",lb2)
  1363. thing2.MeshType = "Sphere"
  1364. thing2.Scale = Vector3.new(0.5,0.5,1.5)
  1365. lb.Touched:connect(function(hit)
  1366. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1367. end)
  1368. lb2.Touched:connect(function(hit)
  1369. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1370. end)
  1371. local lb3 = Instance.new("Part")
  1372. lb3.Parent = bulletgos2
  1373. lb3.Material = "Neon"
  1374. lb3.Color = BrickColor.new("Dark indigo").Color
  1375. lb3.CanCollide = false
  1376. lb3.Anchored = true
  1377. lb3.Transparency = 0
  1378. lb3.Size = vt(2,2,2)
  1379. local thing3 = Instance.new("SpecialMesh",lb3)
  1380. thing3.MeshType = "Sphere"
  1381. thing3.Scale = Vector3.new(0.5,0.5,1.5)
  1382. lb3.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation2),0)
  1383. local lb4 = Instance.new("Part")
  1384. lb4.Parent = bulletgos2
  1385. lb4.Material = "Neon"
  1386. lb4.Color = lb3.Color
  1387. lb4.CanCollide = false
  1388. lb4.Anchored = true
  1389. lb4.Transparency = 0
  1390. lb4.Size = vt(2,2,2)
  1391. lb4.CFrame = lbs.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  1392. local thing4 = Instance.new("SpecialMesh",lb4)
  1393. thing4.MeshType = "Sphere"
  1394. thing4.Scale = Vector3.new(0.5,0.5,1.5)
  1395. lb3.Touched:connect(function(hit)
  1396. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1397. end)
  1398. lb4.Touched:connect(function(hit)
  1399. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1400. end)
  1401. end
  1402. bvs:Destroy()
  1403. lbs.Anchored = true
  1404. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1405. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1406. lbs.Transparency = 1
  1407. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1408. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1409. CFuncs["Sound"].Create("rbxassetid://925629856", lbs, 5, 1)
  1410. game:GetService("Debris"):AddItem(bulletgos, 7)
  1411. game:GetService("Debris"):AddItem(bulletgos2, 7)
  1412. for i,v in pairs(bulletgos:children()) do
  1413. if v:IsA("Part") then
  1414. v.Anchored = false
  1415. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1416. local bv = Instance.new("BodyVelocity")
  1417. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1418. bv.velocity = v.CFrame.lookVector*25
  1419. bv.Parent = v
  1420. game:GetService("Debris"):AddItem(v, 5)
  1421. end
  1422. end
  1423. for i,v in pairs(bulletgos2:children()) do
  1424. if v:IsA("Part") then
  1425. v.Anchored = false
  1426. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1427. local bv = Instance.new("BodyVelocity")
  1428. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1429. bv.velocity = v.CFrame.lookVector*50
  1430. bv.Parent = v
  1431. game:GetService("Debris"):AddItem(v, 5)
  1432. end
  1433. end
  1434. attack = false
  1435. end
  1436.  
  1437. function TwinkleBurst()
  1438. attack = true
  1439. for i = 0,5,0.1 do
  1440. swait()
  1441. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1442. 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)
  1443. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  1444. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  1445. 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)
  1446. end
  1447. local a = Instance.new("Part",Character)
  1448. a.BrickColor = BrickColor.random()
  1449. a.Name = "Lazer"
  1450. a.Anchored = true
  1451. a.Material = "Neon"
  1452. a.Transparency = 1
  1453. a.CanCollide = false
  1454. local hitbox = Instance.new("Part",char)
  1455. hitbox.Size = Vector3.new(5,5,5)
  1456. hitbox.CFrame = mouse.hit
  1457. hitbox.Anchored = true
  1458. hitbox.Transparency = 1
  1459. hitbox.CanCollide = false
  1460. local ray = Ray.new(
  1461. sorb.CFrame.p, -- origin
  1462. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1463. )
  1464. local ignore = Character
  1465. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1466. if hit then
  1467. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1468.  
  1469. if not humanoid then
  1470. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1471. end
  1472. if humanoid then
  1473. if humanoid.Parent:IsA"Model" then
  1474. end
  1475. end
  1476. end
  1477. a.BottomSurface = 10
  1478. a.TopSurface = 10
  1479. local distance = (sorb.CFrame.p - position).magnitude
  1480. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1481. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1482. game:GetService("Debris"):AddItem(a, 5)
  1483. game:GetService("Debris"):AddItem(hitbox, 1)
  1484. local newmesh = Instance.new("BlockMesh",a)
  1485. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,5,5,5,0.25,0.25,0.25,0.025)
  1486. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.5,1.5,0.015,1)
  1487. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1.25,1.25,0.015,2)
  1488. MagicShockAlt(BrickColor.new("Dark indigo"),a.CFrame,5,5,1,1,0.015,1)
  1489. local lbs = Instance.new("Part")
  1490. lbs.Parent = char
  1491. CFuncs["Sound"].Create("rbxassetid://929619479", lbs, 1, 1)
  1492. lbs.Material = "Neon"
  1493. lbs.Color = BrickColor.new("Really black").Color
  1494. lbs.CanCollide = false
  1495. lbs.Shape = "Ball"
  1496. lbs.Anchored = true
  1497. lbs.Transparency = 0
  1498. lbs.Size = vt(20,20,20)
  1499. lbs.CFrame = a.CFrame
  1500. local thing = Instance.new("SpecialMesh",lbs)
  1501. thing.MeshType = "Sphere"
  1502. lbs.Anchored = false
  1503. local bvs = Instance.new("BodyVelocity")
  1504. bvs.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1505. bvs.velocity = a.CFrame.lookVector*75
  1506. bvs.Parent = lbs
  1507. lbs.Touched:connect(function(hit)
  1508. Damagefunc(hit,25,60,math.random(10,20),"Normal",root,.2,1)
  1509. end)
  1510. attack = false
  1511. game:GetService("Debris"):AddItem(lbs, 10)
  1512. for x = 0, 4 do
  1513. local bulletgos = it("Model",char)
  1514. local bulletgos2 = it("Model",char)
  1515. for z = 0, 24 do
  1516. local lb = Instance.new("Part")
  1517. lb.Parent = bulletgos
  1518. lb.Material = "Neon"
  1519. lb.Color = BrickColor.new("Dark indigo").Color
  1520. lb.CanCollide = false
  1521. lb.Anchored = true
  1522. lb.Transparency = 0
  1523. lb.Size = vt(2,2,2)
  1524. local thing = Instance.new("SpecialMesh",lb)
  1525. thing.MeshType = "Sphere"
  1526. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1527. lb.CFrame = lbs.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1528. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*15
  1529. local lb2 = Instance.new("Part")
  1530. lb2.Parent = bulletgos2
  1531. lb2.Material = "Neon"
  1532. lb2.Color = lb.Color
  1533. lb2.CanCollide = false
  1534. lb2.Anchored = true
  1535. lb2.Transparency = 0
  1536. lb2.Size = vt(2,2,2)
  1537. lb2.CFrame = lbs.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1538. lb2.CFrame = lb2.CFrame + lb.CFrame.lookVector*15
  1539. local thing2 = Instance.new("SpecialMesh",lb2)
  1540. thing2.MeshType = "Sphere"
  1541. thing2.Scale = Vector3.new(0.5,0.5,1.5)
  1542. lb.Touched:connect(function(hit)
  1543. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1544. end)
  1545. lb2.Touched:connect(function(hit)
  1546. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1547. end)
  1548. end
  1549. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1550. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1551. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1552. MagicBlock(BrickColor.new("Dark indigo"),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1553. CFuncs["Sound"].Create("rbxassetid://925629856", lbs, 5, 1)
  1554. game:GetService("Debris"):AddItem(bulletgos, 7)
  1555. game:GetService("Debris"):AddItem(bulletgos2, 7)
  1556. for i,v in pairs(bulletgos:children()) do
  1557. if v:IsA("Part") then
  1558. v.Anchored = false
  1559. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1560. local bv = Instance.new("BodyVelocity")
  1561. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1562. bv.velocity = v.CFrame.lookVector*25
  1563. bv.Parent = v
  1564. game:GetService("Debris"):AddItem(v, 5)
  1565. end
  1566. end
  1567. for i,v in pairs(bulletgos2:children()) do
  1568. if v:IsA("Part") then
  1569. v.Anchored = false
  1570. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1571. local bv = Instance.new("BodyVelocity")
  1572. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1573. bv.velocity = v.CFrame.lookVector*-25
  1574. bv.Parent = v
  1575. game:GetService("Debris"):AddItem(v, 5)
  1576. end
  1577. end
  1578. wait(1)
  1579. end
  1580. end
  1581.  
  1582. function TargetTwinkle()
  1583. attack = true
  1584. for i = 0,1,0.1 do
  1585. swait()
  1586. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1587. 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)
  1588. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  1589. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  1590. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1)
  1591. end
  1592. attack = false
  1593. local a = Instance.new("Part",Character)
  1594. a.BrickColor = BrickColor.random()
  1595. a.Name = "Lazer"
  1596. a.Anchored = true
  1597. a.Material = "Neon"
  1598. a.Transparency = 1
  1599. a.CanCollide = false
  1600. local hitbox = Instance.new("Part",char)
  1601. hitbox.Size = Vector3.new(5,5,5)
  1602. hitbox.CFrame = mouse.hit
  1603. hitbox.Anchored = true
  1604. hitbox.Transparency = 1
  1605. hitbox.CanCollide = false
  1606. local ray = Ray.new(
  1607. sorb.CFrame.p, -- origin
  1608. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1609. )
  1610. local ignore = Character
  1611. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1612. if hit then
  1613. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1614.  
  1615. if not humanoid then
  1616. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1617. end
  1618. if humanoid then
  1619. if humanoid.Parent:IsA"Model" then
  1620. local bulletgos = it("Model",char)
  1621. local bulletgos2 = it("Model",char)
  1622. for z = 0, 24 do
  1623. wait(0.05)
  1624. local lb = Instance.new("Part")
  1625. lb.Parent = bulletgos2
  1626. lb.Material = "Neon"
  1627. lb.Color = BrickColor.new("Dark indigo").Color
  1628. lb.CanCollide = false
  1629. lb.Anchored = true
  1630. lb.Transparency = 0
  1631. lb.Size = vt(2,2,2)
  1632. local thing = Instance.new("SpecialMesh",lb)
  1633. thing.MeshType = "Sphere"
  1634. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1635. lb.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1636. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*15
  1637. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.5, 1)
  1638. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1639. lb.Touched:connect(function(hit)
  1640. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1641. end)
  1642. end
  1643. wait(1)
  1644. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1645. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1646. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1647. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1648. CFuncs["Sound"].Create("rbxassetid://925629856", hit, 5, 1)
  1649. game:GetService("Debris"):AddItem(bulletgos, 7)
  1650. game:GetService("Debris"):AddItem(bulletgos2, 7)
  1651. for i,v in pairs(bulletgos:children()) do
  1652. if v:IsA("Part") then
  1653. v.Anchored = false
  1654. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1655. local bv = Instance.new("BodyVelocity")
  1656. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1657. bv.velocity = v.CFrame.lookVector*25
  1658. bv.Parent = v
  1659. game:GetService("Debris"):AddItem(v, 5)
  1660. end
  1661. end
  1662. for i,v in pairs(bulletgos2:children()) do
  1663. if v:IsA("Part") then
  1664. v.Anchored = false
  1665. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1666. local bv = Instance.new("BodyVelocity")
  1667. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1668. bv.velocity = v.CFrame.lookVector*-25
  1669. bv.Parent = v
  1670. game:GetService("Debris"):AddItem(v, 5)
  1671. end
  1672. end
  1673. end
  1674. end
  1675. end
  1676. a.BottomSurface = 10
  1677. a.TopSurface = 10
  1678. local distance = (sorb.CFrame.p - position).magnitude
  1679. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1680. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1681. game:GetService("Debris"):AddItem(a, 5)
  1682. game:GetService("Debris"):AddItem(hitbox, 1)
  1683. game:GetService("Debris"):AddItem(lbs, 10)
  1684. end
  1685.  
  1686. function TargetTwinkleCurse()
  1687. CFuncs["Sound"].Create("rbxassetid://925333540", char, 0.5, 1)
  1688. coold = true
  1689. MagicBlock(BrickColor.new("Really black"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  1690. MagicBlock(BrickColor.new("Dark indigo"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  1691. wait(1)
  1692. attack = true
  1693. coold = false
  1694. for i = 0,4,0.1 do
  1695. swait()
  1696. MagicBlock(BrickColor.new("Really black"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1697. 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)
  1698. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  1699. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  1700. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1)
  1701. end
  1702. attack = false
  1703. local a = Instance.new("Part",Character)
  1704. a.BrickColor = BrickColor.random()
  1705. a.Name = "Lazer"
  1706. a.Anchored = true
  1707. a.Material = "Neon"
  1708. a.Transparency = 1
  1709. a.CanCollide = false
  1710. local hitbox = Instance.new("Part",char)
  1711. hitbox.Size = Vector3.new(5,5,5)
  1712. hitbox.CFrame = mouse.hit
  1713. hitbox.Anchored = true
  1714. hitbox.Transparency = 1
  1715. hitbox.CanCollide = false
  1716. local ray = Ray.new(
  1717. sorb.CFrame.p, -- origin
  1718. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1719. )
  1720. local ignore = Character
  1721. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1722. if hit then
  1723. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1724.  
  1725. if not humanoid then
  1726. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1727. end
  1728. if humanoid then
  1729. if humanoid.Parent:IsA"Model" then
  1730. for z = 0, 49 do
  1731. wait(0.1)
  1732. local lb = Instance.new("Part")
  1733. lb.Anchored = true
  1734. lb.Parent = char
  1735. lb.Material = "Neon"
  1736. lb.Color = BrickColor.new("Dark indigo").Color
  1737. lb.CanCollide = false
  1738. lb.Transparency = 0
  1739. lb.Size = vt(2,2,2)
  1740. local thing = Instance.new("SpecialMesh",lb)
  1741. thing.MeshType = "Sphere"
  1742. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1743. lb.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1744. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*7.5
  1745. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.5, 1)
  1746. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1747. lb.Touched:connect(function(hit)
  1748. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1749. end)
  1750. wait(0.1)
  1751. lb.Anchored = false
  1752. local bv = Instance.new("BodyVelocity")
  1753. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1754. bv.velocity = lb.CFrame.lookVector*-5
  1755. bv.Parent = lb
  1756. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,1,1,1,-0.1,-0.1,-0.1,0.025)
  1757. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,1,1,1,0.1,0.1,0.1,0.025)
  1758. CFuncs["Sound"].Create("rbxassetid://925629856", lb, 0.1, 1)
  1759. game:GetService("Debris"):AddItem(lb, 7)
  1760. end
  1761. end
  1762. end
  1763. end
  1764. a.BottomSurface = 10
  1765. a.TopSurface = 10
  1766. local distance = (sorb.CFrame.p - position).magnitude
  1767. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1768. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1769. game:GetService("Debris"):AddItem(a, 5)
  1770. game:GetService("Debris"):AddItem(hitbox, 1)
  1771. game:GetService("Debris"):AddItem(lbs, 10)
  1772. end
  1773.  
  1774. function TargetPulse()
  1775. CFuncs["Sound"].Create("rbxassetid://925333540", char, 0.5, 1)
  1776. coold = true
  1777. MagicBlock(BrickColor.new("Really black"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  1778. MagicBlock(BrickColor.new("Dark indigo"),t.CFrame,25,25,25,-0.05,-0.05,-0.05,0.025)
  1779. wait(1)
  1780. attack = true
  1781. coold = false
  1782. for i = 0,3,0.1 do
  1783. swait()
  1784. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1785. 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)
  1786. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.1)
  1787. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.1)
  1788. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1)
  1789. end
  1790. attack = false
  1791. local a = Instance.new("Part",Character)
  1792. a.BrickColor = BrickColor.random()
  1793. a.Name = "Lazer"
  1794. a.Anchored = true
  1795. a.Material = "Neon"
  1796. a.Transparency = 1
  1797. a.CanCollide = false
  1798. local hitbox = Instance.new("Part",char)
  1799. hitbox.Size = Vector3.new(5,5,5)
  1800. hitbox.CFrame = mouse.hit
  1801. hitbox.Anchored = true
  1802. hitbox.Transparency = 1
  1803. hitbox.CanCollide = false
  1804. local ray = Ray.new(
  1805. sorb.CFrame.p, -- origin
  1806. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1807. )
  1808. local ignore = Character
  1809. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1810. if hit then
  1811. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1812.  
  1813. if not humanoid then
  1814. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1815. end
  1816. if humanoid then
  1817. if humanoid.Parent:IsA"Model" then
  1818. local bulletgos = it("Model",char)
  1819. local bulletgos2 = it("Model",char)
  1820. for z = 0, 49 do
  1821. wait(0.05)
  1822. local lb = Instance.new("Part")
  1823. lb.Parent = bulletgos2
  1824. lb.Material = "Neon"
  1825. lb.Color = BrickColor.new("Dark indigo").Color
  1826. lb.CanCollide = false
  1827. lb.Anchored = true
  1828. lb.Transparency = 0
  1829. lb.Size = vt(1,1,10)
  1830. local thing = Instance.new("SpecialMesh",lb)
  1831. thing.MeshType = "Sphere"
  1832. thing.Scale = Vector3.new(1,1,1.25)
  1833. lb.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1834. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*45
  1835. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.5, 1)
  1836. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1837. lb.Touched:connect(function(hit)
  1838. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1839. end)
  1840. local lb2 = Instance.new("Part")
  1841. lb2.Parent = bulletgos
  1842. lb2.Material = "Neon"
  1843. lb2.Color = BrickColor.new("Really black").Color
  1844. lb2.CanCollide = false
  1845. lb2.Anchored = true
  1846. lb2.Transparency = 0
  1847. lb2.Size = vt(2,2,2)
  1848. local thing = Instance.new("SpecialMesh",lb2)
  1849. thing.MeshType = "Sphere"
  1850. lb2.CFrame = hit.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1851. lb2.CFrame = lb2.CFrame + lb2.CFrame.lookVector*10
  1852. CFuncs["Sound"].Create("rbxassetid://929619479", lb2, 0.5, 1)
  1853. MagicBlock(BrickColor.new("Dark indigo"),lb2.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1854. lb2.Touched:connect(function(hit)
  1855. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1856. end)
  1857. end
  1858. wait(1)
  1859. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1860. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1861. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1862. MagicBlock(BrickColor.new("Dark indigo"),hit.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1863. CFuncs["Sound"].Create("rbxassetid://925629856", hit, 5, 1)
  1864. game:GetService("Debris"):AddItem(bulletgos, 7)
  1865. game:GetService("Debris"):AddItem(bulletgos2, 7)
  1866. for i,v in pairs(bulletgos:children()) do
  1867. if v:IsA("Part") then
  1868. v.Anchored = false
  1869. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1870. local bv = Instance.new("BodyVelocity")
  1871. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1872. bv.velocity = v.CFrame.lookVector*-2.5
  1873. bv.Parent = v
  1874. game:GetService("Debris"):AddItem(v, 10)
  1875. end
  1876. end
  1877. for i,v in pairs(bulletgos2:children()) do
  1878. if v:IsA("Part") then
  1879. v.Anchored = false
  1880. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1881. local bv = Instance.new("BodyVelocity")
  1882. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1883. bv.velocity = v.CFrame.lookVector*-10
  1884. bv.Parent = v
  1885. game:GetService("Debris"):AddItem(v, 10)
  1886. end
  1887. end
  1888. end
  1889. end
  1890. end
  1891. a.BottomSurface = 10
  1892. a.TopSurface = 10
  1893. local distance = (sorb.CFrame.p - position).magnitude
  1894. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1895. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1896. game:GetService("Debris"):AddItem(a, 5)
  1897. game:GetService("Debris"):AddItem(hitbox, 1)
  1898. game:GetService("Debris"):AddItem(lbs, 10)
  1899. end
  1900.  
  1901. function TwinkleSpiral()
  1902. attack = true
  1903. hum.WalkSpeed = 0
  1904. for i = 0,3,0.1 do
  1905. swait()
  1906. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1907. MagicBlock(BrickColor.new("Dark indigo"),sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1908. 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)
  1909. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-30)),.1)
  1910. 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)
  1911. 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)
  1912. end
  1913. local bulletgos = it("Model",char)
  1914. local bulletgos2 = it("Model",char)
  1915. local rotation = 0
  1916. local dis = 75
  1917. for z = 0, 99 do
  1918. wait(0.05)
  1919. rotation = rotation + 6.15
  1920. local lb = Instance.new("Part")
  1921. lb.Parent = bulletgos
  1922. lb.Material = "Neon"
  1923. lb.Color = BrickColor.new("Dark indigo").Color
  1924. lb.CanCollide = false
  1925. lb.Anchored = true
  1926. lb.Transparency = 0
  1927. lb.Size = vt(2,2,2)
  1928. local thing = Instance.new("SpecialMesh",lb)
  1929. thing.MeshType = "Sphere"
  1930. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1931. lb.CFrame = root.CFrame
  1932. lb.CFrame = lb.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  1933. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*dis/6
  1934. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.25, 1)
  1935. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1936. lb.Touched:connect(function(hit)
  1937. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1938. end)
  1939. local lb2 = Instance.new("Part")
  1940. lb2.Parent = bulletgos2
  1941. lb2.Material = "Neon"
  1942. lb2.Color = BrickColor.new("Dark indigo").Color
  1943. lb2.CanCollide = false
  1944. lb2.Anchored = true
  1945. lb2.Transparency = 0
  1946. lb2.Size = vt(2,2,2)
  1947. local thing = Instance.new("SpecialMesh",lb2)
  1948. thing.MeshType = "Sphere"
  1949. thing.Scale = Vector3.new(0.5,0.5,1.5)
  1950. lb2.CFrame = root.CFrame
  1951. lb2.CFrame = lb2.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  1952. lb2.CFrame = lb2.CFrame - lb2.CFrame.lookVector*dis/6
  1953. CFuncs["Sound"].Create("rbxassetid://929619479", lb2, 0.25, 1)
  1954. MagicBlock(BrickColor.new("Dark indigo"),lb2.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  1955. lb2.Touched:connect(function(hit)
  1956. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  1957. end)
  1958. dis = dis + 2.5
  1959. end
  1960. wait(0.5)
  1961. hum.WalkSpeed = 16
  1962. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1963. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  1964. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1965. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  1966. CFuncs["Sound"].Create("rbxassetid://925629856", root, 5, 1)
  1967. game:GetService("Debris"):AddItem(bulletgos, 7)
  1968. game:GetService("Debris"):AddItem(bulletgos2, 7)
  1969. for i,v in pairs(bulletgos:children()) do
  1970. if v:IsA("Part") then
  1971. v.Anchored = false
  1972. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1973. local bv = Instance.new("BodyVelocity")
  1974. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1975. bv.velocity = v.CFrame.lookVector*25
  1976. bv.Parent = v
  1977. game:GetService("Debris"):AddItem(v, 5)
  1978. end
  1979. end
  1980. for i,v in pairs(bulletgos2:children()) do
  1981. if v:IsA("Part") then
  1982. v.Anchored = false
  1983. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  1984. local bv = Instance.new("BodyVelocity")
  1985. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1986. bv.velocity = v.CFrame.lookVector*-25
  1987. bv.Parent = v
  1988. game:GetService("Debris"):AddItem(v, 5)
  1989. end
  1990. end
  1991. attack = false
  1992. end
  1993.  
  1994. function TwinkleSpiralInpulse()
  1995. attack = true
  1996. hum.WalkSpeed = 0
  1997. for i = 0,3,0.1 do
  1998. swait()
  1999. MagicBlock(BrickColor.new("Dark indigo"),sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2000. MagicBlock(BrickColor.new("Dark indigo"),sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2001. 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)
  2002. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-30)),.1)
  2003. 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)
  2004. 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)
  2005. end
  2006. local bulletgos = it("Model",char)
  2007. local bulletgos2 = it("Model",char)
  2008. local rotation = 0
  2009. local dis = 75
  2010. for z = 0, 99 do
  2011. wait(0.05)
  2012. rotation = rotation + 6.15
  2013. local lb = Instance.new("Part")
  2014. lb.Parent = bulletgos2
  2015. lb.Material = "Neon"
  2016. lb.Color = BrickColor.new("Dark indigo").Color
  2017. lb.CanCollide = false
  2018. lb.Anchored = true
  2019. lb.Transparency = 0
  2020. lb.Size = vt(2,2,2)
  2021. local thing = Instance.new("SpecialMesh",lb)
  2022. thing.MeshType = "Sphere"
  2023. thing.Scale = Vector3.new(0.5,0.5,1.5)
  2024. lb.CFrame = root.CFrame
  2025. lb.CFrame = lb.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  2026. lb.CFrame = lb.CFrame + lb.CFrame.lookVector*dis/6
  2027. CFuncs["Sound"].Create("rbxassetid://929619479", lb, 0.25, 1)
  2028. MagicBlock(BrickColor.new("Dark indigo"),lb.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  2029. lb.Touched:connect(function(hit)
  2030. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  2031. end)
  2032. local lb2 = Instance.new("Part")
  2033. lb2.Parent = bulletgos
  2034. lb2.Material = "Neon"
  2035. lb2.Color = BrickColor.new("Dark indigo").Color
  2036. lb2.CanCollide = false
  2037. lb2.Anchored = true
  2038. lb2.Transparency = 0
  2039. lb2.Size = vt(2,2,2)
  2040. local thing = Instance.new("SpecialMesh",lb2)
  2041. thing.MeshType = "Sphere"
  2042. thing.Scale = Vector3.new(0.5,0.5,1.5)
  2043. lb2.CFrame = root.CFrame
  2044. lb2.CFrame = lb2.CFrame*CFrame.Angles(0,math.rad(rotation),0)
  2045. lb2.CFrame = lb2.CFrame - lb2.CFrame.lookVector*dis/6
  2046. CFuncs["Sound"].Create("rbxassetid://929619479", lb2, 0.25, 1)
  2047. MagicBlock(BrickColor.new("Dark indigo"),lb2.CFrame,2,2,2,0.1,0.1,0.1,0.025)
  2048. lb2.Touched:connect(function(hit)
  2049. Damagefunc(hit,10,18,math.random(10,20),"Normal",root,.2,1)
  2050. end)
  2051. dis = dis + 2.5
  2052. end
  2053. wait(0.5)
  2054. hum.WalkSpeed = 16
  2055. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  2056. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025)
  2057. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  2058. MagicBlock(BrickColor.new("Dark indigo"),root.CFrame,25,25,25,0.5,0.5,0.5,0.025)
  2059. CFuncs["Sound"].Create("rbxassetid://925629856", root, 5, 1)
  2060. game:GetService("Debris"):AddItem(bulletgos, 7)
  2061. game:GetService("Debris"):AddItem(bulletgos2, 7)
  2062. for i,v in pairs(bulletgos:children()) do
  2063. if v:IsA("Part") then
  2064. v.Anchored = false
  2065. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  2066. local bv = Instance.new("BodyVelocity")
  2067. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2068. bv.velocity = v.CFrame.lookVector*25
  2069. bv.Parent = v
  2070. game:GetService("Debris"):AddItem(v, 5)
  2071. end
  2072. end
  2073. for i,v in pairs(bulletgos2:children()) do
  2074. if v:IsA("Part") then
  2075. v.Anchored = false
  2076. MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025)
  2077. local bv = Instance.new("BodyVelocity")
  2078. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2079. bv.velocity = v.CFrame.lookVector*-25
  2080. bv.Parent = v
  2081. game:GetService("Debris"):AddItem(v, 5)
  2082. end
  2083. end
  2084. attack = false
  2085. end
  2086.  
  2087.  
  2088.  
  2089.  
  2090.  
  2091. local enabledb = false
  2092.  
  2093. mouse.KeyDown:connect(function(k)
  2094. if k == "z" and attack == false and coold == false then
  2095. Twinkle()
  2096. end
  2097. if k == "x" and attack == false and coold == false then
  2098. TwinkleBurst()
  2099. end
  2100. if k == "c" and attack == false and coold == false then
  2101. TargetTwinkle()
  2102. end
  2103. if k == "v" and attack == false and coold == false then
  2104. TwinkleSpiral()
  2105. end
  2106. if k == "b" and attack == false and coold == false then
  2107. TwinkleSpiralInpulse()
  2108. end
  2109. if k == "n" and attack == false and coold == false then
  2110. TargetPulse()
  2111. end
  2112. if k == "m" and attack == false and coold == false then
  2113. TargetTwinkleCurse()
  2114. end
  2115. end)
  2116.  
  2117. Humanoid.Animator.Parent = nil
  2118. idleanim=.4
  2119. while true do
  2120. swait()
  2121. sine = sine + change
  2122. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2123. local velderp=RootPart.Velocity.y
  2124. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2125. if equipped==true or equipped==false then
  2126. if attack==false then
  2127. idle=idle+1
  2128. else
  2129. idle=0
  2130. end
  2131. if idle>=500 then
  2132. if attack==false then
  2133. --Sheath()
  2134. end
  2135. end
  2136. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2137. Anim="Jump"
  2138. if attack==false then
  2139. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2140. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2141. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2142. 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)
  2143. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2144. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  2145. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2146. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2147. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2148. end
  2149. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2150. Anim="Fall"
  2151. if attack==false then
  2152. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  2153. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2154. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2155. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  2156. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2157. 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)
  2158. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2159. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2160. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2161. end
  2162. elseif torvel<1 and hitfloor~=nil then
  2163. Anim="Idle"
  2164. if plr.Name ~= "ShADow0nYx" then
  2165. 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)
  2166. 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)
  2167. if attack==false then
  2168. 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)
  2169. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  2170. 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)
  2171. 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)
  2172. end
  2173. elseif plr.Name == "ShADow0nYx" then
  2174. 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)
  2175. 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)
  2176. if attack==false then
  2177. 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)
  2178. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(10),math.rad(0)),.3)
  2179. 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)
  2180. 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)
  2181. end
  2182. end
  2183. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2184. Anim="Walk"
  2185. if plr.Name ~= "ShADow0nYx" then
  2186. 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)
  2187. 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)
  2188. if attack==false then
  2189. 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)
  2190. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2191. 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)
  2192. 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)
  2193. end
  2194. elseif plr.Name == "ShADow0nYx" then
  2195. 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)
  2196. 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)
  2197. if attack==false then
  2198. 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)
  2199. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0 + 10 * math.cos(sine / 8))),.3)
  2200. 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)
  2201. 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)
  2202. end
  2203. end
  2204. elseif torvel>=22 and hitfloor~=nil then
  2205. Anim="Run"
  2206. 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)
  2207. 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)
  2208. if attack==false then
  2209. 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)
  2210. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2211. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  2212. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  2213. Attached = false
  2214. Timer = createTimer(nil)
  2215. MemScanCount = 0
  2216. MemScanCountMax = 10
  2217.  
  2218. ProcessFound = function()
  2219. local scan = createMemScan(true)
  2220. memscan_returnOnlyOneResult(scan, true)
  2221. memscan_firstScan(scan, soExactValue, vtByteArray, rtTruncated, "D9 00 8B 46 20 8B 8A 2C 01 00 00 D9 1C 24 8B", nil, 0x00000000, 0xFFFFFFFF, "*W", fsmNotAligned, nil, true, false, false, false)
  2222. memscan_waitTillDone(scan)
  2223.  
  2224. local result = memscan_getOnlyResult(scan)
  2225.  
  2226. if result == nil then
  2227. MemScanCount = MemScanCount + 1
  2228. if not (MemScanCount > MemScanCountMax) then
  2229. sleep(100)
  2230. ProcessFound()
  2231. else
  2232. showMessage"Failed to hook to roblox. Restart Cheat Engine."
  2233. end
  2234. else
  2235. result = string.format("%x", result)
  2236. result = ("0"):rep(8-#result) .. result
  2237.  
  2238. writeBytes(result, 0x90, 0x90)
  2239. end
  2240. end
  2241.  
  2242. timer_setInterval(Timer, 100)
  2243. timer_onTimer(Timer, function()
  2244. if getProcessIDFromProcessName"RobloxPlayerBeta.exe" then
  2245. if not Attached then
  2246. Attached = true
  2247. openProcess(getProcessIDFromProcessName"RobloxPlayerBeta.exe")
  2248. ProcessFound()
  2249. end
  2250. else
  2251. Attached = false
  2252. end
  2253. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement