carlosname

Untitled

Mar 29th, 2021 (edited)
724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.30 KB | None | 0 0
  1. --Made by Fuexname/Carlosname
  2. -- date:3/25/2021
  3. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  7. local function NewFakeEvent()
  8. local Bind = Instance.new("BindableEvent")
  9. local Fake;Fake = {Connections = {},
  10. fakeEvent=true;
  11. Connect=function(self,Func)
  12. Bind.Event:connect(Func)
  13. self.Connections[Bind] = true
  14. return setmetatable({Connected = true},{
  15. __index = function (self,Index)
  16. if Index:lower() == "disconnect" then
  17. return function() Fake.Connections[Bind] = false;self.Connected = false end
  18. end
  19. return Fake[Index]
  20. end;
  21. __tostring = function() return "Connection" end;
  22. })
  23. end}
  24. Fake.connect = Fake.Connect;return Fake;
  25. end
  26. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  27. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  28. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  29. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  30. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  31. local function TriggerEvent(self,Event,...)
  32. local Trigger = Mouse[Event]
  33. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  34. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  35. end
  36. end
  37. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  38. Event.OnServerEvent:Connect(function(FiredBy,Input)
  39. if FiredBy.Name ~= owner.Name then return end
  40. if Input.MouseEvent then
  41. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  42. else
  43. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  44. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  45. for _,Action in pairs(ContextActionService.Actions) do
  46. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  47. end
  48. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  49. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  50. end
  51. end)
  52. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  53. Event.Parent = NLS([[
  54. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  55. local Input = function(Input,gameProcessedEvent)
  56. if gameProcessedEvent then return end
  57. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  58. end
  59. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  64. end
  65. end
  66. ]],owner.Character)
  67. end
  68. RealGame = game;game = setmetatable({},{
  69. __index = function (self,Index)
  70. local Sandbox = function (Thing)
  71. if Thing:IsA("Player") then
  72. local RealPlayer = Thing
  73. return setmetatable({},{
  74. __index = function (self,Index)
  75. local Type = type(RealPlayer[Index])
  76. if Type == "function" then
  77. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  78. return function (self)return InternalData["Mouse"] end
  79. end
  80. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  81. end
  82. return RealPlayer[Index]
  83. end;
  84. __tostring = function(self) return RealPlayer.Name end
  85. })
  86. end
  87. end
  88. if RealGame[Index] then
  89. local Type = type(RealGame[Index])
  90. if Type == "function" then
  91. if Index:lower() == "getservice" or Index:lower() == "service" then
  92. return function (self,Service)
  93. local FakeServices = {
  94. ["players"] = function()
  95. return setmetatable({},{
  96. __index = function (self2,Index2)
  97. local RealService = RealGame:GetService(Service)
  98. local Type2 = type(Index2)
  99. if Type2 == "function" then
  100. return function (self,...) return RealService[Index2](RealService,...)end
  101. else
  102. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  103. return RealService[Index2]
  104. end
  105. end;
  106. __tostring = function(self) return RealGame:GetService(Service).Name end
  107. })
  108. end;
  109. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  110. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  111. ["runservice"] = function()
  112. return setmetatable({},{
  113. __index = function(self2,Index2)
  114. local RealService = RealGame:GetService(Service)
  115. local Type2 = type(Index2)
  116. if Type2 == "function" then
  117. return function (self,...) return RealService[Index2](RealService,...) end
  118. else
  119. local RunServices = {
  120. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  121. ["renderstepped"] = function() return RealService["Stepped"] end
  122. }
  123. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  124. return RealService[Index2]
  125. end
  126. end
  127. })
  128. end
  129. }
  130. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  131. return RealGame:GetService(Service)
  132. end
  133. end
  134. return function (self,...) return RealGame[Index](RealGame,...) end
  135. else
  136. if game:GetService(Index) then return game:GetService(Index) end
  137. return RealGame[Index]
  138. end
  139. end
  140. return nil
  141. end
  142. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  143.  
  144.  
  145. wait(0.1)
  146. local plr = game.Players.LocalPlayer
  147. local mouse = plr:GetMouse()
  148. local char = plr.Character
  149. hum = char.Humanoid
  150. local hed = char.Head
  151. local RootPart = char.HumanoidRootPart
  152. local root = char.HumanoidRootPart
  153. local angle = 0
  154. local LightningColor = BrickColor.new('Daisy orange')
  155. local larm = char["Left Arm"]
  156. local rarm = char["Right Arm"]
  157. local lleg = char["Left Leg"]
  158. local rleg = char["Right Leg"]
  159. local tor = char.Torso
  160. local head = char.Head
  161. local root = char.HumanoidRootPart
  162. local sine = 0
  163. local RH = tor["Right Hip"]
  164. local LH = tor["Left Hip"]
  165. local RS = tor["Right Shoulder"]
  166. local LS = tor["Left Shoulder"]
  167. local neck = tor.Neck
  168. local rootjoint = root.RootJoint
  169. local Anim = "Idle"
  170. local id = -8
  171. local opposite = false
  172. local opposite2 = false
  173. local step = 40
  174. local attack = false
  175. local attacktype = 1
  176. local cf = CFrame.new
  177. local angles = CFrame.Angles
  178. function swait()
  179. game:GetService("RunService").Heartbeat:wait()
  180. end
  181. local AnimSpeed = 2.5
  182. local FrameSpeed = 1 / 60
  183. local Sine = 0
  184. local Change = 2 / AnimSpeed
  185. local Attack = false
  186. local DefaultAnims = true
  187. RS = tor:FindFirstChild("Right Shoulder")
  188. LS = tor:FindFirstChild("Left Shoulder")
  189. RH = tor:FindFirstChild("Right Hip")
  190. LH = tor:FindFirstChild("Left Hip")
  191. RJ = RootPart:FindFirstChild("RootJoint")
  192. N = tor:FindFirstChild("Neck")
  193. local RootPart = char["HumanoidRootPart"]
  194. local Torso = char["Torso"]
  195. local Head = char["Head"]
  196. local RightArm = char["Right Arm"]
  197. local LeftArm = char["Left Arm"]
  198. local RightLeg = char["Right Leg"]
  199. local LeftLeg = char["Left Leg"]
  200. local titansize = 60
  201. local RootJoint = RootPart.RootJoint
  202. local Neck = Torso.Neck
  203. local LW = Torso["Left Shoulder"]
  204. local LH = Torso["Left Hip"]
  205. local RW = Torso["Right Shoulder"]
  206. local RH = Torso["Right Hip"]
  207. Head=char.Head
  208. Root=char.HumanoidRootPart
  209. 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"]
  210. --------Important stuff -----------
  211. 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
  212. 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
  213. cn=CFrame.new euler=CFrame.fromEulerAnglesXYZ
  214. -----------------------------------
  215. local MM = {RN = math.random, CS = math.cos, AS = math.acos, RD = math.rad, SN = math.sin}
  216. local CC = {NW = CFrame.new, AA = CFrame.Angles}
  217. local CLR = {B = BrickColor.new, T = Color3.new, RGB = Color3.fromRGB}
  218. local VV = Vector3.new
  219. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  220. local motors = {}
  221. for _, v in pairs(char:GetDescendants()) do
  222. if v:IsA("Motor6D") then
  223. motors[v.Part1.Name] = v
  224. end
  225. end
  226. local necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  227. local necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  228. local LHC0 = cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  229. local LHC1 = cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  230. local RHC0 = cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  231. local RHC1 = cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  232. local RightShoulderC0 = cf(-0.5, 0, 0) * angles(Rad(0), Rad(90), Rad(0))
  233. local LeftShoulderC0 = cf(0.5, 0, 0) * angles(Rad(0), Rad(-90), Rad(0))
  234. function TweenAnimate(object,Aniim,time,easingstyle,easingdirection,repet,reverse,deelay)
  235. local infos=TweenInfo.new(time,Enum.EasingStyle[easingstyle],Enum.EasingDirection[easingdirection],repet,reverse,deelay)
  236. local tween=game:GetService("TweenService"):Create(object,infos,Aniim)
  237. tween:Play()
  238. return tween
  239. end
  240. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  241. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  242. end
  243. function CreateRing(maxsize,paar)
  244. spawn(function()
  245. local ringpart = Instance.new("Part", paar)
  246. ringpart.Name = "Ring"
  247. ringpart.Size = Vector3.new(1,1,1)
  248. ringpart.CFrame = tor.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  249. ringpart.CanCollide = false
  250. ringpart.Anchored = true
  251. ringpart.BrickColor = LightningColor
  252. ringpart.Material = Enum.Material.Neon
  253. local ringpartmesh = Instance.new('SpecialMesh', ringpart)
  254. ringpartmesh.MeshId = "rbxassetid://3270017"
  255. ringpartmesh.Scale = Vector3.new(1,1,1)
  256. ringpartmesh.VertexColor = Vector3.new(LightningColor.r,LightningColor.b,LightningColor.g)
  257. spawn(function()
  258. for i = 1,5, 0.1 do
  259. ringpartmesh.Scale = ringpartmesh.Scale:Lerp(Vector3.new(maxsize*10,maxsize*10,maxsize*10),0.1)
  260. wait()
  261. end
  262. end)
  263. wait(.5)
  264. for i = 1,20 do
  265. ringpart.Transparency = ringpart.Transparency + 0.05
  266. wait()
  267. end
  268. game.Debris:AddItem(ringpart, 5)
  269. end)
  270. end
  271.  
  272. function HitboxFunction(Parent, Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  273. local Hitboxpart = Instance.new("Part", Parent)
  274. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  275. Hitboxpart.CanCollide = false
  276. Hitboxpart.Transparency = 1
  277. Hitboxpart.Anchored = true
  278. Hitboxpart.CFrame = Pose
  279. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  280. Hitboxpart.Touched:connect(function(hit)
  281. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= char then
  282.  
  283. --131237241
  284. local bv = Instance.new("BodyVelocity", hit.Parent.HumanoidRootPart)
  285. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  286. bv.Velocity = (tor.Position - hit.Parent.HumanoidRootPart.Position).Unit
  287. hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(Min,Max))
  288. end
  289. end)
  290. end
  291.  
  292. function Lerp(c1,c2,al)
  293. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  294. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  295. for i,v in pairs(com1) do
  296. com1[i] = v+(com2[i]-v)*al
  297. end
  298. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  299. end
  300. function QuaternionFromCFrame(cf)
  301. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  302. local trace = m00 + m11 + m22
  303. if trace > 0 then
  304. local s = math.sqrt(1 + trace)
  305. local recip = 0.5 / s
  306. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  307. else
  308. local i = 0
  309. if m11 > m00 then
  310. i = 1
  311. end
  312. if m22 > (i == 0 and m00 or m11) then
  313. i = 2
  314. end
  315. if i == 0 then
  316. local s = math.sqrt(m00 - m11 - m22 + 1)
  317. local recip = 0.5 / s
  318. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  319. elseif i == 1 then
  320. local s = math.sqrt(m11 - m22 - m00 + 1)
  321. local recip = 0.5 / s
  322. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  323. elseif i == 2 then
  324. local s = math.sqrt(m22 - m00 - m11 + 1)
  325. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  326. end
  327. end
  328. end
  329.  
  330. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  331. local xs, ys, zs = x + x, y + y, z + z
  332. local wx, wy, wz = w * xs, w * ys, w * zs
  333. local xx = x * xs
  334. local xy = x * ys
  335. local xz = x * zs
  336. local yy = y * ys
  337. local yz = y * zs
  338. local zz = z * zs
  339. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  340. end
  341.  
  342. function QuaternionSlerp(a, b, t)
  343. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  344. local startInterp, finishInterp;
  345. if cosTheta >= 0.0001 then
  346. if (1 - cosTheta) > 0.0001 then
  347. local theta = math.acos(cosTheta)
  348. local invSinTheta = 1 / math.sin(theta)
  349. startInterp = math.sin((1 - t) * theta) * invSinTheta
  350. finishInterp = math.sin(t * theta) * invSinTheta
  351. else
  352. startInterp = 1 - t
  353. finishInterp = t
  354. end
  355. else
  356. if (1 + cosTheta) > 0.0001 then
  357. local theta = math.acos(-cosTheta)
  358. local invSinTheta = 1 / math.sin(theta)
  359. startInterp = math.sin((t - 1) * theta) * invSinTheta
  360. finishInterp = math.sin(t * theta) * invSinTheta
  361. else
  362. startInterp = t - 1
  363. finishInterp = t
  364. end
  365. end
  366. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  367. end
  368.  
  369. function Clerp(a, b, t)
  370. local qa = {QuaternionFromCFrame(a)}
  371. local qb = {QuaternionFromCFrame(b)}
  372. local ax, ay, az = a.x, a.y, a.z
  373. local bx, by, bz = b.x, b.y, b.z
  374. local _t = 1 - t
  375. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  376. end
  377.  
  378.  
  379. local defaults = {
  380. ["Head"] = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0);
  381. ["Left Arm"] = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0);
  382. ["Left Leg"] = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0);
  383. ["Right Arm"] = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0);
  384. ["Right Leg"] = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0);
  385. ["Torso"] = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0);
  386. }
  387.  
  388. function playAnimation(keyframes)
  389.  
  390. for i,v in pairs(motors) do
  391. local name = tostring(v.Part1)
  392. if keyframes[name] then
  393. coroutine.resume(coroutine.create(function()
  394. for x = 0,1,.1 do
  395. v.C0 = Clerp(v.C0,defaults[name] * keyframes[name],x)
  396. game:GetService("RunService").Stepped:Wait()
  397. end
  398. end))
  399. end
  400. end
  401.  
  402. end
  403.  
  404. function motorsToDefault()
  405. for i,v in pairs(motors) do
  406. local name = tostring(v.Part1)
  407.  
  408. coroutine.resume(coroutine.create(function()
  409. for x = 0,1,.1 do
  410. v.C0 = Clerp(v.C0,defaults[name] ,x)
  411. game:GetService("RunService").Stepped:Wait()
  412. end
  413. end))
  414. end
  415. end
  416. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  417. local wld = Instance.new("Weld", wp1)
  418. wld.Part0 = wp0
  419. wld.Part1 = wp1
  420. wld.Name = wp1.Name
  421. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  422. end
  423.  
  424. script.Parent = workspace
  425. Clones = Instance.new("Model",workspace)
  426. char.Archivable = true
  427. function TransformR6(p, size)
  428. local pchar = p
  429. if pchar then
  430. local function scale(chr,scl)
  431. BC = Instance.new("BodyColors",chr)
  432. BC.HeadColor = BrickColor.new("Crimson")
  433. BC.LeftArmColor = BrickColor.new("Crimson")
  434. BC.LeftLegColor = BrickColor.new("Crimson")
  435. BC.RightArmColor = BrickColor.new("Crimson")
  436. BC.RightLegColor = BrickColor.new("Crimson")
  437. BC.TorsoColor = BrickColor.new("Crimson")
  438. -- Smoke2.Enabled = true
  439. --Smoke1.Enabled = true
  440. -- wait(0.5)
  441. --Smoke2.Enabled = false
  442. --Smoke1.Enabled = false
  443. ---
  444. local Head = chr['Head']
  445. local Torso = chr['Torso']
  446. local LA = chr['Left Arm']
  447. local RA = chr['Right Arm']
  448. local LL = chr['Left Leg']
  449. local RL = chr['Right Leg']
  450. local HRP = chr['HumanoidRootPart']
  451.  
  452. --wait(0.1)
  453.  
  454. Head.formFactor = 3
  455. Torso.formFactor = 3
  456. LA.formFactor = 3
  457. RA.formFactor = 3
  458. LL.formFactor = 3
  459. RL.formFactor = 3
  460. HRP.formFactor = 3
  461.  
  462. Head.Size = Vector3.new(scl, scl, scl)
  463. LA.Size = Vector3.new(scl/2, scl * 2, scl/2)
  464. RA.Size = Vector3.new(scl/2, scl * 2, scl/2)
  465. Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  466. LL.Size = Vector3.new(scl, scl * 2, scl)
  467. RL.Size = Vector3.new(scl, scl * 2, scl)
  468. HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  469.  
  470.  
  471.  
  472. --sizes = scl
  473. local Motor1 = Torso["Neck"]
  474. --Motor1.Part0 = Torso
  475. --Motor1.Part1 = Head
  476. Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  477. Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  478. --Motor1.Name = "Neck"
  479.  
  480. local Motor2 = Torso["Left Shoulder"]
  481. -- Motor2.Part0 = Torso
  482. -- Motor2.Part1 = LA
  483. Motor2.C0 = CFrame.new(-0.7 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  484. Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  485. --Motor2.Name = "Left Shoulder"
  486.  
  487. local Motor3 = Torso["Right Shoulder"]
  488. --Motor3.Part0 = Torso
  489. --Motor3.Part1 = RA
  490. Motor3.C0 = CFrame.new(0.7 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  491. Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  492. --Motor3.Name = "Right Shoulder"
  493.  
  494. local Motor4 = Torso["Left Hip"]
  495. --Motor4.Part0 = Torso
  496. --Motor4.Part1 = LL
  497. Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  498. Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  499. --Motor4.Name = "Left Hip"
  500.  
  501. local Motor5 = Torso["Right Hip"]
  502. --Motor5.Part0 = Torso
  503. --Motor5.Part1 = RL
  504. Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  505. Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  506. Motor5.Name = "Right Hip"
  507.  
  508. local Motor6 = HRP["RootJoint"]
  509. --Motor6.Part0 = HRP
  510. --Motor6.Part1 = Torso
  511. Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  512. Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  513.  
  514. end
  515.  
  516. scale(pchar, size)
  517. pchar.Humanoid.WalkSpeed = 15 + size
  518. hum.JumpPower = 50 + size + size
  519. ---
  520.  
  521.  
  522. end
  523. end
  524. coroutine.resume(coroutine.create(function()
  525. end))
  526. halfsize = titansize/2
  527. function Shift(charact)
  528. local blast = Instance.new("Part", charact)
  529. blast.Size = Vector3.new(1*halfsize,1*halfsize,1*halfsize)
  530. blast.CFrame = charact.HumanoidRootPart.CFrame
  531. blast.Anchored = true
  532. blast.CanCollide = false
  533. blast.CastShadow = false
  534. blast.BrickColor = LightningColor
  535. blast.Material = Enum.Material.Neon
  536. blast.Transparency = 1
  537. local blastmesh = Instance.new("SpecialMesh", blast)
  538. blastmesh.Scale = Vector3.new(0,0,0)
  539. blastmesh.MeshType = Enum.MeshType.Sphere
  540. local blastlight = Instance.new("PointLight", blast)
  541. blastlight.Color = BrickColor.new('Deep orange').Color
  542. blastlight.Range = 0
  543. blastlight.Enabled = false
  544. local blast2 = Instance.new("Part", charact)
  545. blast2.Size = Vector3.new(1*halfsize,1*halfsize,1*halfsize)
  546. blast2.CFrame = charact.HumanoidRootPart.CFrame
  547. blast2.Anchored = true
  548. blast2.CanCollide = false
  549. blast2.CastShadow = false
  550. blast2.Transparency = 1
  551. blast2.BrickColor = BrickColor.new('Bright orange')
  552. blast2.Material = Enum.Material.Neon
  553. local blastmesh2 = Instance.new("SpecialMesh", blast2)
  554. blastmesh2.Scale = Vector3.new(0.2,0.2,0.2)
  555. blastmesh2.MeshType = Enum.MeshType.Sphere
  556. charact.Humanoid.WalkSpeed = 0
  557.  
  558.  
  559. wait(1)
  560. local bp = Instance.new("BodyPosition", charact.Torso)
  561. bp.Position = charact.Torso.Position + Vector3.new(0,5*titansize, 0)
  562. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  563. spawn(function()
  564. local sound = Instance.new("Sound", charact.HumanoidRootPart)
  565. sound.Name = "Static"
  566. sound.SoundId = "rbxassetid://3673187353"
  567. sound.Volume = 4
  568. sound.TimePosition = 0.3
  569. sound:Play()
  570. local soundreverb = Instance.new("ReverbSoundEffect", sound)
  571. soundreverb.DryLevel = 0
  572. soundreverb.WetLevel = 0
  573. soundreverb.DecayTime = 0.1
  574. game.Debris:AddItem(sound,10)
  575. end)
  576.  
  577. spawn(function()
  578. for i = 1,10 do
  579. spawn(function()
  580. for i = 1,5 do
  581. angle = angle + 0.6
  582. local Model = Instance.new("Model",charact)
  583. Model.Name = "Lightning"
  584. local Point1 = Instance.new("Part",Model)
  585. Point1.Transparency = 1
  586. Point1.Size = Vector3.new(0.2,0.2,0.2)
  587. Point1.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,60,-(charact.HumanoidRootPart.Size.Z/2+Point1.Size.Z/2))
  588. Point1.Anchored = true
  589. Point1.CanCollide = false
  590. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  591.  
  592. local Point2 = Instance.new("Part",Model)
  593. Point2.Transparency = 1
  594. Point2.Size = Vector3.new(0.2,0.2,0.2)
  595. Point2.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,50,-(charact.HumanoidRootPart.Size.Z/2+Point2.Size.Z/2))
  596. Point2.Anchored = true
  597. Point2.CanCollide = false
  598. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-8,8),math.random(-8,8),-math.random(0,8))
  599.  
  600. local Point3 = Instance.new("Part",Model)
  601. Point3.Transparency = 1
  602. Point3.Size = Vector3.new(0.2,0.2,0.2)
  603. Point3.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,30,-(charact.HumanoidRootPart.Size.Z/2+Point3.Size.Z/2))
  604. Point3.Anchored = true
  605. Point3.CanCollide = false
  606. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-6,6),math.random(-6,6),-math.random(0,6))
  607.  
  608. local Point4 = Instance.new("Part",Model)
  609. Point4.Transparency = 1
  610. Point4.Size = Vector3.new(0.2,0.2,0.2)
  611. Point4.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,20,-(charact.HumanoidRootPart.Size.Z/2+Point1.Size.Z/2))
  612. Point4.Anchored = true
  613. Point4.CanCollide = false
  614. Point4.CFrame = Point4.CFrame * CFrame.new(math.random(-4,4),math.random(-4,4),-math.random(0,4))
  615.  
  616. local Point5 = Instance.new("Part",Model)
  617. Point5.Transparency = 1
  618. Point5.Size = Vector3.new(0.2,0.2,0.2)
  619. Point5.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,10,-(charact.HumanoidRootPart.Size.Z/2+Point2.Size.Z/2))
  620. Point5.Anchored = true
  621. Point5.CanCollide = false
  622. Point5.CFrame = Point5.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  623.  
  624. local Point6 = Instance.new("Part",Model)
  625. Point6.Transparency = 1
  626. Point6.Size = Vector3.new(0.2,0.2,0.2)
  627. Point6.CFrame = charact.Head.CFrame
  628. Point6.Anchored = true
  629. Point6.CanCollide = false
  630.  
  631. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  632. local Light = Instance.new("Part",Model)
  633. local PointLight = Instance.new("PointLight",Light)
  634. PointLight.Range = 5
  635. PointLight.Color = LightningColor.Color
  636. Light.Transparency = 0
  637. Light.BrickColor= LightningColor
  638. Light.Material = "Neon"
  639. Light.Size = Vector3.new(0.2,0.2,distance)
  640. Light.Anchored = true
  641. Light.CanCollide = false
  642. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  643.  
  644. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  645. local Light = Instance.new("Part",Model)
  646. local PointLight = Instance.new("PointLight",Light)
  647. PointLight.Range = 5
  648. PointLight.Color = LightningColor.Color
  649. Light.Transparency = 0
  650. Light.BrickColor= LightningColor
  651. Light.Material = "Neon"
  652. Light.Size = Vector3.new(0.2,0.2,distance2)
  653. Light.Anchored = true
  654. Light.CanCollide = false
  655. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  656.  
  657. local distance3 = (Point4.CFrame.p - Point3.CFrame.p).magnitude
  658. local Light = Instance.new("Part",Model)
  659. local PointLight = Instance.new("PointLight",Light)
  660. PointLight.Range = 5
  661. PointLight.Color = LightningColor.Color
  662. Light.Transparency = 0
  663. Light.BrickColor= LightningColor
  664. Light.Material = "Neon"
  665. Light.Size = Vector3.new(0.2,0.2,distance3)
  666. Light.Anchored = true
  667. Light.CanCollide = false
  668. Light.CFrame = CFrame.new(Point4.CFrame.p , Point3.CFrame.p) * CFrame.new(0,0,-distance3/2)
  669.  
  670. local distance4 = (Point5.CFrame.p - Point4.CFrame.p).magnitude
  671. local Light = Instance.new("Part",Model)
  672. local PointLight = Instance.new("PointLight",Light)
  673. PointLight.Range = 5
  674. PointLight.Color = LightningColor.Color
  675. Light.Transparency = 0
  676. Light.BrickColor= LightningColor
  677. Light.Material = "Neon"
  678. Light.Size = Vector3.new(0.2,0.2,distance4)
  679. Light.Anchored = true
  680. Light.CanCollide = false
  681. Light.CFrame = CFrame.new(Point5.CFrame.p , Point4.CFrame.p) * CFrame.new(0,0,-distance4/2)
  682.  
  683. local distance5 = (Point6.CFrame.p - Point5.CFrame.p).magnitude
  684. local Light = Instance.new("Part",Model)
  685. local PointLight = Instance.new("PointLight",Light)
  686. PointLight.Range = 5
  687. PointLight.Color = LightningColor.Color
  688. Light.Transparency = 0
  689. Light.BrickColor= LightningColor
  690. Light.Material = "Neon"
  691. Light.Size = Vector3.new(0.2,0.2,distance5)
  692. Light.Anchored = true
  693. Light.CanCollide = false
  694. Light.CFrame = CFrame.new(Point6.CFrame.p , Point5.CFrame.p) * CFrame.new(0,0,-distance5/2)
  695. wait()
  696. Model:Destroy()
  697. wait()
  698. end
  699. end)
  700. end
  701. end)
  702. wait(.5)
  703. for _,v in pairs(charact:GetChildren()) do
  704. if v.Name == "3dmg" or v:IsA("Weld") or v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Accessory") or v:IsA("Hat") or v:IsA("Accoutrement") then
  705. v:Destroy()
  706. end
  707. end
  708. blast.Transparency = 0
  709. blast2.Transparency = 0.5
  710. blastlight.Enabled = true
  711. spawn(function()
  712. local sound = Instance.new("Sound", charact.Torso)
  713. sound.SoundId = "rbxassetid://93724183"
  714. sound.Volume = 4
  715. sound.Pitch = 0.9
  716. sound:Play()
  717. local soundreverb = Instance.new("ReverbSoundEffect", sound)
  718. soundreverb.DryLevel = 0
  719. soundreverb.WetLevel = 0
  720. soundreverb.DecayTime = 0.1
  721. game.Debris:AddItem(sound,10)
  722. end)
  723. local sparksp = Instance.new("ParticleEmitter", charact.Torso)
  724. sparksp.LightEmission = 1
  725. sparksp.LightInfluence = 1
  726. sparksp.Color = ColorSequence.new(Color3.fromRGB(84, 84, 84),Color3.fromRGB(255, 255, 255))
  727. sparksp.Size = NumberSequence.new(10,4)
  728. sparksp.Texture = "http://www.roblox.com/asset/?id=122434485"
  729. sparksp.Transparency = NumberSequence.new(0)
  730. sparksp.ZOffset = 9
  731. sparksp.Lifetime = NumberRange.new(5)
  732. sparksp.Rate = 200
  733. sparksp.RotSpeed = NumberRange.new(0)
  734. sparksp.Speed = NumberRange.new(40)
  735. sparksp.SpreadAngle = Vector2.new(-100,100)
  736. sparksp.Acceleration = Vector3.new(0,-10,0)
  737.  
  738. local sparksp = Instance.new("ParticleEmitter", charact.Torso)
  739. sparksp.LightEmission = 1
  740. sparksp.LightInfluence = 0
  741. sparksp.Color = ColorSequence.new(Color3.new(1,1,0),Color3.new(1,0,0))
  742. sparksp.Size = NumberSequence.new(2,0)
  743. sparksp.Texture = "rbxasset://textures/particles/sparkles_main.dds"
  744. sparksp.Transparency = NumberSequence.new(0)
  745. sparksp.ZOffset = 2
  746. sparksp.Lifetime = NumberRange.new(5)
  747. sparksp.Rate = 5000
  748. sparksp.RotSpeed = NumberRange.new(-360,360)
  749. sparksp.Speed = NumberRange.new(60)
  750. sparksp.SpreadAngle = Vector2.new(360,360)
  751. sparksp.Acceleration = Vector3.new(0,10,0)
  752. for i = 1,30 do
  753. blast.CFrame = charact.Torso.CFrame
  754. blastmesh.Scale = blastmesh.Scale + Vector3.new(5,5,5)
  755. blast2.CFrame = charact.Torso.CFrame
  756. blastmesh2.Scale = blastmesh2.Scale + Vector3.new(5,5,5)
  757. blastlight.Range = blastlight.Range + 2
  758. wait()
  759. end
  760. spawn(function()
  761. local Value = Instance.new("BoolValue",charact)
  762. Value.Name = "IsTitan"
  763. TransformR6(charact,titansize)
  764. end)
  765. wait(1)
  766. sparksp.Enabled = false
  767. for i = 1,20 do
  768. blastmesh.Scale = blastmesh.Scale + Vector3.new(0.1,0.1,0.1)
  769. blast.Transparency = blast.Transparency + 0.05
  770. blastmesh2.Scale = blastmesh2.Scale + Vector3.new(0.2,0.2,0.2)
  771. blast2.Transparency = blast2.Transparency + 0.025
  772. blastlight.Range = blastlight.Range - 2
  773. wait()
  774. end
  775. blast:Destroy()
  776. blast2:Destroy()
  777. bp:Destroy()
  778. local bo = Instance.new("Part", charact.Torso)
  779. bo.Size = Vector3.new(3*titansize,4*titansize,3*titansize)
  780. bo.Anchored = false
  781. bo.CanCollide = false
  782. bo.Massless = true
  783. bo.Material = "ForceField"
  784. bo.Transparency = 1
  785. newWeld(charact.Head,bo,0,0,0)
  786. bo.Touched:connect(function(hit)
  787. if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Parent ~= char and not hit.Parent:FindFirstChild("IsTitant") and not hit.Parent == char and not hit.Parent.Parent == Clones then
  788. hit.Parent:FindFirstChildOfClass('Humanoid'):TakeDamage(5)
  789. for i, parts in pairs(hit.Parent:GetDescendants()) do
  790. if parts:IsA("BasePart") then
  791. local sbs = Instance.new("BodyPosition", parts)
  792. sbs.P = 3000
  793. sbs.D = 1000
  794. sbs.maxForce = Vector3.new(5000, 5000, 5000)
  795. sbs.position = (parts.Position - lleg.CFrame.p).Unit*500
  796. game.Debris:AddItem(sbs,2)
  797. end
  798. end
  799. end
  800. end)
  801.  
  802. charact.Humanoid.WalkSpeed = 8
  803.  
  804. end
  805. function unshift(bodys)
  806. local nRootJoint = bodys.HumanoidRootPart.RootJoint
  807. local nNeck = bodys.Torso.Neck
  808. local nLW = bodys.Torso["Left Shoulder"]
  809. local nLH = bodys.Torso["Left Hip"]
  810. local nRW = bodys.Torso["Right Shoulder"]
  811. local nRH = bodys.Torso["Right Hip"]
  812. bodys.HumanoidRootPart.Anchored = true
  813. local Alpha,Easing,Direction,Repeat,Reverse,Delay = 4.5,'Back','Out',0,false,0
  814. TweenAnimate(nRootJoint,{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)
  815. TweenAnimate(nLH,{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)
  816. TweenAnimate(nRH,{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)
  817. TweenAnimate(nLW,{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)
  818. TweenAnimate(nRW,{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)
  819. TweenAnimate(nNeck,{C0 =necko*CFrame.new(0,0,titansize)*angles(math.rad(39.7),math.rad(0),math.rad(0))},Alpha,Easing,Direction,Repeat,Reverse,Delay)
  820. wait(Alpha)
  821.  
  822. for _,v in pairs(bodys:GetDescendants()) do
  823. if v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("UnionOperation") then
  824. v.CanCollide = true
  825. v.Anchored = true
  826. end
  827. end
  828. wait(5)
  829. for _,v in pairs(bodys:GetDescendants()) do
  830. if v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("UnionOperation") then
  831. TweenAnimate(v,{Transparency = 1},6,"Linear","Out",0,false,0) TweenAnimate(v,{Color = Color3.new(0,0,0)},6,"Linear","Out",0,false,0)
  832. end
  833. end
  834. wait(6.5)
  835. bodys:Destroy()
  836. end
  837. local AnimateCode = game:GetService("HttpService"):GetAsync("https://paste.ee/r/aFljg")
  838. local Humanoids = {}
  839. mouse.KeyDown:connect(function(k)
  840. if Attack then return end
  841. if attack then return end
  842. if k == "m" then
  843. attack = true
  844. local barrier = Instance.new("Part", RootPart)
  845. newWeld(RootPart,barrier,0,10,0)
  846. barrier.Size = Vector3.new(60,60,60)
  847. barrier.Anchored = false
  848. barrier.CanCollide = false
  849. barrier.Massless = true
  850. barrier.Material = "ForceField"
  851. barrier.Touched:connect(function(Victim)
  852. if Victim.Parent ~= char and Victim.Parent:FindFirstChildOfClass("Humanoid") and not Victim.Parent:FindFirstChild("IsTitan") then
  853. local Value = Instance.new("BoolValue",Victim.Parent)
  854. Value.Name = "IsTitan"
  855. Shift(Victim.Parent)
  856. end
  857. end)
  858. wait(2)
  859. barrier:Destroy()
  860. -- Regeneration()
  861. attack = false
  862. end
  863.  
  864. if k == "k" then
  865. local Mr = math.random(1,2)
  866. local sound = Instance.new("Sound", Head)
  867. sound.Volume = 5
  868. if Mr == 1 then
  869. sound.PlaybackSpeed = 1.15
  870. sound.SoundId = "rbxassetid://785301837"
  871. elseif Mr == 2 then
  872. sound.PlaybackSpeed = 1.15
  873. sound.SoundId = "rbxassetid://6416598358"
  874. end
  875. sound:Play()
  876. for i,g in pairs(Humanoids) do
  877. coroutine.resume(coroutine.create(function()
  878. Shift(g)
  879. end))
  880. end
  881. wait(sound.TimeLength)
  882. sound:Destroy()
  883. end
  884.  
  885. if k == "l" then
  886. char.Archivable = true
  887. local cl = char:Clone()
  888. table.insert(Humanoids,cl)
  889. NS(AnimateCode,cl)
  890. cl.Parent = Clones
  891. char.Archivable = false
  892. end
  893. if k == "z" then
  894.  
  895. end
  896. if k == "n" then
  897. for _,v in pairs(Clones:GetDescendants()) do
  898. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChild("IsTitan") then
  899. unshift(v)
  900. end
  901. end
  902.  
  903. end
  904. end)
  905.  
  906. mouse.Button1Down:connect(function()
  907. if mouse.Target ~= nil then
  908. for _,v in pairs(Clones:GetDescendants()) do
  909. if v:IsA("Humanoid") then
  910. v:MoveTo(mouse.Hit.p)
  911. end
  912. end
  913. end
  914. end)
Advertisement
Add Comment
Please, Sign In to add comment