Hugo1234cool

Untitled

Mar 14th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.64 KB | None | 0 0
  1.  
  2.  
  3. wait()
  4. LoudVolume = false
  5. Music = true
  6. script.Name = "GlitchMaster"
  7. Player =owner
  8. c = game.Players.LocalPlayer.Character
  9. Head = c.Head
  10. anim = c.Humanoid.Animator
  11. rage = false
  12. Battle = false
  13. p =owner
  14. Music = false
  15. PhaseEnabled = true
  16. TeleportEnabled = true
  17. c.Archivable = true
  18. WholeBody = c:clone()
  19. local Effects = {}
  20. attack = false
  21. local attacking = false
  22. vt = Vector3.new
  23. bc = BrickColor.new
  24. br = BrickColor.random
  25. it = Instance.new
  26. cf = CFrame.new
  27. euler = CFrame.fromEulerAnglesXYZ
  28. angles = CFrame.Angles
  29. matr = math.random
  30. -- This script has been converted to FE by iPxter
  31.  
  32.  
  33. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  34. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  35. do
  36. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  37. script.Parent = Player.Character
  38.  
  39. --RemoteEvent for communicating
  40. local Event = Instance.new("RemoteEvent")
  41. Event.Name = "UserInput_Event"
  42.  
  43. --Fake event to make stuff like Mouse.KeyDown work
  44. local function fakeEvent()
  45. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  46. t.connect = t.Connect
  47. return t
  48. end
  49.  
  50. --Creating fake input objects with fake variables
  51. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  52. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  53. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  54. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  55. end}
  56. --Merged 2 functions into one by checking amount of arguments
  57. CAS.UnbindAction = CAS.BindAction
  58.  
  59. --This function will trigger the events that have been :Connect()'ed
  60. local function te(self,ev,...)
  61. local t = m[ev]
  62. if t and t._fakeEvent and t.Function then
  63. t.Function(...)
  64. end
  65. end
  66. m.TrigEvent = te
  67. UIS.TrigEvent = te
  68.  
  69. Event.OnServerEvent:Connect(function(plr,io)
  70. if plr~=Player then return end
  71. if io.isMouse then
  72. m.Target = io.Target
  73. m.Hit = io.Hit
  74. else
  75. local b = io.UserInputState == Enum.UserInputState.Begin
  76. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  77. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  78. end
  79. for _,t in pairs(CAS.Actions) do
  80. for _,k in pairs(t.Keys) do
  81. if k==io.KeyCode then
  82. t.Function(t.Name,io.UserInputState,io)
  83. end
  84. end
  85. end
  86. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  87. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  88. end
  89. end)
  90. Event.Parent = NLS([==[
  91. local Player = game:GetService("Players").LocalPlayer
  92. local Event = script:WaitForChild("UserInput_Event")
  93.  
  94. local UIS = game:GetService("UserInputService")
  95. local input = function(io,a)
  96. if a then return end
  97. --Since InputObject is a client-side instance, we create and pass table instead
  98. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  99. end
  100. UIS.InputBegan:Connect(input)
  101. UIS.InputEnded:Connect(input)
  102.  
  103. local Mouse = Player:GetMouse()
  104. local h,t
  105. --Give the server mouse data 30 times every second, but only if the values changed
  106. --If player is not moving their mouse, client won't fire events
  107. while wait(1/30) do
  108. if h~=Mouse.Hit or t~=Mouse.Target then
  109. h,t=Mouse.Hit,Mouse.Target
  110. Event:FireServer({isMouse=true,Target=t,Hit=h})
  111. end
  112. end]==],Player.Character)
  113. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  114. end
  115.  
  116.  
  117. local S10 = Instance.new("Sound") local S11 = Instance.new("ParticleEmitter")
  118.  
  119. c.Humanoid.WalkSpeed = 24 c.Humanoid.JumpPower = 50
  120.  
  121. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  122. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  123. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  124. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  125. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  126. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  127. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  128. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  129. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  130. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  131. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  132. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  133. RS = c.Torso:FindFirstChild("Right Shoulder")
  134. LS = c.Torso:FindFirstChild("Left Shoulder")
  135. RH = c.Torso:FindFirstChild("Right Hip")
  136. LH = c.Torso:FindFirstChild("Left Hip")
  137. RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  138. N = c.Torso:FindFirstChild("Neck")
  139. cf = CFrame.new
  140. ang = CFrame.Angles
  141. rd = math.rad
  142. rd2 = math.random
  143.  
  144. function swait(num)
  145. if num==0 or num==nil then
  146. game:service'RunService'.Heartbeat:wait(0)
  147. else
  148. for i=0,num do
  149. game:service'RunService'.Heartbeat:wait(0)
  150. end
  151. end
  152. end
  153.  
  154. function AnimDis()
  155. if c.Animate.Disabled == false then
  156. c.Animate.Disabled = true
  157. anim.Parent = nil
  158. else
  159. anim.Parent = c.Humanoid
  160. c.Animate.Disabled = false
  161. end
  162. end
  163. function lerpz(joint, prop, cfrmz, alp)
  164. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  165. end
  166. function resetlerp()
  167. RJ.C0 = RJC0
  168. RJ.C1 = RJC1
  169. N.C0 = NC0
  170. N.C1 = NC1
  171. RS.C0 = RSC0
  172. RS.C1 = RSC1
  173. LS.C0 = LSC0
  174. LS.C1 = LSC1
  175. RH.C0 = RHC0
  176. RH.C1 = RHC1
  177. LH.C0 = LHC0
  178. LH.C1 = LHC1
  179. end
  180.  
  181. game:GetService('UserInputService').InputBegan:connect(function(InputObj)
  182. if InputObj.KeyCode == Enum.KeyCode.Slash then
  183. local finishEvent = nil
  184. isTyping = true
  185. finishEvent = game:GetService('UserInputService').InputBegan:connect(function(InputObj)
  186. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  187. isTyping = false
  188. finishEvent:disconnect()
  189. end
  190. end)
  191. end
  192. end)
  193.  
  194. function VirusDestroy(H)
  195. spawn(function()
  196. for i = 1,1000 do
  197. H.Transparency = H.Transparency + 1/1000
  198. swait()
  199. end
  200. game.Debris:AddItem(H,3)H.Anchored = true
  201. end)
  202. end
  203.  
  204. function HitInfect(Part)
  205. Part.Touched:connect(function(Hit)
  206. 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
  207. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  208. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black") HitInfect(Hit) VirusDestroy(Hit)
  209. for i = 1,2 do
  210. local tra = S11:clone() tra.Parent = Hit
  211. tra.Texture = "rbxassetid://744949545"
  212. tra.LightEmission = 0
  213. if i == 1 then
  214. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  215. tra.ZOffset = 2.5
  216. else
  217. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  218. tra.ZOffset = 3
  219. end
  220. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  221. tra.Lifetime = NumberRange.new(1,3)
  222. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize,0),NumberSequenceKeypoint.new(1,0,0)})
  223. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  224. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  225. tra.LockedToPart = true
  226. tra.Rate = 15
  227. tra.VelocityInheritance = 0.2
  228. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  229. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  230. Hit.Mesh.TextureId = "rbxassetid://64619306"
  231. end
  232. elseif Hit.Name ~= "Head" then
  233. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  234. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  235. end
  236. end
  237. end
  238. end)
  239. end
  240. function Virusify(Hit)
  241. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  242. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  243. for i = 1,2 do
  244. local tra = S11:clone() tra.Parent = Hit
  245. tra.Texture = "rbxassetid://744949545"
  246. tra.LightEmission = 0
  247. if i == 1 then
  248. tra.Name = "Glitch"
  249. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  250. tra.ZOffset = 2.5
  251. else
  252. tra.Name = "Glitch2"
  253. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  254. tra.ZOffset = 3
  255. end
  256. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  257. tra.Lifetime = NumberRange.new(1,3)
  258. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  259. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  260. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  261. tra.LockedToPart = true
  262. tra.Rate = 15+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
  263. tra.VelocityInheritance = 0.2
  264. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  265. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  266. Hit.Mesh.TextureId = "rbxassetid://64619306"
  267. end
  268. elseif Hit.Name ~= "Head" then
  269. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  270. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  271. end
  272. end
  273. end
  274.  
  275. function Virusify2(Hit)
  276. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  277. for i = 1,2 do
  278. local tra = S11:clone() tra.Parent = Hit
  279. tra.Texture = "rbxassetid://744949545"
  280. tra.LightEmission = 0
  281. if i == 1 then
  282. tra.Name = "Glitch"
  283. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  284. tra.ZOffset = 2.5
  285. else
  286. tra.Name = "Glitch2"
  287. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  288. tra.ZOffset = 3
  289. end
  290. local PSize = (Hit.Size.Y)/4
  291. tra.Lifetime = NumberRange.new(0.5)
  292. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
  293. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  294. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  295. tra.LockedToPart = true
  296. tra.Rate = 50
  297. tra.VelocityInheritance = 0.2
  298. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  299. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  300. Hit.Mesh.TextureId = "rbxassetid://64619306"
  301. end
  302. elseif Hit.Name ~= "Head" then
  303. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  304. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  305. end
  306. end
  307. end
  308.  
  309. function Virusify3(Hit)
  310. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  311. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  312. for i2 = 1,2 do
  313. for i = 1,2 do
  314. local tra = S11:clone() tra.Parent = Hit
  315. tra.Texture = "rbxassetid://744949545"
  316. tra.LightEmission = 0
  317. if i == 1 then
  318. tra.Name = "Glitch"
  319. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  320. tra.ZOffset = 2.5
  321. else
  322. tra.Name = "Glitch2"
  323. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  324. tra.ZOffset = 3
  325. end
  326. if i2 == 1 then
  327. tra.LockedToPart = true
  328. else
  329. tra.LockedToPart = false
  330. end
  331. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  332. tra.Lifetime = NumberRange.new(1,3)
  333. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  334. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  335. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  336. tra.Rate = 35+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
  337. tra.VelocityInheritance = 0.2
  338. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  339. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  340. Hit.Mesh.TextureId = "rbxassetid://64619306"
  341. end
  342. elseif Hit.Name ~= "Head" then
  343. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  344. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  345. end
  346. end
  347. end
  348. end
  349.  
  350. local S = Instance.new("Sound",c.HumanoidRootPart)S.Volume = 0.4 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  351.  
  352. for i,v in pairs(c:children()) do
  353. if v.ClassName == "Accessory" then
  354. v:remove()
  355. end
  356. end
  357.  
  358. if c:findFirstChild("Body Colors") then
  359. c:findFirstChild("Body Colors"):remove()
  360. end
  361. for i,v in pairs (c:children()) do
  362. if v.ClassName == "Part" then
  363. if v.Name ~= "HumanoidRootPart" then
  364. HitInfect(v)
  365. v.Material = "Sand" v.BrickColor = BrickColor.new("Really black")
  366. for i2 = 1,2 do
  367. for i = 1,2 do
  368. local tra = S11:clone() tra.Parent = v
  369. tra.Texture = "rbxassetid://744949545"
  370. tra.LightEmission = 0
  371. if i == 1 then
  372. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  373. tra.ZOffset = 2.5
  374. else
  375. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  376. tra.ZOffset = 3
  377. end
  378. tra.Rate = 15
  379. tra.Lifetime = NumberRange.new(1,3)
  380. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,0.15,0),NumberSequenceKeypoint.new(1,0,0)})
  381. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  382. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  383. if i2 == 1 then
  384. tra.LockedToPart = true
  385. tra.Rate = 10
  386. else
  387. tra.LockedToPart = false
  388. tra.ZOffset = tra.ZOffset - 2.25
  389. end
  390. tra.VelocityInheritance = 0.2
  391. end
  392. if v.Name ~= "Head" then
  393. local M = Instance.new("SpecialMesh",v)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  394. M.Scale = Vector3.new(v.Size.X*2,v.Size.Y*2,v.Size.Z*2)
  395. end
  396. end
  397. end
  398. end
  399. end
  400. c.Head.Transparency = 1
  401. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  402. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  403. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  404. wait()
  405. c.Head:FindFirstChild("face").Texture = ""
  406. if c:findFirstChild("Shirt")~=nil then
  407. c:findFirstChild("Shirt"):remove()
  408. end
  409. if c:findFirstChild("Pants")~=nil then
  410. c:findFirstChild("Pants"):remove()
  411. end
  412.  
  413. local flying = false
  414. local deb = true
  415. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  416. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  417. local maxspeed = 25
  418. local speed = 0
  419.  
  420. function Fly()
  421. local bg = Instance.new("BodyGyro", c.HumanoidRootPart)
  422. bg.P = 100000 bg.D = 100
  423. bg.maxTorque = Vector3.new(math.huge, 0, math.huge)
  424. bg.cframe = c.HumanoidRootPart.CFrame
  425. local bv = Instance.new("BodyVelocity", c.HumanoidRootPart)
  426. bv.velocity = Vector3.new(0,0.1,0)
  427. bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  428. repeat wait()
  429. c.Humanoid.PlatformStand = true
  430. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  431. speed = speed+1+(speed/maxspeed)
  432. if speed > maxspeed then
  433. speed = maxspeed
  434. end
  435. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  436. speed = speed-1
  437. if speed < 0 then
  438. speed = 0
  439. end
  440. end
  441. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  442. 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
  443. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  444. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  445. 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
  446. else
  447. bv.velocity = Vector3.new(0,0.1,0)
  448. end
  449. until not flying
  450. ctrl = {f = 0, b = 0, l = 0, r = 0}
  451. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  452. speed = 0
  453. bv:Destroy()
  454. c.Humanoid.PlatformStand = false
  455. end
  456.  
  457. Cloud = false
  458. function CloudForm()
  459. if Cloud == false then
  460. S.Volume = 1
  461. attack = true Cloud = true
  462. for i = 1,10 do
  463. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  464. lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.1)
  465. lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  466. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  467. lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  468. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  469. lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  470. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  471. lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  472. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  473. swait()
  474. end
  475. lerpz(RJ, "C0", RJC0 * cf(0, 0, 2500) * ang(rd(0), rd(0), rd(0)), 1)
  476. local Cl = Instance.new("Part",c)Cl.Size = Vector3.new(10,10,10) Cl.CanCollide = false Cl.Anchored = false Cl.CFrame = c.HumanoidRootPart.CFrame
  477. Cl.CustomPhysicalProperties = PhysicalProperties.new(0,0.3,0.5)
  478. Cl.Material = "Sand" Cl.BrickColor = BrickColor.new("Really black") Cl.Name = "Cloud"
  479. HitInfect(Cl)
  480. for i2 = 1,2 do
  481. for i = 1,2 do
  482. local tra = S11:clone() tra.Parent = CL
  483. tra.Texture = "rbxassetid://744949545"
  484. tra.LightEmission = 0
  485. if i == 1 then
  486. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  487. tra.ZOffset = 2.5
  488. else
  489. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  490. tra.ZOffset = 3
  491. end
  492. tra.Lifetime = NumberRange.new(1,3)
  493. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
  494. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  495. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  496. if i2 == 1 then
  497. tra.LockedToPart = true
  498. tra.Speed = NumberRange.new(0.5)
  499. else
  500. tra.LockedToPart = false
  501. tra.Speed = NumberRange.new(4)
  502. end
  503. tra.Rate = 250
  504. tra.VelocityInheritance = 0.2
  505. end
  506. end
  507. local W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = Cl
  508. local M = Instance.new("SpecialMesh",Cl)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  509. for i = 1,80 do
  510. M.Scale = Vector3.new(i/4,i/4,i/4)
  511. c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,3,0)
  512. swait()
  513. end
  514. flying = true attack = false
  515. Fly()
  516. else
  517. attack = true S.Volume = 0.4
  518. if c:findFirstChild("Cloud") ~= nil then
  519. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  520. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  521. for i = 1,20 do
  522. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  523. swait()
  524. end
  525. c.HumanoidRootPart.Smile:remove()
  526. end
  527. for i,v in pairs(c:findFirstChild("Cloud"):children()) do
  528. if v.Name == "Glitch" then
  529. v.Enabled = false
  530. end
  531. end
  532. for i = 1,80 do
  533. c:findFirstChild("Cloud").Mesh.Scale = c:findFirstChild("Cloud").Mesh.Scale - Vector3.new(0.25,0.25,0.25)
  534. swait()
  535. end
  536. game.Debris:AddItem(c:findFirstChild("Cloud"),2)
  537. Cloud = false end flying = false
  538. wait(2)
  539. attack = false
  540. end
  541. end
  542.  
  543. function CloudFace()
  544. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  545. for i = 1,20 do
  546. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  547. swait()
  548. end
  549. c.HumanoidRootPart.Smile:remove()
  550. else
  551. local BillBoard = Instance.new("BillboardGui",c.HumanoidRootPart)BillBoard.Name = "Smile" BillBoard.AlwaysOnTop = true BillBoard.Size = UDim2.new(10,0,10,0)
  552. local Im = Instance.new("ImageLabel",BillBoard) Im.BackgroundTransparency = 1 Im.Size = UDim2.new(1,0,1,0)Im.Image = "rbxassetid://915081021"
  553. end
  554. end
  555.  
  556.  
  557. function VirusExplosion(Pos)
  558. for i = 1,10 do
  559. for i2 = 1,8 do
  560. local V = Instance.new("Part")V.Size = Vector3.new(1+i*20,0.5,10)V.Anchored = true V.CanCollide = false
  561. V.CFrame = Pos*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  562. V.CFrame = V.CFrame*CFrame.new(0,3,2*i)HitInfect(V) V.Parent = game.Workspace
  563. end
  564. swait()
  565. end
  566. end
  567.  
  568. function VirusFade(H)
  569. spawn(function()
  570. for i = 1,10 do
  571. H.Transparency = H.Transparency + 1/10
  572. swait()
  573. end
  574. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  575. game.Debris:AddItem(H,0.2)
  576. end)
  577. end
  578.  
  579. function VirusFade2(H)
  580. spawn(function()
  581. for i = 1,25 do
  582. H.Transparency = H.Transparency + 1/25
  583. swait()
  584. end
  585. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  586. game.Debris:AddItem(H,4)
  587. end)
  588. end
  589.  
  590. function HammerSlam()
  591. c.HumanoidRootPart.Anchored = true
  592. attack = true
  593. AnimDis()
  594. for i = 1,15 do
  595. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2)-- Y, X, Z
  596. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2) -- Y, X, Z
  597. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.2) -- Z, X, Y
  598. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.2) -- Z, X, Y
  599. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  600. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  601. swait()
  602. end
  603. local H = Instance.new("Part",c)H.Size = Vector3.new(1,1,15)H.CanCollide = false
  604. local H2 = Instance.new("Part",c)H2.Size = Vector3.new(5,10,5)H2.CanCollide = false
  605. local W = Instance.new("Weld",c["Torso"])W.Part0 = c["Torso"] W.Part1 = H W.C0 = CFrame.new(0,-2,0)
  606. local W2 = Instance.new("Weld",H2)W2.Part0 = H2 W2.Part1 = H W2.C0 = CFrame.new(0,0,-4)
  607. Virusify(H) Virusify(H2)HitInfect(H)HitInfect(H2)
  608. for i = 1,45 do
  609. W.C0 = CFrame.new(0,2,4)*CFrame.Angles(math.rad(5),0,0)
  610. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2)-- Y, X, Z
  611. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2) -- Y, X, Z
  612. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(220)), 0.2) -- Z, X, Y
  613. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(-220)), 0.2) -- Z, X, Y
  614. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  615. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  616. swait()
  617. end
  618. W.C0 = CFrame.new(0,3,-8)*CFrame.Angles(math.rad(200),0,0)
  619. for i = 1,15 do
  620. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5)-- Y, X, Z
  621. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5) -- Y, X, Z
  622. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.5) -- Z, X, Y
  623. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.5) -- Z, X, Y
  624. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5)
  625. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5)
  626. swait()
  627. end
  628. local S = Instance.new("Sound",H2)S.Volume = 2 S.SoundId = "rbxassetid://211062246" S:Play()
  629. for i = 1,45 do
  630. for i2 = 1,8 do
  631. local V = Instance.new("Part")V.Size = Vector3.new(10+i*4,1,10)V.Anchored = true V.CanCollide = false
  632. V.CFrame = H2.CFrame*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  633. V.CFrame = V.CFrame*CFrame.new(0,3,5*i)HitInfect(V) V.Parent = game.Workspace
  634. end
  635. swait()
  636. end
  637. H.Anchored = true H2.Anchored = true
  638. W:remove() W2:remove()
  639. c.HumanoidRootPart.Anchored = false
  640. AnimDis()
  641. attack = false
  642. spawn(function()
  643. wait(3) H.Transparency = 1 H2.Transparency = 1
  644. H:findFirstChild("Glitch").Enabled = false H2:findFirstChild("Glitch").Enabled = false
  645. H:findFirstChild("Glitch2").Enabled = false H2:findFirstChild("Glitch2").Enabled = false
  646. game.Debris:AddItem(H,4) game.Debris:AddItem(H2,4)
  647. end)
  648. end
  649.  
  650. function Missiles()
  651. attack = true
  652. local Mis = Instance.new("Part",game.Workspace)Mis.Name = "GlitchMissle" Mis.Size = Vector3.new(2,2,12) Mis.CFrame = c.HumanoidRootPart.CFrame Virusify3(Mis)
  653. 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)))
  654. 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)
  655. local hit = false
  656. Mis.Touched:connect(function(Hit)
  657. if Hit.Parent ~= c then
  658. if hit == false then hit = true
  659. Mis.Anchored = true VirusFade2(Mis)
  660. VirusExplosion(CFrame.new(Mis.Position))
  661. end
  662. end
  663. end)
  664. wait(0.1)
  665. attack = false
  666. end
  667.  
  668. mouse.KeyDown:connect(function(key)
  669. if c.Humanoid.Health <= 0 then return end
  670. if attack == true then return end
  671. if Cloud == true then
  672. if key == "f" then
  673. CloudFace()
  674. end
  675. if key == "z" then
  676. Missiles()
  677. end
  678. elseif Cloud == false then
  679. if key == "z" then
  680. HammerSlam()
  681. end
  682. end
  683. if key == "m" then
  684. CloudForm()
  685. end
  686. end)
  687.  
  688. local LastPos = c.HumanoidRootPart.CFrame
  689. local Resetting = false
  690. function Reset()
  691. if Resetting == false then Resetting = true
  692. c.Parent = nil
  693. c.Humanoid.Health = math.huge c.Humanoid.MaxHealth = math.huge
  694. for i,v in pairs(c:children()) do if v.ClassName == "Part" then v:remove() end end
  695. local Tors = Instance.new("Part",c)Tors.Name = "Torso" Tors.Size = Vector3.new(2,2,1) Virusify(Tors)
  696. local Hed = Instance.new("Part",c)Hed.Name = "Head" Hed.Size = Vector3.new(2,1,1) Virusify(Hed) Hed.Transparency = 1
  697. makejoint(c.Torso, NC0, NC1, c.Torso, c.Head, "Neck")
  698. local Hum = Instance.new("Part",c)Hum.Name = "HumanoidRootPart" Hum.Size = Vector3.new(2,2,1) Hum.Transparency = 1
  699. makejoint(c.HumanoidRootPart, RJC0, RJC1, c.HumanoidRootPart, c.Torso, "RootJoint")
  700. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  701. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  702. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  703. local RiArm = Instance.new("Part",c)RiArm.Name = "Right Arm" RiArm.Size = Vector3.new(1,2,1) Virusify(RiArm)
  704. makejoint(c.Torso, RSC0, RSC1, c.Torso, RiArm, "Right Shoulder")
  705. local LeArm = Instance.new("Part",c)LeArm.Name = "Left Arm" LeArm.Size = Vector3.new(1,2,1) Virusify(LeArm)
  706. makejoint(c.Torso, LSC0, LSC1, c.Torso, LeArm, "Left Shoulder")
  707. local RiLeg = Instance.new("Part",c)RiLeg.Name = "Right Leg" RiLeg.Size = Vector3.new(1,2,1) Virusify(RiLeg)
  708. makejoint(c.Torso, RHC0, RHC1, c.Torso, RiLeg, "Right Hip")
  709. local LeLeg = Instance.new("Part",c)LeLeg.Name = "Left Leg" LeLeg.Size = Vector3.new(1,2,1) Virusify(LeLeg)
  710. makejoint(c.Torso, LHC0, LHC1, c.Torso, LeLeg, "Left Hip")
  711. c.HumanoidRootPart.CFrame = LastPos*CFrame.new(math.random(-5,5),0,math.random(-5,5))
  712. Resetting = false c.Humanoid.Died:connect(Reset) c.Parent = game.Workspace
  713. end
  714. end
  715. c.Humanoid.Died:connect(Reset)
  716.  
  717. function onKeyPress(inputObject, gameProcessedEvent)
  718. if isTyping == true then return end
  719. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 1 end
  720. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = -1 end
  721. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = -1 end
  722. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 1 end
  723. end
  724. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  725.  
  726. function onKeyLift(inputObject, gameProcessedEvent)
  727. if isTyping == true then return end
  728. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 0 end
  729. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = 0 end
  730. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = 0 end
  731. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 0 end
  732. end
  733. game:GetService("UserInputService").InputEnded:connect(onKeyLift)
  734.  
  735. WholeBody = c:clone()
  736.  
  737. 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
  738. idletime = 0
  739. sine = 0
  740. game:GetService("RunService").RenderStepped:connect(function()
  741. c.Humanoid.MaxHealth = c.Humanoid.MaxHealth + math.huge c.Humanoid.Health = c.Humanoid.Health + math.huge
  742. if Resetting == false then
  743. if c:findFirstChild("Head")== nil or c:findFirstChild("Torso")== nil or c:findFirstChild("HumanoidRootPart")== nil or c.HumanoidRootPart:findFirstChild("RootJoint")== nil then
  744. Reset()
  745. else
  746. LastPos = c.HumanoidRootPart.CFrame
  747. end
  748. if c.Torso:findFirstChild("Right Shoulder") == nil or c:findFirstChild("Right Arm")== nil then print("RA")
  749. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  750. makejoint(c.Torso, RSC0, RSC1, c.Torso, BodyPart, "Right Shoulder")
  751. end
  752. if c.Torso:findFirstChild("Left Shoulder") == nil or c:findFirstChild("Left Arm")== nil then print("LA")
  753. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  754. makejoint(c.Torso, LSC0, LSC1, c.Torso, BodyPart, "Left Shoulder")
  755. end
  756. if c.Torso:findFirstChild("Right Hip") == nil or c:findFirstChild("Right Leg")== nil then print("RL")
  757. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  758. makejoint(c.Torso, RHC0, RHC1, c.Torso, BodyPart, "Right Hip")
  759. end
  760. if c.Torso:findFirstChild("Left Hip") == nil or c:findFirstChild("Left Leg")== nil then print("LL")
  761. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  762. makejoint(c.Torso, LHC0, LHC1, c.Torso, BodyPart, "Left Hip")
  763. end
  764. local r = math.random(1,15)
  765. if r == 1 then S.PlaybackSpeed = math.random(1,50)/10 end
  766. if attack == false and Cloud == false then
  767. local r2 = math.random(1,50)
  768. if r2 == 1 then
  769. 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
  770. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Y, X, Z
  771. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  772. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  773. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  774. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  775. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  776. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  777. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  778. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  779. end
  780. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)-- Y, X, Z
  781. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Y, X, Z
  782. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  783. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  784. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  785. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  786. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  787. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  788. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  789. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  790. end
  791. end
  792. end)
Add Comment
Please, Sign In to add comment