Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local repstore = game:WaitForChild("ReplicatedStorage")
- local Remote = repstore.ArmoredTitanScripts.ShiftPower
- local outOfTitan = 1
- charging = true
- chargeing = true
- tweenService = game:GetService("TweenService")
- local function makebigger(char)
- for _,v in pairs(char.Humanoid:GetChildren()) do
- if v:IsA("NumberValue") then
- coroutine.wrap(function()
- while v.Value <=7 do
- v.Value = v.Value + 0.30
- wait(.08)
- end
- end)()
- end
- end
- end
- local function makesmaller(char)
- for _,v in pairs(char.Humanoid:GetChildren()) do
- if v:IsA("NumberValue") then
- coroutine.wrap(function()
- for i = 1, 20 do
- v.Value = v.Value - 0.30
- wait()
- end
- repeat wait() until v.Value == 1
- end)()
- end
- end
- end
- local function sound(char)
- local sound = Instance.new("Sound",char.HumanoidRootPart)
- sound.Volume = 8
- sound.SoundId = "rbxassetid://299402179"
- sound:Play()
- coroutine.wrap(function()
- wait(4)
- sound:Destroy()
- end)()
- end
- local function bolt(char,folder)
- local bolt = Instance.new("Part")
- bolt.Name = "electrode"
- bolt.BrickColor = BrickColor.new("New Yeller")
- bolt.Transparency = 0.4
- bolt.FormFactor = "Custom"
- bolt.Size = Vector3.new(0.3,0.3,0)
- bolt.CanCollide = false
- bolt.Anchored = true
- bolt.Material = "Neon"
- local function shootelectrode(from,too)
- lastpos = from
- local step = math.random(-4,16)
- local off = math.random(-8,32)
- local distance = (from-too).magnitude
- for i = 0, distance, step do
- local from = lastpos
- local cframie = Vector3.new(
- math.random(-360,360),
- math.random(-360,360),
- math.random(-360,360)
- )/30
- local too = from + -(from-too).unit*step + cframie
- local el = bolt:Clone()
- el.Parent = folder
- el.Size = Vector3.new(el.Size.x,el.Size.y,(from-too).magnitude)
- el.CFrame = CFrame.new( from:Lerp(too,0.5) , too )
- coroutine.wrap(function()
- while el.Transparency < 1 do
- el.Transparency = el.Transparency + 0.15
- wait(.06)
- end
- end)()
- game.Debris:AddItem(el,0.3)
- lastpos = too
- end
- end
- spawn(function()
- for i = 1, 70 do
- local from = char.HumanoidRootPart.Position
- local too = char.HumanoidRootPart.CFrame * Vector3.new(math.random(-200,200),math.random(-40,40),math.random(-200,200))
- shootelectrode(from,too)
- wait(.03)
- end
- end)
- end
- --------
- local function bolt2(char,folder)
- local bolt2 = Instance.new("Part")
- bolt2.Name = "electrode2"
- bolt2.BrickColor = BrickColor.new("Neon orange")
- bolt2.Transparency = 0.4
- bolt2.FormFactor = "Custom"
- bolt2.Size = Vector3.new(4,4,0.2)
- bolt2.CanCollide = false
- bolt2.Anchored = true
- bolt2.Material = "Neon"
- local function shootelectrode2(from2,too2)
- lastpos = from2
- local step2 = math.random(-4,16)
- local off2 = math.random(-8,32)
- local distance2 = (from2-too2).magnitude
- for i = 0, distance2, step2 do
- local from2 = lastpos
- local cframie2 = Vector3.new(
- math.random(-360,360),
- math.random(-360,360),
- math.random(-360,360)
- )/30
- local too2 = from2 + -(from2-too2).unit*step2 + cframie2
- local el2 = bolt2:Clone()
- el2.Parent = folder
- el2.Size = Vector3.new(el2.Size.x,el2.Size.y,(from2-too2).magnitude)
- el2.CFrame = CFrame.new( from2:Lerp(too2,0.5) , too2 )
- coroutine.wrap(function()
- while el2.Transparency < 1 do
- el2.Transparency = el2.Transparency + 0.15
- wait(.06)
- end
- end)()
- game.Debris:AddItem(el2,0.3)
- lastpos = too2
- end
- end
- spawn(function()
- for i = 1, 70 do
- local from2 = char.HumanoidRootPart.Position
- local too2 = char.HumanoidRootPart.CFrame * Vector3.new(0,400,0)
- shootelectrode2(from2,too2)
- wait(.03)
- end
- end)
- end
- local function ballwave2(char)
- local HandCF4 = char.HumanoidRootPart.CFrame
- local ball = Instance.new("Part",char.HumanoidRootPart)
- ball.Name = "Wave21"
- ball.CanCollide = false
- ball.Locked = false
- ball.Shape = "Ball"
- ball.Anchored = true
- ball.Size = Vector3.new(90,90,90)
- ball.TopSurface = "Smooth"
- ball.Material = "Neon"
- ball.BottomSurface = "Smooth"
- ball.Transparency = 0
- ball.BrickColor = BrickColor.new("Neon orange")
- ball.CFrame = HandCF4
- spawn(function()
- wait(3.5)
- ball:Destroy()
- end)
- local tweeninfo = TweenInfo.new(
- .04,
- Enum.EasingStyle.Back,
- Enum.EasingDirection.Out,
- 120,
- true,
- .04
- )
- local properties = {
- Size = Vector3.new(85,85,85);
- Transparency = 0.3
- }
- local tween = tweenService:Create(ball,tweeninfo,properties)
- tween:Play()
- end
- local function auras(char)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["Head"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["UpperTorso"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["LowerTorso"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["HumanoidRootPart"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["RightUpperLeg"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["RightLowerLeg"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["RightFoot"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["LeftUpperLeg"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["LeftFoot"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["RightUpperArm"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["RightHand"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["LeftUpperArm"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["LeftLowerArm"]
- game.Debris:AddItem(aura1,15)
- local aura1 = game.ReplicatedStorage.Hehe.aura:Clone()
- aura1.Parent = char["LeftHand"]
- game.Debris:AddItem(aura1,15)
- -------
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura1.Parent = char["Head"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["UpperTorso"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["LowerTorso"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["HumanoidRootPart"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["RightUpperLeg"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["RightLowerLeg"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["RightFoot"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["LeftUpperLeg"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["LeftFoot"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["RightUpperArm"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["RightHand"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["LeftUpperArm"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["LeftLowerArm"]
- game.Debris:AddItem(aura2,15)
- local aura2 = game.ReplicatedStorage.Hehe.aura2:Clone()
- aura2.Parent = char["LeftHand"]
- game.Debris:AddItem(aura2,15)
- -------
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["Head"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["UpperTorso"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["LowerTorso"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["HumanoidRootPart"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["RightUpperLeg"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["RightLowerLeg"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["RightFoot"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["LeftUpperLeg"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["LeftFoot"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["RightUpperArm"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["RightHand"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["LeftUpperArm"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["LeftLowerArm"]
- game.Debris:AddItem(aura3,15)
- local aura3 = game.ReplicatedStorage.Hehe.aura3:Clone()
- aura3.Parent = char["LeftHand"]
- game.Debris:AddItem(aura3,15)
- -----
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["Head"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["UpperTorso"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["LowerTorso"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["HumanoidRootPart"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["RightUpperLeg"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["RightLowerLeg"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["RightFoot"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["LeftUpperLeg"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["LeftFoot"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["RightUpperArm"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["RightHand"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["LeftUpperArm"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["LeftLowerArm"]
- game.Debris:AddItem(aura4,15)
- local aura4 = game.ReplicatedStorage.Hehe.small:Clone()
- aura4.Parent = char["LeftHand"]
- game.Debris:AddItem(aura4,15)
- end
- Remote.OnServerEvent:Connect(function(player,Mouse,mousehit)
- local char = player.Character
- local oldBodyDepth = char.Humanoid.BodyDepthScale.Value
- local oldBodyHeight = char.Humanoid.BodyDepthScale.Value
- local oldBodyProportion = char.Humanoid.BodyProportionScale.Value
- local oldBodyType = char.Humanoid.BodyTypeScale.Value
- local oldBodyWitdth = char.Humanoid.BodyWidthScale.Value
- local oldHeadScale = char.Humanoid.HeadScale.Value
- local humanoid = player.Character:WaitForChild("Humanoid")
- local folder = workspace:FindFirstChild("DebrisFolder") or Instance.new("Folder", workspace)
- local shifting = player.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("SFTBackground").Shifting
- local shiftingBar = player.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("SFTBackground").Bar
- local IsPlayerShifting = player.Backpack.AttackTitan.IsPlayerShifting
- if outOfTitan == 1 then
- outOfTitan = 2
- makebigger(char)
- local titan = Instance.new("NumberValue")
- titan.Name = "Titan"
- titan.Parent = char
- coroutine.wrap(function()
- while char:FindFirstChild("Titan") and shifting.Value > 0 do
- shifting.Value = shifting.Value - .03
- shiftingBar.Size = UDim2.new(shifting.Value / 10, 0, 1, 0)
- wait(0.1)
- end
- end)()
- IsPlayerShifting.Value = true
- folder.Name = "DebrisFolder"
- ---=CharacterSettings=---
- char.Humanoid.JumpPower = 0
- char.Humanoid.WalkSpeed = 0
- char.Humanoid.MaxHealth = 300
- char.Humanoid.Health = 280
- local playershirt = player.Character:FindFirstChildOfClass("Shirt")
- if playershirt then
- playershirt.Parent = folder
- else
- end
- local playerpants = player.Character:FindFirstChildOfClass("Pants")
- playerpants.Parent = folder
- ---=CharacterSettings=---
- for _,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v.Handle.Transparency = 1
- end
- end
- ---=Roar=---
- local roar = Instance.new("Sound")
- roar.SoundId = "rbxassetid://800952230"
- roar.Parent = char
- roar:Play()
- ---=Roar=---
- charging = true
- chargeing = true
- char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,18,0)
- local folder = workspace:FindFirstChild("DebrisFolder") or Instance.new("Folder", workspace)
- folder.Name = "DebrisFolder"
- bolt(char,folder)
- wait(0.2)
- bolt2(char,folder)
- ballwave2(char,folder)
- sound(char)
- char.Humanoid.WalkSpeed = 60
- char.Humanoid.JumpPower = 100
- local particles = game.ReplicatedStorage.AttackTitanScripts.Steam:Clone()
- particles.Parent = char.HumanoidRootPart
- particles.Position = char.HumanoidRootPart.Position
- auras(char)
- local weld = Instance.new("WeldConstraint")
- weld.Parent = char.HumanoidRootPart
- weld.Part0 = particles
- weld.Part1 = char.HumanoidRootPart
- spawn(function()
- wait(5)
- particles:Destroy()
- weld:Destroy()
- end)
- local roar = Instance.new("Animation")
- roar.AnimationId = "rbxassetid://2887725385"
- local roartrack = char.Humanoid:LoadAnimation(roar)
- roartrack:Play()
- game.Debris:AddItem(roar,3)
- wait(5)
- -----------------ARMOR---------------
- local function weld(a, b)
- local w = Instance.new("ManualWeld", a)
- w.Name = a.Name.."_Weld_"..b.Name
- w.Part0 = a
- w.C1 = b.CFrame:inverse() * a.CFrame
- w.Part1 = b
- end
- char.Humanoid.PlatformStand = true
- wait(0.5)
- local headArmor = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.Head:Clone()
- headArmor.Parent = char
- headArmor:SetPrimaryPartCFrame(char.Head.CFrame * CFrame.new(0,0,-0.7))
- for i, v in pairs(headArmor:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
- local weldTo = char:FindFirstChild(v.Name)
- if weldTo then
- weld(v, weldTo)
- end
- v.Anchored = false
- end
- char.Humanoid.PlatformStand = false
- end
- char.Humanoid.PlatformStand = true
- local upperTorso = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.UpperTorso:Clone()
- upperTorso.Parent = char
- upperTorso:SetPrimaryPartCFrame(char.UpperTorso.CFrame * CFrame.new(0,-0.6,0.6))
- for i, v in pairs(upperTorso:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
- local weldTo = char:FindFirstChild(v.Name)
- if weldTo then
- weld(v, weldTo)
- end
- v.Anchored = false
- end
- char.Humanoid.PlatformStand = false
- end
- char.Humanoid.PlatformStand = true
- local leftLowerArm = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.LeftUpperArm:Clone()
- leftLowerArm.Parent = char
- leftLowerArm:SetPrimaryPartCFrame(char.LeftUpperArm.CFrame * CFrame.new(0,-0.8,0.6))
- for i, v in pairs(leftLowerArm:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
- local weldTo = char:FindFirstChild(v.Name)
- if weldTo then
- weld(v, weldTo)
- end
- v.Anchored = false
- end
- char.Humanoid.PlatformStand = false
- end
- char.Humanoid.PlatformStand = true
- local RightUpperArm = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.RightUpperArm:Clone()
- RightUpperArm.Parent = char
- RightUpperArm:SetPrimaryPartCFrame(char.RightUpperArm.CFrame * CFrame.new(0,-0.8,0.6))
- for i, v in pairs(RightUpperArm:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
- local weldTo = char:FindFirstChild(v.Name)
- if weldTo then
- weld(v, weldTo)
- end
- v.Anchored = false
- end
- char.Humanoid.PlatformStand = false
- end
- char.Humanoid.PlatformStand = true
- local RightUpperLeg = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.RightUpperLeg:Clone()
- RightUpperLeg.Parent = char
- RightUpperLeg:SetPrimaryPartCFrame(char.RightUpperLeg.CFrame * CFrame.new(0,-1.2,0.6))
- for i, v in pairs(RightUpperLeg:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
- local weldTo = char:FindFirstChild(v.Name)
- if weldTo then
- weld(v, weldTo)
- end
- v.Anchored = false
- end
- char.Humanoid.PlatformStand = false
- end
- char.Humanoid.PlatformStand = true
- local LeftUpperLeg = game.ReplicatedStorage.ArmoredTitanScripts.ArmoredTitan.LeftLowerLeg:Clone()
- LeftUpperLeg.Parent = char
- LeftUpperLeg:SetPrimaryPartCFrame(char.LeftUpperLeg.CFrame * CFrame.new(0,-1.2,0.6))
- for i, v in pairs(LeftUpperLeg:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
- local weldTo = char:FindFirstChild(v.Name)
- if weldTo then
- weld(v, weldTo)
- end
- v.Anchored = false
- end
- char.Humanoid.PlatformStand = false
- end
- -----------------------------ARMOR-----------------------------
- -----IF V PRESSED AGAIN THEN----
- elseif outOfTitan == 2 then
- IsPlayerShifting.Value = false
- for _,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v.Handle.Transparency = 0
- end
- end
- local titan = char:FindFirstChild("Titan")
- titan:Destroy()
- local facetexture = char.Head:FindFirstChildOfClass("Decal")
- facetexture.Texture = ""
- local playerpants = game.Workspace:FindFirstChild("DebrisFolder").Pants
- playerpants.Parent = player.Character
- local playershirt = game.Workspace:FindFirstChild("DebrisFolder").Shirt
- local function afterimage()
- char.Archivable = true
- local fake = char:Clone()
- fake.Parent = workspace
- auras(fake)
- for _,v in pairs(fake:GetChildren()) do
- if v:IsA("ForceField") and v:IsA("Decal") or v:IsA("Script") or v:IsA("LocalScript") or v:IsA("Clothing") then
- v:Destroy()
- elseif v:IsA("MeshPart") then
- v.Anchored = false
- v.CanCollide = true
- coroutine.wrap(function()
- while v.Transparency < 1 and wait(0.1) do
- v.Transparency = v.Transparency + 0.02
- end
- end)()
- v.Anchored = false
- elseif v:IsA("Part") then
- v.Anchored = true
- v.CanCollide = true
- coroutine.wrap(function()
- while v.Transparency < 1 and wait(0.1) do
- v.Transparency = v.Transparency + 0.02
- end
- end)()
- v.Anchored = false
- elseif v:IsA("Accessory") then
- v:Destroy()
- end
- end
- local animation = Instance.new("Animation")
- animation.AnimationId = "rbxassetid://2894073760"
- local animtrack = fake.Humanoid:LoadAnimation(animation)
- animtrack:Play()
- spawn(function()
- wait(3)
- for _,v in pairs(fake:GetChildren()) do
- if v:IsA("MeshPart") or v:IsA("Part")then
- v.Anchored = true
- end
- end
- end)
- fake.Name = ""
- fake.Parent = workspace
- game.Debris:AddItem(fake,10)
- end
- afterimage()
- wait(2)
- ------MAKING SMALLER-----
- char.Humanoid.BodyDepthScale.Value = oldBodyDepth
- char.Humanoid.BodyHeightScale.Value = oldBodyHeight
- char.Humanoid.BodyProportionScale.Value = oldBodyProportion
- char.Humanoid.BodyTypeScale.Value = oldBodyType
- char.Humanoid.BodyWidthScale.Value = oldBodyWitdth
- char.Humanoid.HeadScale.Value = oldHeadScale
- -----MAKING SMALLER----
- char.Humanoid.MaxHealth = 100
- char.Humanoid.Health = 40
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.JumpPower = 50
- outOfTitan = 1
- end
- repeat wait() until shifting.Value <= 0
- local canShift = player.Character.canShift
- canShift.Value = false
- IsPlayerShifting.Value = false
- for _,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v.Handle.Transparency = 0
- end
- end
- local titan = char:FindFirstChild("Titan")
- if titan then
- titan:Destroy()
- end
- local newpants = player.Character:FindFirstChildOfClass("Pants")
- newpants.Parent = player.Character
- local newshirt = player.Character:FindFirstChildOfClass("Shirt")
- newshirt.Parent = player.Character
- local facetexture = char.Head:FindFirstChildOfClass("Decal")
- facetexture.Texture = ""
- local playerpants = game.Workspace:FindFirstChild("DebrisFolder").Pants
- playerpants.Parent = player.Character
- local function afterimage()
- char.Archivable = true
- local fake = char:Clone()
- fake.Parent = workspace
- local hair = char:FindFirstChild("Accessory")
- auras(fake)
- for _,v in pairs(fake:GetChildren()) do
- if v:IsA("ForceField") and v:IsA("Decal") or v:IsA("Script") or v:IsA("LocalScript") or v:IsA("Clothing") then
- v:Destroy()
- elseif v:IsA("MeshPart") then
- v.Anchored = false
- v.CanCollide = true
- coroutine.wrap(function()
- while v.Transparency < 1 and wait(0.1) do
- v.Transparency = v.Transparency + 0.02
- end
- end)()
- v.Anchored = false
- elseif v:IsA("Part") then
- v.Anchored = true
- v.CanCollide = true
- coroutine.wrap(function()
- while v.Transparency < 1 and wait(0.1) do
- v.Transparency = v.Transparency + 0.02
- end
- end)()
- v.Anchored = false
- elseif v:IsA("Accessory") then
- v:Destroy()
- end
- end
- local animation = Instance.new("Animation")
- animation.AnimationId = "rbxassetid://2894073760"
- local animtrack = fake.Humanoid:LoadAnimation(animation)
- animtrack:Play()
- spawn(function()
- wait(3)
- for _,v in pairs(fake:GetChildren()) do
- if v:IsA("MeshPart") or v:IsA("Part")then
- v.Anchored = true
- end
- end
- end)
- fake.Name = ""
- fake.Parent = workspace
- game.Debris:AddItem(fake,10)
- end
- afterimage()
- char.Humanoid.MaxHealth = 100
- char.Humanoid.Health = 40
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.JumpPower = 50
- outOfTitan = 1
- local recPerSec = 0.3
- local maxShiftingValue = 10
- local function chargeAwakening()
- while shifting.Value < maxShiftingValue do
- local dt = wait()
- shifting.Value = math.min(maxShiftingValue, shifting.Value + recPerSec * dt)
- shiftingBar.Size = UDim2.new(shifting.Value / 10, 0, 1, 0)
- end
- end
- chargeAwakening()
- repeat wait() until shifting.Value >= 10
- canShift.Value = true
- charging = false
- chargeing = false
- char.Humanoid.WalkSpeed = 30
- char.Humanoid.JumpPower = 70
- char.Humanoid.Died:Connect(function()
- charging = false
- chargeing = false
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement