Advertisement
leelandshoe

Untitled

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