Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.80 KB | None | 0 0
  1. local repstore = game:WaitForChild("ReplicatedStorage")
  2. local Remote = repstore.ArmoredTitanScripts.ShiftPower
  3. local outOfTitan = 1
  4. charging = true
  5. chargeing = true
  6. tweenService = game:GetService("TweenService")
  7.  
  8. local function makebigger(char)
  9. for _,v in pairs(char.Humanoid:GetChildren()) do
  10. if v:IsA("NumberValue") then
  11. coroutine.wrap(function()
  12. while v.Value <=7 do
  13. v.Value = v.Value + 0.30
  14. wait(.08)
  15. end
  16. end)()
  17. end
  18. end
  19. end
  20. local function makesmaller(char)
  21. for _,v in pairs(char.Humanoid:GetChildren()) do
  22. if v:IsA("NumberValue") then
  23. coroutine.wrap(function()
  24. for i = 1, 20 do
  25. v.Value = v.Value - 0.30
  26. wait()
  27. end
  28. repeat wait() until v.Value == 1
  29. end)()
  30. end
  31. end
  32. end
  33.  
  34. local function sound(char)
  35. local sound = Instance.new("Sound",char.HumanoidRootPart)
  36. sound.Volume = 8
  37. sound.SoundId = "rbxassetid://299402179"
  38. sound:Play()
  39. coroutine.wrap(function()
  40. wait(4)
  41. sound:Destroy()
  42. end)()
  43. end
  44.  
  45.  
  46. local function bolt(char,folder)
  47. local bolt = Instance.new("Part")
  48. bolt.Name = "electrode"
  49. bolt.BrickColor = BrickColor.new("New Yeller")
  50. bolt.Transparency = 0.4
  51. bolt.FormFactor = "Custom"
  52. bolt.Size = Vector3.new(0.3,0.3,0)
  53. bolt.CanCollide = false
  54. bolt.Anchored = true
  55. bolt.Material = "Neon"
  56. local function shootelectrode(from,too)
  57. lastpos = from
  58. local step = math.random(-4,16)
  59. local off = math.random(-8,32)
  60. local distance = (from-too).magnitude
  61. for i = 0, distance, step do
  62. local from = lastpos
  63.  
  64. local cframie = Vector3.new(
  65. math.random(-360,360),
  66. math.random(-360,360),
  67. math.random(-360,360)
  68. )/30
  69.  
  70. local too = from + -(from-too).unit*step + cframie
  71.  
  72. local el = bolt:Clone()
  73. el.Parent = folder
  74. el.Size = Vector3.new(el.Size.x,el.Size.y,(from-too).magnitude)
  75. el.CFrame = CFrame.new( from:Lerp(too,0.5) , too )
  76. coroutine.wrap(function()
  77. while el.Transparency < 1 do
  78. el.Transparency = el.Transparency + 0.15
  79. wait(.06)
  80. end
  81. end)()
  82. game.Debris:AddItem(el,0.3)
  83. lastpos = too
  84.  
  85. end
  86. end
  87. spawn(function()
  88. for i = 1, 70 do
  89. local from = char.HumanoidRootPart.Position
  90. local too = char.HumanoidRootPart.CFrame * Vector3.new(math.random(-200,200),math.random(-40,40),math.random(-200,200))
  91. shootelectrode(from,too)
  92. wait(.03)
  93. end
  94. end)
  95. end
  96.  
  97. --------
  98.  
  99.  
  100. local function bolt2(char,folder)
  101. local bolt2 = Instance.new("Part")
  102. bolt2.Name = "electrode2"
  103. bolt2.BrickColor = BrickColor.new("Neon orange")
  104. bolt2.Transparency = 0.4
  105. bolt2.FormFactor = "Custom"
  106. bolt2.Size = Vector3.new(4,4,0.2)
  107. bolt2.CanCollide = false
  108. bolt2.Anchored = true
  109. bolt2.Material = "Neon"
  110. local function shootelectrode2(from2,too2)
  111. lastpos = from2
  112. local step2 = math.random(-4,16)
  113. local off2 = math.random(-8,32)
  114. local distance2 = (from2-too2).magnitude
  115. for i = 0, distance2, step2 do
  116. local from2 = lastpos
  117.  
  118. local cframie2 = Vector3.new(
  119. math.random(-360,360),
  120. math.random(-360,360),
  121. math.random(-360,360)
  122. )/30
  123.  
  124. local too2 = from2 + -(from2-too2).unit*step2 + cframie2
  125.  
  126. local el2 = bolt2:Clone()
  127. el2.Parent = folder
  128. el2.Size = Vector3.new(el2.Size.x,el2.Size.y,(from2-too2).magnitude)
  129. el2.CFrame = CFrame.new( from2:Lerp(too2,0.5) , too2 )
  130. coroutine.wrap(function()
  131. while el2.Transparency < 1 do
  132. el2.Transparency = el2.Transparency + 0.15
  133. wait(.06)
  134. end
  135. end)()
  136. game.Debris:AddItem(el2,0.3)
  137. lastpos = too2
  138.  
  139. end
  140. end
  141. spawn(function()
  142. for i = 1, 70 do
  143. local from2 = char.HumanoidRootPart.Position
  144. local too2 = char.HumanoidRootPart.CFrame * Vector3.new(0,400,0)
  145. shootelectrode2(from2,too2)
  146. wait(.03)
  147. end
  148. end)
  149. end
  150.  
  151.  
  152. local function ballwave2(char)
  153. local HandCF4 = char.HumanoidRootPart.CFrame
  154.  
  155. local ball = Instance.new("Part",char.HumanoidRootPart)
  156. ball.Name = "Wave21"
  157. ball.CanCollide = false
  158. ball.Locked = false
  159. ball.Shape = "Ball"
  160. ball.Anchored = true
  161. ball.Size = Vector3.new(90,90,90)
  162. ball.TopSurface = "Smooth"
  163. ball.Material = "Neon"
  164. ball.BottomSurface = "Smooth"
  165. ball.Transparency = 0
  166. ball.BrickColor = BrickColor.new("Neon orange")
  167. ball.CFrame = HandCF4
  168. spawn(function()
  169. wait(3.5)
  170. ball:Destroy()
  171. end)
  172. local tweeninfo = TweenInfo.new(
  173. .04,
  174. Enum.EasingStyle.Back,
  175. Enum.EasingDirection.Out,
  176. 120,
  177. true,
  178. .04
  179. )
  180. local properties = {
  181. Size = Vector3.new(85,85,85);
  182. Transparency = 0.3
  183. }
  184. local tween = tweenService:Create(ball,tweeninfo,properties)
  185. tween:Play()
  186. end
  187.  
  188. local function auras(char)
  189. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  190. aura1.Parent = char["Head"]
  191. game.Debris:AddItem(aura1,15)
  192. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  193. aura1.Parent = char["UpperTorso"]
  194. game.Debris:AddItem(aura1,15)
  195. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  196. aura1.Parent = char["LowerTorso"]
  197. game.Debris:AddItem(aura1,15)
  198. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  199. aura1.Parent = char["HumanoidRootPart"]
  200. game.Debris:AddItem(aura1,15)
  201. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  202. aura1.Parent = char["RightUpperLeg"]
  203. game.Debris:AddItem(aura1,15)
  204. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  205. aura1.Parent = char["RightLowerLeg"]
  206. game.Debris:AddItem(aura1,15)
  207. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  208. aura1.Parent = char["RightFoot"]
  209. game.Debris:AddItem(aura1,15)
  210. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  211. aura1.Parent = char["LeftUpperLeg"]
  212. game.Debris:AddItem(aura1,15)
  213. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  214. aura1.Parent = char["LeftFoot"]
  215. game.Debris:AddItem(aura1,15)
  216. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  217. aura1.Parent = char["RightUpperArm"]
  218. game.Debris:AddItem(aura1,15)
  219. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  220. aura1.Parent = char["RightHand"]
  221. game.Debris:AddItem(aura1,15)
  222. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  223. aura1.Parent = char["LeftUpperArm"]
  224. game.Debris:AddItem(aura1,15)
  225. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  226. aura1.Parent = char["LeftLowerArm"]
  227. game.Debris:AddItem(aura1,15)
  228. local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
  229. aura1.Parent = char["LeftHand"]
  230. game.Debris:AddItem(aura1,15)
  231. -------
  232. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  233. aura1.Parent = char["Head"]
  234. game.Debris:AddItem(aura2,15)
  235. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  236. aura2.Parent = char["UpperTorso"]
  237. game.Debris:AddItem(aura2,15)
  238. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  239. aura2.Parent = char["LowerTorso"]
  240. game.Debris:AddItem(aura2,15)
  241. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  242. aura2.Parent = char["HumanoidRootPart"]
  243. game.Debris:AddItem(aura2,15)
  244. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  245. aura2.Parent = char["RightUpperLeg"]
  246. game.Debris:AddItem(aura2,15)
  247. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  248. aura2.Parent = char["RightLowerLeg"]
  249. game.Debris:AddItem(aura2,15)
  250. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  251. aura2.Parent = char["RightFoot"]
  252. game.Debris:AddItem(aura2,15)
  253. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  254. aura2.Parent = char["LeftUpperLeg"]
  255. game.Debris:AddItem(aura2,15)
  256. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  257. aura2.Parent = char["LeftFoot"]
  258. game.Debris:AddItem(aura2,15)
  259. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  260. aura2.Parent = char["RightUpperArm"]
  261. game.Debris:AddItem(aura2,15)
  262. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  263. aura2.Parent = char["RightHand"]
  264. game.Debris:AddItem(aura2,15)
  265. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  266. aura2.Parent = char["LeftUpperArm"]
  267. game.Debris:AddItem(aura2,15)
  268. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  269. aura2.Parent = char["LeftLowerArm"]
  270. game.Debris:AddItem(aura2,15)
  271. local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
  272. aura2.Parent = char["LeftHand"]
  273. game.Debris:AddItem(aura2,15)
  274. -------
  275. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  276. aura3.Parent = char["Head"]
  277. game.Debris:AddItem(aura3,15)
  278. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  279. aura3.Parent = char["UpperTorso"]
  280. game.Debris:AddItem(aura3,15)
  281. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  282. aura3.Parent = char["LowerTorso"]
  283. game.Debris:AddItem(aura3,15)
  284. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  285. aura3.Parent = char["HumanoidRootPart"]
  286. game.Debris:AddItem(aura3,15)
  287. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  288. aura3.Parent = char["RightUpperLeg"]
  289. game.Debris:AddItem(aura3,15)
  290. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  291. aura3.Parent = char["RightLowerLeg"]
  292. game.Debris:AddItem(aura3,15)
  293. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  294. aura3.Parent = char["RightFoot"]
  295. game.Debris:AddItem(aura3,15)
  296. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  297. aura3.Parent = char["LeftUpperLeg"]
  298. game.Debris:AddItem(aura3,15)
  299. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  300. aura3.Parent = char["LeftFoot"]
  301. game.Debris:AddItem(aura3,15)
  302. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  303. aura3.Parent = char["RightUpperArm"]
  304. game.Debris:AddItem(aura3,15)
  305. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  306. aura3.Parent = char["RightHand"]
  307. game.Debris:AddItem(aura3,15)
  308. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  309. aura3.Parent = char["LeftUpperArm"]
  310. game.Debris:AddItem(aura3,15)
  311. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  312. aura3.Parent = char["LeftLowerArm"]
  313. game.Debris:AddItem(aura3,15)
  314. local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
  315. aura3.Parent = char["LeftHand"]
  316. game.Debris:AddItem(aura3,15)
  317. -----
  318. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  319. aura4.Parent = char["Head"]
  320. game.Debris:AddItem(aura4,15)
  321. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  322. aura4.Parent = char["UpperTorso"]
  323. game.Debris:AddItem(aura4,15)
  324. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  325. aura4.Parent = char["LowerTorso"]
  326. game.Debris:AddItem(aura4,15)
  327. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  328. aura4.Parent = char["HumanoidRootPart"]
  329. game.Debris:AddItem(aura4,15)
  330. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  331. aura4.Parent = char["RightUpperLeg"]
  332. game.Debris:AddItem(aura4,15)
  333. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  334. aura4.Parent = char["RightLowerLeg"]
  335. game.Debris:AddItem(aura4,15)
  336. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  337. aura4.Parent = char["RightFoot"]
  338. game.Debris:AddItem(aura4,15)
  339. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  340. aura4.Parent = char["LeftUpperLeg"]
  341. game.Debris:AddItem(aura4,15)
  342. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  343. aura4.Parent = char["LeftFoot"]
  344. game.Debris:AddItem(aura4,15)
  345. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  346. aura4.Parent = char["RightUpperArm"]
  347. game.Debris:AddItem(aura4,15)
  348. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  349. aura4.Parent = char["RightHand"]
  350. game.Debris:AddItem(aura4,15)
  351. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  352. aura4.Parent = char["LeftUpperArm"]
  353. game.Debris:AddItem(aura4,15)
  354. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  355. aura4.Parent = char["LeftLowerArm"]
  356. game.Debris:AddItem(aura4,15)
  357. local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
  358. aura4.Parent = char["LeftHand"]
  359. game.Debris:AddItem(aura4,15)
  360. end
  361.  
  362. Remote.OnServerEvent:Connect(function(player,Mouse,mousehit)
  363. local char = player.Character
  364. local oldBodyDepth = char.Humanoid.BodyDepthScale.Value
  365. local oldBodyHeight = char.Humanoid.BodyDepthScale.Value
  366. local oldBodyProportion = char.Humanoid.BodyProportionScale.Value
  367. local oldBodyType = char.Humanoid.BodyTypeScale.Value
  368. local oldBodyWitdth = char.Humanoid.BodyWidthScale.Value
  369. local oldHeadScale = char.Humanoid.HeadScale.Value
  370. local humanoid = player.Character:WaitForChild("Humanoid")
  371. local folder = workspace:FindFirstChild("DebrisFolder") or Instance.new("Folder", workspace)
  372. local shifting = player.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("SFTBackground").Shifting
  373. local shiftingBar = player.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("SFTBackground").Bar
  374. local IsPlayerShifting = player.Backpack.AttackTitan.IsPlayerShifting
  375. if outOfTitan == 1 then
  376. outOfTitan = 2
  377. makebigger(char)
  378. local titan = Instance.new("NumberValue")
  379. titan.Name = "Titan"
  380. titan.Parent = char
  381. coroutine.wrap(function()
  382. while char:FindFirstChild("Titan") and shifting.Value > 0 do
  383. shifting.Value = shifting.Value - .03
  384. shiftingBar.Size = UDim2.new(shifting.Value / 10, 0, 1, 0)
  385. wait(0.1)
  386. end
  387. end)()
  388.  
  389. IsPlayerShifting.Value = true
  390. folder.Name = "DebrisFolder"
  391. ---=CharacterSettings=---
  392. char.Humanoid.JumpPower = 0
  393. char.Humanoid.WalkSpeed = 0
  394. char.Humanoid.MaxHealth = 300
  395. char.Humanoid.Health = 280
  396. local playershirt = player.Character:FindFirstChildOfClass("Shirt")
  397. if playershirt then
  398. playershirt.Parent = folder
  399. else
  400.  
  401. end
  402. local playerpants = player.Character:FindFirstChildOfClass("Pants")
  403. playerpants.Parent = folder
  404. ---=CharacterSettings=---
  405. for _,v in pairs(char:GetChildren()) do
  406. if v:IsA("Accessory") then
  407. v.Handle.Transparency = 1
  408. end
  409. end
  410.  
  411. ---=Roar=---
  412. local roar = Instance.new("Sound")
  413. roar.SoundId = "rbxassetid://800952230"
  414. roar.Parent = char
  415. roar:Play()
  416. ---=Roar=---
  417. charging = true
  418. chargeing = true
  419. char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,18,0)
  420.  
  421. local folder = workspace:FindFirstChild("DebrisFolder") or Instance.new("Folder", workspace)
  422. folder.Name = "DebrisFolder"
  423.  
  424.  
  425. bolt(char,folder)
  426. wait(0.2)
  427. bolt2(char,folder)
  428. ballwave2(char,folder)
  429. sound(char)
  430.  
  431. char.Humanoid.WalkSpeed = 60
  432. char.Humanoid.JumpPower = 100
  433. local particles = game.ReplicatedStorage.AttackTitanScripts.Steam:Clone()
  434. particles.Parent = char.HumanoidRootPart
  435. particles.Position = char.HumanoidRootPart.Position
  436. auras(char)
  437. local weld = Instance.new("WeldConstraint")
  438. weld.Parent = char.HumanoidRootPart
  439. weld.Part0 = particles
  440. weld.Part1 = char.HumanoidRootPart
  441. spawn(function()
  442. wait(5)
  443. particles:Destroy()
  444. weld:Destroy()
  445. end)
  446. local roar = Instance.new("Animation")
  447. roar.AnimationId = "rbxassetid://2887725385"
  448. local roartrack = char.Humanoid:LoadAnimation(roar)
  449. roartrack:Play()
  450. game.Debris:AddItem(roar,3)
  451. wait(5)
  452.  
  453. -----------------ARMOR---------------
  454. local function weld(a, b)
  455. local w = Instance.new("ManualWeld", a)
  456. w.Name = a.Name.."_Weld_"..b.Name
  457. w.Part0 = a
  458. w.C1 = b.CFrame:inverse() * a.CFrame
  459. w.Part1 = b
  460. end
  461.  
  462. char.Humanoid.PlatformStand = true
  463. wait(0.5)
  464.  
  465. local headArmor = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.Head:Clone()
  466. headArmor.Parent = char
  467. headArmor:SetPrimaryPartCFrame(char.Head.CFrame * CFrame.new(0,0,-0.7))
  468.  
  469. for i, v in pairs(headArmor:GetChildren()) do
  470. if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
  471. local weldTo = char:FindFirstChild(v.Name)
  472. if weldTo then
  473. weld(v, weldTo)
  474. end
  475. v.Anchored = false
  476. end
  477. char.Humanoid.PlatformStand = false
  478. end
  479.  
  480.  
  481.  
  482. char.Humanoid.PlatformStand = true
  483.  
  484. local upperTorso = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.UpperTorso:Clone()
  485. upperTorso.Parent = char
  486. upperTorso:SetPrimaryPartCFrame(char.UpperTorso.CFrame * CFrame.new(0,-0.6,0.6))
  487.  
  488. for i, v in pairs(upperTorso:GetChildren()) do
  489. if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
  490. local weldTo = char:FindFirstChild(v.Name)
  491. if weldTo then
  492. weld(v, weldTo)
  493. end
  494. v.Anchored = false
  495. end
  496. char.Humanoid.PlatformStand = false
  497. end
  498.  
  499.  
  500. char.Humanoid.PlatformStand = true
  501.  
  502. local leftLowerArm = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.LeftUpperArm:Clone()
  503. leftLowerArm.Parent = char
  504. leftLowerArm:SetPrimaryPartCFrame(char.LeftUpperArm.CFrame * CFrame.new(0,-0.8,0.6))
  505. for i, v in pairs(leftLowerArm:GetChildren()) do
  506. if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
  507. local weldTo = char:FindFirstChild(v.Name)
  508. if weldTo then
  509. weld(v, weldTo)
  510. end
  511. v.Anchored = false
  512. end
  513. char.Humanoid.PlatformStand = false
  514. end
  515.  
  516.  
  517. char.Humanoid.PlatformStand = true
  518.  
  519. local RightUpperArm = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.RightUpperArm:Clone()
  520. RightUpperArm.Parent = char
  521. RightUpperArm:SetPrimaryPartCFrame(char.RightUpperArm.CFrame * CFrame.new(0,-0.8,0.6))
  522.  
  523. for i, v in pairs(RightUpperArm:GetChildren()) do
  524. if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
  525. local weldTo = char:FindFirstChild(v.Name)
  526. if weldTo then
  527. weld(v, weldTo)
  528. end
  529. v.Anchored = false
  530. end
  531. char.Humanoid.PlatformStand = false
  532. end
  533.  
  534. char.Humanoid.PlatformStand = true
  535.  
  536. local RightUpperLeg = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.RightUpperLeg:Clone()
  537. RightUpperLeg.Parent = char
  538. RightUpperLeg:SetPrimaryPartCFrame(char.RightUpperLeg.CFrame * CFrame.new(0,-1.2,0.6))
  539.  
  540. for i, v in pairs(RightUpperLeg:GetChildren()) do
  541. if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
  542. local weldTo = char:FindFirstChild(v.Name)
  543. if weldTo then
  544. weld(v, weldTo)
  545. end
  546. v.Anchored = false
  547. end
  548. char.Humanoid.PlatformStand = false
  549. end
  550.  
  551.  
  552. char.Humanoid.PlatformStand = true
  553.  
  554. local LeftUpperLeg = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.LeftLowerLeg:Clone()
  555. LeftUpperLeg.Parent = char
  556. LeftUpperLeg:SetPrimaryPartCFrame(char.LeftUpperLeg.CFrame * CFrame.new(0,-1.2,0.6))
  557.  
  558. for i, v in pairs(LeftUpperLeg:GetChildren()) do
  559. if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
  560. local weldTo = char:FindFirstChild(v.Name)
  561. if weldTo then
  562. weld(v, weldTo)
  563. end
  564. v.Anchored = false
  565. end
  566. char.Humanoid.PlatformStand = false
  567. end
  568. -----------------------------ARMOR-----------------------------
  569. -----IF V PRESSED AGAIN THEN----
  570. elseif outOfTitan == 2 then
  571. IsPlayerShifting.Value = false
  572. for _,v in pairs(char:GetChildren()) do
  573. if v:IsA("Accessory") then
  574. v.Handle.Transparency = 0
  575. end
  576. end
  577. local titan = char:FindFirstChild("Titan")
  578. titan:Destroy()
  579. local facetexture = char.Head:FindFirstChildOfClass("Decal")
  580. facetexture.Texture = ""
  581. local playerpants = game.Workspace:FindFirstChild("DebrisFolder").Pants
  582. playerpants.Parent = player.Character
  583. local playershirt = game.Workspace:FindFirstChild("DebrisFolder").Shirt
  584. local function afterimage()
  585. char.Archivable = true
  586. local fake = char:Clone()
  587. fake.Parent = workspace
  588. auras(fake)
  589. for _,v in pairs(fake:GetChildren()) do
  590. if v:IsA("ForceField") and v:IsA("Decal") or v:IsA("Script") or v:IsA("LocalScript") or v:IsA("Clothing") then
  591. v:Destroy()
  592. elseif v:IsA("MeshPart") then
  593. v.Anchored = false
  594. v.CanCollide = true
  595. coroutine.wrap(function()
  596. while v.Transparency < 1 and wait(0.1) do
  597. v.Transparency = v.Transparency + 0.02
  598. end
  599. end)()
  600. v.Anchored = false
  601. elseif v:IsA("Part") then
  602. v.Anchored = true
  603. v.CanCollide = true
  604. coroutine.wrap(function()
  605. while v.Transparency < 1 and wait(0.1) do
  606. v.Transparency = v.Transparency + 0.02
  607. end
  608. end)()
  609. v.Anchored = false
  610. elseif v:IsA("Accessory") then
  611. v:Destroy()
  612. end
  613. end
  614. local animation = Instance.new("Animation")
  615. animation.AnimationId = "rbxassetid://2894073760"
  616. local animtrack = fake.Humanoid:LoadAnimation(animation)
  617. animtrack:Play()
  618. spawn(function()
  619. wait(3)
  620. for _,v in pairs(fake:GetChildren()) do
  621. if v:IsA("MeshPart") or v:IsA("Part")then
  622. v.Anchored = true
  623. end
  624. end
  625. end)
  626. fake.Name = ""
  627. fake.Parent = workspace
  628. game.Debris:AddItem(fake,10)
  629. end
  630.  
  631. afterimage()
  632. wait(2)
  633. ------MAKING SMALLER-----
  634. char.Humanoid.BodyDepthScale.Value = oldBodyDepth
  635. char.Humanoid.BodyHeightScale.Value = oldBodyHeight
  636. char.Humanoid.BodyProportionScale.Value = oldBodyProportion
  637. char.Humanoid.BodyTypeScale.Value = oldBodyType
  638. char.Humanoid.BodyWidthScale.Value = oldBodyWitdth
  639. char.Humanoid.HeadScale.Value = oldHeadScale
  640. -----MAKING SMALLER----
  641.  
  642.  
  643. char.Humanoid.MaxHealth = 100
  644. char.Humanoid.Health = 40
  645. char.Humanoid.WalkSpeed = 16
  646. char.Humanoid.JumpPower = 50
  647. outOfTitan = 1
  648. end
  649.  
  650.  
  651. repeat wait() until shifting.Value <= 0
  652. local canShift = player.Character.canShift
  653. canShift.Value = false
  654. IsPlayerShifting.Value = false
  655. for _,v in pairs(char:GetChildren()) do
  656. if v:IsA("Accessory") then
  657. v.Handle.Transparency = 0
  658. end
  659. end
  660. local titan = char:FindFirstChild("Titan")
  661. if titan then
  662. titan:Destroy()
  663. end
  664. local newpants = player.Character:FindFirstChildOfClass("Pants")
  665. newpants.Parent = player.Character
  666. local newshirt = player.Character:FindFirstChildOfClass("Shirt")
  667. newshirt.Parent = player.Character
  668. local facetexture = char.Head:FindFirstChildOfClass("Decal")
  669. facetexture.Texture = ""
  670. local playerpants = game.Workspace:FindFirstChild("DebrisFolder").Pants
  671. playerpants.Parent = player.Character
  672. local function afterimage()
  673. char.Archivable = true
  674. local fake = char:Clone()
  675. fake.Parent = workspace
  676. local hair = char:FindFirstChild("Accessory")
  677. auras(fake)
  678. for _,v in pairs(fake:GetChildren()) do
  679. if v:IsA("ForceField") and v:IsA("Decal") or v:IsA("Script") or v:IsA("LocalScript") or v:IsA("Clothing") then
  680. v:Destroy()
  681. elseif v:IsA("MeshPart") then
  682. v.Anchored = false
  683. v.CanCollide = true
  684. coroutine.wrap(function()
  685. while v.Transparency < 1 and wait(0.1) do
  686. v.Transparency = v.Transparency + 0.02
  687. end
  688. end)()
  689. v.Anchored = false
  690. elseif v:IsA("Part") then
  691. v.Anchored = true
  692. v.CanCollide = true
  693. coroutine.wrap(function()
  694. while v.Transparency < 1 and wait(0.1) do
  695. v.Transparency = v.Transparency + 0.02
  696. end
  697. end)()
  698. v.Anchored = false
  699. elseif v:IsA("Accessory") then
  700. v:Destroy()
  701. end
  702. end
  703. local animation = Instance.new("Animation")
  704. animation.AnimationId = "rbxassetid://2894073760"
  705. local animtrack = fake.Humanoid:LoadAnimation(animation)
  706. animtrack:Play()
  707. spawn(function()
  708. wait(3)
  709. for _,v in pairs(fake:GetChildren()) do
  710. if v:IsA("MeshPart") or v:IsA("Part")then
  711. v.Anchored = true
  712. end
  713. end
  714. end)
  715. fake.Name = ""
  716. fake.Parent = workspace
  717. game.Debris:AddItem(fake,10)
  718. end
  719.  
  720. afterimage()
  721.  
  722. char.Humanoid.MaxHealth = 100
  723. char.Humanoid.Health = 40
  724. char.Humanoid.WalkSpeed = 16
  725. char.Humanoid.JumpPower = 50
  726. outOfTitan = 1
  727. local recPerSec = 0.3
  728. local maxShiftingValue = 10
  729.  
  730. local function chargeAwakening()
  731. while shifting.Value < maxShiftingValue do
  732. local dt = wait()
  733. shifting.Value = math.min(maxShiftingValue, shifting.Value + recPerSec * dt)
  734. shiftingBar.Size = UDim2.new(shifting.Value / 10, 0, 1, 0)
  735. end
  736. end
  737. chargeAwakening()
  738. repeat wait() until shifting.Value >= 10
  739. canShift.Value = true
  740. charging = false
  741. chargeing = false
  742. char.Humanoid.WalkSpeed = 30
  743. char.Humanoid.JumpPower = 70
  744. char.Humanoid.Died:Connect(function()
  745. charging = false
  746. chargeing = false
  747. end)
  748. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement