Advertisement
jasonskg1234

ggg

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