1. --Hats:
  2. --https://www.roblox.com/catalog/4641597671
  3. --https://www.roblox.com/catalog/4655144338
  4. --https://www.roblox.com/catalog/4737030708
  5. --https://www.roblox.com/catalog/4812568734
  6. --https://www.roblox.com/catalog/4904052213
  7. --https://www.roblox.com/catalog/5136154487
  8. --https://www.roblox.com/catalog/5136165463
  9. --https://www.roblox.com/catalog/5197460274
  10. --https://www.roblox.com/catalog/5919093961
  11. local plr = game.Players.LocalPlayer
  12. local mouse = plr:GetMouse()
  13. local char = plr.Character
  14. local hum = char.Humanoid
  15. char.Archivable = true
  16. if char:FindFirstChild("LowerTorso") ~= nil then
  17. char:FindFirstChild("LeftHand"):Destroy()
  18. char:FindFirstChild("RightHand"):Destroy()
  19. char:FindFirstChild("LeftLowerArm"):Destroy()
  20. char:FindFirstChild("RightLowerArm"):Destroy()
  21. char:FindFirstChild("LeftLowerLeg"):Destroy()
  22. char:FindFirstChild("RightLowerLeg"):Destroy()
  23. char:FindFirstChild("LeftFoot"):Destroy()
  24. char:FindFirstChild("RightFoot"):Destroy()
  25. clone = char:FindFirstChild("UpperTorso"):Clone()
  26. clone.Parent = char
  27. clone.Name = "Torso"
  28. char:FindFirstChild("LeftUpperArm").Name = "Left Arm"
  29. char:FindFirstChild("LeftUpperLeg").Name = "Left Leg"
  30. char:FindFirstChild("RightUpperArm").Name = "Right Arm"
  31. char:FindFirstChild("RightUpperLeg").Name = "Right Leg"
  32. char:FindFirstChild("LowerTorso")
  33. rootjk = Instance.new("Motor6D",char.HumanoidRootPart)
  34. rootjk.Name = "RootJoint"
  35. rootjk.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  36. rootjk.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  37. rootjk.CurrentAngle = 0
  38. rootjk.DesiredAngle = 0
  39. rootjk.MaxVelocity = 0.1
  40. rootjk.Part0 = char.HumanoidRootPart
  41. rootjk.Part1 = char.Torso
  42. end
  43. local hed = char.Head
  44. local root = char.HumanoidRootPart
  45. local rootj = root.RootJoint
  46. local tors = char.Torso
  47. local ra = char["Right Arm"]
  48. local la = char["Left Arm"]
  49. local rl = char["Right Leg"]
  50. local ll = char["Left Leg"]
  51. local change = 1
  52. local idle = 0
  53. local sine = 0
  54. local equipped = false
  55. local cam = game.Workspace.CurrentCamera
  56. local CF = CFrame.new
  57. local angles = CFrame.Angles
  58. local titan = false
  59. local Euler = CFrame.fromEulerAnglesXYZ
  60. local Rad = math.rad
  61. local IT = Instance.new
  62. local BrickC = BrickColor.new
  63. local Cos = math.cos
  64. local Acos = math.acos
  65. local Sin = math.sin
  66. local Asin = math.asin
  67. local Abs = math.abs
  68. local Mrandom = math.random
  69. local Floor = math.floor
  70. local head = char["MeshPartAccessory"].Handle
  71. local torso = char["LavaDragon"].Handle
  72. local rightarm = char["LightGuardianWings"].Handle
  73. local rightleg = char["DarkGuardianWings"].Handle
  74. local leftarm = char["RoseGuardianWings"].Handle
  75. local leftleg = char["VenomousGuardianWings"].Handle
  76. local handle1 = char["Meshes/archangelrifleAccessory"].Handle handle1.Parent.Name = "handle1"
  77. local handle2 = char["Meshes/archangelrifleAccessory"].Handle handle2.Parent.Name = "handle2"
  78. local handle3 = char["GlitterFairyWings"].Handle handle3.Parent.Name = "handle3"
  79. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  80. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  81. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  82. ArtificialHB = Instance.new("BindableEvent", script)
  83. ArtificialHB.Name = "Heartbeat"
  84. script:WaitForChild("Heartbeat")
  85. frame = 1 / 90
  86. tf = 0
  87. allowframeloss = false
  88. tossremainder = false
  89. lastframe = tick()
  90. script.Heartbeat:Fire()
  91. game:GetService("RunService").Heartbeat:connect(function(s, p)
  92. tf = tf + s
  93. if tf >= frame then
  94. if allowframeloss then
  95. script.Heartbeat:Fire()
  96. lastframe = tick()
  97. else
  98. for i = 1, math.floor(tf / frame) do
  99. script.Heartbeat:Fire()
  100. end
  101. lastframe = tick()
  102. end
  103. if tossremainder then
  104. tf = 0
  105. else
  106. tf = tf - frame * math.floor(tf / frame)
  107. end
  108. end
  109. end)
  110. function swait(num)
  111. if num == 0 or num == nil then
  112. game:service("RunService").Stepped:wait(0)
  113. else
  114. for i = 0, num do
  115. game:service("RunService").Stepped:wait(0)
  116. end
  117. end
  118. end
  119. function thread(f)
  120. coroutine.resume(coroutine.create(f))
  121. end
  122. function clerp(a, b, t)
  123. local qa = {
  124. QuaternionFromCFrame(a)
  125. }
  126. local qb = {
  127. QuaternionFromCFrame(b)
  128. }
  129. local ax, ay, az = a.x, a.y, a.z
  130. local bx, by, bz = b.x, b.y, b.z
  131. local _t = 1 - t
  132. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  133. end
  134. function QuaternionFromCFrame(cf)
  135. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  136. local trace = m00 + m11 + m22
  137. if trace > 0 then
  138. local s = math.sqrt(1 + trace)
  139. local recip = 0.5 / s
  140. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  141. else
  142. local i = 0
  143. if m00 < m11 then
  144. i = 1
  145. end
  146. if m22 > (i == 0 and m00 or m11) then
  147. i = 2
  148. end
  149. if i == 0 then
  150. local s = math.sqrt(m00 - m11 - m22 + 1)
  151. local recip = 0.5 / s
  152. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  153. elseif i == 1 then
  154. local s = math.sqrt(m11 - m22 - m00 + 1)
  155. local recip = 0.5 / s
  156. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  157. elseif i == 2 then
  158. local s = math.sqrt(m22 - m00 - m11 + 1)
  159. local recip = 0.5 / s
  160. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  161. end
  162. end
  163. end
  164. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  165. local xs, ys, zs = x + x, y + y, z + z
  166. local wx, wy, wz = w * xs, w * ys, w * zs
  167. local xx = x * xs
  168. local xy = x * ys
  169. local xz = x * zs
  170. local yy = y * ys
  171. local yz = y * zs
  172. local zz = z * zs
  173. 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))
  174. end
  175. function QuaternionSlerp(a, b, t)
  176. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  177. local startInterp, finishInterp
  178. if cosTheta >= 1.0E-4 then
  179. if 1 - cosTheta > 1.0E-4 then
  180. local theta = math.acos(cosTheta)
  181. local invSinTheta = 1 / Sin(theta)
  182. startInterp = Sin((1 - t) * theta) * invSinTheta
  183. finishInterp = Sin(t * theta) * invSinTheta
  184. else
  185. startInterp = 1 - t
  186. finishInterp = t
  187. end
  188. elseif 1 + cosTheta > 1.0E-4 then
  189. local theta = math.acos(-cosTheta)
  190. local invSinTheta = 1 / Sin(theta)
  191. startInterp = Sin((t - 1) * theta) * invSinTheta
  192. finishInterp = Sin(t * theta) * invSinTheta
  193. else
  194. startInterp = t - 1
  195. finishInterp = t
  196. end
  197. 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
  198. end
  199. function rayCast(Position, Direction, Range, Ignore)
  200. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  201. end
  202. local inf = math.huge
  203. local vt = Vector3.new
  204. head.AccessoryWeld:Destroy()
  205. torso.AccessoryWeld:Destroy()
  206. rightarm.AccessoryWeld:Destroy()
  207. rightleg.AccessoryWeld:Destroy()
  208. leftarm.AccessoryWeld:Destroy()
  209. leftleg.AccessoryWeld:Destroy()
  210. handle1.AccessoryWeld:Destroy()
  211. handle2.AccessoryWeld:Destroy()
  212. handle3.AccessoryWeld:Destroy()
  213. torso.SpecialMesh:Destroy()
  214. rightarm.SpecialMesh:Destroy()
  215. rightleg.SpecialMesh:Destroy()
  216. leftarm.SpecialMesh:Destroy()
  217. leftleg.SpecialMesh:Destroy()
  218. handle1.SpecialMesh:Destroy()
  219. handle2.SpecialMesh:Destroy()
  220. handle3.SpecialMesh:Destroy()
  221. ------------align position--------
  222. -----------
  223. --torso
  224. local hat2 = Instance.new("Part",tors)
  225. hat2.Name = "torso"
  226. hat2.Position = char.Torso.Position
  227. hat2.Size = torso.Size
  228. hat2.Transparency = 1
  229. hat2.CanCollide = false
  230. local _ap = Instance.new("AlignPosition",torso)
  231. local _ao = Instance.new("AlignOrientation",torso)
  232. local _att1,_att2,torsweld = Instance.new("Attachment",torso),Instance.new("Attachment",hat2),Instance.new("Weld",hat2)
  233. torsweld.Part0,torsweld.Part1 = hat2,tors
  234. torsweld.C1 = CFrame.new(0,1.195,0)
  235. _ap.MaxForce = 1.7976932442896e+38
  236. _ap.MaxVelocity = inf
  237. _ap.ReactionForceEnabled = false
  238. _ap.Responsiveness = 200
  239. _ap.Attachment0 = _att1
  240. _ap.Attachment1 = _att2
  241. _ao.MaxTorque = inf
  242. _ao.MaxAngularVelocity = inf
  243. _ao.ReactionTorqueEnabled = true
  244. _ao.Responsiveness = 200
  245. _ao.Attachment0 = _att1
  246. _ao.Attachment1 = _att2
  247. _att2.Orientation = vt(0,0,0)
  248. _att2.Position = vt(0,8,0)
  249. -----------
  250. local hat1 = Instance.new("Part",torso)
  251. hat1.Name = "head"
  252. hat1.Size = head.Size
  253. hat1.Transparency = 1
  254. hat1.CanCollide = false
  255. local ap = Instance.new("AlignPosition",head)
  256. local ao = Instance.new("AlignOrientation",head)
  257. local att1,att2,weld = Instance.new("Attachment",head),Instance.new("Attachment",hat1),Instance.new("Weld",hat1)
  258. weld.Part0,weld.Part1 = hat1,torso
  259. weld.C1 = CF(0.0500011444, 4.75, 0.130000114) *angles(Rad(0),Rad(0),Rad(0))
  260. ap.MaxForce = 1.7976932442896e+38
  261. ap.MaxVelocity = inf
  262. ap.ReactionForceEnabled = false
  263. ap.Responsiveness = 200
  264. ap.Attachment0 = att1
  265. ap.Attachment1 = att2
  266. ao.MaxTorque = inf
  267. ao.MaxAngularVelocity = inf
  268. ao.ReactionTorqueEnabled = false
  269. ao.Responsiveness = 200
  270. ao.Attachment0 = att1
  271. ao.Attachment1 = att2
  272. att2.Orientation = vt(0, 0, 0)
  273. att2.Position = vt(0,0,0)
  274. -----------
  275. --right arm
  276. local hat2 = Instance.new("Part",torso)
  277. hat2.Name = "rightarm"
  278. hat2.Size = rightarm.Size
  279. hat2.Position = char.Torso.Position
  280. hat2.Transparency = 1
  281. hat2.CanCollide = false
  282. local _ap = Instance.new("AlignPosition",rightarm)
  283. local _ao = Instance.new("AlignOrientation",rightarm)
  284. local _att1,_att2,_weld = Instance.new("Attachment",rightarm),Instance.new("Attachment",hat2),Instance.new("Weld",hat2)
  285. _weld.Part0,_weld.Part1 = hat2,torso
  286. _weld.C1 = CF(4.23, -1.25, 0) * angles(Rad(0), Rad(90), Rad(90))
  287. _ap.MaxForce = 1.7976932442896e+38
  288. _ap.MaxVelocity = inf
  289. _ap.ReactionForceEnabled = false
  290. _ap.Responsiveness = 200
  291. _ap.Attachment0 = _att1
  292. _ap.Attachment1 = _att2
  293. _ao.MaxTorque = inf
  294. _ao.MaxAngularVelocity = inf
  295. _ao.ReactionTorqueEnabled = false
  296. _ao.Responsiveness = 200
  297. _ao.Attachment0 = _att1
  298. _ao.Attachment1 = _att2
  299. _att2.Orientation = vt(0, 0,0)
  300. _att2.Position = vt(0, 0, 0)
  301. -----------
  302. --left arm
  303. local hat2 = Instance.new("Part",torso)
  304. hat2.Name = "leftarm"
  305. hat2.Size = leftarm.Size
  306. hat2.Transparency = 1
  307. hat2.CanCollide = false
  308. local _ap = Instance.new("AlignPosition",leftarm)
  309. local _ao = Instance.new("AlignOrientation",leftarm)
  310. local _att1,_att2,_weld = Instance.new("Attachment",leftarm),Instance.new("Attachment",hat2),Instance.new("Weld",hat2)
  311. _weld.Part0,_weld.Part1 = hat2,torso
  312. _weld.C1 = CF(-4.23, -1.25, 0) * angles(Rad(0), Rad(90), Rad(90))
  313. _ap.MaxForce = 1.7976932442896e+38
  314. _ap.MaxVelocity = inf
  315. _ap.ReactionForceEnabled = false
  316. _ap.Responsiveness = 200
  317. _ap.Attachment0 = _att1
  318. _ap.Attachment1 = _att2
  319. _ao.MaxTorque = inf
  320. _ao.MaxAngularVelocity = inf
  321. _ao.ReactionTorqueEnabled = false
  322. _ao.Responsiveness = 200
  323. _ao.Attachment0 = _att1
  324. _ao.Attachment1 = _att2
  325. _att2.Orientation = vt(0,0,0)
  326. _att2.Position = vt(0,0,0)
  327. -----------
  328. --right leg
  329. local hat2 = Instance.new("Part",torso)
  330. hat2.Name = "rightleg"
  331. hat2.Size = rightleg.Size
  332. hat2.Transparency = 1
  333. hat2.CanCollide = false
  334. local _ap = Instance.new("AlignPosition",rightleg)
  335. local _ao = Instance.new("AlignOrientation",rightleg)
  336. local _att1,_att2,_weld = Instance.new("Attachment",rightleg),Instance.new("Attachment",hat2),Instance.new("Weld",hat2)
  337. _weld.Part0,_weld.Part1 = hat2,torso
  338. _ap.MaxForce = 1.7976932442896e+38
  339. _ap.MaxVelocity = inf
  340. _ap.ReactionForceEnabled = false
  341. _ap.Responsiveness = 200
  342. _ap.Attachment0 = _att1
  343. _ap.Attachment1 = _att2
  344. _ao.MaxTorque = inf
  345. _ao.MaxAngularVelocity = inf
  346. _ao.ReactionTorqueEnabled = false
  347. _ao.Responsiveness = 200
  348. _ao.Attachment0 = _att1
  349. _ao.Attachment1 = _att2
  350. _att2.Orientation = vt(0, -90.39, 90)
  351. _att2.Position = vt(1.72999954, -7.63000011, 0)
  352. -----------
  353. --left leg
  354. local hat2 = Instance.new("Part",torso)
  355. hat2.Name = "leftleg"
  356. hat2.Size = leftleg.Size
  357. hat2.Transparency = 1
  358. hat2.CanCollide = false
  359. local _ap = Instance.new("AlignPosition",leftleg)
  360. local _ao = Instance.new("AlignOrientation",leftleg)
  361. local _att1,_att2,_weld = Instance.new("Attachment",leftleg),Instance.new("Attachment",hat2),Instance.new("Weld",hat2)
  362. _weld.Part0,_weld.Part1 = hat2,torso
  363. _ap.MaxForce = 1.7976932442896e+38
  364. _ap.MaxVelocity = inf
  365. _ap.ReactionForceEnabled = false
  366. _ap.Responsiveness = 200
  367. _ap.Attachment0 = _att1
  368. _ap.Attachment1 = _att2
  369. _ao.MaxTorque = inf
  370. _ao.MaxAngularVelocity = inf
  371. _ao.ReactionTorqueEnabled = false
  372. _ao.Responsiveness = 200
  373. _ao.Attachment0 = _att1
  374. _ao.Attachment1 = _att2
  375. _att2.Orientation = vt(0, -90.39, 90)
  376. _att2.Position = vt(-1.56000137, -7.63000011, 0)
  377. -----------
  378. --handle1
  379. local hat2 = Instance.new("Part",leftarm)
  380. hat2.Name = "handle1"
  381. hat2.Size = handle1.Size
  382. hat2.Transparency = 1
  383. hat2.CanCollide = false
  384. local ap = Instance.new("AlignPosition",handle1)
  385. local ao = Instance.new("AlignOrientation",handle1)
  386. local att1,att2,HANDLEWELD = Instance.new("Attachment",handle1),Instance.new("Attachment",hat2),Instance.new("Weld",hat2)
  387. HANDLEWELD.Part0,HANDLEWELD.Part1 = hat2,leftarm
  388. HANDLEWELD.C1 = CF(-4.5,-4,0) *angles(Rad(0),Rad(0),Rad(-90))
  389. ap.MaxForce = 1.7976932442896e+38
  390. ap.MaxVelocity = inf
  391. ap.ReactionForceEnabled = false
  392. ap.Responsiveness = 200
  393. ap.Attachment0 = att1
  394. ap.Attachment1 = att2
  395. ao.MaxTorque = inf
  396. ao.MaxAngularVelocity = inf
  397. ao.ReactionTorqueEnabled = false
  398. ao.Responsiveness = 200
  399. ao.Attachment0 = att1
  400. ao.Attachment1 = att2
  401. att2.Orientation = vt(0,0,0)
  402. att2.Position = vt(0,0,0)
  403. -----------
  404. --handle2
  405. local hat2 = Instance.new("Part",handle1)
  406. hat2.Name = "handle2"
  407. hat2.Size = handle2.Size
  408. hat2.Transparency = 1
  409. hat2.CanCollide = false
  410. local ap = Instance.new("AlignPosition",handle2)
  411. local ao = Instance.new("AlignOrientation",handle2)
  412. local att1,att2,weld = Instance.new("Attachment",handle2),Instance.new("Attachment",hat2),Instance.new("Weld",hat2)
  413. weld.Part0,weld.Part1 = hat2,handle1
  414. weld.C1 = CF(6.4,0,0)
  415. ap.MaxForce = 1.7976932442896e+38
  416. ap.MaxVelocity = inf
  417. ap.ReactionForceEnabled = false
  418. ap.Responsiveness = 200
  419. ap.Attachment0 = att1
  420. ap.Attachment1 = att2
  421. ao.MaxTorque = inf
  422. ao.MaxAngularVelocity = inf
  423. ao.ReactionTorqueEnabled = false
  424. ao.Responsiveness = 200
  425. ao.Attachment0 = att1
  426. ao.Attachment1 = att2
  427. att2.Orientation = vt(0,0,0)
  428. att2.Position = vt(0,0,0)
  429. -----------
  430. --handle3
  431. local hat2 = Instance.new("Part",handle1)
  432. hat2.Name = "handle2"
  433. hat2.Size = handle3.Size
  434. hat2.Transparency = 1
  435. hat2.CanCollide = false
  436. local ap = Instance.new("AlignPosition",handle3)
  437. local ao = Instance.new("AlignOrientation",handle3)
  438. local att1,att2,weld = Instance.new("Attachment",handle3),Instance.new("Attachment",hat2),Instance.new("Weld",hat2)
  439. weld.Part0,weld.Part1 = hat2,handle1
  440. weld.C1 = CF(13.2,0,0)
  441. ap.MaxForce = 1.7976932442896e+38
  442. ap.MaxVelocity = inf
  443. ap.ReactionForceEnabled = false
  444. ap.Responsiveness = 200
  445. ap.Attachment0 = att1
  446. ap.Attachment1 = att2
  447. ao.MaxTorque = inf
  448. ao.MaxAngularVelocity = inf
  449. ao.ReactionTorqueEnabled = false
  450. ao.Responsiveness = 200
  451. ao.Attachment0 = att1
  452. ao.Attachment1 = att2
  453. att2.Orientation = vt(0,0,0)
  454. att2.Position = vt(0,0,0)
  455. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  456. local neck = torso.head["Weld"]
  457. RW = torso.rightarm.Weld
  458. LW = torso.leftarm.Weld
  459. RH = torso.rightleg.Weld
  460. LH = torso.leftleg.Weld
  461. Player_Size = 1
  462. mouse.KeyDown:connect(function(key)
  463. if string.byte(key) == 48 then
  464. Swing = 2
  465. hum.WalkSpeed = 40
  466. end
  467. end)
  468. mouse.KeyUp:connect(function(key)
  469. if string.byte(key) == 48 then
  470. Swing = 1
  471. hum.WalkSpeed = 8
  472. end
  473. end)
  474. stalker = false
  475. function attackrel()
  476. titan = true
  477. for i = 0,5,0.1 do
  478. swait()
  479. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,12.5,0),0.15)
  480. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  481. neck.C0 = clerp(neck.C0, necko* CF(0,0,-1) * angles(Rad(90), Rad(180), Rad(0)), 0.15)
  482. torsweld.C0 = clerp(torsweld.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  483. RW.C0 = clerp(RW.C0, CF(5.5,-5,0) * angles(Rad(-15) , Rad(35) , Rad(-225)), 0.15)
  484. LW.C0 = clerp(LW.C0, CF(5.5,-5,0) * angles(Rad(15) , Rad(-35) , Rad(-225)), 0.15)
  485. HANDLEWELD.C1 = CF(-4.5,4,0) *angles(Rad(15),Rad(-55),Rad(135))
  486. HANDLEWELD.C0 = CF(0,-3,0) *angles(Rad(0),Rad(15),Rad(-45))
  487. end
  488. swait(1)
  489. for i = 0,2,0.1 do
  490. swait()
  491. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,12.5,0),0.15)
  492. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  493. neck.C0 = clerp(neck.C0, necko* CF(0,0,-1) * angles(Rad(90), Rad(180), Rad(0)), 0.15)
  494. torsweld.C0 = clerp(torsweld.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  495. RW.C0 = clerp(RW.C0, CF(5.5-2.5,2+1*i,0) * angles(Rad(-15) , Rad(35) , Rad(-100+38.5*i)), 0.15)
  496. LW.C0 = clerp(LW.C0, CF(5.5-2.5,2+1*i,0) * angles(Rad(15) , Rad(-35) , Rad(-100+38.5*i)), 0.15)
  497. HANDLEWELD.C1 = CF(-4.5,4,0) *angles(Rad(15),Rad(-55),Rad(135))
  498. HANDLEWELD.C0 = CF(0,-3,0) *angles(Rad(0),Rad(15),Rad(-45))
  499. end
  500. swait(3)
  501. titan = false
  502. end
  503. mouse.KeyDown:connect(function(key)
  504. if titan == false then
  505. if key == 'e' and stalker == false then
  506. stalker = true
  507. HANDLEWELD.Part1 = torso
  508. elseif key == 'e' and stalker == true then
  509. stalker = false
  510. HANDLEWELD.Part1 = leftarm
  511. end
  512. end
  513. end)
  514. mouse.Button1Down:Connect(function()
  515. if titan == false and stalker == false then
  516. titan = true
  517. attackrel()
  518. HANDLEWELD.C1 = CF(-4.5,-4,0) *angles(Rad(0),Rad(0),Rad(-90))
  519. HANDLEWELD.C0 = CF(0,-3,0) *angles(Rad(0),Rad(15),Rad(-45))
  520. end
  521. end)
  522. while true do
  523. swait()
  524. sine = sine + change
  525. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  526. local velderp = root.Velocity.y
  527. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  528. if hitfloor == nil then
  529. cankick = true
  530. else
  531. cankick = false
  532. end
  533. if equipped == true or equipped == false then
  534. if titan == false then
  535. idle = idle + 1
  536. else
  537. idle = 0
  538. end
  539. if 1 < root.Velocity.y and hitfloor == nil then
  540. Anim = "Jump"
  541. if titan == false or titan == true or stalker == false then
  542. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  543. RH.C0 = clerp(RH.C0, CF(0,-2,2.5) * angles(Rad(45),Rad(0),Rad(0)), 0.15)
  544. LH.C0 = clerp(LH.C0, CF(0,-2,2.5) * angles(Rad(45),Rad(0),Rad(0)), 0.15)
  545. end
  546. if titan == false and stalker == false then
  547. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,12.5,0),0.15)
  548. RW.C0 = clerp(RW.C0, CF(6.5,2,2) * angles(Rad(0),Rad(-35),Rad(-150)), 0.15)
  549. LW.C0 = clerp(LW.C0, CF(6.5,2,-2) * angles(Rad(0),Rad(35),Rad(-150)), 0.15)
  550. torsweld.C0 = clerp(torsweld.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  551. end
  552. if titan == false and stalker == true then
  553. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,12.5,0),0.15)
  554. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  555. RH.C0 = clerp(RH.C0, CF(0,-2,2.5) * angles(Rad(45),Rad(0),Rad(0)), 0.15)
  556. LH.C0 = clerp(LH.C0, CF(0,-2,2.5) * angles(Rad(45),Rad(0),Rad(0)), 0.15)
  557. RW.C0 = clerp(RW.C0, CF(6.5,2,2) * angles(Rad(0),Rad(-35),Rad(-150)), 0.15)
  558. LW.C0 = clerp(LW.C0, CF(6.5,2,-2) * angles(Rad(0),Rad(35),Rad(-150)), 0.15)
  559. end
  560. elseif -1 > root.Velocity.y and hitfloor == nil then
  561. Anim = "Fall"
  562. if titan == false or titan == true or stalker == false then
  563. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  564. RH.C0 = clerp(RH.C0, CF(0* Player_Size, 0,0) * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  565. LH.C0 = clerp(LH.C0, CF(0* Player_Size, 0,0) * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  566. end
  567. if titan == false and stalker == false then
  568. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,12.5,0),0.15)
  569. RW.C0 = clerp(RW.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0) , Rad(0) , Rad(0)), 0.15)
  570. LW.C0 = clerp(LW.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0) , Rad(0) , Rad(0)), 0.15)
  571. torsweld.C0 = clerp(torsweld.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  572. end
  573. if titan == false and stalker == true then
  574. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,12.5,0),0.15)
  575. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  576. RH.C0 = clerp(RH.C0, CF(0* Player_Size, 0,0) * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  577. LH.C0 = clerp(LH.C0, CF(0* Player_Size, 0,0) * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  578. RW.C0 = clerp(RW.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0) , Rad(0) , Rad(0)), 0.15)
  579. LW.C0 = clerp(LW.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0) , Rad(0) , Rad(0)), 0.15)
  580. end
  581. elseif torvel < 1 and hitfloor ~= nil then
  582. Anim = "Idle"
  583. change = 1
  584. if titan == false or titan == true or stalker == false then
  585. RH.C0 = clerp(RH.C0, CF(0* Player_Size, 0,0) * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  586. LH.C0 = clerp(LH.C0, CF(0* Player_Size, 0,0) * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  587. neck.C0 = clerp(neck.C0, necko* CF(0,0,-1) * angles(Rad(90), Rad(180), Rad(0)), 0.15)
  588. end
  589. if titan == false and stalker == false then
  590. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,12.5,0),0.15)
  591. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  592. RW.C0 = clerp(RW.C0, CF(0,0,0) * angles(Rad(0) , Rad(0) , Rad(0)), 0.15)
  593. LW.C0 = clerp(LW.C0, CF(4, 0, 0) * angles(Rad(15) , Rad(0) , Rad(-125)), 0.15)
  594. HANDLEWELD.C1 = CF(-4.5,-4,0) *angles(Rad(0),Rad(0),Rad(-90))
  595. HANDLEWELD.C0 = CF(0,-3,0) *angles(Rad(0),Rad(15),Rad(-45))
  596. end
  597. if titan == false and stalker == true then
  598. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,12.5,0),0.15)
  599. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  600. neck.C0 = clerp(neck.C0, necko* CF(0,0,-1) * angles(Rad(135), Rad(-180), Rad(0)), 0.15)
  601. torsweld.C0 = clerp(torsweld.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(75), Rad(0) , Rad(0)), 0.15)
  602. RH.C0 = clerp(RH.C0, CF(0, -2,-2) * angles(Rad(-50), Rad(0), Rad(0)), 0.3)
  603. LH.C0 = clerp(LH.C0, CF(0, -2,-2) * angles(Rad(-50), Rad(0), Rad(0)), 0.3)
  604. RW.C0 = clerp(RW.C0, CF(1.5,2,0) * angles(Rad(0) , Rad(0) , Rad(-75)), 0.15)
  605. LW.C0 = clerp(LW.C0, CF(1.5,2,0) * angles(Rad(0) , Rad(0) , Rad(-75)), 0.15)
  606. HANDLEWELD.C1 = CF(-2,2,2.5) *angles(Rad(0),Rad(0),Rad(-90))
  607. HANDLEWELD.C0 = CF(0,0,0) *angles(Rad(0),Rad(0),Rad(-45))
  608. end
  609. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  610. Anim = "Walk"
  611. change = 1
  612. if titan == false or titan == true or stalker == false then
  613. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, .575 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(15- 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(0)), 0.15)
  614. RH.C0 = clerp(RH.C0, CF(0* Player_Size, .2* Player_Size,-.1* Player_Size) * angles(Rad(-15 - 15 * Cos(sine / 35)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(0 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  615. LH.C0 = clerp(LH.C0, CF(0* Player_Size, .2* Player_Size, -.1* Player_Size) * angles(Rad(-15 + 15 * Cos(sine / 35)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-0 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  616. end
  617. if titan == false and stalker == false then
  618. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,12.5,0),0.15)
  619. RW.C0 = clerp(RW.C0, CF(1.5+1.5*Cos(sine/12),1+2*Cos(sine/12),0) * angles( Rad(0) , Rad(0),Rad(-22.5-45*Cos(sine/12)) ), 0.15)
  620. LW.C0 = clerp(LW.C0, CF(6.5,2,-2) * angles(Rad(0),Rad(35),Rad(-150)), 0.15)
  621. torsweld.C0 = clerp(torsweld.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  622. HANDLEWELD.C1 = CF(-4.5,-4,0) *angles(Rad(0),Rad(0),Rad(-90))
  623. HANDLEWELD.C0 = CF(0,-3,0) *angles(Rad(0),Rad(15),Rad(-45))
  624. end
  625. if titan == false and stalker == true then
  626. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,2,0),0.15)
  627. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  628. torsweld.C0 = clerp(torsweld.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(75), Rad(0) , Rad(0)), 0.15)
  629. --neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(90), Rad(180), Rad(0) - hed.RotVelocity.Y / 15), 0.15)
  630. RH.C0 = clerp(RH.C0, CF(0, -2,-2) * angles(Rad(-50-35*Cos(sine/12)), Rad(0), Rad(0)), 0.3)
  631. LH.C0 = clerp(LH.C0, CF(0, -2,-2) * angles(Rad(-50+35*Cos(sine/12)), Rad(0), Rad(0)), 0.3)
  632. RW.C0 = clerp(RW.C0, CF(1.5,2,0) * angles(Rad(0) , Rad(0) , Rad(-75)), 0.15)
  633. LW.C0 = clerp(LW.C0, CF(1.5,2,0) * angles(Rad(0) , Rad(0) , Rad(-75)), 0.15)
  634. HANDLEWELD.C1 = CF(-2,2,2.5) *angles(Rad(0),Rad(0),Rad(-90))
  635. HANDLEWELD.C0 = CF(0,0,0) *angles(Rad(0),Rad(0),Rad(-45))
  636. end
  637. elseif torvel >= 22 and hitfloor ~= nil then
  638. Anim = "Sprint"
  639. change = 1.35
  640. if stalker == false and titan == false or titan == true then
  641. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, .575 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  642. RH.C0 = clerp(RH.C0, CF(0* Player_Size, .2* Player_Size,-.25+.25*Cos(sine/12)* Player_Size) * angles(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(0 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  643. LH.C0 = clerp(LH.C0, CF(0* Player_Size, .2* Player_Size, -.25+.25*Cos(sine/12)* Player_Size) * angles(Rad(-15 + 35 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-0 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  644. end
  645. if titan == false and stalker == false then
  646. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,12.5,0),0.15)
  647. RW.C0 = clerp(RW.C0, CF(1.5+1.5*Cos(sine/12),1+2*Cos(sine/12),0) * angles( Rad(0) , Rad(0),Rad(-45-90*Cos(sine/12)) ), 0.15)
  648. LW.C0 = clerp(LW.C0, CF(1.5-1.5*Cos(sine/12),1-2*Cos(sine/12),0) * angles( Rad(0) , Rad(0),Rad(-45+90*Cos(sine/12))), 0.15)
  649. torsweld.C0 = clerp(torsweld.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  650. HANDLEWELD.C1 = CF(-4.5,-4,0) *angles(Rad(0),Rad(0),Rad(-90))
  651. HANDLEWELD.C0 = CF(0,-3,0) *angles(Rad(0),Rad(15),Rad(-45))
  652. end
  653. if titan == false and stalker == true then
  654. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,2,0),0.15)
  655. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(0), Rad(0) , Rad(0)), 0.15)
  656. torsweld.C0 = clerp(torsweld.C0, CF(0* Player_Size, 0* Player_Size, 0) * angles(Rad(75), Rad(0) , Rad(0)), 0.15)
  657. RH.C0 = clerp(RH.C0, CF(0,-2+1*Sin(sine/12),-1) * angles(Rad(-50+50*Sin(sine/12)), Rad(0), Rad(0)), 0.3)
  658. LH.C0 = clerp(LH.C0, CF(0,-2+1*Sin(sine/12),-1) * angles(Rad(-50+50*Sin(sine/12)), Rad(0), Rad(0)), 0.3)
  659. RW.C0 = clerp(RW.C0, CF(1.5+1*Sin(sine/12),2-1*Sin(sine/12),0) * angles(Rad(0) , Rad(0) , Rad(-50-50*2*Sin(sine/12))), 0.15)
  660. LW.C0 = clerp(LW.C0, CF(1.5+1*Sin(sine/12),2-1*Sin(sine/12),0) * angles(Rad(0) , Rad(0) , Rad(-50-50*2*Sin(sine/12))), 0.15)
  661. HANDLEWELD.C1 = CF(-2,2,2.5) *angles(Rad(0),Rad(0),Rad(-90))
  662. HANDLEWELD.C0 = CF(0,0,0) *angles(Rad(0),Rad(0),Rad(-45))
  663. end
  664. end
  665. end
  666. end