Advertisement
Vzurxy

Untitled

Jan 12th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.05 KB | None | 0 0
  1. -- Thanatos Script, by yeox769.
  2. -- Built with my Yeox Engine.
  3. -- Credit goes to Ucalegen/Fenrier for the clerp function, as well as the functions required to make it work.
  4.  
  5. -- If you somehow managed to get this script, you may edit it.
  6. -- If you do edit this, however, please give credit in some way.
  7.  
  8. -- If you leak this, please at least give credit.
  9. -- I'd prefer if you didn't leak this at all though, but I know you people are going to anyway.
  10.  
  11. wait(0.5)
  12. player = game:GetService("Players").LocalPlayer
  13. char = player.Character
  14. hmnd = char.Humanoid
  15. larm = char["Left Arm"]
  16. rarm = char["Right Arm"]
  17. lleg = char["Left Leg"]
  18. rleg = char["Right Leg"]
  19. torso = char.Torso
  20. mouse = player:GetMouse()
  21. bdclr = char["Body Colors"]
  22. Neck = torso.Neck
  23.  
  24. -- More variables, just in case.
  25. Player=game:GetService("Players").LocalPlayer
  26. Character=Player.Character
  27. PlayerGui=Player.PlayerGui
  28. Backpack=Player.Backpack
  29. Torso=Character.Torso
  30. Head=Character.Head
  31. Humanoid=Character.Humanoid
  32. Mouse = player:GetMouse()
  33. m=Instance.new('Model',Character)
  34. LeftArm=Character["Left Arm"]
  35. LeftLeg=Character["Left Leg"]
  36. RightArm=Character["Right Arm"]
  37. RightLeg=Character["Right Leg"]
  38. LS=Torso["Left Shoulder"]
  39. LH=Torso["Left Hip"]
  40. RS=Torso["Right Shoulder"]
  41. RH=Torso["Right Hip"]
  42. Face = Head.face
  43. Neck=Torso.Neck
  44. it=Instance.new
  45. attacktype=1
  46. vt=Vector3.new
  47. cf=CFrame.new
  48. euler=CFrame.fromEulerAnglesXYZ
  49. angles=CFrame.Angles
  50. cloaked=false
  51. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  52. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  53. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  54. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  55. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  56. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  57. HDWLD = cf(0,-0.75,-0.45)*angles(0,0,-12.5)
  58. BLDWLD = cf(0,8,0)*angles(0,-44.75,0)
  59. RootPart=Character.HumanoidRootPart
  60. RootJoint=RootPart.RootJoint
  61. RootCF=euler(-1.57,0,3.14)
  62. attack = false
  63. attackdebounce = false
  64. deb=false
  65. equipped=true
  66. hand=false
  67. MMouse=nil
  68. combo=0
  69. mana=0
  70. trispeed=.2
  71. attackmode='none'
  72. local idle=0
  73. local Anim="Idle"
  74. local Effects={}
  75. local gun=false
  76. local shoot=false
  77. player=nil
  78. mana=0
  79.  
  80. it = Instance.new
  81.  
  82. -- Music --
  83.  
  84. z = it("Sound",char)
  85. z.Looped = true
  86. z.Name = "moosik"
  87. z.SoundId = "rbxassetid://940743619"
  88. z.TimePosition = 30
  89. z.Volume = 0
  90. z:Play()
  91. themeBegan = false
  92. wait(0.5)
  93.  
  94. function fadeInMusic()
  95. while z.Volume < 1 do
  96. wait()
  97. z.Volume = z.Volume + 0.025
  98. end
  99. end
  100.  
  101. delay(0,fadeInMusic)
  102.  
  103. function restartMusic()
  104. wait(89.715)
  105. z.TimePosition = 15.375
  106. while true do
  107. wait(104.34)
  108. z.TimePosition = 15.375
  109. end
  110. end
  111.  
  112. delay(0,restartMusic)
  113.  
  114. -- Functions --
  115.  
  116. local inv = function()
  117. while true do
  118. wait()
  119. hmnd.MaxHealth = math.huge
  120. hmnd.Health = math.huge
  121. if char:FindFirstChild("ForceField") == nil then
  122. ff = it("ForceField",char)
  123. ff.Visible = false
  124. end
  125. end
  126. end
  127.  
  128. delay(0,inv)
  129.  
  130. local snd = function(id,pitch)
  131. coroutine.resume(coroutine.create(function()
  132. s = Instance.new("Sound",char)
  133. s.SoundId = id
  134. s.Pitch = pitch
  135. s:Play()
  136. game.Debris:AddItem(s)
  137. end))
  138. end
  139.  
  140. local part = function(name,parent,brkclr,mtrl,rfl,trns,sz)
  141. prt = it("Part",parent)
  142. prt.Name = name
  143. prt.CanCollide = false
  144. prt.BrickColor = BrickColor.new(brkclr)
  145. prt.Material = mtrl
  146. if brkclr == "Black" and mtrl == "Ice" then
  147. prt.Color = Color3.fromRGB(20,20,75)
  148. end
  149. if brkclr == "Black metallic" and mtrl == "SmoothPlastic" then
  150. prt.Color = Color3.fromRGB(25,25,50)
  151. end
  152. prt.Reflectance = rfl
  153. prt.Transparency = trns
  154. prt.Size = sz
  155. prt.Anchored = true
  156. return prt
  157. end
  158. local mesh = function(meshtype,parent,meshid,textureid,scale)
  159. msh = it("SpecialMesh",parent)
  160. if meshtype == "FileMesh" then
  161. msh.MeshId = meshid
  162. msh.TextureId = textureid
  163. end
  164. msh.MeshType = meshtype
  165. msh.Scale = scale
  166. return(msh)
  167. end
  168. local weld = function(part1,part2,x1,y1,z1,x2,y2,z2)
  169. w = it("Weld",part1)
  170. w.Part0 = part1
  171. w.Part1 = part2
  172. if part1.Anchored or part2.Anchored then
  173. part1.Anchored = false
  174. part2.Anchored = false
  175. end
  176. w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(z2),math.rad(y2),math.rad(x2)))
  177. return(w)
  178. end
  179. local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang1,sprdang2,locked2part)
  180. emm = it("ParticleEmitter",parent)
  181. emm.Texture = tex
  182. emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
  183. emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
  184. emm.LightEmission = lightem
  185. emm.EmissionDirection = emdir
  186. emm.Lifetime = NumberRange.new(lif)
  187. emm.Rate = rate
  188. emm.Speed = NumberRange.new(speed)
  189. emm.RotSpeed = NumberRange.new(rotspeed)
  190. emm.SpreadAngle = Vector2.new(sprdang1,sprdang2)
  191. emm.LockedToPart = locked2part
  192. return(emm)
  193. end
  194.  
  195. function clerp(a,b,t)
  196. local qa = {QuaternionFromCFrame(a)}
  197. local qb = {QuaternionFromCFrame(b)}
  198. local ax, ay, az = a.x, a.y, a.z
  199. local bx, by, bz = b.x, b.y, b.z
  200. local _t = 1-t
  201. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  202. end
  203.  
  204. function QuaternionFromCFrame(cf)
  205. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  206. local trace = m00 + m11 + m22
  207. if trace > 0 then
  208. local s = math.sqrt(1 + trace)
  209. local recip = 0.5/s
  210. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  211. else
  212. local i = 0
  213. if m11 > m00 then
  214. i = 1
  215. end
  216. if m22 > (i == 0 and m00 or m11) then
  217. i = 2
  218. end
  219. if i == 0 then
  220. local s = math.sqrt(m00-m11-m22+1)
  221. local recip = 0.5/s
  222. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  223. elseif i == 1 then
  224. local s = math.sqrt(m11-m22-m00+1)
  225. local recip = 0.5/s
  226. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  227. elseif i == 2 then
  228. local s = math.sqrt(m22-m00-m11+1)
  229. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  230. end
  231. end
  232. end
  233.  
  234. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  235. local xs, ys, zs = x + x, y + y, z + z
  236. local wx, wy, wz = w*xs, w*ys, w*zs
  237. local xx = x*xs
  238. local xy = x*ys
  239. local xz = x*zs
  240. local yy = y*ys
  241. local yz = y*zs
  242. local zz = z*zs
  243. 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))
  244. end
  245.  
  246. function QuaternionSlerp(a, b, t)
  247. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  248. local startInterp, finishInterp;
  249. if cosTheta >= 0.0001 then
  250. if (1 - cosTheta) > 0.0001 then
  251. local theta = math.acos(cosTheta)
  252. local invSinTheta = 1/math.sin(theta)
  253. startInterp = math.sin((1-t)*theta)*invSinTheta
  254. finishInterp = math.sin(t*theta)*invSinTheta
  255. else
  256. startInterp = 1-t
  257. finishInterp = t
  258. end
  259. else
  260. if (1+cosTheta) > 0.0001 then
  261. local theta = math.acos(-cosTheta)
  262. local invSinTheta = 1/math.sin(theta)
  263. startInterp = math.sin((t-1)*theta)*invSinTheta
  264. finishInterp = math.sin(t*theta)*invSinTheta
  265. else
  266. startInterp = t-1
  267. finishInterp = t
  268. end
  269. end
  270. 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
  271. end
  272.  
  273. local sine = 0
  274. local change = 1
  275. local val = 0
  276.  
  277. mouse=Player:GetMouse()
  278. RSH, LSH=nil, nil
  279. --welds
  280. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  281. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  282. LH=Torso["Left Hip"]
  283. RH=Torso["Right Hip"]
  284. TorsoColor=Torso.BrickColor
  285. function NoOut(Part)
  286. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  287. end
  288. player=Player
  289. ch=Character
  290. RSH=ch.Torso["Right Shoulder"]
  291. LSH=ch.Torso["Left Shoulder"]
  292. --
  293. RSH.Parent=nil
  294. LSH.Parent=nil
  295. --
  296. RW.Name="Right Shoulder"
  297. RW.Part0=ch.Torso
  298. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  299. RW.C1=cf(0, 0.5, 0)
  300. RW.Part1=ch["Right Arm"]
  301. RW.Parent=ch.Torso
  302. --
  303. LW.Name="Left Shoulder"
  304. LW.Part0=ch.Torso
  305. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  306. LW.C1=cf(0, 0.5, 0)
  307. LW.Part1=ch["Left Arm"]
  308. LW.Parent=ch.Torso
  309.  
  310.  
  311. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  312. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  313. end
  314.  
  315. -- Character Model --
  316.  
  317. local md = Instance.new("Model",char)
  318. md.Name = "Scythe"
  319. hnd = part("Handle",md,"Black","Marble",0,0,Vector3.new(0.25,1.5,0.25))
  320. hndwld = weld(rarm,hnd,0,0,0,0,0,0)
  321. fhnd = part("FHandle",md,"Black","Granite",0,0,Vector3.new(2,12.5,2))
  322. mesh("Sphere",fhnd,"","",Vector3.new(0.1,1,0.1))
  323. weld(hnd,fhnd,0,3,0,0,0,0)
  324. p = part("Part",md,"Black","Marble",0,0,Vector3.new(0.25,1.5,0.25))
  325. weld(hnd,p,0,2,0,0,0,0)
  326. p = part("Part",md,"Black","Marble",0,0,Vector3.new(0.25,1.5,0.25))
  327. weld(hnd,p,0,4,0,0,0,0)
  328. p = part("Part",md,"Black","Marble",0,0,Vector3.new(0.25,1.5,0.25))
  329. weld(hnd,p,0,6,0,0,0,0)
  330. p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.25,0.25,0.25))
  331. mesh("Sphere",p,"","",Vector3.new(1.25,1.25,1.25))
  332. weld(hnd,p,0,7,0,0,0,0)
  333. p = part("Part",md,"Black","Marble",0,0,Vector3.new(0.25,1.5,0.25))
  334. weld(hnd,p,0,8,0,0,0,0)
  335. p = part("Part",md,"Black","Marble",0,0,Vector3.new(0.2,1.25,1.25))
  336. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  337. weld(hnd,p,0,8,0,0,-45,0)
  338. p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.25,1.1,1.1))
  339. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  340. weld(hnd,p,0,8,0,0,-45,0)
  341. bldbs = part("BladeBase",md,"Black","Granite",0,0,Vector3.new(0.5,1,1))
  342. mesh("Sphere",bldbs,"","",Vector3.new(1,1,1))
  343. bldw=weld(hnd,bldbs,0,8,0,0,0,0)
  344. at0 = Instance.new("Attachment",bldbs)
  345. p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.175,0.5,0.5))
  346. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  347. weld(bldbs,p,0,-0.05,-0.85,0,0,45)
  348. p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.175,0.5,0.5))
  349. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  350. weld(bldbs,p,0,0.05,-0.85,0,0,-135)
  351. p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.175,0.1,0.365))
  352. weld(bldbs,p,0,0,-0.81,0,0,0)
  353. p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,1.5,1))
  354. weld(bldbs,p,0,0,-1.5,0,0,0)
  355. p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,1,0.5))
  356. weld(bldbs,p,0,0.1,-2,0,0,-8.75)
  357. p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,1.45,1))
  358. weld(bldbs,p,0,-0.15,-2.55,0,0,-11.25)
  359. p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,1,0.5))
  360. weld(bldbs,p,0,-0.15,-3,0,0,-17.5)
  361. p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,1.4,1))
  362. weld(bldbs,p,0,-0.45,-3.55,0,0,-22.5)
  363. p = part("Part",md,"Black","Ice",0,0,Vector3.new(1.35,1,0.25))
  364. mesh("Torso",p,"","",Vector3.new(1,1,1))
  365. weld(bldbs,p,0,-0.95,-4.45,90,-90,-33.75)
  366. p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,1,0.5))
  367. weld(bldbs,p,0,-0.55,-4.05,0,0,-26.25)
  368. p = part("Part",md,"Black","Ice",0,0,Vector3.new(1.2,1,0.25))
  369. mesh("Torso",p,"","",Vector3.new(1,1,1))
  370. weld(bldbs,p,0,-1.6,-5.25,90,-90,-45)
  371. at1 = Instance.new("Attachment",p)
  372. scytrl = Instance.new("Trail",bldbs)
  373. scytrl.Attachment0 = at0
  374. scytrl.Attachment1 = at1
  375. scytrl.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Really blue").Color)})
  376. scytrl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25),NumberSequenceKeypoint.new(1,1)})
  377. scytrl.Lifetime = 0.25
  378. scytrl.LightEmission = 0.5
  379. scytrl.Enabled = false
  380. p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,1,0.5))
  381. weld(bldbs,p,0,-1.25,-4.9,0,0,-37.5)
  382. p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,0.6,1))
  383. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  384. weld(bldbs,p,0,-2.275,-6.125,0,0,-55)
  385. p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,0.75,0.25))
  386. weld(bldbs,p,0,-1.95,-5.7,0,0,-55.5)
  387. p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,0.5,1))
  388. weld(bldbs,p,0,-2.575,-5.675,0,0,-55)
  389. p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,0.25,0.25))
  390. weld(bldbs,p,0,-2.95,-6,0,0,-67.5)
  391. p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,0.5,1))
  392. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  393. weld(bldbs,p,0,-3.5,-6.1,0,0,-75)
  394. hitbox = part("Hitbox",md,"Black","Ice",1,1,Vector3.new(2,4,8))
  395. weld(bldbs,hitbox,0,-1.25,-3,0,0,0)
  396. local htp = emit(hitbox,"rbxasset://textures/particles/sparkles_main.dds",BrickColor.new("Really blue").Color,BrickColor.new("Really blue").Color,1,0,1,"Top",1,5000,0.25,0,360,360,false)
  397. htp.Enabled = false
  398.  
  399. for i,v in pairs(md:children()) do
  400. NoOut(v)
  401. end
  402.  
  403. for i,v in pairs(char:children()) do
  404. if v:IsA("Accessory") or v:IsA("Shirt") or v:IsA("Pants") then
  405. v:Destroy()
  406. end
  407. end
  408.  
  409. Head.face:Destroy()
  410. faic = it("Decal",Head)
  411. faic.Texture = "http://www.roblox.com/asset/?id=163204936"
  412. faic.Face = "Front"
  413. p = part("Eye1",Head,"Really blue","Neon",0,0,Vector3.new(0.1,0.175,0.05))
  414. mesh("Sphere",p,"","",Vector3.new(1,1,1))
  415. weld(Head,p,0.1,0.25,-0.6,0,0,0)
  416. emit(p,"rbxasset://textures/particles/sparkles_main.dds",Color3.new(0,0,1),Color3.new(0,0,0),0.1,0.1,1,"Top",0.5,5000,0.25,200,0,360,true)
  417. p = part("Eye2",Head,"Really blue","Neon",0,0,Vector3.new(0.1,0.175,0.05))
  418. mesh("Sphere",p,"","",Vector3.new(1,1,1))
  419. weld(Head,p,-0.1,0.25,-0.6,0,0,0)
  420. emit(p,"rbxasset://textures/particles/sparkles_main.dds",Color3.new(0,0,1),Color3.new(0,0,0),0.1,0.1,1,"Top",0.5,5000,0.25,200,0,360,true)
  421.  
  422.  
  423. local md2 = Instance.new("Model",char)
  424. md2.Name = "Armor"
  425. p = part("Hood",md2,"Black metallic","Pebble",0,0,Vector3.new(2.2, 2.4, 1.8))
  426. mesh("FileMesh",p,"http://www.roblox.com/asset/?id=85855767","",Vector3.new(1.1,1.1,1.1))
  427. weld(Head,p,0,-0.375,0,0,0,0)
  428. -- Torso Armor
  429. p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(2.05,1.26,1.05))
  430. weld(torso,p,0,-0.375,0,0,0,0)
  431. p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(0.75,0.76,1.05))
  432. weld(torso,p,0.65,0.625,0,0,0,0)
  433. p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(1.025,0.76,0.75))
  434. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  435. weld(torso,p,-0.1,0.625,-0.0075,0,90,0)
  436. p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(1.025,0.76,0.75))
  437. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  438. weld(torso,p,0.1,0.625,-0.01,0,-90,0)
  439. p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(0.75,0.76,1.025))
  440. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  441. weld(torso,p,-0.1,0.625,0.0124,0,0,0)
  442. p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(0.75,0.76,1.05))
  443. weld(torso,p,-0.65,0.625,0,0,0,0)
  444. -- Pants
  445. p = part("Part",md2,"Black","SmoothPlastic",0,0,Vector3.new(1.01,2.01,1.01))
  446. weld(rleg,p,0,0.005,0,0,0,0)
  447. p = part("Part",md2,"Black","SmoothPlastic",0,0,Vector3.new(1.01,2.01,1.01))
  448. weld(lleg,p,0,0.005,0,0,0,0)
  449. --Gauntlet
  450. p = part("Part",md2,"Black","SmoothPlastic",0,0,Vector3.new(1.01,0.25,1.01))
  451. weld(larm,p,0,0,0,0,0,0)
  452. p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(0.05,0.75,0.5))
  453. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  454. weld(larm,p,-0.5,0.15,-0.1,0,0,-20.1)
  455. p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(0.05,0.75,0.5))
  456. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  457. weld(larm,p,-0.5,0.15,0.1,0,180,20.1)
  458. p = part("Part",md2,"Black","SmoothPlastic",0,0,Vector3.new(0.5,0.125,0.375))
  459. mesh("Torso",p,"","",Vector3.new(1,1,1))
  460. weld(larm,p,-0.325,0.15,0,0,90,0)
  461. p = part("Part",md2,"Really blue","Neon",0,0,Vector3.new(0.05,0.5,0.25))
  462. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  463. weld(larm,p,-0.48,-0.15,-0.055,180,0,17.5)
  464. p = part("Part",md2,"Really blue","Neon",0,0,Vector3.new(0,0.4,0.125))
  465. mesh("Sphere",p,"","",Vector3.new(1,1,1))
  466. weld(larm,p,-0.55,0.075,0,0,0,0)
  467.  
  468.  
  469.  
  470.  
  471. for i,v in pairs(md2:children()) do
  472. NoOut(v)
  473. end
  474.  
  475. -- Animations --
  476.  
  477. function Animate()
  478. while true do
  479. wait()
  480. sine = sine + change
  481. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  482. local velderp=RootPart.Velocity.y
  483. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  484. if equipped==true or equipped==false then
  485. if attack==false then
  486. idle=idle+1
  487. else
  488. idle=0
  489. end
  490. if idle>=500 then
  491. if attack==false then
  492. end
  493. end
  494. if RootPart.Velocity.y > 1 and hitfloor==nil then
  495. Anim="Jump"
  496. if attack==false then
  497. hndwld.C0=clerp(hndwld.C0,HDWLD,.3)
  498. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  499. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  500. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(15)),.3)
  501. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(-15)),.3)
  502. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  503. end
  504. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  505. Anim="Fall"
  506. if attack==false then
  507. hndwld.C0=clerp(hndwld.C0,HDWLD,.3)
  508. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  509. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  510. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(15),math.rad(0),math.rad(15)),.3)
  511. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-50),math.rad(0),math.rad(-30)),.3)
  512. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  513. end
  514. elseif torvel<1 and hitfloor~=nil then
  515. Anim="Idle"
  516. if attack==false then
  517. hndwld.C0=clerp(hndwld.C0,HDWLD,.3)
  518. bldw.C0=clerp(bldw.C0,BLDWLD,.3)
  519. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  520. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(17.5)),.3)
  521. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(40)),.3)
  522. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(10),math.rad(10),math.rad(-10)),.3)
  523. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.3)
  524. end
  525. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  526. Anim="Walk"
  527. if attack==false then
  528. change=3
  529. hndwld.C0=clerp(hndwld.C0,HDWLD,.3)
  530. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  531. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  532. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(55),math.rad(0),math.rad(45)),.3)
  533. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-20),math.rad(0),math.rad(-15)),.3)
  534. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  535. end
  536. elseif torvel>=22 and hitfloor~=nil then
  537. Anim="Run"
  538. if attack==false then
  539. end
  540. end
  541. end
  542. end
  543. end
  544.  
  545. delay(0,Animate)
  546.  
  547. -- Attacks --
  548.  
  549. function HadesSlice()
  550. attack = true
  551. Humanoid.WalkSpeed = 8
  552. wait()
  553. for _=0,1,0.1 do
  554. wait()
  555. hndwld.C0=clerp(hndwld.C0,HDWLD*angles(math.rad(90),math.rad(-90),math.rad(45)),.3)
  556. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  557. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  558. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(40)),.3)
  559. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(120),math.rad(50),math.rad(-70)),.3)
  560. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.3)
  561. end
  562. wait(0.05)
  563. htp.Enabled = true
  564. scytrl.Enabled = true
  565. scytrl.Lifetime = 1
  566. snd("rbxassetid://588693579",0.9)
  567. snd("rbxassetid://588737825",1)
  568. for _=0,1,0.1 do
  569. wait()
  570. hndwld.C0=clerp(hndwld.C0,HDWLD*angles(math.rad(22.5),math.rad(0),math.rad(180)),.3)
  571. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  572. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
  573. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(60),math.rad(0),math.rad(40)),.3)
  574. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(10),math.rad(10),math.rad(-10)),.3)
  575. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.3)
  576. end
  577. scytrl.Lifetime = 0.25
  578. scytrl.Enabled = false
  579. htp.Enabled = false
  580. wait(0.15)
  581. attack = false
  582. Humanoid.WalkSpeed = 16
  583. end
  584.  
  585. function Teleport()
  586. attack = true
  587. Humanoid.WalkSpeed = 0
  588. Humanoid.JumpPower = 0
  589. htp.Enabled = true
  590. scytrl.Enabled = true
  591. scytrl.Lifetime = 1
  592. licht = Instance.new("PointLight",Torso)
  593. licht.Brightness = 1000
  594. licht.Range = 0
  595. licht.Color = BrickColor.new("Really blue").Color
  596. fx = Instance.new("Part",char)
  597. fx.Transparency = 1
  598. fx.Anchored, fx.CanCollide = true, false
  599. fx.Position = Torso.Position - Vector3.new(0,2,0)
  600. fx.Size = Vector3.new(25,1,25)
  601. game.Debris:AddItem(fx,2)
  602. fxem = emit(fx,"rbxasset://textures/particles/sparkles_main.dds",Color3.new(0,0,1),Color3.new(0,0,1),2.5,0.1,0.875,"Top",1.5,5000,5,200,0,0,false)
  603. fxem.Enabled = true
  604. fxem2 = emit(Torso,"rbxasset://textures/particles/sparkles_main.dds",Color3.new(0,0,1),Color3.new(0,0,1),2.5,0.1,1,"Top",1.5,5000,0,200,360,360,false)
  605. fxem2.Enabled = true
  606. fxem2.ZOffset = 2
  607. game.Debris:AddItem(fxem2,3)
  608. wait()
  609. for _=0,1,0.1 do
  610. wait()
  611. licht.Range = licht.Range + 1
  612. fx.Rotation = Torso.Rotation + Vector3.new(0,licht.Range*2.5,0)
  613. hndwld.C0=clerp(hndwld.C0,HDWLD*cf(0,5.75,1.5)*angles(math.rad(-33.75),math.rad(70),math.rad(-22)),.3)
  614. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  615. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  616. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(10)),.3)
  617. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(-10)),.3)
  618. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  619. end
  620. wait(0.15)
  621. htp.Enabled = true
  622. scytrl.Enabled = false
  623. scytrl.Lifetime = 0.25
  624. snd("rbxassetid://588734356",0.9)
  625. snd("rbxassetid://588737825",1)
  626. pos = Mouse.Hit.p + Vector3.new(0,2,0)
  627. char.Torso.CFrame = CFrame.new(pos.X,pos.Y,pos.Z)
  628. scytrl.Lifetime = 0.25
  629. scytrl.Enabled = false
  630. htp.Enabled = false
  631. attack = false
  632. Humanoid.JumpPower = 50
  633. Humanoid.WalkSpeed = 16
  634. fxem.Enabled = false
  635. licht:Destroy()
  636. fxem2.Speed = NumberRange.new(10)
  637. fxem2.Enabled = true
  638. game.Debris:AddItem(fx,2)
  639. wait(0.25)
  640. fxem2.Enabled = false
  641. end
  642.  
  643. mouse.KeyDown:connect(function(k)
  644. k=k:lower()
  645. if k=="e" and attack == false then
  646. HadesSlice()
  647. elseif k=="q" and attack == false then
  648. Teleport()
  649. end
  650. end)
  651.  
  652. local con = hitbox.Touched:connect(function(hit)
  653. if attack == true then
  654. if hit.Parent == nil then
  655. return
  656. end
  657. h = hit.Parent:FindFirstChild("Humanoid")
  658. for _, v in pairs(hit.Parent:children()) do
  659. if v:IsA("Humanoid") then
  660. h = v
  661. end
  662. end
  663. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  664. h.Parent:BreakJoints()
  665. end
  666. end
  667. end)
  668.  
  669. local con2 = fhnd.Touched:connect(function(hit)
  670. if attack == true then
  671. if hit.Parent == nil then
  672. return
  673. end
  674. h = hit.Parent:FindFirstChild("Humanoid")
  675. for _, v in pairs(hit.Parent:children()) do
  676. if v:IsA("Humanoid") then
  677. h = v
  678. end
  679. end
  680. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  681. h.Parent:BreakJoints()
  682. end
  683. end
  684. end)
  685.  
  686. -- And, one last thing... --
  687.  
  688. print("Yeox engine loaded.")
  689. wait()
  690. print("Script: Thanatos.")
  691. wait()
  692. print("Have fun.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement