Advertisement
clockwatcher00f

staffy uh healing boi?

Aug 3rd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.73 KB | None | 0 0
  1. --GOD--
  2.  
  3. Player = game.Players.LocalPlayer
  4. Char = Player.Character
  5. Torso = Char.Torso
  6. Head = Char.Head
  7. Arms = {Char:FindFirstChild'Right Arm', Char:FindFirstChild'Left Arm'}
  8. Shoulders = {Torso:FindFirstChild'Right Shoulder', Torso:FindFirstChild'Left Shoulder'}
  9. Legs = {Char:FindFirstChild'Right Leg', Char:FindFirstChild'Left Leg'}
  10. HumRoot = Char:FindFirstChild'HumanoidRootPart'
  11. HumRootJ = HumRoot['RootJoint']
  12. Humanoid = Char:FindFirstChild'Humanoid'
  13. Mouse = Player:GetMouse()
  14.  
  15. local s = Workspace:FindFirstChild('god_script: '..Player.Name,true)
  16. if s then
  17. local f = s:FindFirstChild'stop'
  18. if f then
  19. f:Invoke()
  20. end
  21. end
  22. s=nil
  23.  
  24. Debris = game:service'Debris'
  25. RS = game:service'RunService'
  26. Chatserv = game:service'Chat'
  27. Insertserv = game:service'InsertService'
  28.  
  29. Neck = Torso:FindFirstChild'Neck'
  30.  
  31. pcall(function() Char.Shirobako:Destroy() end)
  32. Main = Instance.new("Model",Char)
  33. Main.Name = "Shirobako"
  34. script.Parent=Main
  35.  
  36. cfn=CFrame.new
  37. ang = function(x,y,z) return CFrame.Angles(x or 0,y or 0,z or 0)end
  38. m={tau=math.pi*2;float=196.25}
  39. v3n=Vector3.new
  40. md,mr,PI=math.rad, math.random, math.pi
  41. bcol=BrickColor.new
  42. numkp=NumberSequenceKeypoint.new
  43. colkp=ColorSequenceKeypoint.new
  44.  
  45. function l(a1,x,y,z,rx,ry,rz)
  46. local cf
  47. if tostring(a1):find(',') == nil then
  48. cf=a1.CFrame
  49. else cf=a1 end
  50. return cf*CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(
  51. rx or 0,ry or 0,yz or 0)
  52. end
  53.  
  54. New = function(what)
  55. return function(bar)
  56. local obj=Instance.new(what)
  57. for arg,val in pairs(bar) do
  58. if arg == "_P" then
  59. obj.Parent = val
  60. elseif arg=="_PP" then
  61. obj.Part0=val[1]
  62. obj.Part1=val[2]
  63. else
  64. if pcall(function()return obj[arg] end) then
  65. obj[arg]=val
  66. end
  67. end
  68. end
  69. return obj
  70. end
  71. end
  72.  
  73. Edit = function(what)
  74. return function(args)
  75. for ind,obj in next,what do
  76. for arg,val in next,args do
  77. local child,argu = arg:match"(.+)%.(.+)"
  78. if child and argu then
  79. if pcall(function()return obj[child][argu] end) then
  80. -- print'a'
  81. obj[child][argu]=val
  82. end
  83. else
  84. if arg=='_F'then
  85. val(ind,obj)
  86. elseif pcall(function()return obj[arg]end) then
  87. obj[arg]=val
  88. end
  89. end
  90. end
  91. end
  92. end
  93. end
  94.  
  95. _1,_2,_3=nil,nil
  96. set_material = nil
  97. set_color = nil
  98. set_parent = nil
  99. set_anchor = nil
  100. Part = function(x,y,z,col,tr)
  101. local p = New"Part"{
  102. _P=set_parent or Main;
  103. BrickColor = bcol(col or set_color or "Really black");
  104. CanCollide = false;
  105. Transparency = tr or 0;
  106. Size = Vector3.new(x or 0,y or 0,z or 0);
  107. Material = set_material or 'SmoothPlastic';
  108. Anchored = (set_anchor~=nil and set_anchor or false)
  109. }
  110. for _,sur in next,Enum.NormalId:GetEnumItems() do
  111. p[sur.Name..'Surface'] = 10
  112. end
  113. _1 = p
  114. return p
  115. end
  116. Wedge = function(x,y,z,col,tr)
  117. local p = New"WedgePart"{
  118. _P=Main;
  119. BrickColor = bcol("Really black");
  120. CanCollide = false;
  121. Transparency = tr or 0;
  122. Size = Vector3.new(x or 0,y or 0,z or 0);
  123. Material = set_material or 'SmoothPlastic';
  124. Anchored = (set_anchor~=nil and set_anchor or false)
  125. }
  126. for _,sur in next,Enum.NormalId:GetEnumItems() do
  127. p[sur.Name..'Surface'] = 0
  128. end
  129. _1 = p
  130. return p
  131. end
  132. Weld = function(part0,part1,c0,c1,...) --over-engineered welding function which accepts many things
  133. local ar = {...}
  134. local cframe0,cframe1
  135. local function checkf()local res=true
  136. for i,v in pairs(ar)do
  137. if type(v) ~= 'number' then
  138. res=false
  139. end
  140. end
  141. return res
  142. end
  143. if type(c0) == 'table' then
  144. cframe0 = CFrame.new(c0[1] or 0, c0[2] or 0, c0[3] or 0) * CFrame.Angles(
  145. c0[4] or 0, c0[5] or 0, c0[6] or 0)
  146. elseif type(c0) == 'userdata' then
  147. cframe0 = c0
  148. elseif type(c0) == 'number' and checkf() then
  149. cframe0 = CFrame.new(c0 or 0,c1 or 0,ar[1] or 0) * CFrame.Angles(ar[2] or 0, ar[3] or 0, ar[4] or 0)
  150. end
  151. if type(c1) == 'table' then
  152. cframe1 = CFrame.new(c1[1] or 0, c1[2] or 0, c1[3] or 0) * CFrame.Angles(
  153. c1[4] or 0, c1[5] or 0, c1[6] or 0)
  154. elseif type(c1) == 'userdata' then
  155. cframe1 = c1
  156. elseif type(c1) == 'number' and (not c0 or (c0 and type(c0) == 'table')) then
  157. cframe1 = CFrame.new(c1 or 0, ar[1] or 0, ar[2] or 0) * CFrame.Angles(ar[3] or 0, ar[4] or 0, ar[5] or 0)
  158. end
  159. for i,v in pairs(ar)do
  160. if type(v) == 'table' then
  161. cframe1 = CFrame.new(v[1] or 0, v[2] or 0, v[3] or 0) * CFrame.new(v[4] or 0, v[5] or 0, v[6] or 0)
  162. elseif type(v) == 'userdata' then
  163. cframe1 = v
  164. end
  165. end
  166.  
  167. cframe0,cframe1 = cframe1,cframe0
  168. part0.Position=part1.Position
  169. local weld = Instance.new("Motor")
  170. weld.Part0 = part0
  171. weld.Part1 = part1
  172. weld.C0 = cframe0 or CFrame.new()
  173. weld.C1 = cframe1 or CFrame.new()
  174. weld.MaxVelocity = .1
  175. weld.Parent = part0
  176. _2=weld
  177. return weld
  178. end
  179.  
  180. mesh_ids = {
  181. spike = "rbxassetid://1033714";
  182. ring = "rbxassetid://3270017";
  183. coil = 'rbxassetid://16606212';
  184. diamond = 'rbxassetid://9756362';
  185. rock = 'rbxassetid://1290033';
  186. }
  187. mesh_texs = {
  188. rock = 'rbxassetid://1290030';
  189. }
  190.  
  191. Mesh = function(parent,id,sx,sy,sz)
  192. local name = ( (id == 'cyl' and 'CylinderMesh') or (id == 'bl' and 'BlockMesh') or 'SpecialMesh')
  193. local mesh = Instance.new(name)
  194. if id == 's' then
  195. mesh.MeshType = Enum.MeshType.Sphere
  196. elseif id == 'w' then
  197. mesh.MeshType = Enum.MeshType.Wedge
  198. elseif string.find(id,"://") ~= nil then
  199. mesh.MeshId = id
  200. end
  201. mesh.Scale = Vector3.new(sx or 1, sy or 1, sz or 1)
  202. mesh.Parent = parent
  203. _3=mesh
  204. return mesh
  205. end
  206.  
  207. cane = Part(.1,4,.1,'Deep blue')Mesh(_1,'cyl')
  208. hw=Weld(cane,Arms[1],0,-1.15,0,-PI/2)
  209.  
  210. bl = Part(.4,.4,.1)Mesh(_1,'s')
  211. Weld(bl,cane,0,2.25)
  212. bl2 = Part(.3,.3,.1,'Really blue')Mesh(_1,'s',1,1,1.25)
  213. Weld(bl2,bl)_1.Material='Neon'
  214. set_color='Black'
  215. for i=0,1,1/4 do
  216. ring = Part(.1,.1,.1)Mesh(_1,mesh_ids.ring,.25-i*(.25*.9),.25-i*(.25*.9),.1)
  217. Weld(ring,cane,0,-2-i*.25,0,PI/2)
  218. end
  219. set_color='Really black'
  220. for a=-PI/2,PI/2,PI/6 do
  221. arm = Part(.1,.5,.1)Mesh(_1,'bl',.5,1,.5)
  222. New'Weld'{_P=arm;_PP={arm,bl};
  223. C1=cfn(0,0,0)*ang(0,0,a);
  224. C0=cfn(0,-arm.Size.y,0);
  225. }
  226. dec = Part(.1,.1,.1,'Bright red')Mesh(_1,'bl',.525,1,.525)_1.Material='Neon'
  227. Weld(dec,arm,0,.25*.8)
  228. end
  229.  
  230. arm=Part(.1,.9,.1)Mesh(_1,'bl',.5,1,.5)
  231. New'Weld'{_P=arm;_PP={arm,bl};
  232. C1=cfn(.1,-.15,0)*ang(0,0,md'25');
  233. C0=cfn(0,arm.Size.y/2,0);
  234. }
  235.  
  236. dec = Part(.1,.1,.1,'Bright red')Mesh(_1,'bl',.525,1,.525)_1.Material='Neon'
  237. Weld(dec,arm,0,-.45*.8)
  238. arm=Part(.1,.9,.1)Mesh(_1,'bl',.5,1,.5)
  239.  
  240. New'Weld'{_P=arm;_PP={arm,bl};
  241. C1=cfn(-.1,-.15,0)*ang(0,0,md'-25');
  242. C0=cfn(0,arm.Size.y/2,0);
  243. }
  244. dec = Part(.1,.1,.1,'Bright red')Mesh(_1,'bl',.525,1,.525)_1.Material='Neon'
  245. Weld(dec,arm,0,-.45*.8)
  246.  
  247. set_color=nil
  248. coil=Part(.1,.1,.1,'Really blue')Mesh(_1,mesh_ids.coil,.11,.11,1.15)
  249. Weld(coil,cane,0,0,0,PI/2,0,md'15')
  250.  
  251. disk=Part(.1,.1,.1,'Really blue')Mesh(_1,'cyl',1.1,1,1.1)
  252. Weld(disk,cane,0,-2+.085)
  253. disk=Part(.1,.1,.1,'Really blue')Mesh(_1,'cyl',1.1,1,1.1)
  254. Weld(disk,cane,0,2-.085)
  255.  
  256. rainbow={}
  257. for i=0,1,.1 do
  258. local p=60/360
  259. local col=Color3.fromHSV(p+((p*.25)*i),1,1)
  260. local kp=colkp(i,col)
  261. table.insert(rainbow,kp)
  262. end
  263. sizes={}
  264. b=false
  265. for i=0,1,1/4 do
  266. b=not b
  267. local s=.1+(i/2)
  268. local s2=s/5
  269. local kp=numkp(i,(b and s or s2))
  270. table.insert(sizes,kp)
  271. end
  272. emitter=New"ParticleEmitter"{_P=coil;
  273. Texture='rbxassetid://98824648';
  274. Color=ColorSequence.new(rainbow);
  275. Size=NumberSequence.new(sizes);
  276. VelocitySpread=180;
  277. Lifetime=NumberRange.new(3);
  278. Transparency=NumberSequence.new{numkp(0,1);numkp(.5,.5);numkp(1,1)};
  279. Speed=NumberRange.new(.25,.75);
  280. Rotation=NumberRange.new(0,75);
  281. LockedToPart=true;
  282. Rate=3;
  283. }
  284.  
  285. Joints={}
  286.  
  287. function addJoint(name,weld,c0,c1)
  288. local t= {}
  289. t.w=weld
  290. t.n_c0 = c0 or weld.C0
  291. t.n_c1 = c1 or weld.C1
  292. t._desired=weld.C0
  293. t.spd=.1
  294. t.l=0
  295.  
  296. function t:get()
  297. return setmetatable({},{__newindex=function(t,i,v)
  298. if i=='d' and self.l == 0 then
  299. self.d = v
  300. elseif i == 's' then self.spd=v end end})
  301. end
  302.  
  303. setmetatable(t,{__newindex=function(ta,i,v)
  304. if i=='d' then
  305. ta._desired = ta.n_c0 * v
  306. end end})
  307.  
  308. Joints[name]=t
  309. getfenv(0)[name]=Joints[name]
  310. end
  311.  
  312. --Create Joints--
  313. addJoint('rw',New"Weld"{_P = Torso;Part0=Torso;Part1=Arms[1];
  314. C0=cfn(1,0.5,0); C1=cfn(-.5,0.5,0)})
  315. addJoint('lw',New"Weld"{_P = Torso;Part0=Torso;Part1=Arms[2];
  316. C0=cfn(-1,0.5,0); C1=cfn(.5,0.5,0)})
  317. addJoint('rw2',New"Weld"{_P=Torso;_PP={Torso,Legs[1]};
  318. C0=cfn(1,-1,0);C1=cfn(0.5,1,0)})
  319. addJoint('lw2',New"Weld"{_P=Torso;_PP={Torso,Legs[2]};
  320. C0=cfn(-1,-1,0);C1=cfn(-0.5,1,0)})
  321.  
  322. addJoint('tw',HumRootJ,cfn(0,0,0,-1,0,0,0,0,1,0,1,-0),
  323. cfn(0,0,0,-1,-0,-0,0,0,1,0,1,0))
  324.  
  325. addJoint('nw',Neck,cfn(0,1,0,-1,-0,-0,0,0,1,0,1,0),
  326. cfn(0,-.5,0,-1,-0,-0,0,0,1,0,1,0))
  327. addJoint('hw',hw)
  328.  
  329. Connections = {}
  330.  
  331. anim_con = RS.Stepped:connect(function()
  332. for _,j in next,Joints do
  333. j.w.C0 = j.w.C0:lerp(j._desired,j.spd)
  334. end
  335. end)
  336.  
  337. local pt=tick()
  338. local pm=0
  339. local ppos=Torso.Position
  340. function shadow_effect()
  341. local ssss={}
  342. if (tick()-pt)>.075 then
  343. -- for _,hum in next,findHum(Torso.Position,10)do
  344. -- hum.Parent:BreakJoints()
  345. -- end
  346. Char.archivable=true
  347. local cl=Char:Clone()cl.Parent=Main
  348. Char.archivable=false
  349. for _,obj in next,cl:children() do
  350. if not obj:IsA'Part' then obj:Destroy()
  351. elseif obj:IsA'Part'then
  352. Edit{obj}{Transparency=.5;Reflectance=.1;Anchored=true;CanCollide=false;
  353. Material='Neon';BrickColro=bcol'Really blue'}
  354. local ttt={obj,obj.CFrame}
  355. table.insert(ssss,ttt)
  356. end
  357. end
  358.  
  359. Spawn(function()
  360. for i=0,1,.1 do
  361. for _,v in next,ssss do
  362. v[1].Transparency=.5+i/2
  363. v[1].Size=v[1].Size*1.025
  364. v[1].CFrame=v[2]
  365. v[1].BrickColor=bcol'Really blue'
  366. end
  367. wait()
  368. end
  369. cl:Destroy()end)
  370. pt=tick()
  371. end
  372. end
  373. dash=false
  374.  
  375. function findHum(pos,rad,hum2)
  376. local hums={}
  377. function check(a)
  378. local res=false
  379. for i,ho in pairs(hums)do
  380. if a==ho then res=true end
  381. end
  382. return res
  383. end
  384. for i,v in pairs(Workspace:children())do
  385. if v:IsA'Model'and v~=Char and v~=(hum2 or Char) then
  386. for i,q in pairs(v:children())do
  387. if q:IsA'Humanoid' and q.Parent:FindFirstChild'Torso'and(q.Torso.Position-pos).magnitude < rad then
  388. if not check(q)then
  389. table.insert(hums,q)
  390. end
  391. end
  392. end
  393. end
  394. end
  395. return hums
  396. end
  397.  
  398. -- Head.face.Texture='rbxassetid://321187438'
  399. WalkSpeed=20
  400.  
  401. do --Idleloop
  402. --IDLES--
  403. Anim="Idle"
  404. local sin,cos,abs = math.sin,math.cos,math.abs
  405. local rw,lw,rw2,lw2,tw = rw:get(),lw:get(),rw2:get(),lw2:get(),tw:get()
  406. local angle=0
  407. local a=md'7.5'
  408. idle_con=RS.Stepped:connect(function()
  409.  
  410. local walkmag = v3n(HumRoot.Velocity.x,0,HumRoot.Velocity.z).magnitude
  411. angle=angle%100+1/5
  412.  
  413. if walkmag > .2 then
  414. Anim='Walk'
  415. else
  416. Anim='Idle'
  417. end
  418. Humanoid.WalkSpeed=WalkSpeed
  419. if Anim == 'Idle' then
  420. rw.d = cfn(0,sin(angle)*.1,0)*ang(0,0,md'10'+sin(angle)*.075)
  421. lw.d = cfn(0,sin(angle)*.1,0)*ang(0,0,-md'10'-sin(angle)*.075)
  422.  
  423. rw2.d = cfn(sin(angle)*.05,abs(sin(angle))*.05,0) * ang(0,0,md'5'-sin(angle)*.1)
  424. lw2.d = cfn(-sin(angle)*.05,abs(sin(angle))*.05,0) * ang(0,0,-md'5'+sin(angle)*.1)
  425.  
  426. tw.d = cfn(0,0,sin(angle)*.15)
  427. elseif Anim == 'Walk' then
  428. tw.d=cfn(0,0,sin(angle)*.1)*ang(md'5')
  429.  
  430. rw.d=ang(md'-15',0,a)
  431. lw.d=ang(md'-15',0,-a)
  432. rw2.d=ang(md'-15',0,a)
  433. lw2.d=ang(md'-15',0,-a)
  434. if dash and WalkSpeed>0 then
  435. Humanoid.WalkSpeed=130
  436. shadow_effect()
  437. end
  438. end
  439. end)
  440. end
  441.  
  442. function ringSFX(cf,p,r,s)
  443. p.Anchored=true
  444. p.CFrame=cf
  445. local t=p.Transparency
  446. local msh=Mesh(p,mesh_ids.ring)
  447. Spawn(function()
  448. for i=0,1,(s or .1) do
  449. p.Transparency=t+((1-t)*i)
  450. msh.Scale=v3n(r*i,r*i,1)
  451. wait()
  452. end
  453. p:Destroy()
  454. end)
  455. end
  456. function sphereSFX(cf,p,r,s)
  457. p.Anchored=true
  458. p.CFrame=cf
  459. local t=p.Transparency
  460. local msh=Mesh(p,'s')
  461. Spawn(function()
  462. for i=0,1,(s or .1) do
  463. p.Transparency=t+((1-t)*i)
  464. msh.Scale=v3n(r*i,r*i,r*i)
  465. wait()
  466. end
  467. p:Destroy()
  468. end)
  469. end
  470.  
  471. function hideAllParts(wut,an)
  472. local parts={}
  473. local function hide(object,anchor)
  474. if object:IsA("BasePart") or object:IsA("Decal") then
  475. local tr=object.Transparency
  476. local t={o=object,t=tr}
  477. object.Transparency = 1
  478. if object:IsA'BasePart' then
  479. t.a=object.Anchored
  480.  
  481. if anchor==nil then
  482. object.Anchored=true
  483. else
  484. if anchor == 1 then
  485. object.Anchored=true
  486. else
  487. object.Anchored=false
  488. end
  489. end
  490.  
  491. t.c=object.CanCollide
  492. object.CanCollide=false
  493. end
  494.  
  495. table.insert(parts,t)
  496. end
  497. for _, child in ipairs(object:GetChildren()) do
  498. hide(child,an)
  499. end
  500. end
  501. hide(wut,an)
  502. -- for i,v in pairs(Char:children())do
  503. -- pcall(function()print(v.Anchored)end)end
  504. return function()
  505. for i,v in ipairs(parts) do
  506. v.o.Transparency = v.t
  507. if v.o:IsA'BasePart'then
  508. if v.a~=nil then
  509. v.o.Anchored=v.a
  510. end
  511. if v.c~=nil then
  512. v.o.CanCollide=v.c
  513. end
  514. end
  515. end
  516. end
  517. end
  518.  
  519. -- unh=hideAllParts(Char)wait()
  520. -- unh()
  521.  
  522. do --Main part of the script
  523.  
  524. function slash(mouse)
  525. rw.l=1
  526. rw.d=ang(PI/2,0,-PI/4/2)*ang(0,PI/2)
  527. hw.d=cfn(0,-.85,0)*ang(0,PI/2)
  528. wait'.5'
  529. local p=Part(4,4,1,'Really blue',.5)
  530. p.Anchored=true
  531. local stp,enp=l(Torso,-5,0,-3).p,l(Torso,5,0,-3).p
  532. p.CFrame=cfn(stp,enp)
  533. local mag=(stp-enp).magnitude
  534. local sx,sz=p.Size.x,p.Size.y
  535.  
  536. for _,hum in next,findHum(l(Torso,0,0,-3).p,5) do
  537. ringSFX(l(hum.Torso),Part(1,1,1,'Really blue',.5),10)
  538. ringSFX(l(hum.Torso)*ang(PI/2),Part(1,1,1,'Really blue',.5),10)
  539. ringSFX(l(hum.Torso)*ang(PI/2,PI/2),Part(1,1,1,'Really blue',.5),10)
  540.  
  541. local bl=Part(1,1,1,'Really blue')bl.Anchored=true bl.Material='Neon'
  542. local msh=Mesh(_1,'s')
  543. bl.CFrame=hum.Torso.CFrame
  544. msh.Scale=hum.Parent:GetExtentsSize()
  545. local lol=math.max(msh.Scale.x,msh.Scale.y,msh.Scale.z)
  546.  
  547. local scale=v3n(lol,lol,lol)*1.25
  548. local pos=hum.Torso.Position
  549.  
  550. ---Shrink ball, teleball with trail, enlarge and unhide---
  551. Spawn(function()
  552. local unhide=hideAllParts(hum.Parent)
  553. for i=1,.1,-.05 do
  554. msh.Scale=scale*i
  555. wait()
  556. end
  557.  
  558. bl.CFrame=cfn(mouse.hit.p)
  559. local mag=(pos-l(bl).p).magnitude
  560. local laz=Part(1,1,mag,'Really blue',.5) laz.Anchored=true
  561. laz.CFrame=cfn(l(bl).p,pos)*cfn(0,0,-mag/2)
  562. Spawn(function()
  563. for i=0,1,.1 do laz.Transparency=i wait()end laz:Destroy()end)
  564. for i=.1,1,.1 do
  565. msh.Scale=scale*i
  566. wait()
  567. end
  568. hum.Parent:MoveTo(bl.Position)
  569. -- repeat wait() until (l(hum.Torso).p-l(bl,0,2).p).magnitude<3
  570. unhide()
  571.  
  572. bl:Destroy()
  573. end)
  574.  
  575. end
  576. Spawn(function()
  577. for i=0,1,.25 do
  578. p.Size=v3n(sx,sz,i*mag)
  579. p.CFrame=cfn(stp,enp)*cfn(0,0,-(i*(mag/2)))
  580.  
  581. wait()
  582. end
  583. for i=.5,1,.1 do
  584. p.Transparency=i
  585. wait()
  586. end p:Destroy()
  587. end)
  588. rw.spd=.3
  589. rw.d=ang(PI/2,0,md'130')*ang(0,PI/2)
  590. wait'.5'
  591. rw.l=0
  592. hw.d=cfn()
  593. end
  594.  
  595. function laser(mouse)
  596. rw.l=1
  597. lw.l=1
  598. rw.d=ang(md'100',0,md'-55')
  599. lw.d=ang(md'100',0,md'55')
  600. hw.d=ang(md'7.5',md'45')
  601. cp=Part(.1,.1,.1)
  602. local laz=Part(3,0,3,'Really blue')laz.Material='Neon'
  603. Mesh(laz,'bl').Name='m'
  604. laz.Anchored=true
  605. local t={}
  606. for i=0,m.tau,m.tau/6 do
  607. local p=Part(.1,.1,.1)
  608. local w=Weld(p,bl,{0,0,-.25,PI/2,i,0},{0,0,1})
  609. Edit{w}{C0=w.C0*ang(PI/2),C1=w.C1*ang(PI/2)}
  610. Mesh(_1,mesh_ids.diamond,.3,.3,.3)
  611. w.DesiredAngle=9e+009
  612. table.insert(t,p)
  613. end
  614. aura=Part(1,1,1,'Really blue',.5)Weld(aura,bl)
  615. local msh=Mesh(aura,'s',0,0,0)
  616. for i=0,1,.1 do msh.Scale=v3n(2,2,2)*i wait()end
  617. holding=true
  618. local tr=0
  619. local li={}
  620. local r=1.5
  621. local pt=tick()
  622. local function ran()return l(bl,mr(-r,r),mr(-r,r),mr(-r,r),mr(-PI,PI),mr(-PI,PI),mr(-PI,PI))end
  623. for i=1,6 do
  624. local pp=Part(.1,.1,.1,'Really blue',.5)_1.Anchored=true _1.Material='Neon'
  625. pp.CFrame=ran()
  626. table.insert(li,pp)
  627. end
  628. ---Make aura glow
  629. Spawn(function()
  630.  
  631. while wait()do
  632. for i=0,.5,.1 do aura.Transparency=.5+i/2
  633. for _,v in next,li do v.CFrame=ran() end
  634. wait()end
  635. for i=.5,0,-.1 do aura.Transparency=.5+i/2
  636. for _,v in next,li do v.CFrame=ran() end
  637. wait()end
  638. end end)
  639.  
  640. while holding do
  641. ---Positioning laser---
  642. local mag=(l(bl).p-mouse.hit.p).magnitude
  643. laz.Size=v3n(.1,mag,.1)
  644. laz.CFrame = (cfn(l(bl).p,mouse.hit.p)*cfn(0,0,-mag/2))*ang(PI/2)
  645.  
  646. ---Damaging---
  647. for _,hum in next,findHum(mouse.hit.p,3) do
  648. -- hum:TakeDamage(1)
  649. -- if not hum.Torso:FindFirstChild'Umpalumpa'then
  650.  
  651. --Turn them to androids and anchor em still--
  652. local android=hum.Torso:FindFirstChild'android'
  653.  
  654. if not android then
  655.  
  656.  
  657. local pp=Part(1,1,1,'Really blue',.5)Weld(pp,hum.Torso,0,0,0,0,PI)
  658. _1.Name='android'
  659. local ring = Part(1,1,1,'',1)ring.Parent=pp
  660. local ring2 = Part(1,1,1,'Really blue',.5)ring.Parent=pp
  661. ring2.Parent=ring
  662. local sx,sy,sz=6,2,6
  663. Mesh(ring,'cyl',sx+.25,sy,sz+.25)
  664. Mesh(ring2,mesh_ids.ring,sx,sz,sy*6)
  665. Weld(ring,pp,ang(PI/2),ang(PI/2)).DesiredAngle=9e+009
  666. Weld(ring2,ring,ang(PI/2))
  667. for _,face in next,Enum.NormalId:GetEnumItems() do
  668. if face.Name~="Top"and face.Name~="Bottom" then
  669.  
  670. New"Texture"{_P=ring;Face=face;Texture='rbxassetid://33092505';}
  671. end
  672. end
  673. pp.Parent=hum.Torso
  674. Mesh(pp,'s',5,7,5)
  675. local cnt=New"NumberValue"{_P=pp;Name='cnt'}
  676. local huhu=hum
  677. local cf=huhu.Torso.CFrame
  678. local o1,o2=huhu.WalkSpeed,huhu.JumpPower
  679. huhu.WalkSpeed=0
  680. huhu.JumpPower=0
  681. local bp=New"BodyPosition"{_P=hum.Torso;MaxForce=v3n(1,1,1)*9e+009;
  682. position=hum.Torso.Position;Name='Umpalumpa'}
  683. Spawn(function()
  684. repeat
  685. -- pcall(function()huhu.Torso.Anchored=true end)
  686. -- pp.CFrame=cf
  687. pcall(function()pp.Parent.Anchored=false end)
  688. cnt.Value=cnt.Value-1
  689. wait'.5'
  690. until cnt.Value <= 0
  691. huhu.WalkSpeed,huhu.JumpPower=o1,o2
  692. pcall(function()bp:Destroy() end)
  693. for i=.5,1,.1 do
  694. pp.Transparency=i
  695. ring2.Transparency=i
  696. wait()
  697. end pp:Destroy()
  698. end)
  699. Debris:AddItem(pp,7)
  700. else
  701. android.cnt.Value=.5
  702. end
  703.  
  704. ---Backup stucking---
  705.  
  706. -- Debris:AddItem(bp,.25) --end
  707. end
  708. -- 'rbxassetid://430059354'
  709. ---Cross effect---
  710. local bl=Part(1,1,1,nil,.5)Mesh(_1,'s')
  711. local bl2=Part(1,1,1,nil,.5)Mesh(_1,'s')
  712. Edit{bl,bl2}{Anchored=true;BrickColor=bcol'Really blue'}
  713.  
  714. bl.CFrame=cfn(mouse.hit.p,l(Torso).p)*ang(0,PI/2)
  715. bl2.CFrame=l(bl,0,0,0,PI/2)
  716. -- bl3.CFrame=l(bl2,0,0,0,0,PI/2)
  717.  
  718. Spawn(function()
  719. for i=0,1,.1 do
  720. for _,v in next,{bl,bl2}do
  721. pcall(function()v.Mesh.Scale=v3n(1,10,1)*i end)
  722. v.Transparency=i
  723. end wait()
  724. end bl:Destroy()bl2:Destroy() end)
  725.  
  726. ---Ring efect beneath you
  727. local gr,gr_pos=Workspace:FindPartOnRay(Ray.new(l(Torso).p,v3n(0,-10)),Char)
  728. if (tick()-pt)>.1 then
  729. if gr and gr_pos then
  730. Part(.1,.1,.1,'Really blue',.5)
  731. ringSFX(cfn(gr_pos)*ang(PI/2),_1,20)
  732. end
  733. ---"Grow" effect on laser---
  734. Spawn(function()
  735. local cl=laz:Clone()cl.Parent=Main
  736. local msh=cl.m
  737. for i=0,1,.25 do
  738. msh.Scale=v3n(1+i*10,1,1+i*10)
  739. cl.Transparency=i
  740. wait()
  741. end
  742. cl:Destroy()
  743. end)
  744.  
  745. pt=tick()
  746. end
  747. wait()
  748. end
  749. ---Clearing up---
  750. for i,v in pairs(t)do v:Destroy()end
  751. for i,v in pairs(li)do v:Destroy()end
  752. laz:Destroy()
  753. for i=1,0,-.1 do msh.Scale=v3n(2,2,2)*i wait()end
  754. aura:Destroy()
  755. hw.d=cfn()
  756. rw.l=0 lw.l=0
  757. end
  758.  
  759. function recurseHum(what)
  760. local res
  761. local p=what
  762. repeat
  763. p=p.Parent
  764. if p then
  765. local hum=p:FindFirstChild'Humanoid'
  766. if hum then
  767. res=hum
  768. break
  769. end
  770. end
  771. until p==nil
  772. return res
  773. end
  774.  
  775. function galaxy()
  776.  
  777. local function getAllParts(radius)
  778. local min,max = math.min,math.max
  779. local list={}
  780. local pos1,pos2=l(Torso,-15,-2,-15).p,l(Torso,15,2,15).p
  781. local reg=Region3.new(v3n(min(pos1.x,pos2.x),min(pos1.y,pos2.y),min(pos1.z,pos2.z)),
  782. v3n(max(pos1.x,pos2.x),max(pos1.y,pos2.y),max(pos1.z,pos2.z)))
  783. for i,v in pairs(Workspace:FindPartsInRegion3WithIgnoreList(reg,{Char})) do
  784. if (v.Position-Torso.Position).magnitude<radius and v.Name~='Base' then
  785. table.insert(list,v)
  786. end
  787. end
  788. return list
  789. end
  790.  
  791. local orig_ws=Humanoid.WalkSpeed
  792. WalkSpeed=0
  793. Edit{rw,lw,rw2,lw2,tw}{l=1}
  794. tw.d=ang(md'-45')
  795. -- rw.d=ang(md'-45',0,md'25')
  796. rw.d=ang(md'50',0,md'25')*ang(0,md'15')
  797. lw.d=ang(md'-45',0,md'-25')
  798. -- hw.d=ang(0,0,md'15')
  799. hw.d=cfn(0,.05,0)
  800. rw2.d=ang(PI/4,0,md'15')
  801. lw2.d=ang(PI/4,0,-md'15')
  802. Humanoid.HipHeight=-1.5
  803. local linese={}
  804. local spinners={}
  805.  
  806. ---Rings---
  807. for a=-90,90,45 do
  808. local cyl=Part(1,1,1,'',1)Mesh(cyl,'cyl',10,1,10)
  809. local ww=Weld(cyl,HumRoot,0,0,0,md(a))
  810. table.insert(spinners,ww)
  811. table.insert(linese,cyl)
  812. end
  813. for a=-90,90,45 do
  814. local cyl=Part(1,1,1,'',1)Mesh(cyl,'cyl',10,1,10)
  815. local ww=Weld(cyl,HumRoot,0,0,0,0,0,md(a))
  816. table.insert(spinners,ww)
  817. table.insert(linese,cyl)
  818. end
  819. for i,v in pairs(linese)do
  820. for _,face in next,Enum.NormalId:GetEnumItems() do
  821. if face.Name~='Top'and face.Name~='Bottom' then
  822. New"Texture"{_P=v;Texture='rbxassetid://'..180728579-1;Face=face;Transparency=0;
  823. StudsPreTileU=1;}
  824. end
  825. end end
  826.  
  827. ---Spheres---
  828. for i=0,1,1/6 do
  829. local p=Part(1,1,1,'Really blue',.9)p.Material='Neon'
  830. Mesh(p,'s',i*9,i*9,i*9)
  831. table.insert(spinners,Weld(p,Torso))
  832. for _,face in next,Enum.NormalId:GetEnumItems() do
  833. New"Decal"{_P=p;Face=face;Texture='rbxassetid://'..124291850-1;Transparency=.5}
  834. end
  835. end
  836. base_spd = .025
  837. deviation = 1
  838. local ptick=tick()
  839. holding=true
  840. ---Mainloop---
  841. while holding do
  842. ---Spin---
  843. for o,weld in next,spinners do
  844. weld.C1 = weld.C1 * ang(0,(o%2==0 and -1 or 1)*base_spd)
  845. end
  846.  
  847. --Move parts away from you---
  848. for _,part in next,getAllParts(7) do
  849.  
  850. local hum=recurseHum(part)
  851. if hum and (hum.Torso.Position-Torso.Position).magnitude <= 10 then
  852. local rot=l(hum.Torso)-l(hum.Torso).p
  853. hum.Torso.CFrame=cfn((cfn(hum.Torso.CFrame.p,Torso.CFrame.p)*cfn(0,0,5)).p)*rot
  854. break
  855. else
  856. local rot=l(part)-l(part).p
  857. part.CFrame=cfn((cfn(part.CFrame.p,Torso.CFrame.p)*cfn(0,0,5)).p)*rot
  858. end
  859. end
  860.  
  861. ---Heal others---
  862. if (tick()-ptick)>.25 then
  863.  
  864. for _,hum in next,findHum(Torso.Position,20) do
  865. hum:TakeDamage(-5)
  866. local mag=(l(hum.Torso).p-l(Torso).p).magnitude
  867. local bl=Part(.1,mag,.1,'Lime green',.75)bl.Material='Neon'
  868. bl.Anchored=true
  869. local msh=Mesh(_1,'s')
  870. bl.CFrame=l(cfn(l(Torso).p,l(hum.Torso).p),0,0,-mag/2)*ang(PI/2)
  871. local momo=godly(hum.Parent,'Lime green',.9)
  872. Spawn(function() ---Fade out beam---
  873. local scales={}
  874. for _,v in pairs(momo:children())do table.insert(scales,v.Mesh.Scale) end
  875. for i=0,1,.05 do
  876. for i2,v in pairs(momo:children())do
  877. v.Mesh.Scale=scales[i2]+(v3n(.05,.05,.05)*i)
  878. v.Transparency=.9+(.1*i)
  879. end
  880. bl.Transparency=.75+i*(1-.75)
  881. msh.Scale=v3n(1+i*5,1,1+i*.5)
  882. wait()
  883. end
  884. momo:Destroy()
  885. bl:Destroy()end)
  886. end
  887. ptick=tick()
  888. end
  889. ---Heal yourself---
  890. Humanoid:TakeDamage(-5)
  891. wait()
  892. end
  893. for _,v in pairs(spinners)do v.Parent:Destroy()end
  894. Humanoid.HipHeight=0
  895. hw.d=cfn()
  896. WalkSpeed=orig_ws
  897. Edit{rw,lw,rw2,lw2,tw}{l=0}
  898.  
  899. end
  900. function godly(tar,color,tr)
  901. local function getM(a)
  902. local res=nil
  903. for i,v in pairs(a:children())do
  904. if v.className:match'Mesh' then
  905. res=v
  906. end
  907. end return res
  908. end
  909. local godo=New"Model"{_P=Main}
  910. set_parent=godo
  911. local trlist={}
  912. for i,v in next,(tar and tar:children() or Char:children()) do
  913. if v:IsA'Part' and v.Name~='HumanoidRootPart' then
  914. if v.Name =='Head'then
  915. local pp=Part(1,1,1,color or 'Really blue',tr or .9)pp.Material='Neon'
  916. pp.Size=v.Size
  917. Weld(pp,v)
  918. local mesh=v.Mesh:Clone()mesh.Parent=pp
  919. mesh.Scale=mesh.Scale*1.1
  920. table.insert(trlist,mesh.Scale)
  921. else
  922. local pp=Part(1,1,1,color or 'Really blue',tr or .9)_1.Material='Neon'
  923. pp.Size=v.Size Weld(pp,v)
  924. local msh=Mesh(pp,'bl')
  925. msh.Scale=msh.Scale*1.1
  926. table.insert(trlist,msh.Scale)
  927. end
  928. elseif v:IsA'Hat'then
  929. local pp=Part(.1,.1,.1,color or 'Really blue',tr or .9)_1.Material='Neon'
  930. Weld(pp,v.Handle)
  931. local mesh=getM(v.Handle):Clone()
  932. mesh.TextureId=''
  933. mesh.Scale=mesh.Scale+(mesh.Scale*.01)
  934. mesh.Parent=pp
  935. table.insert(trlist,mesh.Scale)
  936. end
  937. end
  938. set_parent=nil
  939. return godo,trlist
  940. end
  941.  
  942. main_aura,main_aura_tr=godly()
  943.  
  944. function hammer(mouse)
  945. Edit{rw,lw,rw2,lw2,tw}{l=1}
  946. tw.d=cfn()*ang(md'25')
  947. Humanoid.HipHeight=.25
  948. rw2.d=cfn(0,-.05,0)*ang(md'25')
  949. lw2.d=ang(md'-25')
  950. rw.d=cfn(0,0,-.25)*ang(PI/2+md'25',0,md'-45')
  951. lw.d=cfn(0,0,-.25)*ang(PI/2+md'25',0,md'45')
  952. hw.d=cfn(0,-1,0)*ang(PI/2,md'45')
  953. wait(1)
  954. local ppos=l(HumRoot,0,0,-5).p
  955. for _,hum in next,findHum(ppos,30) do
  956. Spawn(function()hum.PlatformStand=true wait'.1'hum.PlatformStand=false end)
  957. hum.Torso.Velocity=v3n(0,100,0)
  958. end
  959.  
  960. rw.d=cfn(0,0,-.25)*ang(PI/2+md'45',0,md'-45')
  961. lw.d=cfn(0,0,-.25)*ang(PI/2+md'45',0,md'45')
  962. tw.d=ang(md'-45')
  963. lw2.d=ang(md'-55')
  964. local bv=New"BodyVelocity"{_P=Torso,velocity=HumRoot.CFrame.lookVector*-30}
  965.  
  966. local gr,gr_p=Workspace:FindPartOnRay(Ray.new(ppos,v3n(0,-10,0)),Char)
  967. -- ge,ge_p=nil,nil
  968.  
  969. if not gr or not gr_p then
  970. hw.d=cfn()
  971. Edit{rw,lw,rw2,lw2,tw}{l=0}
  972. return end
  973.  
  974. local volcano=Part(1,1,1,'Crimson')volcano.Anchored=true
  975. volcano.CFrame=cfn(gr_p)
  976. local cf =volcano.CFrame
  977. local r=100
  978. Spawn(function()
  979. for i=1,5 do
  980. local pp=Part(3,3,3,'Really black')pp.Material='Slate'
  981. local msh=Mesh(pp,mesh_ids.rock)msh.Scale=v3n(.6,.6,.6)*pp.Size
  982. msh.TextureId = mesh_texs.rock
  983. msh.VertexColor=v3n(1,0,0)
  984. pp.CanCollide=true
  985. New"Fire"{_P=pp;Size=4.5;Heat=0}
  986. pp.CFrame=l(cf,0,0,0,mr(-md'15',md'15'),0,mr(-md'15',md'15'))*cfn(0,0,1)
  987. pp:BreakJoints()
  988. pp.Velocity=l(cf,0,0,0,mr(-4,4),mr(-4,4),mr(-4,4)).lookVector*40+v3n(0,50,0)
  989. New"BodyForce"{_P=pp;Name='F';Force=v3n(0,(m.float*pp:GetMass())*.75,0)}
  990. New"BodyAngularVelocity"{_P=pp;angularvelocity=v3n(4,4,4)*PI*4}
  991. Delay(1,function()
  992. for i=1,3 do
  993. local p=pp:Clone()
  994. p.Size=v3n(1,1,1)
  995. p.Parent=Main
  996. p.F.Force=v3n(0,p:GetMass()*m.float*1.25,0)
  997. p.Velocity=cfn(p.Position,mouse.hit.p).lookVector*200
  998. p.Touched:connect(function(hit)
  999. if hit:IsDescendantOf(Char) then return end
  1000. local e=Instance.new("Explosion",Workspace)
  1001. e.BlastPressure=0
  1002. e.BlastRadius = 7
  1003. e.Position=p.Position
  1004. e.Hit:connect(function(hit)
  1005. local hum=hit.Parent:FindFirstChild'Humanoid'
  1006. if hum and hum.Parent~=Char then
  1007. hum:TakeDamage(2)
  1008. end end)
  1009. p:Destroy()
  1010. end)
  1011.  
  1012. Debris:AddItem(p,2)
  1013. end
  1014. pp:Destroy()
  1015. end)
  1016. wait()
  1017. end
  1018. end)
  1019.  
  1020. ringSFX(l(volcano,0,0,0,PI/2),volcano,40,.025)
  1021. wait(1)
  1022. bv:Destroy()
  1023.  
  1024. hw.d=cfn()
  1025. Edit{rw,lw,rw2,lw2,tw}{l=0}
  1026. end
  1027.  
  1028. stealthed=false
  1029. re=nil
  1030.  
  1031. function ballSFX(cf,part,scale,from,to,dir)
  1032. part.Anchored=true
  1033. part.CFrame=cf
  1034. local msh=Mesh(part,'s',0,0,0)
  1035. for i=from,to,dir do
  1036. msh.Scale=v3n(scale,scale,scale)*i
  1037. wait()
  1038. end
  1039. end
  1040.  
  1041. function stealth()
  1042. stealthed=not stealthed
  1043. local tt=main_aura_tr
  1044. if stealthed then
  1045. re = hideAllParts(Char,0)
  1046. emitter.Enabled=false
  1047. ---Shrink---
  1048. for i=0,1,.1 do
  1049. Edit(main_aura:children()){
  1050. Transparency=.9+(i*.1);
  1051. ['Mesh.Scale'] = v3n(1,1,1)*(1-i);
  1052. }
  1053. wait()
  1054. end
  1055. else
  1056. ---Expand---
  1057. for i=0,1,.1 do
  1058. Edit(main_aura:children()){
  1059. Transparency=1-(.1*i);
  1060. -- ['Mesh.Scale']=(v3n(1.1,1.1,1.1)*i);
  1061. }
  1062. for o,v in pairs(main_aura:children())do
  1063. v.Mesh.Scale=tt[o]*i
  1064. end
  1065. wait()
  1066. end
  1067. re()
  1068. emitter.Enabled=true
  1069. end
  1070. end
  1071.  
  1072. function conjure()
  1073. c_cf=l(Torso,0,0,-5)
  1074. set_anchor = true
  1075. mp = Part(.15,1,.15)
  1076. mp.CFrame=c_cf
  1077. blade = Part(1,4,.25)
  1078. _1.CFrame=l(mp,0,.5+2)
  1079. Mesh(_1,'bl',1,1,.5)
  1080. cp = Part(.8,3.8,.25,'Really black')
  1081. New"Texture"{_P=cp;Face='Back';Texture='rbxassetid://33092538'}
  1082. New"Texture"{_P=cp;Face='Front';Texture='rbxassetid://33092538'}
  1083. cp.CFrame=l(blade)
  1084. Mesh(_1,'bl',1,1,.55)
  1085.  
  1086. tip1=Wedge(.25,1,.5)
  1087. _1.CFrame=l(blade,.25,2+_1.Size.y/2,0,0,-PI/2)
  1088. Mesh(_1,'w',.5,1,1)
  1089. tip2=Wedge(.25,1,.5)
  1090. _1.CFrame=l(blade,-.25,2+_1.Size.y/2,0,0,PI/2)
  1091. Mesh(_1,'w',.5,1,1)
  1092. set_anchor = nil
  1093. end
  1094. -- conjure()
  1095.  
  1096.  
  1097. holding=false
  1098. attacking=false
  1099. klist={
  1100. f=slash;
  1101. qq=laser;
  1102. cq=galaxy;
  1103. r=hammer;
  1104. z=stealth;
  1105. x=conjure;
  1106. }
  1107.  
  1108. Humanoid.Died:connect(function()
  1109. local bl=Part(10,10,10)bl.Anchored=true
  1110. bl.CFrame=l(Torso)
  1111. for _,v in pairs(Char:children())do
  1112. if v:IsA'BasePart'then
  1113. v.Touched:connect(function(a)
  1114. local h=recurseHum(a)
  1115. if h and h.Parent~=Char then h.Health=0 end
  1116. end)
  1117. end
  1118. end
  1119. for i,v in pairs(findHum(Torso.Position,10))do
  1120. v.Parent:BreakJoints()
  1121. end
  1122. Mesh(bl,'s')
  1123. Spawn(function()
  1124. for i=0,1,.1 do
  1125. Edit{bl}{Transparency=i}
  1126. wait()
  1127. end
  1128. end)
  1129. end)
  1130.  
  1131. -- rbxassetid://430066606 mesh
  1132. -- rbxassetid://430066609 tex
  1133.  
  1134. -- New"FileMesh"{_P=character.Head;MeshId='rbxassetid://430066606'}
  1135.  
  1136. holding=false
  1137. Mouse.KeyUp:connect(function(key)
  1138. if key=='0' then dash=false else
  1139. for i,v in pairs(klist)do
  1140. if key == i:sub(1,1) and i:sub(2,2) == 'q' then
  1141. holding=false
  1142. end
  1143. end
  1144. end
  1145. end)
  1146. Mouse.KeyDown:connect(function(key)
  1147. if attacking then return end
  1148. attacking=true
  1149. if key=='0' then dash=true else
  1150. for i,v in pairs(klist)do
  1151. if key==i:sub(1,1) then
  1152. v(Mouse)
  1153. end
  1154. end
  1155. end
  1156. attacking=false
  1157. end)
  1158.  
  1159. for i,v in next,getfenv(0) do
  1160. if i:match('_con') then
  1161. table.insert(Connections,v)
  1162. end
  1163. end
  1164. New"BindableFunction"{_P=script;Name='stop'}.OnInvoke=function()for i,v in pairs(Connections)do v:disconnect()end end
  1165.  
  1166. script.Name='god_script: '..Player.Name
  1167. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement