carlosname

Untitled

Mar 18th, 2021
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.26 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86. local h,t
  87. --Give the server mouse data every second frame, but only if the values changed
  88. --If player is not moving their mouse, client won't fire events
  89. local HB = game:GetService("RunService").Heartbeat
  90. while true do
  91. if h~=Mouse.Hit or t~=Mouse.Target then
  92. h,t=Mouse.Hit,Mouse.Target
  93. Event:FireServer({isMouse=true,Target=t,Hit=h})
  94. end
  95. --Wait 2 frames
  96. for i=1,2 do
  97. HB:Wait()
  98. end
  99. end]==],script)
  100.  
  101. ----Sandboxed game object that allows the usage of client-side methods and services
  102. --Real game object
  103. local RealGame = game
  104.  
  105. --Metatable for fake service
  106. local FakeService_Metatable = {
  107. __index = function(self,k)
  108. local s = rawget(self,"_RealService")
  109. if s then
  110. return typeof(s[k])=="function"
  111. and function(_,...)return s[k](s,...)end or s[k]
  112. end
  113. end,
  114. __newindex = function(self,k,v)
  115. local s = rawget(self,"_RealService")
  116. if s then s[k]=v end
  117. end
  118. }
  119. local function FakeService(t,RealService)
  120. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  121. return setmetatable(t,FakeService_Metatable)
  122. end
  123.  
  124. --Fake game object
  125. local FakeGame = {
  126. GetService = function(self,s)
  127. return rawget(self,s) or RealGame:GetService(s)
  128. end,
  129. Players = FakeService({
  130. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  131. },"Players"),
  132. UserInputService = FakeService(UIS,"UserInputService"),
  133. ContextActionService = FakeService(CAS,"ContextActionService"),
  134. RunService = FakeService({
  135. _btrs = {},
  136. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  137. BindToRenderStep = function(self,name,_,fun)
  138. self._btrs[name] = self.Heartbeat:Connect(fun)
  139. end,
  140. UnbindFromRenderStep = function(self,name)
  141. self._btrs[name]:Disconnect()
  142. end,
  143. },"RunService")
  144. }
  145. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  146. FakeGame.service = FakeGame.GetService
  147. FakeService(FakeGame,game)
  148. --Changing owner to fake player object to support owner:GetMouse()
  149. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  150. end
  151.  
  152. wait(0.1)
  153. local plr = game.Players.LocalPlayer
  154. local mouse = plr:GetMouse()
  155. local char = plr.Character
  156. hum = char.Humanoid
  157. local hed = char.Head
  158. local RootPart = char.HumanoidRootPart
  159. local root = char.HumanoidRootPart
  160. local angle = 0
  161. local LightningColor = BrickColor.new('Daisy orange')
  162. local larm = char["Left Arm"]
  163. local rarm = char["Right Arm"]
  164. local lleg = char["Left Leg"]
  165. local rleg = char["Right Leg"]
  166. local tor = char.Torso
  167. local head = char.Head
  168. local root = char.HumanoidRootPart
  169. local sine = 0
  170. local RH = tor["Right Hip"]
  171. local LH = tor["Left Hip"]
  172. local RS = tor["Right Shoulder"]
  173. local LS = tor["Left Shoulder"]
  174. local neck = tor.Neck
  175. local rootjoint = root.RootJoint
  176. --local titansize = 20
  177. local Anim = "Idle"
  178. local id = -8
  179. local opposite = false
  180. local opposite2 = false
  181. local step = 40
  182. local attack = false
  183. local attacktype = 1
  184. local cf = CFrame.new
  185. local angles = CFrame.Angles
  186. function swait()
  187. game:GetService("RunService").Heartbeat:wait()
  188. end
  189. local AnimSpeed = 2.5
  190. local FrameSpeed = 1 / 60
  191. local Sine = 0
  192. local Change = 2 / AnimSpeed
  193. local Attack = false
  194. local DefaultAnims = true
  195. RS = tor:FindFirstChild("Right Shoulder")
  196. LS = tor:FindFirstChild("Left Shoulder")
  197. RH = tor:FindFirstChild("Right Hip")
  198. LH = tor:FindFirstChild("Left Hip")
  199. RJ = RootPart:FindFirstChild("RootJoint")
  200. N = tor:FindFirstChild("Neck")
  201. local RootPart = char["HumanoidRootPart"]
  202. local Torso = char["Torso"]
  203. local Head = char["Head"]
  204. local RightArm = char["Right Arm"]
  205. local LeftArm = char["Left Arm"]
  206. local RightLeg = char["Right Leg"]
  207. local LeftLeg = char["Left Leg"]
  208. local titansize = 20
  209. local RootJoint = RootPart.RootJoint
  210. local Neck = Torso.Neck
  211. local LW = Torso["Left Shoulder"]
  212. local LH = Torso["Left Hip"]
  213. local RW = Torso["Right Shoulder"]
  214. local RH = Torso["Right Hip"]
  215. Head=char.Head
  216. Root=char.HumanoidRootPart
  217. Torso=char.Torso RArm=char["Right Arm"] LArm=char["Left Arm"] RLeg=char["Right Leg"] LLeg=char["Left Leg"] RJ=Root.RootJoint Neck=Torso.Neck LS=Torso["Left Shoulder"] LH=Torso["Left Hip"] RS=Torso["Right Shoulder"] RH=Torso["Right Hip"]
  218. --------Important stuff -----------
  219. it=Instance.new IT = Instance.new cf = CFrame.new VT = Vector3.new Rad = math.rad C3 = Color3.new UD2 = UDim2.new BRICKC = BrickColor.new angles = CFrame.Angles Euler = CFrame.fromEulerAnglesXYZ Cos = math.cos Acos = math.acos Sin = math.sin Asin = math.asin ABS = math.abs MRANDOM = math.random FLOOR = math.floor
  220. radian = math.rad Rad = math.rad vt = Vector3.new BRICKC = BrickColor.new random = math.random Vec3 = Vector3.new Inst = Instance.new cFrame = CFrame.new Euler = CFrame.fromEulerAnglesXYZ vt = Vector3.new bc = BrickColor.new br = BrickColor.random it = Instance.new cf = CFrame.new IT = Instance.new CF = CFrame.new VT = Vector3.new RAD = math.rad C3 = Color3.new c3 = Color3.new UD2 = UDim2.new BRICKC = BrickColor.new ANGLES = CFrame.Angles EULER = CFrame.fromEulerAnglesXYZ COS = math.cos ACOS = math.acos SIN = math.sin ASIN = math.asin ABS = math.abs MRANDOM = math.random FLOOR = math.floor ceuler = CFrame.fromEulerAnglesXYZ
  221. cn=CFrame.new euler=CFrame.fromEulerAnglesXYZ
  222. -----------------------------------
  223. local MM = {RN = math.random, CS = math.cos, AS = math.acos, RD = math.rad, SN = math.sin}
  224. local CC = {NW = CFrame.new, AA = CFrame.Angles}
  225. local CLR = {B = BrickColor.new, T = Color3.new, RGB = Color3.fromRGB}
  226. local VV = Vector3.new
  227. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  228.  
  229. local necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  230. local necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  231. local LHC0 = cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  232. local LHC1 = cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  233. local RHC0 = cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  234. local RHC1 = cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  235. local RightShoulderC0 = cf(-0.5, 0, 0) * angles(Rad(0), Rad(90), Rad(0))
  236. local LeftShoulderC0 = cf(0.5, 0, 0) * angles(Rad(0), Rad(-90), Rad(0))
  237. function TweenAnimate(object,Aniim,time,easingstyle,easingdirection,repet,reverse,deelay)
  238. local infos=TweenInfo.new(time,Enum.EasingStyle[easingstyle],Enum.EasingDirection[easingdirection],repet,reverse,deelay)
  239. local tween=game:GetService("TweenService"):Create(object,infos,Aniim)
  240. tween:Play()
  241. return tween
  242. end
  243. local ignore = Instance.new("Model", char)
  244. ignore.Name = "Ignore"
  245. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  246. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  247. end
  248. function CreateRing(maxsize)
  249. spawn(function()
  250. local ringpart = Instance.new("Part", ignore)
  251. ringpart.Name = "Ring"
  252. ringpart.Size = Vector3.new(1,1,1)
  253. ringpart.CFrame = tor.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  254. ringpart.CanCollide = false
  255. ringpart.Anchored = true
  256. ringpart.BrickColor = LightningColor
  257. ringpart.Material = Enum.Material.Neon
  258. local ringpartmesh = Instance.new('SpecialMesh', ringpart)
  259. ringpartmesh.MeshId = "rbxassetid://3270017"
  260. ringpartmesh.Scale = Vector3.new(1,1,1)
  261. ringpartmesh.VertexColor = Vector3.new(LightningColor.r,LightningColor.b,LightningColor.g)
  262. spawn(function()
  263. for i = 1,5, 0.1 do
  264. ringpartmesh.Scale = ringpartmesh.Scale:Lerp(Vector3.new(maxsize*10,maxsize*10,maxsize*10),0.1)
  265. wait()
  266. end
  267. end)
  268. wait(.5)
  269. for i = 1,20 do
  270. ringpart.Transparency = ringpart.Transparency + 0.05
  271. wait()
  272. end
  273. game.Debris:AddItem(ringpart, 5)
  274. end)
  275. end
  276.  
  277. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  278. local Hitboxpart = Instance.new("Part", ignore)
  279. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  280. Hitboxpart.CanCollide = false
  281. Hitboxpart.Transparency = 1
  282. Hitboxpart.Anchored = true
  283. Hitboxpart.CFrame = Pose
  284. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  285. Hitboxpart.Touched:connect(function(hit)
  286. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= char then
  287.  
  288. --131237241
  289. local bv = Instance.new("BodyVelocity", hit.Parent.HumanoidRootPart)
  290. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  291. bv.Velocity = (tor.Position - hit.Parent.HumanoidRootPart.Position).Unit
  292. hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(Min,Max))
  293. end
  294. end)
  295. end
  296.  
  297. function Lerp(c1,c2,al)
  298. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  299. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  300. for i,v in pairs(com1) do
  301. com1[i] = v+(com2[i]-v)*al
  302. end
  303. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  304. end
  305.  
  306. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  307. local wld = Instance.new("Weld", wp1)
  308. wld.Part0 = wp0
  309. wld.Part1 = wp1
  310. wld.Name = wp1.Name
  311. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  312. end
  313. morph = Instance.new("Folder", char)
  314. ----Morph Values
  315. local necktry = Instance.new("Part", morph)
  316. necktry.CanCollide = false
  317. necktry.Anchored = false
  318. necktry.Massless = true
  319. necktry.Size = Vector3.new(1, 0.5, 0.5)
  320. necktry.Transparency = 1
  321. newWeld(tor,necktry, 0, 1, 0.5)
  322. P1ACtualSize = Vector3.new(2,0.7, 0.9)
  323. P2ACtualSize = Vector3.new(1,2, 0.8)
  324. P3ACtualSize = Vector3.new(2,0.7, 0.9)
  325. RibSize = Vector3.new(0.8,0.9,1)
  326. local OBC = char:FindFirstChild("Body Colors")
  327. local P1 = Instance.new("Part", morph)
  328. local P2 = Instance.new("Part", morph)
  329. local P3 = Instance.new("Part", morph)
  330. local Rib = Instance.new("Part", morph)
  331. P1.Size = Vector3.new(2,0.7, 0.9)
  332. P1.BrickColor = BrickColor.new("Pastel brown")
  333. --P1.Material = "Granite"
  334. P2.Size = Vector3.new(1,2, 0.8)
  335. P2.BrickColor = BrickColor.new("Pastel brown")
  336. --P2.Material = "Granite"
  337. P3.Size = Vector3.new(2,0.7, 0.9)
  338. P3.BrickColor = BrickColor.new("Pastel brown")
  339. --P3.Material = "Granite"
  340. Rib.Size = Vector3.new(1,1,1)
  341. local meshRib = Instance.new("SpecialMesh", Rib)
  342. meshRib.MeshType = "FileMesh"
  343. meshRib.MeshId = "rbxassetid://6527039623"
  344. meshRib.Scale = Vector3.new(0.8,0.9,1)
  345. newWeld(tor,P1, 0, 0.7, 0)
  346. newWeld(tor,P2, 0, 0, 0)
  347. newWeld(tor,P3, 0, -0.7, 0)
  348. newWeld(tor,Rib, 0, -0.2, 0)
  349. P1.Transparency = 1
  350. P2.Transparency = 1
  351. P3.Transparency = 1
  352. Rib.Transparency = 1
  353. P1.Material = "SmoothPlastic"
  354. P2.Material = "SmoothPlastic"
  355. P3.Material = "SmoothPlastic"
  356. local part1C0 = CFrame.new(0, 0.7, 0)
  357.  
  358.  
  359. local part3C0 = CFrame.new(0, -0.7, 0)
  360.  
  361. local Hair = Instance.new("Part", morph)
  362. Hair.Size = Vector3.new(1,1,1)
  363. local MeshHair = Instance.new("SpecialMesh", Hair)
  364. MeshHair.MeshType = "FileMesh"
  365. MeshHair.MeshId = "rbxassetid://5163710382"
  366. MeshHair.TextureId = "rbxassetid://5164412364"
  367. MeshHair.Scale = Vector3.new(1,1,1)
  368. newWeld(Head,Hair, 0, 0, 0)
  369. Hair.Transparency = 1
  370. hum.BreakJointsOnDeath = false
  371. local Mask = Instance.new("Part", morph)
  372. Mask.Size = Vector3.new(1,1,1)
  373. local meshMask = Instance.new("SpecialMesh", Mask)
  374. meshMask.MeshType = "FileMesh"
  375. meshMask.MeshId = "http://www.roblox.com/asset/?id=4770583"
  376. meshMask.Scale = Vector3.new(2.6, 3, 2.6)
  377. newWeld(Head,Mask, 0, 0.1, 0)
  378. Mask.Transparency = 1
  379. ------
  380. local Shirt = char:FindFirstChild("Shirt")
  381. local Pants = char:FindFirstChild("Pants")
  382. local TitanIs = false
  383. local Resources = Instance.new("Folder", script)
  384. Resources.Parent = nil
  385. faceid = Head.face.Texture
  386.  
  387. function TransformR6(p, size)
  388. local pchar = p
  389. if pchar then
  390. local function scale(chr,scl)
  391. BC = Instance.new("BodyColors")
  392. local part1 = P1:FindFirstChildOfClass("Weld")
  393. local part3 = P3:FindFirstChildOfClass("Weld")
  394. if TitanIs == false then
  395. for _,v in pairs(pchar:GetChildren()) do
  396. if v:IsA("Hat") then
  397. v.Handle.Transparency = 1
  398. end
  399. end
  400.  
  401. for _,v in pairs(pchar:GetChildren()) do
  402. if v:IsA("Pants") or v:IsA("Shirt") then
  403. v.Parent = Resources
  404. end
  405. end
  406. coroutine.resume(coroutine.create(function()
  407. if hum.PlatformStand == true then
  408. wait(math.random(1,15))
  409. hum.PlatformStand = false
  410. end
  411. end))
  412. OBC.Parent = nil
  413. BC.Parent = chr
  414. for _,v in pairs(morph:GetChildren()) do
  415. if v:IsA("BasePart") or v:IsA("Part") then
  416. v.Transparency = 0
  417. end
  418. end
  419. Torso.CanCollide = false
  420. Torso.Transparency = 1
  421. P1.Size = P1.Size * scl
  422. P2.Size = P2.Size * scl
  423. P3.Size = P3.Size * scl
  424. meshRib.Scale = meshRib.Scale * scl
  425. MeshHair.Scale = MeshHair.Scale * scl
  426. meshMask.Scale = meshMask.Scale * scl
  427. Mask.BrickColor = BrickColor.new("Cashmere")
  428. BC.HeadColor = BrickColor.new("Pastel brown")
  429. BC.LeftArmColor = BrickColor.new("Pastel brown")
  430. BC.LeftLegColor = BrickColor.new("Pastel brown")
  431. BC.RightArmColor = BrickColor.new("Pastel brown")
  432. BC.RightLegColor = BrickColor.new("Pastel brown")
  433. BC.TorsoColor = BrickColor.new("Pastel brown")
  434. Head.face.Texture = "http://www.roblox.com/asset/?id=5189209143"
  435. animo(true)
  436. elseif TitanIs == true then
  437. for _,v in pairs(pchar:GetChildren()) do
  438. if v:IsA("Hat") then
  439. v.Handle.Transparency = 0
  440. end
  441. end
  442. for _,v in pairs(pchar:GetChildren()) do
  443. if v:IsA("BasePart")then
  444. v.Material = "SmoothPlastic"
  445. end
  446. end
  447. --coroutine.resume(coroutine.create(function()
  448. for _,v in pairs(Resources:GetChildren()) do
  449. if v:IsA("Pants") or v:IsA("Shirt") then
  450. wait(1)
  451. v.Parent = pchar
  452. end
  453. end
  454. --end))
  455.  
  456. meshMask.Scale = Vector3.new(2.6, 3.5, 2.6)
  457. P1.Size = P1ACtualSize
  458. P2.Size = P2ACtualSize
  459. P3.Size = P3ACtualSize
  460. meshRib.Scale = RibSize
  461. Head.face.Texture = faceid
  462. MeshHair.Scale = Vector3.new(1,1,1)
  463. Torso.CanCollide = true
  464. Torso.Transparency = 0
  465. for _,v in pairs(morph:GetChildren()) do
  466. if v:IsA("BasePart") or v:IsA("Part") then
  467. v.Transparency = 1
  468. end
  469. end
  470. BC:Destroy()
  471. OBC.Parent = chr
  472.  
  473. end
  474. -- Smoke2.Enabled = true
  475. --Smoke1.Enabled = true
  476. wait(0.5)
  477. --Smoke2.Enabled = false
  478. --Smoke1.Enabled = false
  479. ---
  480. local Head = chr['Head']
  481. local Torso = chr['Torso']
  482. local LA = chr['Left Arm']
  483. local RA = chr['Right Arm']
  484. local LL = chr['Left Leg']
  485. local RL = chr['Right Leg']
  486. local HRP = chr['HumanoidRootPart']
  487.  
  488. wait(0.1)
  489.  
  490. Head.formFactor = 3
  491. Torso.formFactor = 3
  492. LA.formFactor = 3
  493. RA.formFactor = 3
  494. LL.formFactor = 3
  495. RL.formFactor = 3
  496. HRP.formFactor = 3
  497.  
  498. Head.Size = Vector3.new(scl * 2, scl, scl)
  499. Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  500. if TitanIs == false then
  501. LA.Size = Vector3.new(scl , scl * 2, scl)
  502. RA.Size = Vector3.new(scl , scl * 2, scl)
  503. part1.C0 = part1.C0 * CFrame.new(0, scl/1.5, 0)
  504. part3.C0 = part3.C0 * CFrame.new(0, -scl/1.5, 0)
  505.  
  506. elseif TitanIs == true then
  507. LA.Size = Vector3.new(scl, scl * 2, scl)
  508. RA.Size = Vector3.new(scl, scl * 2, scl)
  509. part1.C0 = part1C0
  510. part3.C0 = part3C0
  511. end
  512. LL.Size = Vector3.new(scl, scl * 2, scl)
  513. RL.Size = Vector3.new(scl, scl * 2, scl)
  514. HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  515.  
  516.  
  517.  
  518. --sizes = scl
  519. local Motor1 = Torso["Neck"]
  520. --Motor1.Part0 = Torso
  521. --Motor1.Part1 = Head
  522. Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  523. Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  524. --Motor1.Name = "Neck"
  525.  
  526. local Motor2 = Torso["Left Shoulder"]
  527. -- Motor2.Part0 = Torso
  528. -- Motor2.Part1 = LA
  529. Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  530. Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  531. --Motor2.Name = "Left Shoulder"
  532.  
  533. local Motor3 = Torso["Right Shoulder"]
  534. --Motor3.Part0 = Torso
  535. --Motor3.Part1 = RA
  536. Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  537. Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  538. --Motor3.Name = "Right Shoulder"
  539.  
  540. local Motor4 = Torso["Left Hip"]
  541. --Motor4.Part0 = Torso
  542. --Motor4.Part1 = LL
  543. Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  544. Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  545. --Motor4.Name = "Left Hip"
  546.  
  547. local Motor5 = Torso["Right Hip"]
  548. --Motor5.Part0 = Torso
  549. --Motor5.Part1 = RL
  550. Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  551. Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  552. Motor5.Name = "Right Hip"
  553.  
  554. local Motor6 = HRP["RootJoint"]
  555. --Motor6.Part0 = HRP
  556. --Motor6.Part1 = Torso
  557. Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  558. Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  559.  
  560. end
  561.  
  562. scale(pchar, size)
  563. --pchar.Humanoid.WalkSpeed = 15 + size
  564. hum.JumpPower = 50 + size + size
  565. ---
  566.  
  567.  
  568. end
  569. end
  570. local Regen = Instance.new("ParticleEmitter", nil)
  571. Regen.Color = ColorSequence.new(Color3.new(255,255,255))
  572. Regen.Texture = "rbxassetid://2977044760"
  573. Regen.LightInfluence = 1
  574. Regen.LightEmission = 0
  575. Regen.Size = NumberSequence.new(0.25, 0.687)
  576. Regen.Transparency = NumberSequence.new(0.562, 1)
  577. Regen.Lifetime = NumberRange.new(0.5,1.2)
  578. Regen.Rate = 5000
  579. Regen.Speed = NumberRange.new(0.25)
  580. Regen.Enabled = false
  581. local hasregen = false
  582. local list = {
  583. rarm;
  584. larm;
  585. tor;
  586. head;
  587. }
  588. function Regeneration()
  589. if TitanIs == true then return end
  590. if humanoid.Health == humanoid.MaxHealth then return end
  591. if EHMMM == 5 then
  592. return
  593. end
  594. --wherto = RootPart
  595. local bep = true
  596. local humanshealth = humanoid.Health
  597. local ran = math.random(#list)
  598. Regen.Parent = list[ran]
  599. Regen.Enabled = true
  600. humanoid:SetStateEnabled(15, false)
  601. local de = mouse.KeyUp:connect(function(key)
  602. if key == "b" then
  603. bep = false
  604. end
  605. end)
  606. --Speed = 7
  607. humanoid.JumpPower = 25
  608. local poopes = 0
  609.  
  610. repeat
  611. poopes = poopes + 1
  612. wait(0.5)
  613. humanoid.Health = humanoid.Health + 1.5
  614. until bep == false or poopes > 340
  615. de:Disconnect()
  616. humanoid:SetStateEnabled(15, true)
  617. EHMMM = 5
  618. Regen.Enabled = false
  619. Regen.Parent = nil
  620. hasregen = false
  621. coroutine.resume(coroutine.create(function()
  622. wait(2)
  623. EHMMM = 0
  624. end))
  625. --Speed = 16
  626. humanoid.JumpPower = 50
  627. end
  628. function emitsteam()
  629. hum.WalkSpeed = 0
  630.  
  631. local steamp = Instance.new("ParticleEmitter", tor)
  632. steamp.LightEmission = 0
  633. steamp.LightInfluence = 0
  634. steamp.Size = NumberSequence.new(5,0)
  635. steamp.Texture = "rbxassetid://365830819"
  636. steamp.Transparency = NumberSequence.new(.6)
  637. steamp.ZOffset = 1
  638. steamp.Rate = 5000
  639. steamp.RotSpeed = NumberRange.new(-180,180)
  640. steamp.Speed = NumberRange.new(60)
  641. steamp.SpreadAngle = Vector2.new(360,360)
  642. local sparksp = Instance.new("ParticleEmitter", tor)
  643. sparksp.LightEmission = 1
  644. sparksp.LightInfluence = 0
  645. sparksp.Color = ColorSequence.new(Color3.new(1,0,0),Color3.new(1,170/255,0))
  646. sparksp.Size = NumberSequence.new(0.1)
  647. sparksp.Texture = "rbxasset://textures/particles/sparkles_main.dds"
  648. sparksp.Transparency = NumberSequence.new(0)
  649. sparksp.ZOffset = 2
  650. sparksp.Rate = 5000
  651. sparksp.RotSpeed = NumberRange.new(-180,180)
  652. sparksp.Speed = NumberRange.new(60)
  653. sparksp.SpreadAngle = Vector2.new(360,360)
  654. wait(4)
  655. hum.WalkSpeed = 8
  656. sparksp.Enabled = false
  657. steamp.Enabled = false
  658. attack = false
  659. wait(2)
  660. sparksp:Destroy()
  661. steamp:Destroy()
  662. end
  663.  
  664. function swait(num)
  665. game:GetService("RunService").Heartbeat:Wait()
  666. end
  667. Resources = Instance.new("Folder", script)
  668. Resources.Parent = nil
  669. function Shift(charact)
  670.  
  671. local blast = Instance.new("Part", ignore)
  672. blast.Size = Vector3.new(1,1,1)
  673. blast.CFrame = charact.HumanoidRootPart.CFrame
  674. blast.Anchored = true
  675. blast.CanCollide = false
  676. blast.CastShadow = false
  677. blast.BrickColor = LightningColor
  678. blast.Material = Enum.Material.Neon
  679. blast.Transparency = 1
  680. local blastmesh = Instance.new("SpecialMesh", blast)
  681. blastmesh.Scale = Vector3.new(0,0,0)
  682. blastmesh.MeshType = Enum.MeshType.Sphere
  683. local blastlight = Instance.new("PointLight", blast)
  684. blastlight.Color = BrickColor.new('Deep orange').Color
  685. blastlight.Range = 0
  686. blastlight.Enabled = false
  687. local blast2 = Instance.new("Part", ignore)
  688. blast2.Size = Vector3.new(1,1,1)
  689. blast2.CFrame = charact.HumanoidRootPart.CFrame
  690. blast2.Anchored = true
  691. blast2.CanCollide = false
  692. blast2.CastShadow = false
  693. blast2.Transparency = 1
  694. blast2.BrickColor = BrickColor.new('Bright orange')
  695. blast2.Material = Enum.Material.Neon
  696. local blastmesh2 = Instance.new("SpecialMesh", blast2)
  697. blastmesh2.Scale = Vector3.new(0.2,0.2,0.2)
  698. blastmesh2.MeshType = Enum.MeshType.Sphere
  699. charact.Humanoid.WalkSpeed = 0
  700.  
  701. for _,v in pairs(char:GetChildren()) do
  702. if v.Name == "3dmg" then
  703. v.Parent = Resources
  704. end
  705. end
  706. --local bp = Instance.new("BodyPosition", tor)
  707. --bp.Position = tor.Position + Vector3.new(0,0, 0)
  708. --bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  709. wait(1)
  710. for _,v in pairs(tor:GetChildren()) do
  711. if v:IsA("Weld") then
  712. v:Destroy()
  713. end
  714. end
  715. spawn(function()
  716. local sound = Instance.new("Sound", charact.HumanoidRootPart)
  717. sound.Name = "Static"
  718. sound.SoundId = "rbxassetid://3673187353"
  719. sound.Volume = 4
  720. sound.TimePosition = 0.3
  721. sound:Play()
  722. local soundreverb = Instance.new("ReverbSoundEffect", sound)
  723. soundreverb.DryLevel = 0
  724. soundreverb.WetLevel = 0
  725. soundreverb.DecayTime = 0.1
  726. game.Debris:AddItem(sound,10)
  727. end)
  728.  
  729. spawn(function()
  730. for i = 1,10 do
  731. spawn(function()
  732. for i = 1,5 do
  733. angle = angle + 0.6
  734. local Model = Instance.new("Model",ignore)
  735. Model.Name = "Lightning"
  736. local Point1 = Instance.new("Part",Model)
  737. Point1.Transparency = 1
  738. Point1.Size = Vector3.new(0.2,0.2,0.2)
  739. Point1.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,60,-(charact.HumanoidRootPart.Size.Z/2+Point1.Size.Z/2))
  740. Point1.Anchored = true
  741. Point1.CanCollide = false
  742. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  743.  
  744. local Point2 = Instance.new("Part",Model)
  745. Point2.Transparency = 1
  746. Point2.Size = Vector3.new(0.2,0.2,0.2)
  747. Point2.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,50,-(charact.HumanoidRootPart.Size.Z/2+Point2.Size.Z/2))
  748. Point2.Anchored = true
  749. Point2.CanCollide = false
  750. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-8,8),math.random(-8,8),-math.random(0,8))
  751.  
  752. local Point3 = Instance.new("Part",Model)
  753. Point3.Transparency = 1
  754. Point3.Size = Vector3.new(0.2,0.2,0.2)
  755. Point3.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,30,-(charact.HumanoidRootPart.Size.Z/2+Point3.Size.Z/2))
  756. Point3.Anchored = true
  757. Point3.CanCollide = false
  758. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-6,6),math.random(-6,6),-math.random(0,6))
  759.  
  760. local Point4 = Instance.new("Part",Model)
  761. Point4.Transparency = 1
  762. Point4.Size = Vector3.new(0.2,0.2,0.2)
  763. Point4.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,20,-(charact.HumanoidRootPart.Size.Z/2+Point1.Size.Z/2))
  764. Point4.Anchored = true
  765. Point4.CanCollide = false
  766. Point4.CFrame = Point4.CFrame * CFrame.new(math.random(-4,4),math.random(-4,4),-math.random(0,4))
  767.  
  768. local Point5 = Instance.new("Part",Model)
  769. Point5.Transparency = 1
  770. Point5.Size = Vector3.new(0.2,0.2,0.2)
  771. Point5.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,10,-(charact.HumanoidRootPart.Size.Z/2+Point2.Size.Z/2))
  772. Point5.Anchored = true
  773. Point5.CanCollide = false
  774. Point5.CFrame = Point5.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  775.  
  776. local Point6 = Instance.new("Part",Model)
  777. Point6.Transparency = 1
  778. Point6.Size = Vector3.new(0.2,0.2,0.2)
  779. Point6.CFrame = charact.Head.CFrame
  780. Point6.Anchored = true
  781. Point6.CanCollide = false
  782.  
  783. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  784. local Light = Instance.new("Part",Model)
  785. local PointLight = Instance.new("PointLight",Light)
  786. PointLight.Range = 5
  787. PointLight.Color = LightningColor.Color
  788. Light.Transparency = 0
  789. Light.BrickColor= LightningColor
  790. Light.Material = "Neon"
  791. Light.Size = Vector3.new(0.2,0.2,distance)
  792. Light.Anchored = true
  793. Light.CanCollide = false
  794. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  795.  
  796. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  797. local Light = Instance.new("Part",Model)
  798. local PointLight = Instance.new("PointLight",Light)
  799. PointLight.Range = 5
  800. PointLight.Color = LightningColor.Color
  801. Light.Transparency = 0
  802. Light.BrickColor= LightningColor
  803. Light.Material = "Neon"
  804. Light.Size = Vector3.new(0.2,0.2,distance2)
  805. Light.Anchored = true
  806. Light.CanCollide = false
  807. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  808.  
  809. local distance3 = (Point4.CFrame.p - Point3.CFrame.p).magnitude
  810. local Light = Instance.new("Part",Model)
  811. local PointLight = Instance.new("PointLight",Light)
  812. PointLight.Range = 5
  813. PointLight.Color = LightningColor.Color
  814. Light.Transparency = 0
  815. Light.BrickColor= LightningColor
  816. Light.Material = "Neon"
  817. Light.Size = Vector3.new(0.2,0.2,distance3)
  818. Light.Anchored = true
  819. Light.CanCollide = false
  820. Light.CFrame = CFrame.new(Point4.CFrame.p , Point3.CFrame.p) * CFrame.new(0,0,-distance3/2)
  821.  
  822. local distance4 = (Point5.CFrame.p - Point4.CFrame.p).magnitude
  823. local Light = Instance.new("Part",Model)
  824. local PointLight = Instance.new("PointLight",Light)
  825. PointLight.Range = 5
  826. PointLight.Color = LightningColor.Color
  827. Light.Transparency = 0
  828. Light.BrickColor= LightningColor
  829. Light.Material = "Neon"
  830. Light.Size = Vector3.new(0.2,0.2,distance4)
  831. Light.Anchored = true
  832. Light.CanCollide = false
  833. Light.CFrame = CFrame.new(Point5.CFrame.p , Point4.CFrame.p) * CFrame.new(0,0,-distance4/2)
  834.  
  835. local distance5 = (Point6.CFrame.p - Point5.CFrame.p).magnitude
  836. local Light = Instance.new("Part",Model)
  837. local PointLight = Instance.new("PointLight",Light)
  838. PointLight.Range = 5
  839. PointLight.Color = LightningColor.Color
  840. Light.Transparency = 0
  841. Light.BrickColor= LightningColor
  842. Light.Material = "Neon"
  843. Light.Size = Vector3.new(0.2,0.2,distance5)
  844. Light.Anchored = true
  845. Light.CanCollide = false
  846. Light.CFrame = CFrame.new(Point6.CFrame.p , Point5.CFrame.p) * CFrame.new(0,0,-distance5/2)
  847. wait()
  848. Model:Destroy()
  849. wait()
  850. end
  851. end)
  852. end
  853. end)
  854. wait(.5)
  855.  
  856. blast.Transparency = 0
  857. blast2.Transparency = 0.5
  858. blastlight.Enabled = true
  859. spawn(function()
  860. local sound = Instance.new("Sound", charact.HumanoidRootPart)
  861. sound.SoundId = "rbxassetid://93724183"
  862. sound.Volume = 4
  863. sound.Pitch = 0.9
  864. sound:Play()
  865. local soundreverb = Instance.new("ReverbSoundEffect", sound)
  866. soundreverb.DryLevel = 0
  867. soundreverb.WetLevel = 0
  868. soundreverb.DecayTime = 0.1
  869. game.Debris:AddItem(sound,10)
  870. end)
  871. spawn(function()
  872. for i = 1,15 do
  873. CreateRing(math.random(30,40))
  874. wait(.1)
  875. end
  876. end)
  877. local sparksp = Instance.new("ParticleEmitter", charact.Torso)
  878. sparksp.LightEmission = 1
  879. sparksp.LightInfluence = 0
  880. sparksp.Color = ColorSequence.new(Color3.new(1,1,0),Color3.new(1,0,0))
  881. sparksp.Size = NumberSequence.new(2,0)
  882. sparksp.Texture = "rbxasset://textures/particles/sparkles_main.dds"
  883. sparksp.Transparency = NumberSequence.new(0)
  884. sparksp.ZOffset = 2
  885. sparksp.Lifetime = NumberRange.new(5)
  886. sparksp.Rate = 5000
  887. sparksp.RotSpeed = NumberRange.new(-360,360)
  888. sparksp.Speed = NumberRange.new(60)
  889. sparksp.SpreadAngle = Vector2.new(360,360)
  890. sparksp.Acceleration = Vector3.new(0,10,0)
  891. for i = 1,30 do
  892. blast.CFrame = root.CFrame
  893. blastmesh.Scale = blastmesh.Scale + Vector3.new(5,5,5)
  894. blast2.CFrame = root.CFrame
  895. blastmesh2.Scale = blastmesh2.Scale + Vector3.new(5,5,5)
  896. blastlight.Range = blastlight.Range + 2
  897. wait()
  898. end
  899. spawn(function()
  900. TransformR6(char,titansize)
  901. TitanIs = true
  902. end)
  903. wait(1)
  904. sparksp.Enabled = false
  905. for i = 1,20 do
  906. blastmesh.Scale = blastmesh.Scale + Vector3.new(0.1,0.1,0.1)
  907. blast.Transparency = blast.Transparency + 0.05
  908. blastmesh2.Scale = blastmesh2.Scale + Vector3.new(0.2,0.2,0.2)
  909. blast2.Transparency = blast2.Transparency + 0.025
  910. blastlight.Range = blastlight.Range - 2
  911. wait()
  912. end
  913. blast:Destroy()
  914. blast2:Destroy()
  915. --bp:Destroy()
  916.  
  917. hum.WalkSpeed = 8
  918.  
  919. end
  920. humanoid = char:FindFirstChild("Humanoid")
  921. anim = humanoid:FindFirstChild("Animator")
  922. animo = function(dF)
  923. if anim then
  924. if dF == true then
  925. anim.Parent = humanoid
  926. char.Animate.Disabled = false
  927. elseif dF == false then
  928. char.Animate.Disabled = true
  929. anim.Parent = nil
  930. end
  931. end
  932. end
  933.  
  934. char.Archivable = true
  935. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  936. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  937. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  938. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  939. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  940. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  941. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  942. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  943. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  944. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  945. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  946. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  947. resetlerp = function()
  948. RJ.C0 = RJC0
  949. RJ.C1 = RJC1
  950. N.C0 = NC0
  951. N.C1 = NC1
  952. RS.C0 = RSC0
  953. RS.C1 = RSC1
  954. LS.C0 = LSC0
  955. LS.C1 = LSC1
  956. RH.C0 = RHC0
  957. RH.C1 = RHC1
  958. LH.C0 = LHC0
  959. LH.C1 = LHC1
  960. end
  961. halfsize = titansize/2
  962. function unshift()
  963. -- Attack = true
  964. animo(false)
  965. local Alpha,Easing,Direction,Repeat,Reverse,Delay = 2,'Back','Out',0,false,0
  966. TweenAnimate(RootJoint,{C0=cf(0*titansize,-1.3*titansize,-0.3*titansize)*angles(math.rad(-21.2),math.rad(0),math.rad(0))*RootCF},Alpha,Easing,Direction,Repeat,Reverse,Delay)
  967. TweenAnimate(LH,{C0=cf(-1*titansize,-1*titansize,-1*titansize)*angles(math.rad(-71.7),math.rad(5.7),math.rad(-11.9))*angles(math.rad(0),math.rad(-90),math.rad(0))},Alpha,Easing,Direction,Repeat,Reverse,Delay)
  968. TweenAnimate(RH,{C0=cf(1*titansize,-1*titansize,-1*titansize)*angles(math.rad(-67.1),math.rad(-7.7),math.rad(8.7))*angles(math.rad(0),math.rad(90),math.rad(0))},Alpha,Easing,Direction,Repeat,Reverse,Delay)
  969. TweenAnimate(LW,{C0=cf(-1.5*halfsize,0*titansize,-0.5*titansize)*angles(math.rad(35),math.rad(-13.7),math.rad(0))*LeftShoulderC0},Alpha,Easing,Direction,Repeat,Reverse,Delay)
  970. TweenAnimate(RW,{C0=cf(1.5*halfsize,0*titansize,-0.5*titansize)*angles(math.rad(30.7),math.rad(19.4),math.rad(1.5))*RightShoulderC0},Alpha,Easing,Direction,Repeat,Reverse,Delay)
  971. TweenAnimate(Neck,{C0 =necko*CFrame.new(0,0,titansize)*angles(math.rad(39.7),math.rad(0),math.rad(0))},Alpha,Easing,Direction,Repeat,Reverse,Delay)
  972. wait(Alpha)
  973. local bodys = char:Clone()
  974. TransformR6(char,1)
  975. bodys.Parent = workspace
  976. animo(true)
  977. resetlerp()
  978. RootPart.CFrame = necktry.CFrame
  979.  
  980. for _,v in pairs(bodys:GetDescendants()) do
  981. if v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("UnionOperation") then
  982. v.CanCollide = true
  983. v.Anchored = true
  984. end
  985. end
  986.  
  987.  
  988. for _,v in pairs(char:GetDescendants()) do
  989. if v:IsA("Accessory") then
  990. v.Handle.Transparency = 0
  991. end
  992. end
  993. for _,v in pairs(char:GetDescendants()) do
  994. if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
  995. v.Transparency = 0
  996. end
  997. end
  998. -- appeared = false
  999. wait(.1)
  1000. --thenoob.Parent = nil
  1001. TitanIs = false
  1002. for _,v in pairs(Resources:GetChildren()) do
  1003. if v.Name == "3dmg" then
  1004. wait(3)
  1005. local new = v:Clone()
  1006. new.Parent = char
  1007. wait(1)
  1008. v:Destroy()
  1009. end
  1010. end
  1011. wait(5)
  1012. for _,v in pairs(bodys:GetDescendants()) do
  1013. if v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("UnionOperation") then
  1014. TweenAnimate(v,{Transparency = 1},6,"Linear","Out",0,false,0) TweenAnimate(v,{Color = Color3.new(0,0,0)},6,"Linear","Out",0,false,0)
  1015. end
  1016. end
  1017. wait(2)
  1018. bodys:Destroy()
  1019. end
  1020. spawn(function()
  1021. hum.HealthChanged:connect(function()
  1022. if TitanIs == false and hum.Health <= 35 then
  1023. hum.PlatformStand = true
  1024. Shift(char)
  1025. hum.Health = hum.MaxHealth
  1026. end
  1027. end)
  1028. end)
  1029. spawn(function()
  1030. hum.Died:connect(function()
  1031. if TitanIs == true then
  1032. hum:Destroy()
  1033. hum = Instance.new("Humanoid", char)
  1034. unshift()
  1035. end
  1036. end)
  1037. end)
  1038.  
  1039.  
  1040. mouse.KeyDown:connect(function(k)
  1041. if k == "e" and TitanIs == true then
  1042. if not attack then
  1043. attack = true
  1044. local hitbox = Instance.new("Part", char)
  1045. hitbox.Size = Vector3.new(100,100,100)
  1046. hitbox.CanCollide = false
  1047. hitbox.Anchored = false
  1048. hitbox.Transparency = 1
  1049. local hitboxweld = Instance.new("Weld", hitbox)
  1050. hitboxweld.Part0 = tor
  1051. hitboxweld.Part1 = hitbox
  1052. hitboxweld.C0 = CFrame.new(0,-5,0)
  1053. spawn(function()
  1054. local debounce = false
  1055. hitbox.Touched:connect(function(hit)
  1056. if debounce == false then
  1057. if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Parent ~= char then
  1058. debounce = true
  1059. hit.Parent:FindFirstChildOfClass('Humanoid'):TakeDamage(5)
  1060. for i, parts in pairs(hit.Parent:GetDescendants()) do
  1061. if parts:IsA("BasePart") then
  1062. local sbs = Instance.new("BodyPosition", parts)
  1063. sbs.P = 3000
  1064. sbs.D = 1000
  1065. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1066. sbs.position = (parts.Position - lleg.CFrame.p).Unit*500
  1067. game.Debris:AddItem(sbs, 2)
  1068. end
  1069. end
  1070. end
  1071. wait(.5)
  1072. debounce = false
  1073. end
  1074. end)
  1075. end)
  1076. spawn(function()
  1077. emitsteam()
  1078. end)
  1079. wait(4)
  1080. hitbox:Destroy()
  1081. attack = false
  1082. end
  1083. end
  1084. if k == "b" and TitanIs == false then
  1085. Regeneration()
  1086. end
  1087. if k == "p" and TitanIs == false then
  1088. if not attack then
  1089. attack = true
  1090. Shift(char)
  1091. attack = false
  1092. end
  1093. elseif k == "p" and TitanIs == true then
  1094. if not attack then
  1095. attack = true
  1096. unshift()
  1097. attack = false
  1098. end
  1099. end
  1100. end)
  1101. --[[mouse.KeyUp:connect(function(k)
  1102. if k:byte() == 48 then
  1103. if not attack then
  1104. hum.WalkSpeed = 16
  1105. end
  1106. end
  1107. end)]]
  1108.  
Advertisement
Add Comment
Please, Sign In to add comment