Advertisement
memberhero

Vanta

Dec 12th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.93 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. HopperBin0 = Instance.new("HopperBin")
  20. LocalScript1 = Instance.new("LocalScript")
  21. StringValue2 = Instance.new("StringValue")
  22. HopperBin0.Name = "Vanta"
  23. HopperBin0.Parent = mas
  24. LocalScript1.Name = "JOJ"
  25. LocalScript1.Parent = HopperBin0
  26. table.insert(cors,sandbox(LocalScript1,function()
  27. Player = game:GetService("Players").LocalPlayer
  28. Character = Player.Character
  29. PlayerGui = Player.PlayerGui
  30. Bin = script.Parent
  31. Backpack = Player.Backpack
  32. Torso = Character.Torso
  33. Head = Character.Head
  34. RootPart = Character.HumanoidRootPart
  35. Anim=Instance.new("StringValue")
  36. Anim.Name="Animation"
  37. Anim.Parent=Character
  38. Anim.Value="Walking"
  39. giant=false
  40. Humanoid = Character.Humanoid
  41. LeftArm = Character["Left Arm"]
  42. LeftLeg = Character["Left Leg"]
  43. RightArm = Character["Right Arm"]
  44. RightLeg = Character["Right Leg"]
  45. LS = Torso["Left Shoulder"]
  46. LH = Torso["Left Hip"]
  47. RS = Torso["Right Shoulder"]
  48. RH = Torso["Right Hip"]
  49. Neck = Torso.Neck
  50. holdq=false
  51. holde=false
  52. it=Instance.new
  53. vt=Vector3.new
  54. cf=CFrame.new
  55. euler=CFrame.fromEulerAnglesXYZ
  56. angles=CFrame.Angles
  57. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  58. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  59. attacking = false
  60. attacktype = 1
  61. damage = 5
  62. oridamage = 50
  63. BladeNumb=0.8
  64. GyroNumb=0
  65. attackdebounce = false
  66. ssdebounce=false
  67. MMouse=nil
  68. Mode="Sword"
  69. cannonmode=false
  70. combo=0
  71. spinning=false
  72. shootmode=true
  73. --player
  74. player = nil
  75. --save shoulders
  76. RSH, LSH = nil, nil
  77. --welds
  78. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  79. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  80.  
  81. function NoOutline(Part)
  82. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  83. end
  84.  
  85. function swait(num)
  86. if num==0 or num==nil then
  87. game:service'RunService'.RenderStepped:wait()
  88. else
  89. for i=0,num do
  90. game:service'RunService'.RenderStepped:wait()
  91. end
  92. end
  93. end
  94.  
  95. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  96. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  97. end
  98.  
  99. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  100. local fp=it("Part")
  101. fp.formFactor=formfactor
  102. fp.Parent=parent
  103. fp.Reflectance=reflectance
  104. fp.Transparency=transparency
  105. fp.CanCollide=false
  106. fp.Locked=true
  107. fp.BrickColor=brickcolor
  108. fp.Name=name
  109. fp.Size=size
  110. NoOutline(fp)
  111. fp.Material="SmoothPlastic"
  112. fp:BreakJoints()
  113. return fp
  114. end
  115. y=Torso.Position.Y
  116. x=Torso.Position.X
  117. z=Torso.Position.Z
  118. djij=Instance.new("IntValue",Character)
  119. djij.Value=tonumber(Head.Position.Y)
  120.  
  121. local BodPos=Instance.new("BodyPosition")
  122. BodPos.P=500
  123. BodPos.D=100
  124. BodPos.Name="VantaPos"
  125. BodPos.Parent=RootPart
  126. coroutine.resume(coroutine.create(function()
  127. while true do
  128. wait()
  129. BodPos.position=vt(Head.Position.X,djij.Value,Head.Position.Z)
  130. end
  131. end))
  132.  
  133. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  134. local mesh=it(Mesh)
  135. mesh.Parent=part
  136. if Mesh=="SpecialMesh" then
  137. mesh.MeshType=meshtype
  138. mesh.MeshId=meshid
  139. end
  140. mesh.Offset=offset
  141. mesh.Scale=scale
  142. return mesh
  143. end
  144.  
  145. function weld(parent,part0,part1,c0)
  146. local weld=it("Weld")
  147. weld.Parent=parent
  148. weld.Part0=part0
  149. weld.Part1=part1
  150. weld.C0=c0
  151. return weld
  152. end
  153.  
  154.  
  155. so = function(id,par,vol,pit)
  156. coroutine.resume(coroutine.create(function()
  157. local sou = Instance.new("Sound",par or workspace)
  158. sou.Volume=vol
  159. sou.Pitch=pit or 1
  160. sou.SoundId=id
  161. wait()
  162. sou:play()
  163. game:GetService("Debris"):AddItem(sou,6)
  164. end))
  165. end
  166.  
  167.  
  168. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  169. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  170. prt.Anchored=true
  171. prt.CFrame=cframe
  172. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  173. game:GetService("Debris"):AddItem(prt,2)
  174. coroutine.resume(coroutine.create(function(Part,Mesh)
  175. for i=0,1,delay do
  176. wait()
  177. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  178. Part.Transparency=i
  179. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  180. end
  181. Part.Parent=nil
  182. end),prt,msh)
  183. end
  184.  
  185. function MagicBlock2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  186. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  187. prt.Anchored=true
  188. prt.CFrame=cframe
  189. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  190. game:GetService("Debris"):AddItem(prt,2)
  191. coroutine.resume(coroutine.create(function(Part,Mesh)
  192. for i=0,1,delay do
  193. wait()
  194. Part.Transparency=i
  195. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  196. end
  197. Part.Parent=nil
  198. end),prt,msh)
  199. end
  200.  
  201. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  202. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  203. prt.Anchored=true
  204. prt.CFrame=cframe
  205. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  206. game:GetService("Debris"):AddItem(prt,2)
  207. coroutine.resume(coroutine.create(function(Part,Mesh)
  208. local wld=nil
  209. for i=0,1,delay do
  210. wait()
  211. Part.CFrame=Part.CFrame
  212. Part.Transparency=i
  213. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  214. end
  215. Part.Parent=nil
  216. end),prt,msh)
  217. end
  218.  
  219. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  220. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  221. prt.Anchored=true
  222. prt.CFrame=cframe
  223. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  224. game:GetService("Debris"):AddItem(prt,5)
  225. coroutine.resume(coroutine.create(function(Part,Mesh)
  226. for i=0,1,delay do
  227. wait()
  228. Part.CFrame=Part.CFrame
  229. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  230. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  231. prt2.Anchored=true
  232. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  233. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  234. game:GetService("Debris"):AddItem(prt2,2)
  235. coroutine.resume(coroutine.create(function(Part,Mesh)
  236. for i=0,1,0.05 do
  237. wait()
  238. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  239. end
  240. Part.Parent=nil
  241. end),prt2,msh2)
  242. end
  243. for i=0,1,delay do
  244. wait()
  245. Part.CFrame=Part.CFrame
  246. Part.Transparency=i
  247. Mesh.Scale=Mesh.Scale-vt(x3,y3,z3)
  248. end
  249. Part.Parent=nil
  250. end),prt,msh)
  251. end
  252.  
  253. function MagicCrystal(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  254. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  255. prt.Anchored=true
  256. prt.CFrame=cframe
  257. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(x1,y1,z1))
  258. game:GetService("Debris"):AddItem(prt,4)
  259. coroutine.resume(coroutine.create(function(Part,Mesh)
  260. local wld=nil
  261. for i=0,1,delay do
  262. wait()
  263. Part.CFrame=Part.CFrame
  264. Part.Transparency=i
  265. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  266. end
  267. Part.Parent=nil
  268. end),prt,msh)
  269. end
  270.  
  271. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  272. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  273. prt.Anchored=true
  274. prt.CFrame=cframe
  275. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  276. game:GetService("Debris"):AddItem(prt,5)
  277. coroutine.resume(coroutine.create(function(Part,Mesh)
  278. for i=0,1,delay do
  279. wait()
  280. Part.CFrame=Part.CFrame
  281. Part.Transparency=i
  282. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  283. end
  284. Part.Parent=nil
  285. end),prt,msh)
  286. end
  287.  
  288. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  289. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  290. prt.Anchored=true
  291. prt.CFrame=cframe
  292. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  293. game:GetService("Debris"):AddItem(prt,5)
  294. coroutine.resume(coroutine.create(function(Part,Mesh)
  295. for i=0,1,delay do
  296. wait()
  297. Part.CFrame=Part.CFrame
  298. Part.Transparency=i
  299. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  300. end
  301. Part.Parent=nil
  302. end),prt,msh)
  303. end
  304.  
  305. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  306. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  307. prt.Anchored=true
  308. prt.CFrame=cframe
  309. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  310. game:GetService("Debris"):AddItem(prt,5)
  311. coroutine.resume(coroutine.create(function(Part,Mesh)
  312. for i=0,1,delay do
  313. wait()
  314. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  315. Part.Transparency=i
  316. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  317. end
  318. Part.Parent=nil
  319. end),prt,msh)
  320. end
  321.  
  322. function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  323. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  324. prt.Anchored=true
  325. prt.CFrame=cframe
  326. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1323306",vt(0,0,0),vt(x1,y1,z1))
  327. game:GetService("Debris"):AddItem(prt,2)
  328. coroutine.resume(coroutine.create(function(Part,Mesh)
  329. for i=0,1,delay do
  330. wait()
  331. Part.CFrame=Part.CFrame
  332. Part.Transparency=i
  333. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  334. end
  335. Part.Parent=nil
  336. end),prt,msh)
  337. end
  338.  
  339. local RootJoint=weld(Torso,Torso,RootPart,cf(0,0,0))
  340. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay)
  341. if hit.Parent==nil then
  342. return
  343. end
  344. CPlayer=Bin
  345. h=hit.Parent:FindFirstChild("Humanoid")
  346. for _,v in pairs(hit.Parent:children()) do
  347. if v:IsA("Humanoid") then
  348. h=v
  349. end
  350. end
  351. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent.Name~="Crystal" and hit.Parent:FindFirstChild("Torso")~=nil then
  352. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  353. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  354. return
  355. end]]
  356. -- hs(hit,1.2)
  357. c=Instance.new("ObjectValue")
  358. c.Name="creator"
  359. c.Value=game:service("Players").LocalPlayer
  360. c.Parent=h
  361. game:GetService("Debris"):AddItem(c,.5)
  362. Damage=math.random(minim,maxim)
  363. -- h:TakeDamage(Damage)
  364. blocked=false
  365. block=hit.Parent:findFirstChild("Block")
  366. if block~=nil then
  367. if block.className=="IntValue" then
  368. if block.Value>0 then
  369. blocked=true
  370. block.Value=block.Value-1
  371. end
  372. end
  373. end
  374. if blocked==false then
  375. -- h:TakeDamage(Damage)
  376. h.Health=h.Health-Damage
  377. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  378. else
  379. h.Health=h.Health-(Damage/2)
  380. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  381. end
  382. if Type=="Knockdown" then
  383. hum=hit.Parent.Humanoid
  384. hum.PlatformStand=true
  385. coroutine.resume(coroutine.create(function(HHumanoid)
  386. wait(1)
  387. HHumanoid.PlatformStand=false
  388. end),hum)
  389. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  390. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  391. local bodvol=Instance.new("BodyVelocity")
  392. bodvol.velocity=angle*knockback
  393. bodvol.P=5000
  394. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  395. bodvol.Parent=hit
  396. rl=Instance.new("BodyAngularVelocity")
  397. rl.P=3000
  398. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  399. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  400. rl.Parent=hit
  401. game:GetService("Debris"):AddItem(bodvol,.5)
  402. game:GetService("Debris"):AddItem(rl,.5)
  403. elseif Type=="Normal" then
  404. vp=Instance.new("BodyVelocity")
  405. vp.P=500
  406. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  407. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  408. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  409. if knockback>0 then
  410. vp.Parent=hit.Parent.Torso
  411. end
  412. game:GetService("Debris"):AddItem(vp,.5)
  413. elseif Type=="Up" then
  414. local bodyVelocity=Instance.new("BodyVelocity")
  415. bodyVelocity.velocity=vt(0,20,0)
  416. bodyVelocity.P=5000
  417. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  418. bodyVelocity.Parent=hit
  419. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  420. elseif Type=="Snare" then
  421. bp=Instance.new("BodyPosition")
  422. bp.P=2000
  423. bp.D=100
  424. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  425. bp.position=hit.Parent.Torso.Position
  426. bp.Parent=hit.Parent.Torso
  427. game:GetService("Debris"):AddItem(bp,1)
  428. elseif Type=="Freeze" then
  429. BodPos2=Instance.new("BodyPosition")
  430. BodPos2.P=50000
  431. BodPos2.D=1000
  432. BodPos2.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  433. BodPos2.position=hit.Parent.Torso.Position
  434. BodPos2.Parent=hit.Parent.Torso
  435. BodGy2 = it("BodyGyro")
  436. BodGy2.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  437. BodGy2.P = 20e+003
  438. BodGy2.Parent=hit.Parent.Torso
  439. BodGy2.cframe = hit.Parent.Torso.CFrame
  440. hit.Parent.Torso.Anchored=true
  441. coroutine.resume(coroutine.create(function(Part)
  442. wait(1.5)
  443. Part.Anchored=false
  444. end),hit.Parent.Torso)
  445. game:GetService("Debris"):AddItem(BodPos2,3)
  446. game:GetService("Debris"):AddItem(BodGy2,3)
  447. end
  448. debounce=Instance.new("BoolValue")
  449. debounce.Name="DebounceHit"
  450. debounce.Parent=hit.Parent
  451. debounce.Value=true
  452. game:GetService("Debris"):AddItem(debounce,Delay)
  453. c=Instance.new("ObjectValue")
  454. c.Name="creator"
  455. c.Value=Character
  456. c.Parent=h
  457. game:GetService("Debris"):AddItem(c,.5)
  458. CRIT=false
  459. hitDeb=true
  460. AttackPos=6
  461. end
  462. end
  463.  
  464. showDamage=function(Char,Dealt,du,Color)
  465. m=Instance.new("Model")
  466. m.Name=tostring(Dealt)
  467. h=Instance.new("Humanoid")
  468. h.Health=0
  469. h.MaxHealth=0
  470. h.Parent=m
  471. c=Instance.new("Part")
  472. c.Transparency=0
  473. c.BrickColor=Color
  474. c.Name="Head"
  475. c.TopSurface=0
  476. c.BottomSurface=0
  477. c.formFactor="Plate"
  478. c.Size=Vector3.new(1,.4,1)
  479. ms=Instance.new("CylinderMesh")
  480. ms.Scale=Vector3.new(.8,.8,.8)
  481. if CRIT==true then
  482. ms.Scale=Vector3.new(1,1.25,1)
  483. end
  484. ms.Parent=c
  485. c.Reflectance=0
  486. Instance.new("BodyGyro").Parent=c
  487. c.Parent=m
  488. if Char:findFirstChild("Head")~=nil then
  489. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  490. else
  491. c.CFrame=CFrame.new(Char["Torso"].CFrame.p+Vector3.new(0,1.5,0))
  492. end
  493. f=Instance.new("BodyPosition")
  494. f.P=2000
  495. f.D=100
  496. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  497. f.position=c.Position+Vector3.new(0,3,0)
  498. f.Parent=c
  499. game:GetService("Debris"):AddItem(m,.5+du)
  500. c.CanCollide=false
  501. m.Parent=workspace
  502. c.CanCollide=false
  503. end
  504.  
  505. function MagniDamage(Part,magni,mindam,maxdam,knock,Type,base)
  506. for _,c in pairs(workspace:children()) do
  507. local hum=c:findFirstChild("Humanoid")
  508. if hum~=nil then
  509. local head=c:findFirstChild("Torso")
  510. if head~=nil then
  511. local targ=head.Position-Part.Position
  512. local mag=targ.magnitude
  513. if mag<=magni and c.Name~=Character.Name then
  514. Damagefunc(head,mindam,maxdam,knock,Type,base,0)
  515. end
  516. end
  517. end
  518. end
  519. end
  520.  
  521. function rain(mouse)
  522. n=2
  523. for i=0,1,0.1 do
  524. wait()
  525. RW.C0=cf(1.5,0.5,0)*euler(3.14*i*n,0,0.2-0.2*i*n)
  526. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2-0.2*i*n)
  527. n=n-0.1
  528. end
  529. for i=1,math.random(10,20) do
  530. local orb=part(3,Character,0,1,BrickColor.new("Really black"),"Orb",vt())
  531. so("http://roblox.com/asset/?id=183763498",orb,1,1.2)
  532. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(10,10,10))
  533. local owld=weld(orb,orb,Torso,cf(0,-5,0))
  534. MagicCircle(BrickColor.new("Really black"),orb.CFrame,10,10,10,1,1,1,0.1)
  535. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  536. local ceef1=math.random(-50,50)
  537. local ceef2=math.random(-2,8)
  538. local ceef3=math.random(100,200)/100
  539. local n=2
  540. for i=0,1,0.1 do
  541. wait()
  542. Part.Transparency=Part.Transparency-0.07
  543. owld.C0=cf(ceef2*i*n,-5,0)*euler(ceef3*i*n,ceef1,0)
  544. n=n-0.1
  545. end
  546. wait(1)
  547. Part.Parent=nil
  548. local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(Part.Position-(Part.Position+vt(0,-1,0))).magnitude/100
  549. local TheHit=MMouse.Hit.p
  550. local MouseLook=cf((Part.Position+TheHit)/2,TheHit+spread)
  551. local hit,pos = rayCast(Part.Position,MouseLook.lookVector,999,Character)
  552. local mag=(Part.Position-pos).magnitude
  553. MagicCylinder(BrickColor.new("Really black"),CFrame.new((Part.Position+pos)/2,pos)*angles(1.57,0,0) ,1,mag*5,1,0.5,0,0.5,0.05)
  554. MagicBlock(BrickColor.new("Really black"),Part.CFrame,8,8,8,0.5,0.5,0.5,0.1)
  555. MagicBlock(BrickColor.new("Really black"),cf(pos),15,15,15,6,6,6,0.1)
  556. MagicRing(BrickColor.new("Really black"),cf(pos)*euler(1.57,math.random(-100,100)/100,math.random(-100,100)/100),1,1,1,2,2,2,0.05)
  557. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  558. ref.CFrame=cf(pos)
  559. so("http://roblox.com/asset/?id=183763487",ref,1,1)
  560. coroutine.resume(coroutine.create(function(Part)
  561. wait(1)
  562. Part.Parent=nil
  563. end),ref)
  564. MagniDamage(ref,15,5,10,0,"Normal",RootPart)
  565. if hit~=nil then
  566. Damagefunc(hit,20,40,1,"Knockdown",RootPart,0)
  567. end
  568. end),orb,omsh,owld)
  569. wait(0.2)
  570. end
  571. n=2
  572. for i=0,1,0.1 do
  573. wait()
  574. RW.C0=cf(1.5,0.5,0)*euler(3.14-3.14*i*n,0,0.2*i*n)
  575. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.4+0.2*i*n)
  576. n=n-0.1
  577. end
  578. attacking=false
  579. wait(2)
  580. end
  581.  
  582. function nocturne()
  583. n=2
  584. for i=0,1,0.1 do
  585. wait()
  586. RW.C0=cf(1.5,0.5,0)*euler(1.57*i*n,0,0.2-0.6*i*n)
  587. LW.C0=cf(-1.5,0.5,0)*euler(1.57*i*n,0,-0.2+0.6*i*n)
  588. n=n-0.1
  589. end
  590. local orb=part(3,Character,0,1,BrickColor.new("Really black"),"Orb",vt())
  591. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(10,10,10))
  592. local owld=weld(orb,orb,Torso,cf(0,-0.5,3))
  593. so("http://roblox.com/asset/?id=137463716",orb,1,0.6)
  594. for i=1,0.3,-0.01 do
  595. wait()
  596. orb.Transparency=i
  597. omsh.Scale=omsh.Scale+vt(0.2,0.2,0.2)
  598. MagicBlock(BrickColor.new("Really black"),orb.CFrame,8,8,8,0.5,0.5,0.5,0.1)
  599. local ef=part(3,workspace,0,0,BrickColor.new("Really black"),"Effect",vt())
  600. ef.Anchored=true
  601. local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
  602. local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(5,10),0)
  603. ef.CFrame=orb.CFrame*ceef
  604. game:GetService("Debris"):AddItem(ef,2)
  605. coroutine.resume(coroutine.create(function(Part,Mesh)
  606. for i=0,1,0.1 do
  607. wait()
  608. Part.Transparency=i
  609. Part.CFrame=Part.CFrame*cf(0,-1,0)
  610. end
  611. Part.Parent=nil
  612. end),ef,emsh)
  613. end
  614. attacking=false
  615. wait(1)
  616. orb.Parent=nil
  617. local TheHit=MMouse.Hit.p
  618. local MouseLook=cf((orb.Position+TheHit)/2,TheHit)
  619. local hit,pos = rayCast(orb.Position,MouseLook.lookVector,999,Character)
  620. print(hit)
  621. local mag=(orb.Position-pos).magnitude
  622. MagicCircle(BrickColor.new("Really black"),cf(pos),15,15,15,8,8,8,0.02)
  623. MagicBlock(BrickColor.new("Really black"),cf(pos),15,15,15,8,8,8,0.02)
  624. MagicCylinder(BrickColor.new("Really black"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  625. for i=1,2 do
  626. MagicRing(BrickColor.new("Really black"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,1,1,1,0.04)
  627. end
  628. for i=1,5 do
  629. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  630. MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  631. end
  632. for i=0,5 do
  633. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  634. MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  635. end
  636. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  637. ref.CFrame=cf(pos)
  638. so("http://roblox.com/asset/?id=183763506",Torso,1,0.6)
  639. so("http://roblox.com/asset/?id=178452221",Torso,1,0.6)
  640. so("http://www.roblox.com/Asset?ID=87767777",Torso,1,1)
  641. so("http://roblox.com/asset/?id=183763506",ref,1,0.6)
  642. so("http://roblox.com/asset/?id=178452221",ref,1,0.6)
  643. so("http://www.roblox.com/Asset?ID=87767777",ref,1,1)
  644. coroutine.resume(coroutine.create(function(Part)
  645. wait(1)
  646. Part.Parent=nil
  647. end),ref)
  648. MagniDamage(ref,20,10,30,40,"Knockdown",ref)
  649. if hit~=nil then
  650. Damagefunc(hit,30,70,50,"Knockdown",RootPart,0)
  651. end
  652. wait(1)
  653. n=2
  654. for i=0,1,0.1 do
  655. wait()
  656. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i*n,0,0.2-0.6+0.6*i*n)
  657. LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i*n,0,-0.2+0.6-0.6*i*n)
  658. n=n-0.1
  659. end
  660. end
  661. function titan()
  662. attacking=true
  663. Humanoid.WalkSpeed=0
  664. local n=2
  665. for i=0,1,0.05 do
  666. wait()
  667. cf4=6-2*i*n
  668. cf5=2+2*i*n
  669. cf6=-2*i*n
  670. cf7=-6+2*i*n
  671. cf8=2+2*i*n
  672. cf9=-2*i*n
  673. Neck.C0=cf(0,1,0)*euler(-0.2+0.8*i*n,0,0)
  674. RW.C0=cf(1.5-0.5*i*n,0.5+0.5*i*n,-0.5*i*n)*euler(3.14*i*n,0,0.3-0.9*i*n)
  675. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  676. LW.C0=cf(-1.5+0.5*i*n,0.5+0.5*i*n,-0.5*i*n)*euler(3.14*i*n,0,-0.3+0.9*i*n)
  677. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  678. n=n-0.05
  679. end
  680. wait(0.3)
  681. so("http://www.roblox.com/asset/?id=169445121",Character["Shade Torso"],1,0.6)
  682. n=2
  683. for i=0,1,0.2 do
  684. wait()
  685. MagicBlock(BrickColor.new("Really black"),Character["Shade Right Arm"].CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1)
  686. MagicBlock(BrickColor.new("Really black"),Character["Shade Left Arm"].CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1)
  687. cf11=-4+2*i*n
  688. cf12=-2*i*n
  689. cf5=4-4*i*n
  690. cf8=4-4*i*n
  691. RootJoint.C0=cf(0,-14.5+3*i*n,0)*euler(0,0,0)
  692. Neck.C0=cf(0,1,0)*euler(0.6-1*i*n,0,0)
  693. RW.C0=cf(1,1-1*i*n,-0.5)*euler(3.14-2.64*i*n,0,-0.6)
  694. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  695. LW.C0=cf(-1,1-1*i*n,-0.5)*euler(3.14-2.64*i*n,0,0.6)
  696. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  697. RH.C0=cf(0.5,-1+0.5*i*n,-0.5*i*n)*euler(-0.1*i*n,0,0)
  698. RH.C1=cf(0,1,0)
  699. LH.C0=cf(-0.5,-1,0)*euler(-0.6*i*n,0,0)
  700. LH.C1=cf(0,1,0)
  701. n=n-0.2
  702. end
  703. local cf2=RootPart.CFrame*cf(0,500,-20)
  704. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  705. ref.CFrame=cf2
  706. ref.Anchored=true
  707. local TheHit=ref.Position+vt(0,-1,0)
  708. local MouseLook=cf((ref.Position+TheHit)/2,TheHit)
  709. local hit,pos = rayCast(ref.Position,MouseLook.lookVector,999,Character)
  710. local ref2=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  711. ref2.CFrame=cf(pos)
  712. ref2.Anchored=true
  713. local mag=(ref.Position-pos).magnitude
  714. MagicCylinder(BrickColor.new("Really black"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),5,mag*5,5,1,0,1,0.05)
  715. MagicCircle(BrickColor.new("Really black"),ref2.CFrame,15,15,15,8,8,8,0.02)
  716. MagicBlock(BrickColor.new("Really black"),ref2.CFrame,15,15,15,3,3,3,0.02)
  717. WaveEffect2(BrickColor.new("Really black"),ref2.CFrame,5,5,5,2,3,2,0.05)
  718. MagicRing(BrickColor.new("Really black"),cf(ref2.Position)*euler(1.57,0,0),5,5,5,4,4,4,0.05)
  719. MagniDamage(ref2,25,20,50,math.random(10,30),"Knockdown",ref2)
  720. --so("http://roblox.com/asset/?id=144844438",ref2,1,0.8)
  721. so("http://roblox.com/asset/?id=87784452",ref2,1,0.8)
  722. so("http://roblox.com/asset/?id=183763515",ref2,1,0.8)
  723. game:GetService("Debris"):AddItem(ref,2)
  724. game:GetService("Debris"):AddItem(ref2,2)
  725. wait(1)
  726. n=2
  727. for i=0,1,0.1 do
  728. wait()
  729. cf4=4+2*i*n
  730. cf5=2*i*n
  731. cf6=-2+2*i*n
  732. cf7=-4-2*i*n
  733. cf8=2*i*n
  734. cf9=-2+2*i*n
  735. cf11=-4+2-2*i*n
  736. cf12=-2+2*i*n
  737. RootJoint.C0=cf(0,-14.5+3-3*i*n,0)*euler(0,0,0)
  738. Neck.C0=cf(0,1,0)*euler(-0.4+0.2*i*n,0,0)
  739. RW.C0=cf(1+0.5*i*n,0.5*i*n,-0.5+0.5*i*n)*euler(0.5-0.5*i*n,0,-0.6+0.9*i*n)
  740. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  741. LW.C0=cf(-1-0.5*i*n,0.5*i*n,-0.5+0.5*i*n)*euler(0.5-0.5*i*n,0,0.6-0.9*i*n)
  742. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  743. RH.C0=cf(0.5,-0.5-0.5*i*n,-0.5+0.5*i*n)*euler(-0.1+0.1*i*n,0,0)
  744. RH.C1=cf(0,1,0)
  745. LH.C0=cf(-0.5,-1,0)*euler(-0.6+0.6*i*n,0,0)
  746. LH.C1=cf(0,1,0)
  747. n=n-0.1
  748. end
  749. wait(1)
  750. Humanoid.WalkSpeed=25
  751. attacking=false
  752. end
  753.  
  754. function beast()
  755. giant=true
  756. MagicBlock(BrickColor.new("Really black"),Torso.CFrame,15,15,15,6,6,6,0.1)
  757. MagicBlock(BrickColor.new("Really black"),Torso.CFrame,15,15,15,6,6,6,0.1)
  758. wait(0.5)
  759. n=2
  760. for i=0,1,0.05 do
  761. wait()
  762. RW.C0=cf(1.5-0.5*i*n,0.5,-0.5*i*n)*euler(1.4*i*n,0,0.2-1.4*i*n)
  763. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  764. LW.C0=cf(-1.5+0.5*i*n,0.5,-0.5*i*n)*euler(1.6*i*n,0,-0.2+1.6*i*n)
  765. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  766. RH.C0=cf(0.5,-1,0)*euler(-0.3+0.3*i*n,0,0.2)
  767. RH.C1=cf(0,1,0)
  768. LH.C0=cf(-0.5,-1,0)*euler(-0.3+0.3*i*n,0,-0.2)
  769. LH.C1=cf(0,1,0)
  770. n=n-0.05
  771. end
  772. wait(1)
  773. DarkLegEffect=false
  774. local Head2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Head",vt(10,5,5))
  775. local Torso2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Torso",vt(10,10,5))
  776. local LeftArm2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Left Arm",vt(5,10,5))
  777. local RightArm2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Right Arm",vt(5,10,5))
  778. local LeftLeg2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Left Leg",vt(5,10,5))
  779. local RightLeg2=part(0,Character,0,1,BrickColor.new("Really black"),"Shade Right Leg",vt(5,10,5))
  780. Head2.CFrame=Head.CFrame
  781. Torso2.CFrame=Head.CFrame
  782. LeftArm2.CFrame=Head.CFrame
  783. RightArm2.CFrame=Head.CFrame
  784. LeftLeg2.CFrame=Head.CFrame
  785. RightLeg2.CFrame=Head.CFrame
  786.  
  787.  
  788. local HMesh2=mesh("SpecialMesh",Head2,"Head","",vt(0,0,0),vt(1.25,1.25,1.25))
  789.  
  790. local Neck2=weld(Torso2,Torso2,Head2,cf(0,5,0))
  791. Neck2.C1=cf(0,0,0)
  792. local RW2=weld(Torso2,Torso2,RightArm2,cf(7.5,2.5,0))
  793. RW2.C1=cf(0,2.5,0)
  794. local LW2=weld(Torso2,Torso2,LeftArm2,cf(-7.5,2.5,0))
  795. LW2.C1=cf(0,2.5,0)
  796. local RH2=weld(Torso2,Torso2,RightLeg2,cf(2.5,-5,0))
  797. RH2.C1=cf(0,5,0)
  798. local LH2=weld(Torso2,Torso2,LeftLeg2,cf(-2.5,-5,0))
  799. LH2.C1=cf(0,5,0)
  800. local RootJoint2=weld(Torso2,Torso2,Torso,cf(0,2.5,0))
  801. local DarkBody=true
  802. local cf1=0
  803. local cf2=0
  804. local cf3=0
  805. local cf4=6
  806. local cf5=2
  807. local cf6=0
  808. local cf7=-6
  809. local cf8=2
  810. local cf9=0
  811. local cf10=2
  812. local cf11=-4
  813. local cf12=0
  814. local cf13=-2
  815. local cf14=-4
  816. local cf15=0
  817. coroutine.resume(coroutine.create(function()
  818. --Destroy all CC, Dark body assume angles of normal body
  819. while DarkBody==true do
  820. wait()
  821. for _,c in pairs(Character:children()) do
  822. for _,v in pairs(c:children()) do
  823. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  824. if v.Name~="VantaGyro" and v.Name~="VantaPos" then
  825. print("dai")
  826. v.Parent=nil
  827. end
  828. end
  829. end
  830. end
  831. Neck2.C0=cf(cf1,cf2,cf3)*Neck.C0
  832. RW2.C0=cf(cf4,cf5,cf6)*RW.C0
  833. LW2.C0=cf(cf7,cf8,cf9)*LW.C0
  834. RH2.C0=cf(cf10,cf11,cf12)*RH.C0
  835. LH2.C0=cf(cf13,cf14,cf15)*LH.C0
  836. end
  837. end))
  838. n=2
  839. n2=1
  840. for i=0,1,0.1 do
  841. wait()
  842. Neck.C0=cf(0,1,0)*euler(math.rad(100),math.rad(180),0)
  843. RW.C0=cf(1+0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.4+0.17*i*n,0,-1.2+2.77*i*n)
  844. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  845. LW.C0=cf(-1-0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.6-0.03*i*n,0,1.4-2.97*i*n)
  846. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  847. RH.C0=cf(0.5,-1,0)*euler(0,0,0.2+0.2*i*n)
  848. RH.C1=cf(0,1,0)
  849. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2-0.2*i*n)
  850. LH.C1=cf(0,1,0)
  851. Head2.Transparency=n2
  852. Torso2.Transparency=n2
  853. LeftArm2.Transparency=n2
  854. RightArm2.Transparency=n2
  855. LeftLeg2.Transparency=n2
  856. RightLeg2.Transparency=n2
  857. n=n-0.1
  858. n2=n2-0.05
  859. end
  860. wait(0.5)
  861. RootJoint.C0=cf(0,-14.5,0)*euler(0,0,0)
  862. Humanoid.WalkSpeed=25
  863. n=2
  864. for i=0,1,0.1 do
  865. wait()
  866. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i*n,0,1.57-1.27*i*n)
  867. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  868. LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i*n,0,-1.57+1.27*i*n)
  869. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  870. RH.C0=cf(0.5,-1,0)*euler(0,0,0.4-0.4*i*n)
  871. RH.C1=cf(0,1,0)
  872. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.4+0.4*i*n)
  873. LH.C1=cf(0,1,0)
  874. n=n-0.1
  875. end
  876. --BodGy.cframe=CF*euler(0,0,0)
  877. coroutine.resume(coroutine.create(function()
  878. --Movement function
  879. local flying=false
  880. while DarkBody==true do
  881. wait()
  882. --[[print(RootPart.Velocity.z)
  883. if RootPart.Velocity.x>=6 or RootPart.Velocity.x<=-6 or RootPart.Velocity.z>=6 or RootPart.Velocity.z<=6 then
  884. Anim.Value="Walking"
  885. else
  886. Anim.Value="Standing"
  887. end]]
  888. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  889. if flying==true then
  890. Anim.Value="Flying"
  891. elseif torvel<1 then
  892. Anim.Value="Standing"
  893. elseif torvel<30 then
  894. Anim.Value="Walking"
  895. end
  896. local hit,pos=rayCast(RootPart.Position,cf(RootPart.Position,RootPart.Position-vt(0,1,0)).lookVector,50,Character)
  897. if hit==nil and flying==false then
  898. flying=true
  899. BodPos.maxForce=vt(0,math.huge,0)
  900. BodPos.Parent=RootPart
  901. BodPos.position=Head.Position+Vector3.new(0,50,0)
  902. coroutine.resume(coroutine.create(function()
  903. local ground=false
  904. while ground==false do
  905. wait()
  906. local hit,pos=rayCast(RootPart.Position,cf(RootPart.Position,RootPart.Position-vt(0,1,0)).lookVector,50,Character)
  907. if hit~=nil then
  908. ground=true
  909. flying=false
  910. end
  911. end
  912. end))
  913. end
  914. end
  915. end))
  916. coroutine.resume(coroutine.create(function()
  917. --Movement animations
  918. --[[function onRunning(speed)
  919. if speed>1 then
  920. Anim.Value="Walking"
  921. else
  922. Anim.Value="Standing"
  923. end
  924. end
  925. Humanoid.Running:connect(onRunning)]]
  926. local con1=nil
  927. local con2=nil
  928.  
  929. while DarkBody==true do
  930. wait()
  931. local walkingoffset1=0
  932. local walkingoffset2=0
  933. if attacking==false then
  934. if Anim.Value=="Standing" then
  935. RH.C0=cf(0.5,-1,0)*euler(0,0,0)
  936. RH.C1=cf(0,1,0)
  937. LH.C0=cf(-0.5,-1,0)*euler(0,0,0)
  938. LH.C1=cf(0,1,0)
  939. elseif Anim.Value=="Walking" then
  940. n=2
  941. for i=0,1,0.1 do
  942. if Anim.Value=="Walking" then
  943. --con1=LeftLeg2.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5) end)
  944. --con2=RightLeg2.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5) end)
  945. wait()
  946. walkingoffset1=1.2*i*n
  947. walkingoffset2=-1.2*i*n
  948. end
  949. RH.C0=cf(0.5,-1,0)*euler(walkingoffset1,0,0)
  950. RH.C1=cf(0,1,0)
  951. LH.C0=cf(-0.5,-1,0)*euler(walkingoffset2,0,0)
  952. LH.C1=cf(0,1,0)
  953. n=n-0.1
  954. end
  955. while Anim.Value=="Walking" and DarkBody==true do
  956. wait()
  957. n=2
  958. for i=0,1,0.05 do
  959. if Anim.Value=="Walking" then
  960. wait()
  961. walkingoffset1=1.2-2.4*i*n
  962. walkingoffset2=-1.2+2.4*i*n
  963. end
  964. RH.C0=cf(0.5,-1,0)*euler(walkingoffset1,0,0)
  965. RH.C1=cf(0,1,0)
  966. LH.C0=cf(-0.5,-1,0)*euler(walkingoffset2,0,0)
  967. LH.C1=cf(0,1,0)
  968. n=n-0.05
  969. end
  970. n=2
  971. for i=0,1,0.05 do
  972. if Anim.Value=="Walking" then
  973. wait()
  974. walkingoffset1=-1.2+2.4*i*n
  975. walkingoffset2=1.2-2.4*i*n
  976. end
  977. RH.C0=cf(0.5,-1,0)*euler(walkingoffset1,0,0)
  978. RH.C1=cf(0,1,0)
  979. LH.C0=cf(-0.5,-1,0)*euler(walkingoffset2,0,0)
  980. LH.C1=cf(0,1,0)
  981. n=n-0.05
  982. end
  983. end
  984. if Anim.Value=="Standing" then
  985. n=2
  986. for i=0,1,0.1 do
  987. wait()
  988. RH.C0=cf(0.5,-1,0)*euler(walkingoffset1-walkingoffset1*i*n,0,0)
  989. RH.C1=cf(0,1,0)
  990. LH.C0=cf(-0.5,-1,0)*euler(walkingoffset2-walkingoffset2*i*n,0,0)
  991. LH.C1=cf(0,1,0)
  992. n=n-0.1
  993. end
  994. end
  995. elseif Anim.Value=="Flying" then
  996. while Anim.Value=="Flying" and DarkBody==true do
  997. wait(.1)
  998. RH.C0=cf(0.5,-1,0)*euler(-0.2,0,0.2)
  999. RH.C1=cf(0,1,0)
  1000. LH.C0=cf(-0.5,-1,0)*euler(-0.2,0,-0.2)
  1001. LH.C1=cf(0,1,0)
  1002. MagicBlock(BrickColor.new("Really black"),LeftLeg2.CFrame*cf(0,-5,0),20,20,20,2,2,2,0.1)
  1003. MagicBlock(BrickColor.new("Really black"),RightLeg2.CFrame*cf(0,-5,0),20,20,20,2,2,2,0.1)
  1004. end
  1005. end
  1006. end
  1007. end
  1008. end))
  1009. end
  1010.  
  1011. function darkstomp()
  1012. attacking=true
  1013. Humanoid.WalkSpeed=0
  1014. local n=2
  1015. for i=0,1,0.1 do
  1016. wait()
  1017. cf11=-4+2*i*n
  1018. cf12=-2*i*n
  1019. --cf13=-2
  1020. --cf14=-4
  1021. --cf15=0
  1022. RootJoint.C0=cf(0,-14.5,0)*euler(0.2*i*n,0,0)
  1023. Neck.C0=cf(0,1,0)*euler(-0.2-0.4*i*n,0,0)
  1024. RW.C0=cf(1.5,0.5,0)*euler(-0.2*i*n,0,0.3)
  1025. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1026. LW.C0=cf(-1.5,0.5,0)*euler(-0.2*i*n,0,-0.3)
  1027. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1028. RH.C0=cf(0.5,-1+0.5*i*n,-0.5*i*n)*euler(0.2*i*n,0,0)
  1029. RH.C1=cf(0,1,0)
  1030. LH.C0=cf(-0.5,-1,0)*euler(-0.2*i*n,0,0)
  1031. LH.C1=cf(0,1,0)
  1032. n=n-0.1
  1033. end
  1034. so("http://www.roblox.com/asset/?id=169445046",Character["Shade Right Leg"],1,0.6)
  1035. local n=2
  1036. for i=0,1,0.2 do
  1037. wait()
  1038. cf11=-2-2*i*n
  1039. RH.C0=cf(0.5,-0.5-0.5*i*n,-0.5)*euler(0.2+0.1*i*n,0,0)
  1040. RH.C1=cf(0,1,0)
  1041. n=n-0.2
  1042. end
  1043. MagicCylinder(BrickColor.new("Really black"),cf(Character["Shade Right Leg"].Position+vt(0,-4,0)),10,4,10,5,3,5,0.05)
  1044. local numb=-8
  1045. local basecf=RootPart.CFrame
  1046. for i=1,4 do
  1047. local cf2=basecf*cf(0,0,numb)
  1048. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  1049. ref.CFrame=cf2
  1050. ref.Anchored=true
  1051. local TheHit=ref.Position+vt(0,-1,0)
  1052. local MouseLook=cf((ref.Position+TheHit)/2,TheHit)
  1053. local hit,pos = rayCast(ref.Position,MouseLook.lookVector,999,Character)
  1054. local ref2=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  1055. ref2.CFrame=cf(pos)
  1056. ref2.Anchored=true
  1057. MagicCircle(BrickColor.new("Really black"),ref2.CFrame,15,15,15,8,8,8,0.02)
  1058. MagicWaveThing(BrickColor.new("Really black"),ref2.CFrame,5,5,5,2,2,2,0.05)
  1059. MagniDamage(ref2,20,20,30,math.random(5,20),"Normal",RootPart)
  1060. so("http://www.roblox.com/asset/?id=161006093",ref2,1,0.6)
  1061. game:GetService("Debris"):AddItem(ref,2)
  1062. game:GetService("Debris"):AddItem(ref2,2)
  1063. numb=numb-15
  1064. wait(0.4)
  1065. end
  1066. --wait(1)
  1067. local n=2
  1068. for i=0,1,0.1 do
  1069. wait()
  1070. cf12=-2+2*i*n
  1071. RootJoint.C0=cf(0,-14.5,0)*euler(0.2-0.2*i*n,0,0)
  1072. Neck.C0=cf(0,1,0)*euler(-0.6+0.4*i*n,0,0)
  1073. RW.C0=cf(1.5,0.5,0)*euler(-0.2+0.2*i*n,0,0.3)
  1074. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1075. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i*n,0,-0.3)
  1076. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1077. RH.C0=cf(0.5,-1,-0.5+0.5*i*n)*euler(0.3-0.3*i*n,0,0)
  1078. RH.C1=cf(0,1,0)
  1079. LH.C0=cf(-0.5,-1,0)*euler(-0.2+0.2*i*n,0,0)
  1080. LH.C1=cf(0,1,0)
  1081. n=n-0.1
  1082. end
  1083. Humanoid.WalkSpeed=25
  1084. attacking=false
  1085. wait(1)
  1086. end
  1087.  
  1088. function unbeast()
  1089.  
  1090. end
  1091.  
  1092.  
  1093. function key(key)
  1094. if key == "x" then
  1095. rain()
  1096. end
  1097. if key =="z" then
  1098. nocturne()
  1099. end
  1100. if key =="f" and giant == false then
  1101. beast()
  1102. elseif key=="f" and giant == true then
  1103. unbeast()
  1104. end
  1105. if key =="v" and giant == true then
  1106. darkstomp()
  1107. end
  1108. if key =="c" and giant == true then
  1109. titan()
  1110. end
  1111. if key == "q" then
  1112. holdq=true
  1113. while holdq==true and djij.Value>0 do
  1114. wait(.1)
  1115. djij.Value=djij.Value-1
  1116. end
  1117. print('dodlin')
  1118. end
  1119. if key == "e" then
  1120. holde=true
  1121. while holde==true do
  1122. wait(.1)
  1123. djij.Value=djij.Value+1
  1124. end
  1125. print('holdin')
  1126. end
  1127. end
  1128.  
  1129. function key2(key)
  1130. if key == "q" then
  1131. holdq=false
  1132. end
  1133. if key == "e" then
  1134. holde=false
  1135. end
  1136. end
  1137.  
  1138. function s(mouse)
  1139. mouse.KeyDown:connect(key)
  1140. mouse.KeyUp:connect(key2)
  1141. MMouse=mouse
  1142. end
  1143.  
  1144. Bin.Selected:connect(s)
  1145. end))
  1146. StringValue2.Name = "Te"
  1147. StringValue2.Parent = LocalScript1
  1148. for i,v in pairs(mas:GetChildren()) do
  1149. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1150. pcall(function() v:MakeJoints() end)
  1151. end
  1152. mas:Destroy()
  1153. for i,v in pairs(cors) do
  1154. spawn(function()
  1155. pcall(v)
  1156. end)
  1157. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement