Advertisement
Hugo1234cool

Untitled

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