View difference between Paste ID: TUA5sdNL and wHtkimnF
SHOW: | | - or go back to the newest paste.
1
-- [ GlitchMaster ] --
2
-- [ Cucumber Quest ] --
3
wait()
4
LoudVolume = false
5
Music = true
6
script.Name = "GlitchMaster"
7
Player = game.Players.animefreak15439
8-
Player = game.Players.LocalPlayer
8+
c = game.Players.animefreak15439.Character
9-
c = game.Players.LocalPlayer.Character
9+
10
anim = c.Humanoid.Animator
11
rage = false
12
Battle = false
13
p = game.Players.animefreak15439
14-
p = game.Players.LocalPlayer
14+
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
31-
mouse = Player:GetMouse()
31+
32
local S10 = Instance.new("Sound") local S11 = Instance.new("ParticleEmitter")
33
34
 c.Humanoid.WalkSpeed = 24 c.Humanoid.JumpPower = 50
35
36
  RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
37
  RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
38
  LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
39
  LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
40
  RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
41
  RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
42
  LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
43
  LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
44
  NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
45
  NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
46
  RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
47
  RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
48
  RS = c.Torso:FindFirstChild("Right Shoulder")
49
  LS = c.Torso:FindFirstChild("Left Shoulder")
50
  RH = c.Torso:FindFirstChild("Right Hip")
51
  LH = c.Torso:FindFirstChild("Left Hip")
52
  RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
53
  N = c.Torso:FindFirstChild("Neck")
54
  cf = CFrame.new
55
  ang = CFrame.Angles
56
  rd = math.rad
57
  rd2 = math.random
