Advertisement
Guest User

Untitled

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