Hugo1234cool

Untitled

Mar 13th, 2019
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.96 KB | None | 0 0
  1.  
  2.  
  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 & Fireboltofdeath");print("https://github.com/WaverlyCole/FE-Compatibility-VoidSb-")
  4. local Wrapper = {};Wrapper.Fake = {};Wrapper.Real = {};Wrapper.Data = {};
  5. local sGame = game;local sScript = script;local sOwner = owner;local sInstance = Instance;local sLoadLibrary = LoadLibrary
  6. Wrapper.Event = Instance.new("RemoteEvent");Wrapper.Event.Name = "UserInput";
  7. Wrapper.CreateObject = function(connections, index)
  8. local proxy = newproxy (true);local meta = getmetatable (proxy);
  9. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  10. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  11. meta.__index = function (self, i)
  12. if (i == 'TriggerEvent') then return runbind end;
  13. return connections[i] and connections[i].Event or index[i];
  14. end;
  15. meta.__newindex = index;meta.__metatable = false;return proxy
  16. end;
  17. Wrapper.Mouse = Wrapper.CreateObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  18. Wrapper.UserInputService = Wrapper.CreateObject({"InputBegan","InputEnded"},{})
  19. Wrapper.ContextActionService = {Actions={};BindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end;UnBindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};
  20. Wrapper.Sandbox = function(...)
  21. local Unwrap = {...};
  22. for obi = 1,#Unwrap do
  23. local Object = Unwrap[obi];
  24. if (Wrapper.Fake[Object] == nil and Wrapper.Real[Object] == nil) then
  25. local Type = typeof(Object);local Replacement = Object;
  26. if (Type == "function") then
  27. Replacement = function(...)
  28. local IsRoblox = not (pcall(function() string.dump(Object) end))
  29. if IsRoblox then
  30. return Object(Wrapper.Unsandbox(...))
  31. end
  32. return Object(Wrapper.Sandbox(...))
  33. end
  34. elseif (Type == "table") then
  35. Replacement = {};
  36. setmetatable(Replacement, {
  37. __index = function(self, i)
  38. return Wrapper.Sandbox(Object[Wrapper.Unsandbox(i)])
  39. end,
  40. __newindex = function(self,i,v)
  41. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v)
  42. end;
  43. })
  44. elseif (Type == "Instance") then
  45. Replacement = newproxy(true);
  46. local Mt = getmetatable(Replacement);
  47. Mt.__namecall = function(self, ...)
  48. local Pack = {...};local Name = Pack[#Pack];table.remove(Pack, #Pack);
  49. local Rest = nil;pcall(function()Rest = Object[Name];end);
  50. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  51. if (Object:IsA(g) or g == "Global") then
  52. for t, v in pairs(x) do
  53. for str in string.gmatch(t .. ",", "(%w+),") do
  54. if (Name == str) then
  55. if typeof(v) == "function" then
  56. return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  57. else
  58. return v;
  59. end
  60. end
  61. end
  62. end
  63. end
  64. end
  65. if (Rest == nil) then
  66. if Wrapper.Sandbox(sGame):GetService(unpack(Pack)) then return Wrapper.Sandbox(sGame):GetService(unpack(Pack))end;
  67. return Wrapper.Sandbox(Object[Name]);
  68. elseif (typeof(Rest) == "function") then
  69. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  70. end
  71. return Wrapper.Sandbox(Object[Name]);
  72. end
  73. Mt.__index = function(self, i)
  74. local Rest = nil;pcall(function()Rest = Object[i];end)
  75. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  76. if (Object:IsA(g) or g == "Global") then
  77. for t, v in pairs(x) do
  78. for str in string.gmatch(t .. ",", "(%w+),") do
  79. if (i == str) then
  80. if typeof(v) == "function" then
  81. return function(...)return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))end;
  82. else
  83. return v;
  84. end
  85. end
  86. end
  87. end
  88. end
  89. end
  90. if (Object:IsA("Sound") and i == "PlaybackLoudness") then return Wrapper.SoundLoudness[Wrapper.Unsandbox(Object)];end;
  91. if (Rest == nil) then
  92. if Wrapper.Sandbox(sGame):GetService(i) then return Wrapper.Sandbox(sGame):GetService(i)end;
  93. return Wrapper.Sandbox(Object[i]);
  94. elseif (typeof(Rest) == "function") then
  95. local isService,Service = pcall(function() return sGame:GetService(i) end)
  96. if isService and Service then return Wrapper.Sandbox(Service) end
  97. return function(self, ...)
  98. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))
  99. end
  100. end
  101. return Wrapper.Sandbox(Object[i]);
  102. end
  103. Mt.__newindex = function(self, i, v)
  104. for g,x in pairs (Wrapper.InstanceMT["SET"]) do
  105. if (Object:IsA(g)) then
  106. for t, v in pairs(x) do
  107. for str in string.gmatch( t .. ",", "(%w+),") do
  108. if v(Wrapper.Unsandbox(self, i, v)) == true then
  109. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);return
  110. end
  111. end
  112. end
  113. end
  114. end
  115. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);
  116. end
  117. Mt.__tostring = function(self) return tostring(Object) end
  118. --elseif (Type == "") then -- Etc
  119. end
  120. Wrapper.Fake[Object] = Replacement;Wrapper.Real[Replacement] = Object;Unwrap[obi] = Replacement;
  121. else
  122. return Wrapper.Fake[Object] or Object;
  123. end
  124. end
  125. return unpack(Unwrap);
  126. end
  127. Wrapper.Unsandbox = function(...)
  128. local Unsandbox = {...};
  129. for i,v in pairs (Unsandbox) do Unsandbox[i] = Wrapper.Real[v] or Unsandbox[i]end;
  130. return unpack(Unsandbox)
  131. end
  132. Wrapper.Services = {
  133. ['contextactionservice'] = Wrapper.ContextActionService;
  134. ["userinputservice"] = Wrapper.UserInputService;
  135. }
  136. Wrapper.InstanceMT = {
  137. ["GET"] = {
  138. ["Global"] = {
  139. ["IsFake,isFake"] = function(self)return true;end;
  140. };
  141. ["Player"] = {
  142. ["mouse,Mouse,getMouse,GetMouse"] = function(self)return Wrapper.Mouse;end;
  143. };
  144. ["Players"] = {
  145. ["localPlayer,LocalPlayer"] = Wrapper.Sandbox(owner)
  146. };
  147. ["DataModel"] = {
  148. ["getService,GetService"] = function(self,service)
  149. if Wrapper.Services[service:lower()] then return Wrapper.Sandbox(Wrapper.Services[service:lower()])end;
  150. return Wrapper.Sandbox(sGame:GetService(service))
  151. end
  152. };
  153. ["RunService"] = {
  154. ["renderstepped,renderStepped,RenderStepped"] = sGame:GetService("RunService").Stepped;
  155. }
  156. };
  157. ["SET"] = {
  158. }
  159. }
  160. Wrapper.SoundLoudness = {};
  161. Wrapper.Event.OnServerEvent:Connect(function(FiredBy,Input)
  162. if FiredBy ~= sOwner then return end
  163. if Input.MouseEvent then
  164. Wrapper.Mouse.Target = Input.Target;Wrapper.Mouse.Hit = Input.Hit;Wrapper.Mouse:TriggerEvent("Move")
  165. elseif Input.Sound then
  166. if Wrapper.SoundLoudness[Input.Sound] then Wrapper.SoundLoudness[Input.Sound] = Input.Loudness end
  167. else
  168. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  169. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Wrapper.Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  170. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Wrapper.Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
  171. for _,Action in pairs(Wrapper.ContextActionService.Actions) do
  172. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  173. end
  174. Wrapper.Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());Wrapper.UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  175. end
  176. end);
  177. Wrapper.Event.Parent = NLS([[
  178. local Player = owner;local Sounds = {};local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse();
  179. local Input = function(Input,gameProcessedEvent)
  180. if gameProcessedEvent then return end;
  181. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  182. end
  183. Event.OnClientEvent:connect(function(Args)
  184. if Args[1] == "NewSound" and Args[2]:IsA("Sound") then table.insert(Sounds,Args[2]) end
  185. end)
  186. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  187. local Hit,Target;while wait(1/30) do
  188. for x,Sound in pairs(Sounds) do if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end; end;
  189. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  190. Hit = Mouse.Hit;Target = Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  191. end
  192. end]],sOwner.Character)
  193. Instance = {
  194. ["new"] = function(Type,Parent)
  195. local Real = sInstance.new(Type,Wrapper.Unsandbox(Parent))
  196. if Type:lower() == "sound" then
  197. if not Parent then
  198. Parent = sOwner.Character
  199. end
  200. Wrapper.SoundLoudness[Real] = 0;Wrapper.Event:FireClient(sOwner,{"NewSound",Real})
  201. end
  202. return Wrapper.Sandbox(Real)
  203. end
  204. }
  205. LoadLibrary = function(Library)
  206. if Library == "RbxUtility" then
  207. return setmetatable({},{
  208. __tostring = function() return "RbxUtility" end;
  209. __index = function(self, Index)
  210. if Index:lower() == "create" then
  211. return function(Type) return function(Data)
  212. Data = Data or {};local Inst = Instance.new(Type)
  213. for x,y in pairs(Data) do Inst[x] = y end
  214. return Inst
  215. end;end;
  216. end
  217. return sLoadLibrary(Library)[Index]
  218. end})
  219. end
  220. return sLoadLibrary(Library)
  221. end
  222. owner = Wrapper.Sandbox(owner);game = Wrapper.Sandbox(game)workspace = Wrapper.Sandbox(workspace)
  223. Game= game;Workspace = workspace;
  224.  
  225. --//Paste script below this line.
  226. wait()
  227. LoudVolume = false
  228. Music = true
  229. script.Name = "GlitchMaster"
  230. Player =owner
  231. c = game.Players.LocalPlayer.Character
  232. Head = c.Head
  233. anim = c.Humanoid.Animator
  234. rage = false
  235. Battle = false
  236. p = game.Players.LocalPlayer
  237. Music = false
  238. PhaseEnabled = true
  239. TeleportEnabled = true
  240. c.Archivable = true
  241. WholeBody = c:clone()
  242. local Effects = {}
  243. attack = false
  244. local attacking = false
  245. vt = Vector3.new
  246. bc = BrickColor.new
  247. br = BrickColor.random
  248. it = Instance.new
  249. cf = CFrame.new
  250. euler = CFrame.fromEulerAnglesXYZ
  251. angles = CFrame.Angles
  252. matr = math.random
  253. mouse = Player:GetMouse()
  254.  
  255.  
  256. local S10 = Instance.new("Sound") local S11 = Instance.new("ParticleEmitter")
  257.  
  258. c.Humanoid.WalkSpeed = 24 c.Humanoid.JumpPower = 50
  259.  
  260. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  261. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  262. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  263. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  264. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  265. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  266. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  267. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  268. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  269. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  270. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  271. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  272. RS = c.Torso:FindFirstChild("Right Shoulder")
  273. LS = c.Torso:FindFirstChild("Left Shoulder")
  274. RH = c.Torso:FindFirstChild("Right Hip")
  275. LH = c.Torso:FindFirstChild("Left Hip")
  276. RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  277. N = c.Torso:FindFirstChild("Neck")
  278. cf = CFrame.new
  279. ang = CFrame.Angles
  280. rd = math.rad
  281. rd2 = math.random
  282.  
  283. function swait(num)
  284. if num==0 or num==nil then
  285. game:service'RunService'.Heartbeat:wait(0)
  286. else
  287. for i=0,num do
  288. game:service'RunService'.Heartbeat:wait(0)
  289. end
  290. end
  291. end
  292.  
  293. function AnimDis()
  294. if c.Animate.Disabled == false then
  295. c.Animate.Disabled = true
  296. anim.Parent = nil
  297. else
  298. anim.Parent = c.Humanoid
  299. c.Animate.Disabled = false
  300. end
  301. end
  302. function lerpz(joint, prop, cfrmz, alp)
  303. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  304. end
  305. function resetlerp()
  306. RJ.C0 = RJC0
  307. RJ.C1 = RJC1
  308. N.C0 = NC0
  309. N.C1 = NC1
  310. RS.C0 = RSC0
  311. RS.C1 = RSC1
  312. LS.C0 = LSC0
  313. LS.C1 = LSC1
  314. RH.C0 = RHC0
  315. RH.C1 = RHC1
  316. LH.C0 = LHC0
  317. LH.C1 = LHC1
  318. end
  319.  
  320. game:GetService('UserInputService').InputBegan:connect(function(InputObj)
  321. if InputObj.KeyCode == Enum.KeyCode.Slash then
  322. local finishEvent = nil
  323. isTyping = true
  324. finishEvent = game:GetService('UserInputService').InputBegan:connect(function(InputObj)
  325. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  326. isTyping = false
  327. finishEvent:disconnect()
  328. end
  329. end)
  330. end
  331. end)
  332.  
  333. function VirusDestroy(H)
  334. spawn(function()
  335. for i = 1,1000 do
  336. H.Transparency = H.Transparency + 1/1000
  337. swait()
  338. end
  339. game.Debris:AddItem(H,3)H.Anchored = true
  340. end)
  341. end
  342.  
  343. function HitInfect(Part)
  344. Part.Touched:connect(function(Hit)
  345. if Hit.Size.Y <= 30 and Hit.Size.X <= 30 and Hit.Size.Z <= 30 and Hit.Transparency < 1 and Hit:findFirstChild("Glitch")== nil and Hit.Parent ~= c then
  346. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  347. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black") HitInfect(Hit) VirusDestroy(Hit)
  348. for i = 1,2 do
  349. local tra = S11:clone() tra.Parent = Hit
  350. tra.Texture = "rbxassetid://744949545"
  351. tra.LightEmission = 0
  352. if i == 1 then
  353. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  354. tra.ZOffset = 2.5
  355. else
  356. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  357. tra.ZOffset = 3
  358. end
  359. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  360. tra.Lifetime = NumberRange.new(1,3)
  361. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize,0),NumberSequenceKeypoint.new(1,0,0)})
  362. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  363. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  364. tra.LockedToPart = true
  365. tra.Rate = 15
  366. tra.VelocityInheritance = 0.2
  367. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  368. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  369. Hit.Mesh.TextureId = "rbxassetid://64619306"
  370. end
  371. elseif Hit.Name ~= "Head" then
  372. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  373. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  374. end
  375. end
  376. end
  377. end)
  378. end
  379. function Virusify(Hit)
  380. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  381. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  382. for i = 1,2 do
  383. local tra = S11:clone() tra.Parent = Hit
  384. tra.Texture = "rbxassetid://744949545"
  385. tra.LightEmission = 0
  386. if i == 1 then
  387. tra.Name = "Glitch"
  388. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  389. tra.ZOffset = 2.5
  390. else
  391. tra.Name = "Glitch2"
  392. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  393. tra.ZOffset = 3
  394. end
  395. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  396. tra.Lifetime = NumberRange.new(1,3)
  397. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  398. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  399. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  400. tra.LockedToPart = true
  401. tra.Rate = 15+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
  402. tra.VelocityInheritance = 0.2
  403. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  404. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  405. Hit.Mesh.TextureId = "rbxassetid://64619306"
  406. end
  407. elseif Hit.Name ~= "Head" then
  408. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  409. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  410. end
  411. end
  412. end
  413.  
  414. function Virusify2(Hit)
  415. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  416. for i = 1,2 do
  417. local tra = S11:clone() tra.Parent = Hit
  418. tra.Texture = "rbxassetid://744949545"
  419. tra.LightEmission = 0
  420. if i == 1 then
  421. tra.Name = "Glitch"
  422. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  423. tra.ZOffset = 2.5
  424. else
  425. tra.Name = "Glitch2"
  426. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  427. tra.ZOffset = 3
  428. end
  429. local PSize = (Hit.Size.Y)/4
  430. tra.Lifetime = NumberRange.new(0.5)
  431. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
  432. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  433. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  434. tra.LockedToPart = true
  435. tra.Rate = 50
  436. tra.VelocityInheritance = 0.2
  437. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  438. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  439. Hit.Mesh.TextureId = "rbxassetid://64619306"
  440. end
  441. elseif Hit.Name ~= "Head" then
  442. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  443. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  444. end
  445. end
  446. end
  447.  
  448. function Virusify3(Hit)
  449. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  450. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  451. for i2 = 1,2 do
  452. for i = 1,2 do
  453. local tra = S11:clone() tra.Parent = Hit
  454. tra.Texture = "rbxassetid://744949545"
  455. tra.LightEmission = 0
  456. if i == 1 then
  457. tra.Name = "Glitch"
  458. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  459. tra.ZOffset = 2.5
  460. else
  461. tra.Name = "Glitch2"
  462. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  463. tra.ZOffset = 3
  464. end
  465. if i2 == 1 then
  466. tra.LockedToPart = true
  467. else
  468. tra.LockedToPart = false
  469. end
  470. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  471. tra.Lifetime = NumberRange.new(1,3)
  472. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  473. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  474. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  475. tra.Rate = 35+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
  476. tra.VelocityInheritance = 0.2
  477. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  478. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  479. Hit.Mesh.TextureId = "rbxassetid://64619306"
  480. end
  481. elseif Hit.Name ~= "Head" then
  482. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  483. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  484. end
  485. end
  486. end
  487. end
  488.  
  489. local S = Instance.new("Sound",c.HumanoidRootPart)S.Volume = 0.4 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  490.  
  491. for i,v in pairs(c:children()) do
  492. if v.ClassName == "Accessory" then
  493. v:remove()
  494. end
  495. end
  496.  
  497. if c:findFirstChild("Body Colors") then
  498. c:findFirstChild("Body Colors"):remove()
  499. end
  500. for i,v in pairs (c:children()) do
  501. if v.ClassName == "Part" then
  502. if v.Name ~= "HumanoidRootPart" then
  503. HitInfect(v)
  504. v.Material = "Sand" v.BrickColor = BrickColor.new("Really black")
  505. for i2 = 1,2 do
  506. for i = 1,2 do
  507. local tra = S11:clone() tra.Parent = v
  508. tra.Texture = "rbxassetid://744949545"
  509. tra.LightEmission = 0
  510. if i == 1 then
  511. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  512. tra.ZOffset = 2.5
  513. else
  514. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  515. tra.ZOffset = 3
  516. end
  517. tra.Rate = 15
  518. tra.Lifetime = NumberRange.new(1,3)
  519. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,0.15,0),NumberSequenceKeypoint.new(1,0,0)})
  520. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  521. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  522. if i2 == 1 then
  523. tra.LockedToPart = true
  524. tra.Rate = 10
  525. else
  526. tra.LockedToPart = false
  527. tra.ZOffset = tra.ZOffset - 2.25
  528. end
  529. tra.VelocityInheritance = 0.2
  530. end
  531. if v.Name ~= "Head" then
  532. local M = Instance.new("SpecialMesh",v)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  533. M.Scale = Vector3.new(v.Size.X*2,v.Size.Y*2,v.Size.Z*2)
  534. end
  535. end
  536. end
  537. end
  538. end
  539. c.Head.Transparency = 1
  540. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  541. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  542. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  543. wait()
  544. c.Head:FindFirstChild("face").Texture = ""
  545. if c:findFirstChild("Shirt")~=nil then
  546. c:findFirstChild("Shirt"):remove()
  547. end
  548. if c:findFirstChild("Pants")~=nil then
  549. c:findFirstChild("Pants"):remove()
  550. end
  551.  
  552. local flying = false
  553. local deb = true
  554. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  555. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  556. local maxspeed = 25
  557. local speed = 0
  558.  
  559. function Fly()
  560. local bg = Instance.new("BodyGyro", c.HumanoidRootPart)
  561. bg.P = 100000 bg.D = 100
  562. bg.maxTorque = Vector3.new(math.huge, 0, math.huge)
  563. bg.cframe = c.HumanoidRootPart.CFrame
  564. local bv = Instance.new("BodyVelocity", c.HumanoidRootPart)
  565. bv.velocity = Vector3.new(0,0.1,0)
  566. bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  567. repeat wait()
  568. c.Humanoid.PlatformStand = true
  569. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  570. speed = speed+1+(speed/maxspeed)
  571. if speed > maxspeed then
  572. speed = maxspeed
  573. end
  574. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  575. speed = speed-1
  576. if speed < 0 then
  577. speed = 0
  578. end
  579. end
  580. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  581. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  582. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  583. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  584. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  585. else
  586. bv.velocity = Vector3.new(0,0.1,0)
  587. end
  588. until not flying
  589. ctrl = {f = 0, b = 0, l = 0, r = 0}
  590. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  591. speed = 0
  592. bv:Destroy()
  593. c.Humanoid.PlatformStand = false
  594. end
  595.  
  596. Cloud = false
  597. function CloudForm()
  598. if Cloud == false then
  599. S.Volume = 1
  600. attack = true Cloud = true
  601. for i = 1,10 do
  602. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  603. lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.1)
  604. lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  605. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  606. lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  607. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  608. lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  609. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  610. lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  611. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  612. swait()
  613. end
  614. lerpz(RJ, "C0", RJC0 * cf(0, 0, 2500) * ang(rd(0), rd(0), rd(0)), 1)
  615. local Cl = Instance.new("Part",c)Cl.Size = Vector3.new(10,10,10) Cl.CanCollide = false Cl.Anchored = false Cl.CFrame = c.HumanoidRootPart.CFrame
  616. Cl.CustomPhysicalProperties = PhysicalProperties.new(0,0.3,0.5)
  617. Cl.Material = "Sand" Cl.BrickColor = BrickColor.new("Really black") Cl.Name = "Cloud"
  618. HitInfect(Cl)
  619. for i2 = 1,2 do
  620. for i = 1,2 do
  621. local tra = S11:clone() tra.Parent = CL
  622. tra.Texture = "rbxassetid://744949545"
  623. tra.LightEmission = 0
  624. if i == 1 then
  625. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  626. tra.ZOffset = 2.5
  627. else
  628. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  629. tra.ZOffset = 3
  630. end
  631. tra.Lifetime = NumberRange.new(1,3)
  632. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
  633. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  634. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  635. if i2 == 1 then
  636. tra.LockedToPart = true
  637. tra.Speed = NumberRange.new(0.5)
  638. else
  639. tra.LockedToPart = false
  640. tra.Speed = NumberRange.new(4)
  641. end
  642. tra.Rate = 250
  643. tra.VelocityInheritance = 0.2
  644. end
  645. end
  646. local W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = Cl
  647. local M = Instance.new("SpecialMesh",Cl)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  648. for i = 1,80 do
  649. M.Scale = Vector3.new(i/4,i/4,i/4)
  650. c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,3,0)
  651. swait()
  652. end
  653. flying = true attack = false
  654. Fly()
  655. else
  656. attack = true S.Volume = 0.4
  657. if c:findFirstChild("Cloud") ~= nil then
  658. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  659. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  660. for i = 1,20 do
  661. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  662. swait()
  663. end
  664. c.HumanoidRootPart.Smile:remove()
  665. end
  666. for i,v in pairs(c:findFirstChild("Cloud"):children()) do
  667. if v.Name == "Glitch" then
  668. v.Enabled = false
  669. end
  670. end
  671. for i = 1,80 do
  672. c:findFirstChild("Cloud").Mesh.Scale = c:findFirstChild("Cloud").Mesh.Scale - Vector3.new(0.25,0.25,0.25)
  673. swait()
  674. end
  675. game.Debris:AddItem(c:findFirstChild("Cloud"),2)
  676. Cloud = false end flying = false
  677. wait(2)
  678. attack = false
  679. end
  680. end
  681.  
  682. function CloudFace()
  683. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  684. for i = 1,20 do
  685. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  686. swait()
  687. end
  688. c.HumanoidRootPart.Smile:remove()
  689. else
  690. local BillBoard = Instance.new("BillboardGui",c.HumanoidRootPart)BillBoard.Name = "Smile" BillBoard.AlwaysOnTop = true BillBoard.Size = UDim2.new(10,0,10,0)
  691. local Im = Instance.new("ImageLabel",BillBoard) Im.BackgroundTransparency = 1 Im.Size = UDim2.new(1,0,1,0)Im.Image = "rbxassetid://915081021"
  692. end
  693. end
  694.  
  695.  
  696. function VirusExplosion(Pos)
  697. for i = 1,10 do
  698. for i2 = 1,8 do
  699. local V = Instance.new("Part")V.Size = Vector3.new(1+i*20,0.5,10)V.Anchored = true V.CanCollide = false
  700. V.CFrame = Pos*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  701. V.CFrame = V.CFrame*CFrame.new(0,3,2*i)HitInfect(V) V.Parent = game.Workspace
  702. end
  703. swait()
  704. end
  705. end
  706.  
  707. function VirusFade(H)
  708. spawn(function()
  709. for i = 1,10 do
  710. H.Transparency = H.Transparency + 1/10
  711. swait()
  712. end
  713. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  714. game.Debris:AddItem(H,0.2)
  715. end)
  716. end
  717.  
  718. function VirusFade2(H)
  719. spawn(function()
  720. for i = 1,25 do
  721. H.Transparency = H.Transparency + 1/25
  722. swait()
  723. end
  724. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  725. game.Debris:AddItem(H,4)
  726. end)
  727. end
  728.  
  729. function HammerSlam()
  730. c.HumanoidRootPart.Anchored = true
  731. attack = true
  732. AnimDis()
  733. for i = 1,15 do
  734. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2)-- Y, X, Z
  735. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2) -- Y, X, Z
  736. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.2) -- Z, X, Y
  737. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.2) -- Z, X, Y
  738. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  739. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  740. swait()
  741. end
  742. local H = Instance.new("Part",c)H.Size = Vector3.new(1,1,15)H.CanCollide = false
  743. local H2 = Instance.new("Part",c)H2.Size = Vector3.new(5,10,5)H2.CanCollide = false
  744. local W = Instance.new("Weld",c["Torso"])W.Part0 = c["Torso"] W.Part1 = H W.C0 = CFrame.new(0,-2,0)
  745. local W2 = Instance.new("Weld",H2)W2.Part0 = H2 W2.Part1 = H W2.C0 = CFrame.new(0,0,-4)
  746. Virusify(H) Virusify(H2)HitInfect(H)HitInfect(H2)
  747. for i = 1,45 do
  748. W.C0 = CFrame.new(0,2,4)*CFrame.Angles(math.rad(5),0,0)
  749. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2)-- Y, X, Z
  750. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2) -- Y, X, Z
  751. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(220)), 0.2) -- Z, X, Y
  752. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(-220)), 0.2) -- Z, X, Y
  753. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  754. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  755. swait()
  756. end
  757. W.C0 = CFrame.new(0,3,-8)*CFrame.Angles(math.rad(200),0,0)
  758. for i = 1,15 do
  759. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5)-- Y, X, Z
  760. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5) -- Y, X, Z
  761. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.5) -- Z, X, Y
  762. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.5) -- Z, X, Y
  763. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5)
  764. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5)
  765. swait()
  766. end
  767. local S = Instance.new("Sound",H2)S.Volume = 2 S.SoundId = "rbxassetid://211062246" S:Play()
  768. for i = 1,45 do
  769. for i2 = 1,8 do
  770. local V = Instance.new("Part")V.Size = Vector3.new(10+i*4,1,10)V.Anchored = true V.CanCollide = false
  771. V.CFrame = H2.CFrame*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  772. V.CFrame = V.CFrame*CFrame.new(0,3,5*i)HitInfect(V) V.Parent = game.Workspace
  773. end
  774. swait()
  775. end
  776. H.Anchored = true H2.Anchored = true
  777. W:remove() W2:remove()
  778. c.HumanoidRootPart.Anchored = false
  779. AnimDis()
  780. attack = false
  781. spawn(function()
  782. wait(3) H.Transparency = 1 H2.Transparency = 1
  783. H:findFirstChild("Glitch").Enabled = false H2:findFirstChild("Glitch").Enabled = false
  784. H:findFirstChild("Glitch2").Enabled = false H2:findFirstChild("Glitch2").Enabled = false
  785. game.Debris:AddItem(H,4) game.Debris:AddItem(H2,4)
  786. end)
  787. end
  788.  
  789. function Missiles()
  790. attack = true
  791. local Mis = Instance.new("Part",game.Workspace)Mis.Name = "GlitchMissle" Mis.Size = Vector3.new(2,2,12) Mis.CFrame = c.HumanoidRootPart.CFrame Virusify3(Mis)
  792. Mis.CFrame = CFrame.new(Mis.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p+Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)))
  793. Mis.CanCollide = false local BV = Instance.new("BodyVelocity",Mis)BV.Velocity = Mis.CFrame.lookVector*150 BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  794. local hit = false
  795. Mis.Touched:connect(function(Hit)
  796. if Hit.Parent ~= c then
  797. if hit == false then hit = true
  798. Mis.Anchored = true VirusFade2(Mis)
  799. VirusExplosion(CFrame.new(Mis.Position))
  800. end
  801. end
  802. end)
  803. wait(0.1)
  804. attack = false
  805. end
  806.  
  807. mouse.KeyDown:connect(function(key)
  808. if c.Humanoid.Health <= 0 then return end
  809. if attack == true then return end
  810. if Cloud == true then
  811. if key == "f" then
  812. CloudFace()
  813. end
  814. if key == "z" then
  815. Missiles()
  816. end
  817. elseif Cloud == false then
  818. if key == "z" then
  819. HammerSlam()
  820. end
  821. end
  822. if key == "m" then
  823. CloudForm()
  824. end
  825. end)
  826.  
  827. local LastPos = c.HumanoidRootPart.CFrame
  828. local Resetting = false
  829. function Reset()
  830. if Resetting == false then Resetting = true
  831. c.Parent = nil
  832. c.Humanoid.Health = math.huge c.Humanoid.MaxHealth = math.huge
  833. for i,v in pairs(c:children()) do if v.ClassName == "Part" then v:remove() end end
  834. local Tors = Instance.new("Part",c)Tors.Name = "Torso" Tors.Size = Vector3.new(2,2,1) Virusify(Tors)
  835. local Hed = Instance.new("Part",c)Hed.Name = "Head" Hed.Size = Vector3.new(2,1,1) Virusify(Hed) Hed.Transparency = 1
  836. makejoint(c.Torso, NC0, NC1, c.Torso, c.Head, "Neck")
  837. local Hum = Instance.new("Part",c)Hum.Name = "HumanoidRootPart" Hum.Size = Vector3.new(2,2,1) Hum.Transparency = 1
  838. makejoint(c.HumanoidRootPart, RJC0, RJC1, c.HumanoidRootPart, c.Torso, "RootJoint")
  839. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  840. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  841. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  842. local RiArm = Instance.new("Part",c)RiArm.Name = "Right Arm" RiArm.Size = Vector3.new(1,2,1) Virusify(RiArm)
  843. makejoint(c.Torso, RSC0, RSC1, c.Torso, RiArm, "Right Shoulder")
  844. local LeArm = Instance.new("Part",c)LeArm.Name = "Left Arm" LeArm.Size = Vector3.new(1,2,1) Virusify(LeArm)
  845. makejoint(c.Torso, LSC0, LSC1, c.Torso, LeArm, "Left Shoulder")
  846. local RiLeg = Instance.new("Part",c)RiLeg.Name = "Right Leg" RiLeg.Size = Vector3.new(1,2,1) Virusify(RiLeg)
  847. makejoint(c.Torso, RHC0, RHC1, c.Torso, RiLeg, "Right Hip")
  848. local LeLeg = Instance.new("Part",c)LeLeg.Name = "Left Leg" LeLeg.Size = Vector3.new(1,2,1) Virusify(LeLeg)
  849. makejoint(c.Torso, LHC0, LHC1, c.Torso, LeLeg, "Left Hip")
  850. c.HumanoidRootPart.CFrame = LastPos*CFrame.new(math.random(-5,5),0,math.random(-5,5))
  851. Resetting = false c.Humanoid.Died:connect(Reset) c.Parent = game.Workspace
  852. end
  853. end
  854. c.Humanoid.Died:connect(Reset)
  855.  
  856. function onKeyPress(inputObject, gameProcessedEvent)
  857. if isTyping == true then return end
  858. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 1 end
  859. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = -1 end
  860. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = -1 end
  861. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 1 end
  862. end
  863. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  864.  
  865. function onKeyLift(inputObject, gameProcessedEvent)
  866. if isTyping == true then return end
  867. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 0 end
  868. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = 0 end
  869. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = 0 end
  870. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 0 end
  871. end
  872. game:GetService("UserInputService").InputEnded:connect(onKeyLift)
  873.  
  874. WholeBody = c:clone()
  875.  
  876. function makejoint(paren, co, ci, parto, parti, nam)local gloo = Instance.new("Motor6D")gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
  877. idletime = 0
  878. sine = 0
  879. game:GetService("RunService").RenderStepped:connect(function()
  880. c.Humanoid.MaxHealth = c.Humanoid.MaxHealth + math.huge c.Humanoid.Health = c.Humanoid.Health + math.huge
  881. if Resetting == false then
  882. if c:findFirstChild("Head")== nil or c:findFirstChild("Torso")== nil or c:findFirstChild("HumanoidRootPart")== nil or c.HumanoidRootPart:findFirstChild("RootJoint")== nil then
  883. Reset()
  884. else
  885. LastPos = c.HumanoidRootPart.CFrame
  886. end
  887. if c.Torso:findFirstChild("Right Shoulder") == nil or c:findFirstChild("Right Arm")== nil then print("RA")
  888. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  889. makejoint(c.Torso, RSC0, RSC1, c.Torso, BodyPart, "Right Shoulder")
  890. end
  891. if c.Torso:findFirstChild("Left Shoulder") == nil or c:findFirstChild("Left Arm")== nil then print("LA")
  892. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  893. makejoint(c.Torso, LSC0, LSC1, c.Torso, BodyPart, "Left Shoulder")
  894. end
  895. if c.Torso:findFirstChild("Right Hip") == nil or c:findFirstChild("Right Leg")== nil then print("RL")
  896. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  897. makejoint(c.Torso, RHC0, RHC1, c.Torso, BodyPart, "Right Hip")
  898. end
  899. if c.Torso:findFirstChild("Left Hip") == nil or c:findFirstChild("Left Leg")== nil then print("LL")
  900. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  901. makejoint(c.Torso, LHC0, LHC1, c.Torso, BodyPart, "Left Hip")
  902. end
  903. local r = math.random(1,15)
  904. if r == 1 then S.PlaybackSpeed = math.random(1,50)/10 end
  905. if attack == false and Cloud == false then
  906. local r2 = math.random(1,50)
  907. if r2 == 1 then
  908. lerpz(RJ, "C0", RJC0 * cf(math.random(-5,5)/10, math.random(-5,5)/10, math.random(-5,5)/10) * ang(rd(0), rd(0), rd(0)), 1)-- Y, X, Z
  909. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Y, X, Z
  910. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  911. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  912. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  913. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  914. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  915. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  916. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  917. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  918. end
  919. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)-- Y, X, Z
  920. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Y, X, Z
  921. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  922. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  923. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  924. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  925. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  926. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  927. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  928. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  929. end
  930. end
  931. end)
Advertisement
Add Comment
Please, Sign In to add comment