58
59
function swait(num)
60
if num==0 or num==nil then
61
game:service'RunService'.Heartbeat:wait(0)
62
else
63
for i=0,num do
64
game:service'RunService'.Heartbeat:wait(0)
65
end
66
end
67
end
68
69
function AnimDis()
70
if c.Animate.Disabled == false then
71
c.Animate.Disabled = true
72
anim.Parent = nil
73
else
74
anim.Parent = c.Humanoid
75
c.Animate.Disabled = false
76
end
77
end
78
function lerpz(joint, prop, cfrmz, alp)
79
joint[prop] = joint[prop]:lerp(cfrmz, alp)
80
end
81
function resetlerp()
82
RJ.C0 = RJC0
83
RJ.C1 = RJC1
84
N.C0 = NC0
85
N.C1 = NC1
86
RS.C0 = RSC0
87
RS.C1 = RSC1
88
LS.C0 = LSC0
89
LS.C1 = LSC1
90
RH.C0 = RHC0
91
RH.C1 = RHC1
92
LH.C0 = LHC0
93
LH.C1 = LHC1
94
end
95
96
game:GetService('UserInputService').InputBegan:connect(function(InputObj)
97
if InputObj.KeyCode == Enum.KeyCode.Slash then
98
local finishEvent = nil
99
isTyping = true
100
finishEvent = game:GetService('UserInputService').InputBegan:connect(function(InputObj)
101
if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
102
isTyping = false
103
finishEvent:disconnect()
104
end
105
end)
106
end
107
end)
108
109
function VirusDestroy(H)
110
spawn(function()
111
for i = 1,1000 do
112
H.Transparency = H.Transparency + 1/1000
113
swait()
114
end
115
game.Debris:AddItem(H,3)H.Anchored = true
116
end)
117
end
118
119
function HitInfect(Part)
120
Part.Touched:connect(function(Hit)
121
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
122
local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
123
Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black") HitInfect(Hit) VirusDestroy(Hit)
124
for i = 1,2 do
125
local tra = S11:clone() tra.Parent = Hit
126
tra.Texture = "rbxassetid://744949545"
127
tra.LightEmission = 0
128
if i == 1 then
129
tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
130
tra.ZOffset = 2.5
131
else
132
tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
133
tra.ZOffset = 3
134
end
135
local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
136
tra.Lifetime = NumberRange.new(1,3)
137
tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize,0),NumberSequenceKeypoint.new(1,0,0)})
138
tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
139
tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch" 
140
tra.LockedToPart = true
141
tra.Rate = 15
142
tra.VelocityInheritance = 0.2
143
if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
144
if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
145
Hit.Mesh.TextureId = "rbxassetid://64619306"
146
end
147
elseif Hit.Name ~= "Head" then
148
local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
149
M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)	
150
end
151
end
152
end
153
end)
154
end
155
function Virusify(Hit)
156
local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
157
Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black") 
158
for i = 1,2 do
159
local tra = S11:clone() tra.Parent = Hit
160
tra.Texture = "rbxassetid://744949545"
161
tra.LightEmission = 0
162
if i == 1 then
163
tra.Name = "Glitch" 
164
tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
165
tra.ZOffset = 2.5
166
else
167
tra.Name = "Glitch2" 
168
tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
169
tra.ZOffset = 3
170
end
171
local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
172
tra.Lifetime = NumberRange.new(1,3)
173
tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
174
tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
175
tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 
176
tra.LockedToPart = true
177
tra.Rate = 15+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
178
tra.VelocityInheritance = 0.2
179
if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
180
if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
181
Hit.Mesh.TextureId = "rbxassetid://64619306"
182
end
183
elseif Hit.Name ~= "Head" then
184
local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
185
M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)	
186
end
187
end
188
end
189
190
function Virusify2(Hit)
191
Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
192
for i = 1,2 do
193
local tra = S11:clone() tra.Parent = Hit
194
tra.Texture = "rbxassetid://744949545"
195
tra.LightEmission = 0
196
if i == 1 then
197
tra.Name = "Glitch" 
198
tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
199
tra.ZOffset = 2.5
200
else
201
tra.Name = "Glitch2" 
202
tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
203
tra.ZOffset = 3
204
end
205
local PSize = (Hit.Size.Y)/4
206
tra.Lifetime = NumberRange.new(0.5)
207
tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
208
tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
209
tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 
210
tra.LockedToPart = true
211
tra.Rate = 50
212
tra.VelocityInheritance = 0.2
213
if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
214
if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
215
Hit.Mesh.TextureId = "rbxassetid://64619306"
216
end
217
elseif Hit.Name ~= "Head" then
218
local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
219
M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)	
220
end
221
end
222
end
223
224
function Virusify3(Hit)
225
local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
226
Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black") 
227
for i2 = 1,2 do
228
for i = 1,2 do
229
local tra = S11:clone() tra.Parent = Hit
230
tra.Texture = "rbxassetid://744949545"
231
tra.LightEmission = 0
232
if i == 1 then
233
tra.Name = "Glitch" 
234
tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
235
tra.ZOffset = 2.5
236
else
237
tra.Name = "Glitch2" 
238
tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
239
tra.ZOffset = 3
240
end
241
if i2 == 1 then
242
tra.LockedToPart = true
243
else
244
tra.LockedToPart = false	
245
end
246
local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
247
tra.Lifetime = NumberRange.new(1,3)
248
tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
249
tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
250
tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 
251
tra.Rate = 35+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
252
tra.VelocityInheritance = 0.2
253
if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
254
if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
255
Hit.Mesh.TextureId = "rbxassetid://64619306"
256
end
257
elseif Hit.Name ~= "Head" then
258
local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
259
M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)	
260
end
261
end
262
end
263
end
264
265
local S = Instance.new("Sound",c.HumanoidRootPart)S.Volume = 0.4 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
266
267
for i,v in pairs(c:children()) do
268
if v.ClassName == "Accessory" then
269
v:remove()
270
end
271
end
272
273
if c:findFirstChild("Body Colors") then
274
c:findFirstChild("Body Colors"):remove()
275
end
276
for i,v in pairs (c:children()) do
277
if v.ClassName == "Part" then
278
if v.Name ~= "HumanoidRootPart" then
279
HitInfect(v)
280
v.Material = "Sand" v.BrickColor = BrickColor.new("Really black")
281
for i2 = 1,2 do
282
for i = 1,2 do
283
local tra = S11:clone() tra.Parent = v
284
tra.Texture = "rbxassetid://744949545"
285
tra.LightEmission = 0
286
if i == 1 then
287
tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
288
tra.ZOffset = 2.5
289
else
290
tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
291
tra.ZOffset = 3
292
end
293
tra.Rate = 15
294
tra.Lifetime = NumberRange.new(1,3)
295
tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,0.15,0),NumberSequenceKeypoint.new(1,0,0)})
296
tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
297
tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch" 
298
if i2 == 1 then
299
tra.LockedToPart = true
300
tra.Rate = 10
301
else
302
tra.LockedToPart = false
303
tra.ZOffset = tra.ZOffset - 2.25
304
end
305
tra.VelocityInheritance = 0.2
306
end
307
if v.Name ~= "Head" then
308
local M = Instance.new("SpecialMesh",v)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
309
M.Scale = Vector3.new(v.Size.X*2,v.Size.Y*2,v.Size.Z*2)
310
end
311
end
312
end
313
end
314
end
315
c.Head.Transparency = 1
316
local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
317
local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
318
local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
319
wait()
320
c.Head:FindFirstChild("face").Texture = ""
321
if c:findFirstChild("Shirt")~=nil then
322
c:findFirstChild("Shirt"):remove()
323
end
324
if c:findFirstChild("Pants")~=nil then
325
c:findFirstChild("Pants"):remove()
326
end
327
328
local flying = false
329
local deb = true 
330
local ctrl = {f = 0, b = 0, l = 0, r = 0} 
331
local lastctrl = {f = 0, b = 0, l = 0, r = 0} 
332
local maxspeed = 25 
333
local speed = 0 
334
335
function Fly() 
336
local bg = Instance.new("BodyGyro", c.HumanoidRootPart) 
337
bg.P = 100000 bg.D = 100
338
bg.maxTorque = Vector3.new(math.huge, 0, math.huge) 
339
bg.cframe = c.HumanoidRootPart.CFrame 
340
local bv = Instance.new("BodyVelocity", c.HumanoidRootPart) 
341
bv.velocity = Vector3.new(0,0.1,0) 
342
bv.maxForce = Vector3.new(math.huge, math.huge, math.huge) 
343
repeat wait() 
344
c.Humanoid.PlatformStand = true 
345
if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then 
346
speed = speed+1+(speed/maxspeed) 
347
if speed > maxspeed then 
348
speed = maxspeed 
349
end 
350
elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then 
351
speed = speed-1 
352
if speed < 0 then 
353
speed = 0 
354
end 
355
end 
356
if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then 
357
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 
358
lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r} 
359
elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then 
360
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 
361
else 
362
bv.velocity = Vector3.new(0,0.1,0) 
363
end 
364
until not flying 
365
ctrl = {f = 0, b = 0, l = 0, r = 0} 
366
lastctrl = {f = 0, b = 0, l = 0, r = 0} 
367
speed = 0 
368
bv:Destroy() 
369
c.Humanoid.PlatformStand = false 
370
end 
371
372
Cloud = false
373
function CloudForm()
374
if Cloud == false then
375
S.Volume = 1
376
attack = true Cloud = true
377
for i = 1,10 do
378
lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
379
lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.1)
380
lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
381
lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
382
lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
383
lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
384
lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
385
lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
386
lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
387
lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
388
swait()
389
end
390
lerpz(RJ, "C0", RJC0 * cf(0, 0, 2500) * ang(rd(0), rd(0), rd(0)), 1)
391
local Cl = Instance.new("Part",c)Cl.Size = Vector3.new(10,10,10) Cl.CanCollide = false Cl.Anchored = false Cl.CFrame = c.HumanoidRootPart.CFrame
392
Cl.CustomPhysicalProperties = PhysicalProperties.new(0,0.3,0.5)
393
Cl.Material = "Sand" Cl.BrickColor = BrickColor.new("Really black") Cl.Name = "Cloud"
394
HitInfect(Cl)
395
for i2 = 1,2 do
396
for i = 1,2 do
397
local tra = S11:clone() tra.Parent = CL
398
tra.Texture = "rbxassetid://744949545"
399
tra.LightEmission = 0
400
if i == 1 then
401
tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
402
tra.ZOffset = 2.5
403
else
404
tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
405
tra.ZOffset = 3
406
end
407
tra.Lifetime = NumberRange.new(1,3)
408
tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
409
tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
410
tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch" 
411
if i2 == 1 then
412
tra.LockedToPart = true
413
tra.Speed = NumberRange.new(0.5)
414
else
415
tra.LockedToPart = false
416
tra.Speed = NumberRange.new(4)
417
end
418
tra.Rate = 250
419
tra.VelocityInheritance = 0.2
420
end
421
end
422
local W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = Cl
423
local M = Instance.new("SpecialMesh",Cl)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
424
for i = 1,80 do
425
M.Scale = Vector3.new(i/4,i/4,i/4)
426
c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,3,0)
427
swait()
428
end
429
flying = true attack = false
430
Fly()
431
else
432
attack = true S.Volume = 0.4
433
if c:findFirstChild("Cloud") ~= nil then
434
lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
435
if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
436
for i = 1,20 do
437
c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
438
swait()
439
end
440
c.HumanoidRootPart.Smile:remove()
441
end
442
for i,v in pairs(c:findFirstChild("Cloud"):children()) do
443
if v.Name == "Glitch" then
444
v.Enabled = false
445
end
446
end
447
for i = 1,80 do
448
c:findFirstChild("Cloud").Mesh.Scale =  c:findFirstChild("Cloud").Mesh.Scale - Vector3.new(0.25,0.25,0.25)
449
swait()
450
end
451
game.Debris:AddItem(c:findFirstChild("Cloud"),2)
452
Cloud = false end flying = false
453
wait(2)
454
attack = false
455
end
456
end
457
458
function CloudFace()
459
if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
460
for i = 1,20 do
461
c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
462
swait()
463
end
464
c.HumanoidRootPart.Smile:remove()
465
else
466
local BillBoard = Instance.new("BillboardGui",c.HumanoidRootPart)BillBoard.Name = "Smile" BillBoard.AlwaysOnTop = true BillBoard.Size = UDim2.new(10,0,10,0)
467
local Im = Instance.new("ImageLabel",BillBoard) Im.BackgroundTransparency = 1 Im.Size = UDim2.new(1,0,1,0)Im.Image = "rbxassetid://915081021" 
468
end
469
end
470
471
472
function VirusExplosion(Pos)
473
for i = 1,10 do
474
for i2 = 1,8 do
475
local V = Instance.new("Part")V.Size = Vector3.new(1+i*20,0.5,10)V.Anchored = true V.CanCollide = false
476
V.CFrame = Pos*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
477
V.CFrame = V.CFrame*CFrame.new(0,3,2*i)HitInfect(V) V.Parent = game.Workspace
478
end
479
swait()
480
end
481
end
482
483
function VirusFade(H) 
484
spawn(function()
485
for i = 1,10 do
486
H.Transparency = H.Transparency + 1/10
487
swait()
488
end
489
H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
490
game.Debris:AddItem(H,0.2)
491
end)
492
end
493
494
function VirusFade2(H) 
495
spawn(function()
496
for i = 1,25 do
497
H.Transparency = H.Transparency + 1/25
498
swait()
499
end
500
H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
501
game.Debris:AddItem(H,4)
502
end)
503
end
504
505
function HammerSlam()
506
c.HumanoidRootPart.Anchored = true
507
attack = true
508
AnimDis()
509
for i = 1,15 do
510
lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2)-- Y, X, Z
511
lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2) -- Y, X, Z
512
lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.2) -- Z, X, Y 
513
lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.2) -- Z, X, Y
514
lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
515
lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
516
swait()
517
end
518
local H = Instance.new("Part",c)H.Size = Vector3.new(1,1,15)H.CanCollide = false
519
local H2 = Instance.new("Part",c)H2.Size = Vector3.new(5,10,5)H2.CanCollide = false
520
local W = Instance.new("Weld",c["Torso"])W.Part0 = c["Torso"] W.Part1 = H  W.C0 = CFrame.new(0,-2,0)
521
local W2 = Instance.new("Weld",H2)W2.Part0 = H2 W2.Part1 = H W2.C0 = CFrame.new(0,0,-4)
522
Virusify(H) Virusify(H2)HitInfect(H)HitInfect(H2)
523
for i = 1,45 do
524
W.C0 = CFrame.new(0,2,4)*CFrame.Angles(math.rad(5),0,0)
525
lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2)-- Y, X, Z
526
lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2) -- Y, X, Z
527
lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(220)), 0.2) -- Z, X, Y 
528
lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(-220)), 0.2) -- Z, X, Y
529
lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
530
lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
531
swait()
532
end
533
W.C0 = CFrame.new(0,3,-8)*CFrame.Angles(math.rad(200),0,0)
534
for i = 1,15 do
535
lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5)-- Y, X, Z
536
lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5) -- Y, X, Z
537
lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.5) -- Z, X, Y 
538
lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.5) -- Z, X, Y
539
lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5)
540
lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5)
541
swait()
542
end
543
local S = Instance.new("Sound",H2)S.Volume = 2 S.SoundId = "rbxassetid://211062246" S:Play()
544
for i = 1,45 do
545
for i2 = 1,8 do
546
local V = Instance.new("Part")V.Size = Vector3.new(10+i*4,1,10)V.Anchored = true V.CanCollide = false
547
V.CFrame = H2.CFrame*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
548
V.CFrame = V.CFrame*CFrame.new(0,3,5*i)HitInfect(V) V.Parent = game.Workspace
549
end
550
swait()
551
end
552
H.Anchored = true H2.Anchored = true
553
W:remove() W2:remove()
554
c.HumanoidRootPart.Anchored = false
555
AnimDis()
556
attack = false
557
spawn(function()
558
wait(3) H.Transparency = 1 H2.Transparency = 1
559
H:findFirstChild("Glitch").Enabled = false H2:findFirstChild("Glitch").Enabled = false
560
H:findFirstChild("Glitch2").Enabled = false H2:findFirstChild("Glitch2").Enabled = false
561
game.Debris:AddItem(H,4) game.Debris:AddItem(H2,4)
562
end)
563
end
564
565
function Missiles()
566
attack = true
567
local Mis = Instance.new("Part",game.Workspace)Mis.Name = "GlitchMissle" Mis.Size = Vector3.new(2,2,12) Mis.CFrame = c.HumanoidRootPart.CFrame Virusify3(Mis)
568
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)))
569
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)
570
local hit = false
571
Mis.Touched:connect(function(Hit)
572
if Hit.Parent ~= c then
573
if hit == false then hit = true
574
Mis.Anchored = true VirusFade2(Mis)
575
VirusExplosion(CFrame.new(Mis.Position))
576
end
577
end
578
end)
579
wait(0.1)
580
attack = false
581
end
582
583
mouse.KeyDown:connect(function(key)
584
if c.Humanoid.Health <= 0 then return end
585
if attack == true then return end
586
if Cloud == true then
587
if key == "f" then
588
CloudFace()
589
end
590
if key == "z" then
591
Missiles()
592
end
593
elseif Cloud == false then
594
if key == "z" then
595
HammerSlam()
596
end
597
end
598
if key == "m" then
599
CloudForm()
600
end
601
end)
602
603
local LastPos = c.HumanoidRootPart.CFrame
604
local Resetting = false
605
function Reset()
606
if Resetting == false then Resetting = true
607
c.Parent = nil 
608
c.Humanoid.Health = math.huge c.Humanoid.MaxHealth = math.huge
609
for i,v in pairs(c:children()) do if v.ClassName == "Part" then v:remove() end end
610
local Tors = Instance.new("Part",c)Tors.Name = "Torso" Tors.Size = Vector3.new(2,2,1) Virusify(Tors)
611
local Hed = Instance.new("Part",c)Hed.Name = "Head" Hed.Size = Vector3.new(2,1,1) Virusify(Hed) Hed.Transparency = 1
612
makejoint(c.Torso, NC0, NC1, c.Torso, c.Head, "Neck")
613
local Hum = Instance.new("Part",c)Hum.Name = "HumanoidRootPart" Hum.Size = Vector3.new(2,2,1) Hum.Transparency = 1
614
makejoint(c.HumanoidRootPart, RJC0, RJC1, c.HumanoidRootPart, c.Torso, "RootJoint")
615
local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
616
local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
617
local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
618
local RiArm = Instance.new("Part",c)RiArm.Name = "Right Arm" RiArm.Size = Vector3.new(1,2,1) Virusify(RiArm)
619
makejoint(c.Torso, RSC0, RSC1, c.Torso, RiArm, "Right Shoulder")
620
local LeArm = Instance.new("Part",c)LeArm.Name = "Left Arm" LeArm.Size = Vector3.new(1,2,1) Virusify(LeArm)
621
makejoint(c.Torso, LSC0, LSC1, c.Torso, LeArm, "Left Shoulder")
622
local RiLeg = Instance.new("Part",c)RiLeg.Name = "Right Leg" RiLeg.Size = Vector3.new(1,2,1) Virusify(RiLeg)
623
makejoint(c.Torso, RHC0, RHC1, c.Torso, RiLeg, "Right Hip")
624
local LeLeg = Instance.new("Part",c)LeLeg.Name = "Left Leg" LeLeg.Size = Vector3.new(1,2,1) Virusify(LeLeg)
625
makejoint(c.Torso, LHC0, LHC1, c.Torso, LeLeg, "Left Hip")
626
c.HumanoidRootPart.CFrame = LastPos*CFrame.new(math.random(-5,5),0,math.random(-5,5))
627
Resetting = false c.Humanoid.Died:connect(Reset) c.Parent = game.Workspace
628
end
629
end
630
c.Humanoid.Died:connect(Reset)
631
632
function onKeyPress(inputObject, gameProcessedEvent)
633
if isTyping == true then return end
634
if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 1 end
635
if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = -1 end
636
if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = -1 end
637
if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 1 end
638
end
639
game:GetService("UserInputService").InputBegan:connect(onKeyPress)
640
641
function onKeyLift(inputObject, gameProcessedEvent)
642
if isTyping == true then return end
643
if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 0 end
644
if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = 0 end
645
if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = 0 end
646
if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 0 end
647
end
648
game:GetService("UserInputService").InputEnded:connect(onKeyLift)
649
650
WholeBody = c:clone()
651
652
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
653
idletime = 0
654
sine = 0
655
game:GetService("RunService").RenderStepped:connect(function()
656
c.Humanoid.MaxHealth = c.Humanoid.MaxHealth + math.huge c.Humanoid.Health = c.Humanoid.Health + math.huge
657
if Resetting == false then
658
if c:findFirstChild("Head")== nil or c:findFirstChild("Torso")== nil or c:findFirstChild("HumanoidRootPart")== nil or c.HumanoidRootPart:findFirstChild("RootJoint")== nil then 
659
Reset()
660
else
661
LastPos = c.HumanoidRootPart.CFrame
662
end
663
if c.Torso:findFirstChild("Right Shoulder") == nil or c:findFirstChild("Right Arm")== nil then print("RA")
664
local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
665
makejoint(c.Torso, RSC0, RSC1, c.Torso, BodyPart, "Right Shoulder")
666
end
667
if c.Torso:findFirstChild("Left Shoulder") == nil or c:findFirstChild("Left Arm")== nil then print("LA")
668
local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
669
makejoint(c.Torso, LSC0, LSC1, c.Torso, BodyPart, "Left Shoulder")
670
end
671
if c.Torso:findFirstChild("Right Hip") == nil or c:findFirstChild("Right Leg")== nil then print("RL")
672
local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
673
makejoint(c.Torso, RHC0, RHC1, c.Torso, BodyPart, "Right Hip")
674
end 
675
if c.Torso:findFirstChild("Left Hip") == nil or c:findFirstChild("Left Leg")== nil then print("LL")
676
local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
677
makejoint(c.Torso, LHC0, LHC1, c.Torso, BodyPart, "Left Hip")
678
end
679
local r = math.random(1,15)
680
if r == 1 then S.PlaybackSpeed = math.random(1,50)/10 end
681
if attack == false and Cloud == false then
682
local r2 = math.random(1,50)
683
if r2 == 1 then
684
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
685
lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Y, X, Z
686
lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y 
687
lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
688
lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
689
lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
690
lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
691
lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
692
lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
693
lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
694
end
695
lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)-- Y, X, Z
696
lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Y, X, Z
697
lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y 
698
lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
699
lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
700
lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
701
lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
702
lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
703
lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
704
lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
705
end
706
end
707
end)