Advertisement
Diegolas97

yes

Oct 31st, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.44 KB | None | 0 0
  1. -- Retributor
  2.  
  3. -- Written by yeox769
  4.  
  5. -- Version 0.6
  6.  
  7.  
  8. wait(0.5)
  9. Player=game:GetService("Players").LocalPlayer
  10. Character=Player.Character
  11. PlayerGui=Player.PlayerGui
  12. Backpack=Player.Backpack
  13. Torso=Character.Torso
  14. Head=Character.Head
  15. Humanoid=Character.Humanoid
  16. m=Instance.new('Model',Character)
  17. LeftArm=Character["Left Arm"]
  18. LeftLeg=Character["Left Leg"]
  19. RightArm=Character["Right Arm"]
  20. RightLeg=Character["Right Leg"]
  21. LS=Torso["Left Shoulder"]
  22. LH=Torso["Left Hip"]
  23. RS=Torso["Right Shoulder"]
  24. RH=Torso["Right Hip"]
  25. Face = Head.face
  26. Neck=Torso.Neck
  27. it=Instance.new
  28. attacktype=1
  29. vt=Vector3.new
  30. cf=CFrame.new
  31. euler=CFrame.fromEulerAnglesXYZ
  32. angles=CFrame.Angles
  33. cloaked=false
  34. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  36. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  37. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  38. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  39. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  40. RootPart=Character.HumanoidRootPart
  41. RootJoint=RootPart.RootJoint
  42. RootCF=euler(-1.57,0,3.14)
  43. attack = false
  44. attackdebounce = false
  45. deb=false
  46. equipped=true
  47. hand=false
  48. MMouse=nil
  49. combo=0
  50. trispeed=.2
  51. attackmode='none'
  52. local idle=0
  53. local Anim="Idle"
  54.  
  55. it = Instance.new
  56.  
  57. -- Music --
  58. z = it("Sound",PlayerGui)
  59. z.Name = "musiccc"
  60. z.Looped = true
  61. z.SoundId = "rbxassetid://251935616"
  62. z.Volume = 0
  63. z:Play()
  64.  
  65. function fadeInTheme()
  66. for i=0,0.8,0.02 do
  67. z.Volume = i
  68. wait()
  69. end
  70. end
  71.  
  72. delay(0,fadeInTheme)
  73.  
  74. -- Functions --
  75.  
  76. local inv = function()
  77. while true do
  78. wait()
  79. Humanoid.MaxHealth = math.huge
  80. Humanoid.Health = math.huge
  81. if Character:FindFirstChild("ForceField") == nil then
  82. local ff = it("ForceField",Character)
  83. ff.Visible = false
  84. end
  85. end
  86. end
  87.  
  88. delay(0,inv)
  89.  
  90. local sndfx = function(id,ply,vol,timedel)
  91. local sd = it("Sound",Character)
  92. sd.SoundId,sd.PlaybackSpeed,sd.Volume = id,ply,vol
  93. sd:Play()
  94. game:GetService("Debris"):AddItem(sd,timedel)
  95. return sd
  96. end
  97.  
  98. local part = function(name,parent,brkclr,mtrl,rfl,trns,sz)
  99. local prt = it("Part",parent)
  100. prt.Name = name
  101. prt.CanCollide = false
  102. prt.BrickColor = BrickColor.new(brkclr)
  103. if brkclr == "Really black" and mtrl == "Neon" then prt.Color = Color3.new(0,0,0) end
  104. prt.Material = mtrl
  105. prt.Reflectance = rfl
  106. prt.Transparency = trns
  107. prt.Size = sz
  108. prt.Anchored = true
  109. return prt
  110. end
  111. local mesh = function(meshtype,parent,meshid,textureid,scale)
  112. local msh = it("SpecialMesh",parent)
  113. if meshtype == "FileMesh" then
  114. msh.MeshId = meshid
  115. msh.TextureId = textureid
  116. end
  117. msh.MeshType = meshtype
  118. msh.Scale = scale
  119. return(msh)
  120. end
  121. local weld = function(part1,part2,x1,y1,z1,x2,y2,z2)
  122. local w = it("Weld",part1)
  123. w.Part0 = part1
  124. w.Part1 = part2
  125. if part1.Anchored or part2.Anchored then
  126. part1.Anchored = false
  127. part2.Anchored = false
  128. end
  129. w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(z2),math.rad(y2),math.rad(x2)))
  130. return(w)
  131. end
  132. local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang)
  133. local emm = it("ParticleEmitter",parent)
  134. emm.Texture = tex
  135. emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
  136. emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
  137. emm.LightEmission = lightem
  138. emm.EmissionDirection = emdir
  139. emm.Lifetime = NumberRange.new(lif)
  140. emm.Rate = rate
  141. emm.Speed = NumberRange.new(speed)
  142. emm.RotSpeed = NumberRange.new(rotspeed)
  143. emm.SpreadAngle = Vector2.new(sprdang,sprdang)
  144. return(emm)
  145. end
  146.  
  147. function clerp(a,b,t)
  148. local qa = {QuaternionFromCFrame(a)}
  149. local qb = {QuaternionFromCFrame(b)}
  150. local ax, ay, az = a.x, a.y, a.z
  151. local bx, by, bz = b.x, b.y, b.z
  152. local _t = 1-t
  153. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  154. end
  155.  
  156. function QuaternionFromCFrame(cf)
  157. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  158. local trace = m00 + m11 + m22
  159. if trace > 0 then
  160. local s = math.sqrt(1 + trace)
  161. local recip = 0.5/s
  162. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  163. else
  164. local i = 0
  165. if m11 > m00 then
  166. i = 1
  167. end
  168. if m22 > (i == 0 and m00 or m11) then
  169. i = 2
  170. end
  171. if i == 0 then
  172. local s = math.sqrt(m00-m11-m22+1)
  173. local recip = 0.5/s
  174. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  175. elseif i == 1 then
  176. local s = math.sqrt(m11-m22-m00+1)
  177. local recip = 0.5/s
  178. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  179. elseif i == 2 then
  180. local s = math.sqrt(m22-m00-m11+1)
  181. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  182. end
  183. end
  184. end
  185.  
  186. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  187. local xs, ys, zs = x + x, y + y, z + z
  188. local wx, wy, wz = w*xs, w*ys, w*zs
  189. local xx = x*xs
  190. local xy = x*ys
  191. local xz = x*zs
  192. local yy = y*ys
  193. local yz = y*zs
  194. local zz = z*zs
  195. 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))
  196. end
  197.  
  198. function QuaternionSlerp(a, b, t)
  199. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  200. local startInterp, finishInterp;
  201. if cosTheta >= 0.0001 then
  202. if (1 - cosTheta) > 0.0001 then
  203. local theta = math.acos(cosTheta)
  204. local invSinTheta = 1/math.sin(theta)
  205. startInterp = math.sin((1-t)*theta)*invSinTheta
  206. finishInterp = math.sin(t*theta)*invSinTheta
  207. else
  208. startInterp = 1-t
  209. finishInterp = t
  210. end
  211. else
  212. if (1+cosTheta) > 0.0001 then
  213. local theta = math.acos(-cosTheta)
  214. local invSinTheta = 1/math.sin(theta)
  215. startInterp = math.sin((t-1)*theta)*invSinTheta
  216. finishInterp = math.sin(t*theta)*invSinTheta
  217. else
  218. startInterp = t-1
  219. finishInterp = t
  220. end
  221. end
  222. 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
  223. end
  224.  
  225. local sine = 0
  226. local change = 1
  227. local val = 0
  228.  
  229. mouse=Player:GetMouse()
  230. RSH, LSH=nil, nil
  231. --welds
  232. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  233. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  234. LH=Torso["Left Hip"]
  235. RH=Torso["Right Hip"]
  236. TorsoColor=Torso.BrickColor
  237. function NoOutline(Part)
  238. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  239. end
  240. player=Player
  241. ch=Character
  242. RSH=ch.Torso["Right Shoulder"]
  243. LSH=ch.Torso["Left Shoulder"]
  244. --
  245. RSH.Parent=nil
  246. LSH.Parent=nil
  247. --
  248. RW.Name="Right Shoulder"
  249. RW.Part0=ch.Torso
  250. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  251. RW.C1=cf(0, 0.5, 0)
  252. RW.Part1=ch["Right Arm"]
  253. RW.Parent=ch.Torso
  254. --
  255. LW.Name="Left Shoulder"
  256. LW.Part0=ch.Torso
  257. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  258. LW.C1=cf(0, 0.5, 0)
  259. LW.Part1=ch["Left Arm"]
  260. LW.Parent=ch.Torso
  261.  
  262. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  263. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  264. end
  265.  
  266. -- Character Model --
  267.  
  268. for _,v in pairs(Character:GetChildren()) do
  269. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Accessory") then
  270. v:Destroy()
  271. end
  272. end
  273.  
  274. eye = part("Eye",m,"Really red","Neon",0,0,Vector3.new(0.08,0.175,0.05))
  275. mesh("Sphere",eye,"","",Vector3.new(1,1,1))
  276. weld(Head,eye,-0.11,0.2625,-0.59,0,0,0)
  277.  
  278. p = part("Collar1",m,"Black","Sand",0,0,Vector3.new(1,1,1))
  279. weld(Torso,p,0,1.15,0,0,22.5,190)
  280. mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
  281. p = part("Collar2",m,"Black","Sand",0,0,Vector3.new(1,1,1))
  282. weld(Torso,p,0,1.15,0,0,-22.5,190)
  283. mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
  284. p = part("Collar3",m,"Black","Sand",0,0,Vector3.new(1,1,1))
  285. weld(Torso,p,0,0.9,0.1,0,0,-15)
  286. mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
  287.  
  288.  
  289. p = part("Coat1",m,"Black","Sand",0,0,Vector3.new(2.05,1.55,1.05))
  290. weld(Torso,p,0,0.25,0,0,0,0)
  291. p = part("Coat2",m,"Black","Sand",0,0,Vector3.new(0.55,2.05,1.04))
  292. weld(Torso,p,1,-1.25,0,22,0,0)
  293. p = part("Coat3",m,"Black","Sand",0,0,Vector3.new(0.55,2.05,1.04))
  294. weld(Torso,p,-1,-1.25,0,-22,0,0)
  295. p = part("Coat4",m,"Black","Sand",0,0,Vector3.new(2.1,1.05,0.54))
  296. weld(Torso,p,0,-1,0.24,0,0,0)
  297. p = part("Coat5",m,"Black","Sand",0,0,Vector3.new(0.925,0.75,0.54))
  298. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  299. weld(Torso,p,0.3,-0.75,-0.05,90,0,-90)
  300. p = part("Coat6",m,"Black","Sand",0,0,Vector3.new(0.925,0.75,0.54))
  301. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  302. weld(Torso,p,-0.3,-0.75,-0.05,-90,0,-90)
  303. p = part("Coat7",m,"Black","Sand",0,0,Vector3.new(0.975,0.5,0.75))
  304. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  305. weld(Torso,p,-1.4,-2.45,0,90,0,-90)
  306. p = part("Coat8",m,"Black","Sand",0,0,Vector3.new(0.975,0.5,0.75))
  307. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  308. weld(Torso,p,1.4,-2.45,0,-90,0,-90)
  309. p = part("Coat9",m,"Black","Sand",0,0,Vector3.new(1.05,0.5,0.525))
  310. weld(RightLeg,p,0,0.75,0.25,0,0,0)
  311. p = part("Coat10",m,"Black","Sand",0,0,Vector3.new(1.05,0.5,0.525))
  312. weld(LeftLeg,p,0,0.75,0.25,0,0,0)
  313.  
  314. p = part("Sleeves1",m,"Black","Granite",0,0,Vector3.new(1.1,0.5,1.1))
  315. weld(LeftArm,p,0,0.875,0,0,0,0)
  316. p = part("Sleeves2",m,"Black","Sand",0,0,Vector3.new(1.05,1.5,1.05))
  317. weld(LeftArm,p,0,0.25,0,0,0,0)
  318. p = part("Sleeves3",m,"Really red","Neon",0,0,Vector3.new(0.25,0.5,0.5))
  319. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  320. weld(LeftArm,p,-0.41,0.15,0,0,0,0)
  321. p = part("Sleeves4",m,"Really red","Neon",0,0,Vector3.new(0.25,0.075,0.075))
  322. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  323. weld(LeftArm,p,-0.44,0.15,0,0,0,0)
  324. p = part("Sleeves5",m,"Black","Sand",0,0,Vector3.new(0.25,0.375,0.375))
  325. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  326. weld(LeftArm,p,-0.43,0.15,0,0,0,0)
  327. p = part("Sleeves6",m,"Black","Sand",0,0,Vector3.new(0.25,0.75,0.075))
  328. weld(LeftArm,p,-0.42,0.2,0.0375,0,0,-45)
  329. p = part("Sleeves7",m,"Black","Sand",0,0,Vector3.new(0.25,0.75,0.075))
  330. weld(LeftArm,p,-0.42,0.1,-0.0375,0,0,-45)
  331. p = part("Sleeves8",m,"Black","Granite",0,0,Vector3.new(1.1,0.25,1.1))
  332. weld(LeftArm,p,0,-0.4,0,0,0,0)
  333. p = part("Sleeves9",m,"Black","Granite",0,0,Vector3.new(1.1,0.5,1.1))
  334. weld(RightArm,p,0,0.875,0,0,0,0)
  335.  
  336. pr = part("Particles",m,"z","SmoothPlastic",1,1,Vector3.new(0.05,0.05,0.05))
  337. weld(RightArm,pr,0,-1,0,0,0,0)
  338. em = emit(pr,"http://www.roblox.com/asset/?id=241650934",BrickColor.new("Really red").Color,BrickColor.new("Crimson").Color,0.5,0,1,"Top",0.25,500,5,0,0)
  339. em.Acceleration, em.ZOffset, em.SpreadAngle, em.Lifetime, em.VelocityInheritance = Vector3.new(0,40,0), 1, Vector2.new(360,360), NumberRange.new(0.1,0.4), 0.2
  340. prtps = part("PortalPosition",m,"z","SmoothPlastic",1,1,Vector3.new(0.05,0.05,0.05))
  341. weld(RootPart,prtps,0,7.5,2,0,0,0)
  342.  
  343. for _,v in pairs(m:children()) do
  344. NoOutline(v)
  345. end
  346.  
  347. function intro()
  348. wait(2)
  349. local laugh = it("Sound",Character)
  350. laugh.PlaybackSpeed, laugh.Volume, laugh.SoundId = 0.85, 5, "rbxassetid://159882625"
  351. laugh:Play()
  352. game:GetService("Debris"):AddItem(laugh,6)
  353. wait(4)
  354. z.Volume = 1
  355. end
  356.  
  357. delay(0,intro)
  358.  
  359.  
  360. -- Animations --
  361.  
  362. function Animate()
  363. while true do
  364. wait()
  365. sine = sine + change
  366. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  367. local velderp=RootPart.Velocity.y
  368. local hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  369. if equipped==true or equipped==false then
  370. if attack==false then
  371. idle=idle+1
  372. else
  373. idle=0
  374. end
  375. if idle>=500 then
  376. if attack==false then
  377. --Sheath()
  378. end
  379. end
  380. if RootPart.Velocity.y > 1 and hitfloor==nil then
  381. Anim="Jump"
  382. if attack==false then
  383. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  384. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  385. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(15)),.3)
  386. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(-15)),.3)
  387. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  388. end
  389. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  390. Anim="Fall"
  391. if attack==false then
  392. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  393. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  394. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(0),math.rad(30)),.3)
  395. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-50),math.rad(0),math.rad(-30)),.3)
  396. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  397. end
  398. elseif torvel<1 and hitfloor~=nil then
  399. Anim="Idle"
  400. if attack==false then
  401. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  402. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(10)),.3)
  403. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(10)),.3)
  404. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(10),math.rad(10),math.rad(-10)),.3)
  405. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-10)),.3)
  406. end
  407. elseif torvel>2 and hitfloor~=nil then
  408. Anim="Walk"
  409. if attack==false then
  410. change=3
  411. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  412. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  413. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(5)),.3)
  414. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(-5)),.3)
  415. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  416. end
  417. end
  418. end
  419. end
  420. end
  421.  
  422. delay(0,Animate)
  423.  
  424. -- Attacks --
  425.  
  426. function dedportal()
  427. attack = true
  428. Humanoid.WalkSpeed, Humanoid.JumpPower = 0,0
  429. for i=0,1,0.1 do
  430. wait()
  431. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(-20)),.3)
  433. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(150),math.rad(0),math.rad(10)),.3)
  434. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(10),math.rad(10),math.rad(-10)),.3)
  435. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-10)),.3)
  436. end
  437. sndfx("rbxassetid://159882598",0.85,2)
  438. wait(0.5)
  439. local p0rt = part("Portal",Character,"Really black","Neon",0,0,Vector3.new(0,0,0))
  440. p0rt.Position, p0rt.Rotation = prtps.Position, RootPart.Rotation
  441. mesh("Sphere",p0rt,"","",Vector3.new(1,1,0.01))
  442. emit(p0rt,"http://www.roblox.com/asset/?id=241650934",BrickColor.new("Really black").Color,BrickColor.new("Crimson").Color,0.5,0,0,"Front",0.25,500,5,360,360)
  443. local ey1 = part("Eye1",p0rt,"Really red","Neon",0,0,Vector3.new(1,5,0))
  444. ey1.Position, ey1.Rotation = p0rt.Position, p0rt.Rotation + Vector3.new(0,0,-20)
  445. mesh("Sphere",ey1,"","",Vector3.new(1,0,0.01))
  446. ey1.Mesh.Offset = Vector3.new(2,1,-0.01)
  447. local ey2 = part("Eye2",p0rt,"Really red","Neon",0,0,Vector3.new(1,5,0))
  448. ey2.Position, ey2.Rotation = p0rt.Position, p0rt.Rotation + Vector3.new(0,0,20)
  449. mesh("Sphere",ey2,"","",Vector3.new(1,0,0.01))
  450. ey2.Mesh.Offset = Vector3.new(-2,1,-0.01)
  451. for i=0,1,0.1 do
  452. wait()
  453. p0rt.Size = p0rt.Size + Vector3.new(i*2,i*2,0)
  454. p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
  455. end
  456. for i=0,2,0.1 do
  457. wait()
  458. p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
  459. end
  460. for i=0,1,0.1 do
  461. wait()
  462. p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
  463. ey1.Mesh.Scale, ey2.Mesh.Scale = ey1.Mesh.Scale + Vector3.new(0,0.1,0), ey2.Mesh.Scale + Vector3.new(0,0.1,0)
  464. end
  465. game:GetService("Debris"):AddItem(ey1,1.5)
  466. game:GetService("Debris"):AddItem(ey2,1.5)
  467. for i=0,1.5,0.1 do
  468. wait()
  469. p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
  470. end
  471. for c=0,5,0.1 do
  472. wait()
  473. p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
  474. p0rt.Color = Color3.new((c/5),0,0)
  475. end
  476. for i=0,0.5,0.1 do
  477. wait()
  478. p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
  479. end
  480.  
  481. game:GetService("Debris"):AddItem(p0rt,1)
  482. attack = false
  483. Humanoid.WalkSpeed, Humanoid.JumpPower = 18,50
  484. end
  485.  
  486. function RiseUp()
  487. attack = true
  488. local rspsnd = {159882477,
  489. 159972669,
  490. 159882504,
  491. 159882481,
  492. 160212549}
  493. sndfx("rbxassetid://153092348",0.85,2)
  494. sndfx("rbxassetid://"..rspsnd[math.random(1,#rspsnd)],0.85,1.5)
  495. for i=0,1,0.1 do
  496. wait()
  497. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  498. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  499. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(150),math.rad(0),math.rad(10)),.3)
  500. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(10),math.rad(10),math.rad(-10)),.3)
  501. LH.C0=clerp(LH.C0,cf(-1,-1,-0.25)*angles(math.rad(0),math.rad(-80),math.rad(30)),.3)
  502. Torso.Velocity=(Head.CFrame.lookVector+Vector3.new(0,2,0))*50
  503. end
  504. wait(0.125)
  505. attack = false
  506. end
  507.  
  508. function RazorSlice()
  509. attack = true
  510. local rzksnd = {160212842,
  511. 160212812,
  512. 159882497,
  513. 160212549,
  514. 159972657}
  515. sndfx("rbxassetid://"..rzksnd[math.random(1,#rzksnd)],0.85,1.5)
  516. sndfx("rbxassetid://153092205",0.85,0.75)
  517. for i=0,1,0.1 do
  518. wait()
  519. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  520. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  521. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  522. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*euler(0,-1.5,6*i),.3)
  523. LH.C0=clerp(LH.C0,cf(-1,-1,-0.25)*angles(math.rad(0),math.rad(-80),math.rad(30)),.3)
  524. Torso.Velocity=RootPart.CFrame.lookVector*75
  525. end
  526. attack = false
  527. end
  528.  
  529. input = ""
  530. letterd = 0
  531. lastMove = ""
  532. function onKeyDown(key)
  533. if attack == false then
  534. if key == "z" then
  535. if input == "sa" then
  536. print("RISE UP!")
  537. lastMove = "RiseUp"
  538. RiseUp()
  539. end
  540. input=""
  541. letterd = 0
  542. elseif key == "x" then
  543. if input == "ad" and Player.UserId == 180579951 then
  544. print("lol ur ded")
  545. lastMove = "Revengeance"
  546. dedportal()
  547. elseif input == "sa" then
  548. print("RAZOR SLICE!")
  549. lastMove = "RazorSlice"
  550. RazorSlice()
  551. end
  552. input = ""
  553. letterd = 0
  554. elseif (key == "w" or key == "a" or key == "s" or key == "d") then
  555. input=input..key
  556. print(input)
  557. letterd = letterd + 1
  558. if letterd > 5 then
  559. input = ""
  560. letterd = 0
  561. end
  562. elseif key == "m" then
  563. if z.IsPlaying == true then
  564. z:Stop()
  565. z.TimePosition = 0
  566. else
  567. z:Play()
  568. end
  569. end
  570. end
  571. end
  572.  
  573. if mouse then
  574. mouse.KeyDown:connect(onKeyDown)
  575. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement