Advertisement
creativenico

GIANT FE SCRIPT

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