View difference between Paste ID: 6hSg6H2b and PnK7BRum
SHOW: | | - or go back to the newest paste.
1
warn([[Ruin Emphasis Loaded.
2
We dont know where this is going...
3
4
Made by GodzPlaysRB
5
6
Credit where credit is needed.
7
so don't feel left out if u made something in this.
8
Credit to UnfairGaming1 for the Relaxation Anims :)
9
10
12/04/19 --- V --- SpectrumEeveez
11
Realised how shitty Poison's one was.
12
But hey This new one hasn't been leaked yet!
13
So I'm just gonna go leak it.
14
Also Expect a lot of lag locally but should be fixed Server-Sided
15
]])
16
17
18
-- WIELDER: Cercilla
19
20
21
22
--- its nooby's code smooth af do not touch 
23
---- Sources and functions might be taken from others
24
plr = game:GetService("Players").TameDoNotClick
25
char = plr.Character
26
mouse = plr:GetMouse()
27
Player = plr
28
hum = char.Humanoid
29
local cam = game.Workspace.CurrentCamera
30
Camera = cam
31
local CamInterrupt = false
32
local TwoD = false
33
local TargetInfo = {nil, nil}
34
cam.CameraType = "Custom"
35
t = char.Torso
36
h = char.Head
37
ra = char["Right Arm"]
38
la = char["Left Arm"]
39
rl = char["Right Leg"]
40
ll = char["Left Leg"]
41
tors = char.Torso
42
lleg = char["Left Leg"]
43
root = char.HumanoidRootPart
44
hed = char.Head
45
rleg = char["Right Leg"]
46
rarm = char["Right Arm"]
47
larm = char["Left Arm"]
48
radian = math.rad
49
random = math.random
50
Vec3 = Vector3.new
51
Inst = Instance.new
52
cFrame = CFrame.new
53
Euler = CFrame.fromEulerAnglesXYZ
54
vt = Vector3.new
55
bc = BrickColor.new
56
br = BrickColor.random
57
it = Instance.new
58
cf = CFrame.new
59
local MAINRUINCOLOR2 = BrickColor.new("Really black")
60
local MAINRUINCOLOR = BrickColor.new("Really red")
61
local Player_Size = 1
62
local sword = false
63
64
local rotperm = 0
65
66
local Booleans = {
67
  CamFollow = true,
68
  GyroUse = true
69
}
70
71
function lerp(object, newCFrame, alpha)
72
  return object:lerp(newCFrame, alpha)
73
end
74
75
function shakes(power,length)
76
	for i,v in pairs(game:GetService("Players"):GetChildren()) do
77
	local var = script.Shaker:Clone()
78
	var.Parent = v.PlayerGui
79
	local pw = var.Shakeval
80
	local lgth = var.MultLength
81
	pw.Value = power
82
	lgth.Value = length
83
	var.Disabled = false
84
	end
85
end
86
87
88
local Directer = Inst("BodyGyro", root)
89
Directer.MaxTorque = Vec3(0, 0, 0)
90
Directer.P = 600000
91
92
local rainbowmode = false
93
local chaosmode = false
94
95
local ORGID = 0
96
local ORVOL = 1.15
97
local ORPIT = 1.01
98
local kan = Instance.new("Sound",char)
99
kan.Volume = 1.15
100
kan.TimePosition = 0
101
kan.PlaybackSpeed = 1.15
102
kan.Pitch = 1
103
kan.SoundId = "rbxassetid://2639726704"
104
kan.Name = "Rekt"
105
kan.Looped = true
106
kan:Play()
107
108
local currentThemePlaying = kan.SoundId
109
local currentPitch = kan.Pitch
110
local currentVol = kan.Volume
111
function newTheme(ID,timepos,pitch,vol)
112
local kanz = kan
113
--kanz:Stop()
114
kanz.Volume = vol
115
--kanz.TimePosition = timepos
116
kanz.PlaybackSpeed = pitch
117
kanz.Pitch = pitch
118
kanz.SoundId = ID
119
kanz.Name = "wrecked"
120
kanz.Looped = true
121
currentThemePlaying = kanz.SoundId
122
currentVol = kanz.Volume
123
currentPitch = kanz.Pitch
124
--kanz:Play()
125
--coroutine.resume(coroutine.create(function()
126
--wait(0.05)
127
--end))
128
end
129
130
local ModeOfGlitch = 1
131
132
function newThemeCust(ID,timepos,pitch,vol)
133
local kanz = kan
134
kanz:Stop()
135
kanz.Volume = vol
136
kanz.TimePosition = timepos
137
kanz.PlaybackSpeed = pitch
138
kanz.Pitch = pitch
139
kanz.SoundId = ID
140
kanz.Name = "wrecked"
141
kanz.Looped = true
142
currentThemePlaying = kanz.SoundId
143
currentVol = kanz.Volume
144
currentPitch = kanz.Pitch
145
kanz:Play()
146
coroutine.resume(coroutine.create(function()
147
wait(0.05)
148
end))
149
end
150
151
local mutedtog = false
152
153
function CameraEnshaking(Length,Intensity)
154
coroutine.resume(coroutine.create(function()
155
      local intensity = 1*Intensity
156
      local rotM = 0.01*Intensity
157
for i = 0, Length, 0.1 do
158
swait()
159
intensity = intensity - 0.05*Intensity/Length
160
rotM = rotM - 0.0005*Intensity/Length
161
      hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
162
      cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
163
end
164
Humanoid.CameraOffset = Vec3(0, 0, 0)
165
end))
166
end
167
CamShake=function(Part,Distan,Power,Times) 
168
local de=Part.Position
169
for i,v in pairs(workspace:children()) do
170
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
171
for _,c in pairs(v:children()) do
172
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
173
local Noob=v.Humanoid
174
if Noob~=nil then
175
coroutine.resume(coroutine.create(function()
176
FV = Instance.new("BoolValue", Noob)
177
FV.Name = "CameraShake"
178
for ShakeNum=1,Times do
179
swait()
180
local ef=Power
181
  if ef>=1 then
182
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
183
  else
184
   ef=Power*10
185
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
186
  end	
187
end
188
Humanoid.CameraOffset = Vector3.new(0,0,0)
189
FV:Destroy()
190
end))
191
CameraShake(Times, Power, Noob)
192
end
193
end
194
end
195
end
196
end
197
end
198
199
200
function Showoff(power,length,High)
201
end
202
203
function Showoff2(power,length,High)
204
end
205
206
local bilguit = Instance.new("BillboardGui", hed)
207
bilguit.Adornee = nil
208
bilguit.Name = "ModeName"
209
bilguit.Size = UDim2.new(4, 0, 1.2, 0)
210
bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
211
local modet = Instance.new("TextLabel", bilguit)
212
modet.Size = UDim2.new(10/2, 0, 7/2, 0)
213
modet.FontSize = "Size8"
214
modet.TextScaled = true
215
modet.TextTransparency = 0
216
modet.BackgroundTransparency = 1 
217
modet.TextTransparency = 0
218
modet.TextStrokeTransparency = 0
219
modet.Font = "Arcade"
220
modet.TextStrokeColor3 = BrickColor.new"Maroon".Color
221
modet.TextColor3 = Color3.new(0,0,0)
222
modet.Text = "OVERCLOCKED"
223
224
function chatfunc(text,color,typet,font,timeex)
225
local chat = coroutine.wrap(function()
226
if Character:FindFirstChild("TalkingBillBoard")~= nil then
227
Character:FindFirstChild("TalkingBillBoard"):destroy()
228
end
229
local naeeym2 = Instance.new("BillboardGui",Character)
230
naeeym2.Size = UDim2.new(0,100,0,40)
231
naeeym2.StudsOffset = Vector3.new(0,3,0)
232
naeeym2.Adornee = Character.Head
233
naeeym2.Name = "TalkingBillBoard"
234
local tecks2 = Instance.new("TextLabel",naeeym2)
235
tecks2.BackgroundTransparency = 1
236
tecks2.BorderSizePixel = 0
237
tecks2.Text = ""
238
tecks2.Font = font
239
tecks2.TextSize = 30
240
tecks2.TextStrokeTransparency = 0
241
tecks2.TextColor3 = color
242
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
243
tecks2.Size = UDim2.new(1,0,0.5,0)
244
local tecks3 = Instance.new("TextLabel",naeeym2)
245
tecks3.BackgroundTransparency = 1
246
tecks3.BorderSizePixel = 0
247
tecks3.Text = ""
248
tecks3.Font = font
249
tecks3.TextSize = 30
250
tecks3.TextStrokeTransparency = 0
251
if typet == "Inverted" then
252
tecks3.TextColor3 = Color3.new(0,0,0)
253
tecks3.TextStrokeColor3 = color
254
elseif typet == "Normal" then
255
tecks3.TextColor3 = color
256
tecks3.TextStrokeColor3 = Color3.new(0,0,0)
257
end
258
tecks3.Size = UDim2.new(1,0,0.5,0)
259
coroutine.resume(coroutine.create(function()
260
while true do
261
swait(1)
262
if chaosmode == true then
263
tecks2.TextColor3 = BrickColor.random().Color
264
tecks3.TextStrokeColor3 = BrickColor.random().Color
265
end
266
end
267
end))
268
for i = 0, 74*timeex do
269
swait()
270
tecks2.Text = text
271
tecks3.Text = text
272
end
273
local randomrot = math.random(1,2)
274
if randomrot == 1 then
275
for i = 1, 50 do
276
swait()
277
tecks2.Text = text
278
tecks3.Text = text
279
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
280
tecks2.TextTransparency = tecks2.TextTransparency + .04
281
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
282
tecks3.TextTransparency = tecks2.TextTransparency + .04
283
end
284
elseif randomrot == 2 then
285
	for i = 1, 50 do
286
swait()
287
tecks2.Text = text
288
tecks3.Text = text
289
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
290
tecks2.TextTransparency = tecks2.TextTransparency + .04
291
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
292
tecks3.TextTransparency = tecks2.TextTransparency + .04
293
end
294
end
295
if toggleTag == false then
296
end
297
naeeym2:Destroy()
298
end)
299
chat()
300
end
301
function bosschatfunc(text,color,watval)
302
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
303
coroutine.resume(coroutine.create(function()
304
if v.PlayerGui:FindFirstChild("Dialog")~= nil then
305
v.PlayerGui:FindFirstChild("Dialog"):destroy()
306
end
307
local scrg = Instance.new("ScreenGui",v.PlayerGui)
308
scrg.Name = "Dialog"
309
local txtlb = Instance.new("TextLabel",scrg)
310
txtlb.Text = ""
311
txtlb.Font = "Bodoni"
312
txtlb.TextColor3 = Color3.new(0,0,0)
313
txtlb.TextStrokeTransparency = 0
314
txtlb.BackgroundTransparency = 1
315
txtlb.BackgroundColor3 = Color3.new(0,0,0)
316
txtlb.TextStrokeColor3 = color
317
txtlb.TextScaled = true
318
txtlb.Size = UDim2.new(1,0,0.25,0)
319
txtlb.TextXAlignment = "Center"
320
txtlb.Position = UDim2.new(0,0,0.75,0)
321
local txtlb2 = Instance.new("TextLabel",scrg)
322
txtlb2.Text = ""
323
txtlb2.Font = "Arcade"
324
txtlb2.TextColor3 = Color3.new(0,0,0)
325
txtlb2.TextStrokeTransparency = 0
326
txtlb2.BackgroundTransparency = 1
327
txtlb2.TextStrokeColor3 = color
328
txtlb2.TextSize = 40
329
txtlb2.Size = UDim2.new(1,0,0.25,0)
330
txtlb2.TextXAlignment = "Left"
331
txtlb2.Position = UDim2.new(0,0,1,0)
332
local fvalen = 0.55
333
local fval = -0.49
334
335
coroutine.resume(coroutine.create(function()
336
while true do
337
swait()
338
if scrg.Parent ~= nil then
339
	fvalen = fvalen - 0.0001
340
elseif scrg.Parent == nil then
341
break
342
end
343
end
344
end))
345
local flol = 1.75
346
local flil = 1.6
347
coroutine.resume(coroutine.create(function()
348
	for i = 0, 9 do
349
		swait()
350
		fval = fval + 0.05
351
		flol = flol - 0.175
352
		flil = flil - 0.15
353
		txtlb.Text = ""
354
		txtlb.Position = UDim2.new(flol,0,0.3,0)
355
		txtlb2.Position = UDim2.new(flil,0,0.3,0)
356
	end
357
	txtlb.Text = text
358
	for i = 1,string.len(text),1 do
359
CFuncs["Sound"].Create("rbxassetid://565939471", char, .6, .8)
360
txtlb.Text = string.sub(text,1,i)
361
	swait(1)
362
end
363
coroutine.resume(coroutine.create(function()
364
while true do
365
swait()
366
if rainbowmode == true then
367
txtlb.TextColor3 = ned.TextColor3
368
txtlb.TextStrokeColor3 = ned.TextStrokeColor3
369
end
370
end
371
end))
372
wait(watval)
373
local valinc = 0
374
for i = 0, 99 do
375
swait()
376
valinc = valinc + 0.0001
377
flol = flol + valinc
378
flil = flil + valinc
379
txtlb.Rotation = txtlb.Rotation + valinc*30
380
txtlb2.Rotation = txtlb2.Rotation - valinc*30
381
txtlb.Position = UDim2.new(0,0,0.3 + flol,0)
382
txtlb2.Position = UDim2.new(0,0,0.3 + flil,0)
383
txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
384
txtlb.TextTransparency = txtlb.TextTransparency + 0.01
385
txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
386
txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
387
txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
388
end
389
scrg:Destroy()
390
end))
391
end))
392
end
393
end
394
395
local Create = LoadLibrary("RbxUtility").Create
396
397
	
398
	["Mesh"] = {
399
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
400
			local Msh = Create(Mesh){
401
				Parent = Part,
402
				Offset = OffSet,
403
				Scale = Scale,
404
			}
405
			if Mesh == "SpecialMesh" then
406
				Msh.MeshType = MeshType
407
				Msh.MeshId = MeshId
408
			end
409
			return Msh
410
		end;
411
	}
412
413
	["Sound"] = {
414
		Create = function(id, par, vol, pit) 
415
			coroutine.resume(coroutine.create(function()
416
				local S = Create("Sound"){
417
					Volume = vol,
418
                                        Name = "EffectSoundo",
419
					Pitch = pit or 1,
420
					SoundId = id,
421
					Parent = par or workspace,
422
				}
423
				wait() 
424
				S:play() 
425
				game:GetService("Debris"):AddItem(S, 10)
426
			end))
427
		end;
428
	};
429
430
	["TimeSound"] = {
431
		Create = function(id, par, vol, pit, timepos) 
432
			coroutine.resume(coroutine.create(function()
433
				local S = Create("Sound"){
434
					Volume = vol,
435
                                        Name = "EffectSoundo",
436
					Pitch = pit or 1,
437
					SoundId = id,
438
                                        TimePosition = timepos,
439
					Parent = par or workspace,
440
				}
441
				wait() 
442
				S:play() 
443
				game:GetService("Debris"):AddItem(S, 10)
444
			end))
445
		end;
446
	};
447
		["EchoSound"] = {
448
		Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) 
449
			coroutine.resume(coroutine.create(function()
450
				local Sas = Create("Sound"){
451
					Volume = vol,
452
                    Name = "EffectSoundo",
453
					Pitch = pit or 1,
454
					SoundId = id,
455
                    TimePosition = timepos,
456
					Parent = par or workspace,
457
				}
458
				local E = Create("EchoSoundEffect"){
459
					Delay = echodelay,
460
                    Name = "Echo",
461
					Feedback = fedb,
462
                    DryLevel = dryl,
463
					Parent = Sas,
464
				}
465
				wait() 
466
				Sas:play() 
467
				game:GetService("Debris"):AddItem(Sas, delays)
468
			end))
469
		end;
470
	};
471
472
["LongSound"] = {
473
		Create = function(id, par, vol, pit) 
474
			coroutine.resume(coroutine.create(function()
475
				local S = Create("Sound"){
476
					Volume = vol,
477
					Pitch = pit or 1,
478
					SoundId = id,
479
					Parent = par or workspace,
480
				}
481
				wait() 
482
				S:play() 
483
				game:GetService("Debris"):AddItem(S, 60)
484
			end))
485
		end;
486
	};
487
	
488
	["ParticleEmitter"] = {
489
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
490
			local fp = Create("ParticleEmitter"){
491
				Parent = Parent,
492
				Color = ColorSequence.new(Color1, Color2),
493
				LightEmission = LightEmission,
494
				Size = Size,
495
				Texture = Texture,
496
				Transparency = Transparency,
497
				ZOffset = ZOffset,
498
				Acceleration = Accel,
499
				Drag = Drag,
500
				LockedToPart = LockedToPart,
501
				VelocityInheritance = VelocityInheritance,
502
				EmissionDirection = EmissionDirection,
503
				Enabled = Enabled,
504
				Lifetime = LifeTime,
505
				Rate = Rate,
506
				Rotation = Rotation,
507
				RotSpeed = RotSpeed,
508
				Speed = Speed,
509
				VelocitySpread = VelocitySpread,
510
			}
511
			return fp
512
		end;
513
	};
514
515
	CreateTemplate = {
516
	
517
	};
518
}
519
520
521
522
New = function(Object, Parent, Name, Data)
523
	local Object = Instance.new(Object)
524
	for Index, Value in pairs(Data or {}) do
525
		Object[Index] = Value
526
	end
527
	Object.Parent = Parent
528
	Object.Name = Name
529
	return Object
530
end
531
local halocolor = BrickColor.new("Pastel light blue")
532
local halocolor2 = BrickColor.new("Cool yellow")
533
local starcolor = BrickColor.new("Bright yellow")
534
local lunacolor = BrickColor.new("Navy blue")
535
local lunacolor2 = BrickColor.new("Bright blue")
536
local wepcolor = BrickColor.new("Really black")
537
local maincolor = BrickColor.new("Really black")
538
local m = Instance.new("Model",char)
539
local m2 = Instance.new("Model",char)
540
local m3 = Instance.new("Model",char)
541
local mw1 = Instance.new("Model",char)
542
local mw2 = Instance.new("Model",char)
543
544
545
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
546
  local gui = it(GuiType)
547
  gui.Parent = parent
548
  gui.Text = text
549
  gui.BackgroundTransparency = backtrans
550
  gui.BackgroundColor3 = backcol
551
  gui.SizeConstraint = "RelativeXY"
552
  gui.TextXAlignment = "Center"
553
  gui.TextYAlignment = "Center"
554
  gui.Position = pos
555
  gui.Size = size
556
  gui.Font = "SourceSans"
557
  gui.FontSize = "Size14"
558
  gui.TextWrapped = false
559
  gui.TextStrokeTransparency = 0
560
  gui.TextColor = BrickColor.new("White")
561
  return gui
562
end
563
--------------------------- GUI STUFF
564
local basgui = it("GuiMain")
565
basgui.Parent = plr.PlayerGui
566
basgui.Name = "VISgui"
567
local fullscreenz = it("Frame")
568
fullscreenz.Parent = basgui
569
fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
570
fullscreenz.BackgroundTransparency = 1
571
fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
572
fullscreenz.Size = UDim2.new(1, 0, 1, 0)
573
fullscreenz.Position = UDim2.new(0, 0, 0, 0)
574
575
local imgl2 = Instance.new("ImageLabel",fullscreenz)
576
imgl2.BackgroundTransparency = 1
577
imgl2.BorderSizePixel = 0
578
imgl2.ImageTransparency = 0
579
imgl2.ImageColor3 = BrickColor.new("Really black").Color
580
imgl2.Position = UDim2.new(1,-400,1,-400)
581
imgl2.Size = UDim2.new(0,800,0,800)
582
imgl2.Image = "rbxassetid://172380355"
583
local techc = imgl2:Clone()
584
techc.Parent = fullscreenz
585
techc.ImageTransparency = 0
586
techc.Size = UDim2.new(0,400,0,400)
587
techc.Position = UDim2.new(1,-200,1,-200)
588
techc.ImageColor3 = BrickColor.new("Really black").Color
589
techc.Image = "rbxassetid://2312128106"
590
local techc2 = imgl2:Clone()
591
techc2.Parent = fullscreenz
592
techc2.ImageTransparency = 0
593
techc2.Size = UDim2.new(0,900,0,900)
594
techc2.Position = UDim2.new(1,-450,1,-450)
595
techc2.ImageColor3 = BrickColor.new("Really red").Color
596
techc2.Image = "rbxassetid://2344830904"
597
local circl = imgl2:Clone()
598
circl.Parent = fullscreenz
599
circl.ImageTransparency = 0
600
circl.Size = UDim2.new(0,450,0,450)
601
circl.Position = UDim2.new(1,-225,1,-225)
602
circl.ImageColor3 = BrickColor.new("Really red").Color
603
circl.Image = "rbxassetid://2109045978"
604
local circl2 = imgl2:Clone()
605
circl2.Parent = fullscreenz
606
circl2.ImageTransparency = 0
607
circl2.Size = UDim2.new(0,600,0,600)
608
circl2.Position = UDim2.new(1,-300,1,-300)
609
circl2.ImageColor3 = BrickColor.new("Really black").Color
610
circl2.Image = "rbxassetid://2312119891"
611
local imgl2b = imgl2:Clone()
612
imgl2b.Parent = fullscreenz
613
imgl2b.ImageTransparency = 0
614
imgl2b.ImageColor3 = BrickColor.new("White").Color
615
imgl2b.Image = "rbxassetid://2344870656"
616
local ned = Instance.new("TextLabel",fullscreenz)
617
ned.ZIndex = 2
618
ned.Font = "Arcade"
619
ned.BackgroundTransparency = 1
620
ned.BorderSizePixel = 0.65
621
ned.Size = UDim2.new(0.3,0,0.2,0)
622
ned.Position = UDim2.new(0.7,0,0.8,0)
623
ned.TextColor3 = BrickColor.new("Really black").Color
624
ned.TextStrokeColor3 = BrickColor.new("Really red").Color
625
ned.TextScaled = true
626
ned.TextStrokeTransparency = 0
627
ned.Text = "INCREATION"
628
ned.TextSize = 24
629
ned.Rotation = 1
630
ned.TextXAlignment = "Right"
631
ned.TextYAlignment = "Bottom"
632
633
local extrawingmod1 = Instance.new("Model",char)
634
local extrawingmod2 = Instance.new("Model",char)
635
636
function RecolorTextAndRename(name,col1,col2)
637
techc.ImageColor3 = col2
638
techc2.ImageColor3 = col2
639
circl.ImageColor3 = col2
640
circl2.ImageColor3 = col1
641
imgl2.ImageColor3 = col1
642
imgl2b.ImageColor3 = col2
643
ned.Text = name
644
ned.TextColor3 = col1
645
ned.TextStrokeColor3 = col2
646
sphere2(1.3,"Add",tors.CFrame*CFrame.new(0,0,0),vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR,MAINRUINCOLOR.Color)
647
for i = 0, 49 do
648
PixelBlock(1,math.random(3,10),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
649
end
650
CFuncs.Sound.Create("rbxassetid://410543238",root,10,1)
651
CFuncs["Sound"].Create("rbxassetid://468991944", root, 7.5, 1)
652
CFuncs["Sound"].Create("rbxassetid://419447292", root, 2.5,1)
653
end
654
655
function CreateMesh(parent,meshtype,x1,y1,z1)
656
local mesh = Instance.new("SpecialMesh",parent)
657
mesh.MeshType = meshtype
658
mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
659
return mesh
660
end
661
662
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
663
local mesh = Instance.new("SpecialMesh",parent)
664
mesh.MeshType = "FileMesh"
665
mesh.MeshId = meshid
666
mesh.Scale = Vector3.new(x1,y1,z1)
667
return mesh
668
end
669
670
671
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
672
local mesh = Instance.new("SpecialMesh",parent)
673
mesh.MeshType = "FileMesh"
674
mesh.MeshId = meshid
675
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
676
mesh.Scale = Vector3.new(x1,y1,z1)
677
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
678
return mesh
679
end
680
681
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
682
local weld = Instance.new("Weld")
683
weld.Parent = parent
684
weld.Part0 = part0
685
weld.Part1 = part1
686
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
687
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
688
return weld
689
end
690
691
692
--------------
693
--------------
694
695
--Found out a few days ago that Salvo_Starly made these LOL
696
--Credit him please
697
Player=game:GetService('Players').TameDoNotClick
698
	Character=Player.Character
699
	gunty=Instance.new('Model',Character)
700
	gunty2=Instance.new('Model',Character)
701
	m=Instance.new('Model',Character)
702
703
	local function weldBetween(a, b)
704
	    local weldd = Instance.new("ManualWeld")
705
	    weldd.Part0 = a
706
	    weldd.Part1 = b
707
	    weldd.C0 = CFrame.new()
708
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
709
	    weldd.Parent = a
710
	    return weldd
711
	end
712
	
713
	it=Instance.new
714
	
715
	function nooutline(part)
716
		part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
717
	end
718
	
719
	function mesh(Mesh,part,meshtype,meshid,offset,scale)
720
		local mesh=it(Mesh)
721
		mesh.Parent=part
722
		if Mesh=="SpecialMesh" then
723
			mesh.MeshType=meshtype
724
			mesh.MeshId=meshid
725
		end
726
		mesh.Offset=offset
727
		mesh.Scale=scale
728
		return mesh
729
	end
730
	
731
	function weld(parent,part0,part1,c0,c1)
732
		local weld=it("Weld")
733
		weld.Parent=parent
734
		weld.Part0=part0
735
		weld.Part1=part1
736
		weld.C0=c0
737
		weld.C1=c1
738
		return weld
739
	end
740
	-----Bootz
741
-----------Compiled/Converted by youssefaxo/Josen#152o
742
743
Player=game:GetService('Players').TameDoNotClick
744
	Character=Player.Character
745
	Mouse=Player:GetMouse()
746
	glovey=Instance.new('Model',Character)
747
	m=Instance.new('Model',Character)
748
749
	local function weldBetween(a, b)
750
	    local weldd = Instance.new("ManualWeld")
751
	    weldd.Part0 = a
752
	    weldd.Part1 = b
753
	    weldd.C0 = CFrame.new()
754
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
755
	    weldd.Parent = a
756
	    return weldd
757
	end
758
	
759
	it=Instance.new
760
	
761
	function nooutline(part)
762
		part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
763
	end
764
	
765
	function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
766
		local fp=it("Part")
767
		fp.formFactor=formfactor
768
		fp.Parent=parent
769
		fp.Reflectance=reflectance
770
		fp.Transparency=transparency
771
		fp.CanCollide=false
772
		fp.Locked=true
773
		fp.BrickColor=BrickColor.new(tostring(brickcolor))
774
		fp.Name=name
775
		fp.Size=size
776
		fp.Position=Character.Torso.Position
777
		nooutline(fp)
778
		fp.Material=material
779
		fp:BreakJoints()
780
		return fp
781
	end
782
	
783
	function mesh(Mesh,part,meshtype,meshid,offset,scale)
784
		local mesh=it(Mesh)
785
		mesh.Parent=part
786
		if Mesh=="SpecialMesh" then
787
			mesh.MeshType=meshtype
788
			mesh.MeshId=meshid
789
		end
790
		mesh.Offset=offset
791
		mesh.Scale=scale
792
		return mesh
793
	end
794
	
795
	function weld(parent,part0,part1,c0,c1)
796
		local weld=it("Weld")
797
		weld.Parent=parent
798
		weld.Part0=part0
799
		weld.Part1=part1
800
		weld.C0=c0
801
		weld.C1=c1
802
		return weld
803
	end
804
805
806
807
function RemoveOutlines(part)
808
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
809
end
810
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
811
  local Part = Create("Part")({
812
    Parent = Parent,
813
    Reflectance = Reflectance,
814
    Transparency = Transparency,
815
    CanCollide = false,
816
    Locked = true,
817
    BrickColor = BrickColor.new(tostring(BColor)),
818
    Name = Name,
819
    Size = Size,
820
    Material = Material
821
  })
822
  Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
823
  RemoveOutlines(Part)
824
  return Part
825
end
826
function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
827
  local Msh = Create(Mesh)({
828
    Parent = Part,
829
    Offset = OffSet,
830
    Scale = Scale
831
  })
832
  if Mesh == "SpecialMesh" then
833
    Msh.MeshType = MeshType
834
    Msh.MeshId = MeshId
835
  end
836
  return Msh
837
end
838
function CreateWeld(Parent, Part0, Part1, C0, C1)
839
  local Weld = Create("Weld")({
840
    Parent = Parent,
841
    Part0 = Part0,
842
    Part1 = Part1,
843
    C0 = C0,
844
    C1 = C1
845
  })
846
  return Weld
847
end
848
849
Character=Player.Character 
850
PlayerGui=Player.PlayerGui 
851
Backpack=Player.Backpack 
852
Torso=Character.Torso 
853
Head=Character.Head 
854
Humanoid=Character.Humanoid
855
m=Instance.new('Model',Character)
856
LeftArm=Character["Left Arm"] 
857
LeftLeg=Character["Left Leg"] 
858
RightArm=Character["Right Arm"] 
859
RightLeg=Character["Right Leg"] 
860
LS=Torso["Left Shoulder"] 
861
LH=Torso["Left Hip"] 
862
RS=Torso["Right Shoulder"] 
863
RH=Torso["Right Hip"] 
864
Face = Head.face
865
Neck=Torso.Neck
866
it=Instance.new
867
attacktype=1
868
vt=Vector3.new
869
cf=CFrame.new
870
euler=CFrame.fromEulerAnglesXYZ
871
angles=CFrame.Angles
872
cloaked=false
873
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
874
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
875
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
876
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
877
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
878
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
879
RootPart=Character.HumanoidRootPart
880
RootJoint=RootPart.RootJoint
881
RootCF=euler(-1.57,0,3.14)
882
attack = false 
883
attackdebounce = false 
884
deb=false
885
equipped=true
886
hand=false
887
MMouse=nil
888
combo=0
889
mana=0
890
trispeed=.2
891
attackmode='none'
892
local idle=0
893
local Anim="Idle"
894
local Effects={}
895
local gun=false
896
local shoot=false
897
local sine = 0
898
local change = 1
899
900
901
function warnedpeople(text,represfont,color,color2)
902
CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
903
CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
904
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
905
coroutine.resume(coroutine.create(function()
906
if v.PlayerGui:FindFirstChild("Spinny")~= nil then
907
v.PlayerGui:FindFirstChild("Spinny"):destroy()
908
end
909
local scrg = Instance.new("ScreenGui",v.PlayerGui)
910
scrg.Name = "Spinny"
911
local frm = Instance.new("Frame",scrg)
912
frm.BackgroundTransparency = 0.25
913
frm.BackgroundColor3 = color
914
frm.BorderSizePixel = 0
915
frm.Rotation = 45
916
frm.Size = UDim2.new(3,0,0,100)
917
frm.Position = UDim2.new(-4,0,0,0)
918
local frm2 = frm:Clone()
919
frm2.Parent = scrg
920
frm2.BackgroundColor3 = color2
921
frm2.Position = UDim2.new(-4.05,0,0,0)
922
local imlb = Instance.new("ImageLabel",scrg)
923
imlb.BackgroundTransparency = 1
924
imlb.BackgroundColor3 = Color3.new(0,0,0)
925
imlb.Image = "rbxassetid://2344851144"
926
imlb.Size = UDim2.new(0,750,0,750)
927
imlb.ImageColor3 = color2
928
imlb.ImageTransparency = 0.25
929
imlb.Position = UDim2.new(-2.5,0,-2.5,0)
930
local imlb2 = imlb:Clone()
931
imlb2.Image = "rbxassetid://2325939897"
932
imlb2.Size = UDim2.new(1,0,1,0)
933
imlb2.ImageColor3 = color
934
imlb2.ImageTransparency = 0
935
imlb2.Position = UDim2.new(0,0,0,0)
936
local imlb3 = imlb:Clone()
937
imlb3.Image = "rbxassetid://2344830904"
938
imlb3.Size = UDim2.new(1,0,1,0)
939
imlb3.ImageColor3 = color2
940
imlb3.ImageTransparency = 0
941
imlb3.Position = UDim2.new(0,0,0,0)
942
local imlb4 = imlb:Clone()
943
imlb4.Image = "rbxassetid://2344870656"
944
imlb4.Size = UDim2.new(1,0,1,0)
945
imlb4.ImageColor3 = Color3.new(1,1,1)
946
imlb4.ImageTransparency = 0
947
imlb4.Position = UDim2.new(0,0,0,0)
948
imlb2.Parent = imlb
949
imlb3.Parent = imlb
950
imlb4.Parent = imlb
951
local txtlb2 = Instance.new("TextLabel",imlb)
952
txtlb2.Text = text
953
txtlb2.Font = represfont
954
txtlb2.TextColor3 = color
955
txtlb2.TextStrokeTransparency = 0
956
txtlb2.BackgroundTransparency = 1
957
txtlb2.TextStrokeColor3 = color2
958
txtlb2.TextScaled = true
959
txtlb2.Size = UDim2.new(1,0,1,0)
960
txtlb2.Position = UDim2.new(0,0,0,0)
961
local fvalen = 0.55
962
local fval = -0.49
963
coroutine.resume(coroutine.create(function()
964
while true do
965
swait()
966
if chaosmode == true then
967
txtlb2.Rotation = math.random(-1,1)
968
imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
969
txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
970
imlb.ImageColor3 = BrickColor.random().Color
971
txtlb2.TextStrokeColor3 = BrickColor.random().Color
972
end
973
end
974
end))
975
coroutine.resume(coroutine.create(function()
976
while true do
977
swait()
978
if scrg.Parent ~= nil then
979
	fvalen = fvalen - 0.0001
980
elseif scrg.Parent == nil then
981
break
982
end
983
end
984
end))
985
local flol = -5
986
local flil = 1.6
987
coroutine.resume(coroutine.create(function()
988
	for i = 0, 49 do
989
		swait()
990
		flol = flol + 0.125
991
		flil = flil - 0.1
992
		frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
993
		frm.Rotation = frm.Rotation - 0.25
994
		frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
995
		frm2.Rotation = frm.Rotation + 0.325
996
		imlb3.Rotation = imlb3.Rotation - 10
997
		imlb2.Rotation = imlb.Rotation + 7.5
998
		imlb.Rotation = imlb.Rotation + 5
999
		txtlb2.Rotation = txtlb2.Rotation - 5.125
1000
		imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
1001
	end
1002
	for i = 0, 99 do
1003
		swait()
1004
		fval = fval + 0.05
1005
		flol = flol + 0.005
1006
		frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
1007
		frm.Rotation = frm.Rotation - 0.075
1008
		frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
1009
		frm2.Rotation = frm2.Rotation + 0.125
1010
		imlb3.Rotation = imlb3.Rotation - 2
1011
		imlb2.Rotation = imlb.Rotation + 1.5
1012
		imlb.Rotation = imlb.Rotation + 1
1013
		txtlb2.Rotation = txtlb2.Rotation - 1.125
1014
		imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
1015
	end
1016
local valinc = 0
1017
local vinc2 = 1
1018
for i = 0, 99 do
1019
swait()
1020
vinc2 = vinc2 + 0.25
1021
valinc = valinc + 0.0001
1022
flol = flol + valinc
1023
flil = flil + valinc
1024
txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
1025
imlb3.Rotation = imlb3.Rotation - 2*vinc2
1026
imlb.Rotation = imlb.Rotation + 1*vinc2
1027
imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
1028
frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
1029
frm.Rotation = frm.Rotation + 0.1*vinc2
1030
frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
1031
frm2.Rotation = frm2.Rotation + 0.225*vinc2
1032
frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
1033
frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
1034
imlb.ImageTransparency = imlb.ImageTransparency + 0.005
1035
imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
1036
imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
1037
imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
1038
txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
1039
txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
1040
end
1041
scrg:Destroy()
1042
end))
1043
end))
1044
end
1045
end
1046
1047
1048
1049
--save shoulders 
1050
RSH, LSH=nil, nil 
1051
--welds 
1052
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
1053
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
1054
LH=Torso["Left Hip"]
1055
RH=Torso["Right Hip"]
1056
TorsoColor=Torso.BrickColor
1057
function NoOutline(Part)
1058
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1059
end
1060
ch=Character
1061
RSH=ch.Torso["Right Shoulder"] 
1062
LSH=ch.Torso["Left Shoulder"] 
1063
-- 
1064
RSH.Parent=nil 
1065
LSH.Parent=nil 
1066
-- 
1067
RW.Name="Right Shoulder"
1068
RW.Part0=ch.Torso 
1069
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1070
RW.C1=cf(0, 0.5, 0) 
1071
RW.Part1=ch["Right Arm"] 
1072
RW.Parent=ch.Torso 
1073
-- 
1074
LW.Name="Left Shoulder"
1075
LW.Part0=ch.Torso 
1076
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1077
LW.C1=cf(0, 0.5, 0) 
1078
LW.Part1=ch["Left Arm"] 
1079
LW.Parent=ch.Torso 
1080
1081
local Stats=Instance.new("BoolValue")
1082
Stats.Name="Stats"
1083
Stats.Parent=Character
1084
local Atk=Instance.new("NumberValue")
1085
Atk.Name="Damage"
1086
Atk.Parent=Stats
1087
Atk.Value=1
1088
local Def=Instance.new("NumberValue")
1089
Def.Name="Defense"
1090
Def.Parent=Stats
1091
Def.Value=1
1092
local Speed=Instance.new("NumberValue")
1093
Speed.Name="Speed"
1094
Speed.Parent=Stats
1095
Speed.Value=1
1096
local Mvmt=Instance.new("NumberValue")
1097
Mvmt.Name="Movement"
1098
Mvmt.Parent=Stats
1099
Mvmt.Value=1
1100
1101
local donum=0
1102
 
1103
1104
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
1105
local fp=it("Part")
1106
fp.formFactor=formfactor 
1107
fp.Parent=parent
1108
fp.Reflectance=reflectance
1109
fp.Transparency=transparency
1110
fp.CanCollide=false 
1111
fp.Locked=true
1112
fp.BrickColor=brickcolor
1113
fp.Name=name
1114
fp.Size=size
1115
fp.Position=Torso.Position 
1116
NoOutline(fp)
1117
fp.Material="SmoothPlastic"
1118
fp:BreakJoints()
1119
return fp 
1120
end 
1121
 
1122
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1123
local mesh=it(Mesh) 
1124
mesh.Parent=part
1125
if Mesh=="SpecialMesh" then
1126
mesh.MeshType=meshtype
1127
if meshid~="nil" then
1128
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
1129
end
1130
end
1131
mesh.Offset=offset
1132
mesh.Scale=scale
1133
return mesh
1134
end
1135
 
1136
function weld(parent,part0,part1,c0)
1137
local weld=it("Weld") 
1138
weld.Parent=parent
1139
weld.Part0=part0 
1140
weld.Part1=part1 
1141
weld.C0=c0
1142
return weld
1143
end
1144
 
1145
local Color1=Torso.BrickColor
1146
1147
local bodvel=Instance.new("BodyVelocity")
1148
local bg=Instance.new("BodyGyro")
1149
1150
--------- SazEreno's Artificial HB --------------
1151
ArtificialHB = Instance.new("BindableEvent", script)
1152
ArtificialHB.Name = "ArtificialHB"
1153
1154
script:WaitForChild("ArtificialHB")
1155
Frame_Speed = 1 / 60
1156
frame = Frame_Speed
1157
tf = 0
1158
allowframeloss = false
1159
tossremainder = false
1160
lastframe = tick()
1161
script.ArtificialHB:Fire()
1162
1163
game:GetService("RunService").Heartbeat:connect(function(s, p)
1164
	tf = tf + s
1165
	if tf >= frame then
1166
		if allowframeloss then
1167
			script.ArtificialHB:Fire()
1168
			lastframe = tick()
1169
		else
1170
			for i = 1, math.floor(tf / frame) do
1171
				script.ArtificialHB:Fire()
1172
			end
1173
		lastframe = tick()
1174
		end
1175
		if tossremainder then
1176
			tf = 0
1177
		else
1178
			tf = tf - frame * math.floor(tf / frame)
1179
		end
1180
	end
1181
end)
1182
1183
------------------
1184
function swait(num)
1185
if num == 0 or num == nil then
1186
		ArtificialHB.Event:wait()
1187
	else
1188
		for i = 1, num do
1189
			ArtificialHB.Event:wait()
1190
		end
1191
	end
1192
end
1193
-------- RAINBOW LEAVE IT TO ME
1194
local r = 255
1195
local g = 0
1196
local b = 0
1197
coroutine.resume(coroutine.create(function()
1198
while wait() do
1199
	for i = 0, 254/5 do
1200
		swait()
1201
		g = g + 5
1202
	end
1203
	for i = 0, 254/5 do
1204
		swait()
1205
		r = r - 5
1206
	end
1207
	for i = 0, 254/5 do
1208
		swait()
1209
		b = b + 5
1210
	end
1211
	for i = 0, 254/5 do
1212
		swait()
1213
		g = g - 5
1214
	end
1215
	for i = 0, 254/5 do
1216
		swait()
1217
		r = r + 5
1218
	end
1219
	for i = 0, 254/5 do
1220
		swait()
1221
		b = b - 5
1222
	end
1223
end
1224
end))
1225
 
1226
 
1227
so = function(id,par,vol,pit) 
1228
coroutine.resume(coroutine.create(function()
1229
local sou = Instance.new("Sound",par or workspace)
1230
sou.Volume=vol
1231
sou.Pitch=pit or 1
1232
sou.SoundId=id
1233
swait() 
1234
sou:play() 
1235
game:GetService("Debris"):AddItem(sou,6)
1236
end))
1237
end
1238
 
1239
function clerp(a,b,t) 
1240
local qa = {QuaternionFromCFrame(a)}
1241
local qb = {QuaternionFromCFrame(b)} 
1242
local ax, ay, az = a.x, a.y, a.z 
1243
local bx, by, bz = b.x, b.y, b.z
1244
local _t = 1-t
1245
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
1246
end 
1247
 
1248
function QuaternionFromCFrame(cf) 
1249
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
1250
local trace = m00 + m11 + m22 
1251
if trace > 0 then 
1252
local s = math.sqrt(1 + trace) 
1253
local recip = 0.5/s 
1254
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
1255
else 
1256
local i = 0 
1257
if m11 > m00 then
1258
i = 1
1259
end
1260
if m22 > (i == 0 and m00 or m11) then 
1261
i = 2 
1262
end 
1263
if i == 0 then 
1264
local s = math.sqrt(m00-m11-m22+1) 
1265
local recip = 0.5/s 
1266
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
1267
elseif i == 1 then 
1268
local s = math.sqrt(m11-m22-m00+1) 
1269
local recip = 0.5/s 
1270
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
1271
elseif i == 2 then 
1272
local s = math.sqrt(m22-m00-m11+1) 
1273
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
1274
end 
1275
end 
1276
end
1277
 
1278
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
1279
local xs, ys, zs = x + x, y + y, z + z 
1280
local wx, wy, wz = w*xs, w*ys, w*zs 
1281
local xx = x*xs 
1282
local xy = x*ys 
1283
local xz = x*zs 
1284
local yy = y*ys 
1285
local yz = y*zs 
1286
local zz = z*zs 
1287
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
1288
end
1289
 
1290
function QuaternionSlerp(a, b, t) 
1291
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
1292
local startInterp, finishInterp; 
1293
if cosTheta >= 0.0001 then 
1294
if (1 - cosTheta) > 0.0001 then 
1295
local theta = math.acos(cosTheta) 
1296
local invSinTheta = 1/math.sin(theta) 
1297
startInterp = math.sin((1-t)*theta)*invSinTheta 
1298
finishInterp = math.sin(t*theta)*invSinTheta  
1299
else 
1300
startInterp = 1-t 
1301
finishInterp = t 
1302
end 
1303
else 
1304
if (1+cosTheta) > 0.0001 then 
1305
local theta = math.acos(-cosTheta) 
1306
local invSinTheta = 1/math.sin(theta) 
1307
startInterp = math.sin((t-1)*theta)*invSinTheta 
1308
finishInterp = math.sin(t*theta)*invSinTheta 
1309
else 
1310
startInterp = t-1 
1311
finishInterp = t 
1312
end 
1313
end 
1314
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
1315
end
1316
1317
local function CFrameFromTopBack(at, top, back)
1318
local right = top:Cross(back)
1319
return CFrame.new(at.x, at.y, at.z,
1320
right.x, top.x, back.x,
1321
right.y, top.y, back.y,
1322
right.z, top.z, back.z)
1323
end
1324
1325
function Triangle(a, b, c)
1326
local edg1 = (c-a):Dot((b-a).unit)
1327
local edg2 = (a-b):Dot((c-b).unit)
1328
local edg3 = (b-c):Dot((a-c).unit)
1329
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1330
a, b, c = a, b, c
1331
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1332
a, b, c = b, c, a
1333
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1334
a, b, c = c, a, b
1335
else
1336
assert(false, "unreachable")
1337
end
1338
 
1339
local len1 = (c-a):Dot((b-a).unit)
1340
local len2 = (b-a).magnitude - len1
1341
local width = (a + (b-a).unit*len1 - c).magnitude
1342
 
1343
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1344
 
1345
local list = {}
1346
 
1347
if len1 > 0.01 then
1348
local w1 = Instance.new('WedgePart', m)
1349
game:GetService("Debris"):AddItem(w1,5)
1350
w1.Material = "SmoothPlastic"
1351
w1.FormFactor = 'Custom'
1352
w1.BrickColor = BrickColor.new("Really red")
1353
w1.Transparency = 0
1354
w1.Reflectance = 0
1355
w1.Material = "SmoothPlastic"
1356
w1.CanCollide = false
1357
local l1 = Instance.new("PointLight",w1)
1358
l1.Color = Color3.new(170,0,0)
1359
NoOutline(w1)
1360
local sz = Vector3.new(0.2, width, len1)
1361
w1.Size = sz
1362
local sp = Instance.new("SpecialMesh",w1)
1363
sp.MeshType = "Wedge"
1364
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1365
w1:BreakJoints()
1366
w1.Anchored = true
1367
w1.Parent = workspace
1368
w1.Transparency = 0.7
1369
table.insert(Effects,{w1,"Disappear",.01})
1370
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1371
table.insert(list,w1)
1372
end
1373
 
1374
if len2 > 0.01 then
1375
local w2 = Instance.new('WedgePart', m)
1376
game:GetService("Debris"):AddItem(w2,5)
1377
w2.Material = "SmoothPlastic"
1378
w2.FormFactor = 'Custom'
1379
w2.BrickColor = BrickColor.new("Really red")
1380
w2.Transparency = 0
1381
w2.Reflectance = 0
1382
w2.Material = "SmoothPlastic"
1383
w2.CanCollide = false
1384
local l2 = Instance.new("PointLight",w2)
1385
l2.Color = Color3.new(170,0,0)
1386
NoOutline(w2)
1387
local sz = Vector3.new(0.2, width, len2)
1388
w2.Size = sz
1389
local sp = Instance.new("SpecialMesh",w2)
1390
sp.MeshType = "Wedge"
1391
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1392
w2:BreakJoints()
1393
w2.Anchored = true
1394
w2.Parent = workspace
1395
w2.Transparency = 0.7
1396
table.insert(Effects,{w2,"Disappear",.01})
1397
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1398
table.insert(list,w2)
1399
end
1400
return unpack(list)
1401
end
1402
 
1403
1404
1405
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1406
  if hit.Parent == nil then
1407
    return
1408
  end
1409
  local h = hit.Parent:FindFirstChildOfClass("Humanoid")
1410
  for _, v in pairs(hit.Parent:children()) do
1411
    if v:IsA("Humanoid") then
1412
      h = v
1413
    end
1414
  end
1415
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
1416
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1417
      return
1418
    end
1419
    local c = Create("ObjectValue")({
1420
      Name = "creator",
1421
      Value = game:GetService("Players").TameDoNotClick,
1422
      Parent = h
1423
    })
1424
    game:GetService("Debris"):AddItem(c, 0.5)
1425
    if HitSound ~= nil and HitPitch ~= nil then
1426
      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
1427
    end
1428
    local Damage = math.random(minim, maxim)
1429
    local blocked = false
1430
    local block = hit.Parent:findFirstChild("Block")
1431
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1432
      blocked = true
1433
      block.Value = block.Value - 1
1434
      print(block.Value)
1435
    end
1436
    if blocked == false then
1437
      HitHealth = h.Health
1438
      h.MaxHealth = 100
1439
      h.Health = h.Health - Damage
1440
      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
1441
        print("gained kill")
1442
        dmg(h.Parent)
1443
      end
1444
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1445
    else
1446
      h.Health = h.Health - Damage / 2
1447
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1448
    end
1449
    if Type == "Knockdown" then
1450
      local hum = hit.Parent.Humanoid
1451
      hum.PlatformStand = true
1452
      coroutine.resume(coroutine.create(function(HHumanoid)
1453
        swait(1)
1454
        HHumanoid.PlatformStand = false
1455
      end), hum)
1456
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1457
      local bodvol = Create("BodyVelocity")({
1458
        velocity = angle * knockback,
1459
        P = 5000,
1460
        maxForce = Vector3.new(8000, 8000, 8000),
1461
        Parent = hit
1462
      })
1463
      local rl = Create("BodyAngularVelocity")({
1464
        P = 3000,
1465
        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1466
        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1467
        Parent = hit
1468
      })
1469
      game:GetService("Debris"):AddItem(bodvol, 0.5)
1470
      game:GetService("Debris"):AddItem(rl, 0.5)
1471
    elseif Type == "Normal" then
1472
      local vp = Create("BodyVelocity")({
1473
        P = 500,
1474
        maxForce = Vector3.new(math.huge, 0, math.huge),
1475
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
1476
      })
1477
      if knockback > 0 then
1478
        vp.Parent = hit.Parent.Head
1479
      end
1480
      game:GetService("Debris"):AddItem(vp, 0.5)
1481
    elseif Type == "Up" then
1482
      local bodyVelocity = Create("BodyVelocity")({
1483
        velocity = Vector3.new(0, 20, 0),
1484
        P = 5000,
1485
        maxForce = Vector3.new(8000, 8000, 8000),
1486
        Parent = hit
1487
      })
1488
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1489
      local bodyVelocity = Create("BodyVelocity")({
1490
        velocity = Vector3.new(0, 20, 0),
1491
        P = 5000,
1492
        maxForce = Vector3.new(8000, 8000, 8000),
1493
        Parent = hit
1494
      })
1495
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1496
    elseif Type == "Leech" then
1497
      local hum = hit.Parent.Humanoid
1498
      if hum ~= nil then
1499
        for i = 0, 2 do
1500
          Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
1501
        end
1502
        Humanoid.Health = Humanoid.Health + 10
1503
      end
1504
    elseif Type == "UpKnock" then
1505
      local hum = hit.Parent.Humanoid
1506
      hum.PlatformStand = true
1507
      if hum ~= nil then
1508
        hitr = true
1509
      end
1510
      coroutine.resume(coroutine.create(function(HHumanoid)
1511
        swait(5)
1512
        HHumanoid.PlatformStand = false
1513
        hitr = false
1514
      end), hum)
1515
      local bodyVelocity = Create("BodyVelocity")({
1516
        velocity = Vector3.new(0, 20, 0),
1517
        P = 5000,
1518
        maxForce = Vector3.new(8000, 8000, 8000),
1519
        Parent = hit
1520
      })
1521
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1522
      local bodyVelocity = Create("BodyVelocity")({
1523
        velocity = Vector3.new(0, 20, 0),
1524
        P = 5000,
1525
        maxForce = Vector3.new(8000, 8000, 8000),
1526
        Parent = hit
1527
      })
1528
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1529
    elseif Type == "Snare" then
1530
      local bp = Create("BodyPosition")({
1531
        P = 2000,
1532
        D = 100,
1533
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1534
        position = hit.Parent.Torso.Position,
1535
        Parent = hit.Parent.Torso
1536
      })
1537
      game:GetService("Debris"):AddItem(bp, 1)
1538
    elseif Type == "Slashnare" then
1539
      Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
1540
      for i = 1, math.random(4, 5) do
1541
        Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
1542
      end
1543
      local bp = Create("BodyPosition")({
1544
        P = 2000,
1545
        D = 100,
1546
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1547
        position = hit.Parent.Torso.Position,
1548
        Parent = hit.Parent.Torso
1549
      })
1550
      game:GetService("Debris"):AddItem(bp, 1)
1551
    elseif Type == "Spike" then
1552
      CreateBigIceSword(hit.Parent.Torso.CFrame)
1553
      local bp = Create("BodyPosition")({
1554
        P = 2000,
1555
        D = 100,
1556
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1557
        position = hit.Parent.Torso.Position,
1558
        Parent = hit.Parent.Torso
1559
      })
1560
      game:GetService("Debris"):AddItem(bp, 1)
1561
    elseif Type == "Freeze" then
1562
      local BodPos = Create("BodyPosition")({
1563
        P = 50000,
1564
        D = 1000,
1565
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1566
        position = hit.Parent.Torso.Position,
1567
        Parent = hit.Parent.Torso
1568
      })
1569
      local BodGy = Create("BodyGyro")({
1570
        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
1571
        P = 20000,
1572
        Parent = hit.Parent.Torso,
1573
        cframe = hit.Parent.Torso.CFrame
1574
      })
1575
      hit.Parent.Torso.Anchored = true
1576
      coroutine.resume(coroutine.create(function(Part)
1577
        swait(1.5)
1578
        Part.Anchored = false
1579
      end), hit.Parent.Torso)
1580
      game:GetService("Debris"):AddItem(BodPos, 3)
1581
      game:GetService("Debris"):AddItem(BodGy, 3)
1582
    end
1583
    local debounce = Create("BoolValue")({
1584
      Name = "DebounceHit",
1585
      Parent = hit.Parent,
1586
      Value = true
1587
    })
1588
    game:GetService("Debris"):AddItem(debounce, Delay)
1589
    c = Instance.new("ObjectValue")
1590
    c.Name = "creator"
1591
    c.Value = Player
1592
    c.Parent = h
1593
    game:GetService("Debris"):AddItem(c, 0.5)
1594
  end
1595
end
1596
function ShowDamage(Pos, Text, Time, Color)
1597
  local Rate = 0.03333333333333333
1598
  local Pos = Pos or Vector3.new(0, 0, 0)
1599
  local Text = Text or ""
1600
  local Time = Time or 2
1601
  local Color = Color or Color3.new(1, 0, 1)
1602
  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1603
  EffectPart.Anchored = true
1604
  local BillboardGui = Create("BillboardGui")({
1605
    Size = UDim2.new(3, 0, 3, 0),
1606
    Adornee = EffectPart,
1607
    Parent = EffectPart
1608
  })
1609
  local TextLabel = Create("TextLabel")({
1610
    BackgroundTransparency = 1,
1611
    Size = UDim2.new(1, 0, 1, 0),
1612
    Text = Text,
1613
    TextColor3 = Color,
1614
    TextScaled = true,
1615
    Font = Enum.Font.ArialBold,
1616
    Parent = BillboardGui
1617
  })
1618
  game.Debris:AddItem(EffectPart, Time + 0.1)
1619
  EffectPart.Parent = game:GetService("Workspace")
1620
  delay(0, function()
1621
    local Frames = Time / Rate
1622
    for Frame = 1, Frames do
1623
      wait(Rate)
1624
      local Percent = Frame / Frames
1625
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1626
      TextLabel.TextTransparency = Percent
1627
    end
1628
    if EffectPart and EffectPart.Parent then
1629
      EffectPart:Destroy()
1630
    end
1631
  end)
1632
end
1633
function ShowDamage(Pos, Text, Time, Color)
1634
  local Rate = 0.03333333333333333
1635
  local Pos = Pos or Vector3.new(0, 0, 0)
1636
  local Text = Text or ""
1637
  local Time = Time or 2
1638
  local Color = Color or Color3.new(1, 0, 1)
1639
  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1640
  EffectPart.Anchored = true
1641
  local BillboardGui = Create("BillboardGui")({
1642
    Size = UDim2.new(3, 0, 3, 0),
1643
    Adornee = EffectPart,
1644
    Parent = EffectPart
1645
  })
1646
  local TextLabel = Create("TextLabel")({
1647
    BackgroundTransparency = 1,
1648
    Size = UDim2.new(1, 0, 1, 0),
1649
    Text = Text,
1650
    TextColor3 = Color,
1651
    TextScaled = true,
1652
    Font = Enum.Font.ArialBold,
1653
    Parent = BillboardGui
1654
  })
1655
  game.Debris:AddItem(EffectPart, Time + 0.1)
1656
  EffectPart.Parent = game:GetService("Workspace")
1657
  delay(0, function()
1658
    local Frames = Time / Rate
1659
    for Frame = 1, Frames do
1660
      wait(Rate)
1661
      local Percent = Frame / Frames
1662
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1663
      TextLabel.TextTransparency = Percent
1664
    end
1665
    if EffectPart and EffectPart.Parent then
1666
      EffectPart:Destroy()
1667
    end
1668
  end)
1669
end
1670
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
1671
  for _, c in pairs(workspace:children()) do
1672
    local hum = c:findFirstChildOfClass("Humanoid")
1673
    if hum ~= nil then
1674
      local head = c:findFirstChild("Head")
1675
      if head ~= nil then
1676
        local targ = head.Position - Part.Position
1677
        local mag = targ.magnitude
1678
        if magni >= mag and c.Name ~= Player.Name then
1679
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1680
        end
1681
      end
1682
    end
1683
  end
1684
end
1685
1686
1687
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
1688
  for _, c in pairs(workspace:children()) do
1689
    local hum = c:findFirstChild("Humanoid")
1690
    if hum ~= nil then
1691
      local head = c:findFirstChild("Torso")
1692
      if head ~= nil then
1693
        local targ = head.Position - Part.Position
1694
        local mag = targ.magnitude
1695
        if magni >= mag and c.Name ~= Player.Name then
1696
	MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
1697
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1698
        end
1699
      end
1700
    end
1701
  end
1702
end
1703
1704
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1705
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1706
end 
1707
1708
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
1709
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1710
prt.Anchored=true
1711
prt.CFrame=cframe
1712
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
1713
--http://www.roblox.com/asset/?id=4770560
1714
game:GetService("Debris"):AddItem(prt,2)
1715
CF=prt.CFrame
1716
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
1717
for i=0,1,0.2 do
1718
wait()
1719
Part.CFrame=CF*cf(0,0,-0.4)
1720
end
1721
for i=0,1,delay do
1722
wait()
1723
--Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
1724
Mesh.Scale=Mesh.Scale
1725
end
1726
for i=0,1,0.1 do
1727
wait()
1728
Part.Transparency=i
1729
end
1730
Part.Parent=nil
1731
end),prt,msh,CF)
1732
end
1733
 
1734
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1735
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1736
prt.Anchored=true
1737
prt.Material = "Neon"
1738
prt.CFrame=cframe
1739
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1740
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1741
game:GetService("Debris"):AddItem(prt,5)
1742
coroutine.resume(coroutine.create(function(Part,Mesh) 
1743
for i=0,1,delay do
1744
swait()
1745
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1746
Part.Transparency=i
1747
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1748
end
1749
Part.Parent=nil
1750
end),prt,msh)
1751
end
1752
1753
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1754
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1755
prt.Anchored=true
1756
prt.Material = "Neon"
1757
prt.CFrame=cframe
1758
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1759
game:GetService("Debris"):AddItem(prt,5)
1760
coroutine.resume(coroutine.create(function(Part,Mesh) 
1761
	local rtype = rottype
1762
for i=0,1,delay do
1763
swait()
1764
if rtype == 1 then
1765
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1766
elseif rtype == 2 then
1767
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1768
end
1769
Part.Transparency=i
1770
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1771
end
1772
Part.Parent=nil
1773
end),prt,msh)
1774
end
1775
1776
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1777
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1778
prt.Anchored=true
1779
prt.CFrame=cframe
1780
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1781
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1782
game:GetService("Debris"):AddItem(prt,5)
1783
coroutine.resume(coroutine.create(function(Part,Mesh) 
1784
for i=0,1,delay do
1785
wait()
1786
Part.Transparency=i
1787
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1788
end
1789
Part.Parent=nil
1790
end),prt,msh)
1791
end
1792
1793
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1794
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1795
prt.Anchored=true
1796
prt.Material = "Neon"
1797
prt.CFrame=cframe
1798
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1799
game:GetService("Debris"):AddItem(prt,5)
1800
coroutine.resume(coroutine.create(function(Part,Mesh) 
1801
	local rtype = rottype
1802
for i=0,1,delay do
1803
swait()
1804
if rtype == 1 then
1805
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1806
elseif rtype == 2 then
1807
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1808
end
1809
Part.Transparency=i
1810
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1811
end
1812
Part.Parent=nil
1813
end),prt,msh)
1814
end
1815
1816
function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
1817
local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
1818
prt.Anchored=true
1819
prt.Material = "Neon"
1820
prt.CFrame=cframe
1821
local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
1822
local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
1823
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
1824
game:GetService("Debris"):AddItem(prt,5)
1825
coroutine.resume(coroutine.create(function(Part,Mesh) 
1826
	local rtype = rottype
1827
for i=0,1,delay do
1828
swait()
1829
if rtype == 1 then
1830
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1831
elseif rtype == 2 then
1832
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1833
end
1834
dec.Transparency=i
1835
dec2.Transparency=i
1836
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1837
end
1838
Part.Parent=nil
1839
end),prt,msh)
1840
end
1841
1842
function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
1843
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1844
prt.Anchored=true
1845
prt.Material = "Neon"
1846
prt.CFrame=cframe
1847
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
1848
game:GetService("Debris"):AddItem(prt,5)
1849
coroutine.resume(coroutine.create(function(Part,Mesh) 
1850
	local rtype = rottype
1851
for i=0,1,delay do
1852
swait()
1853
if rtype == 1 then
1854
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1855
elseif rtype == 2 then
1856
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1857
end
1858
prt.Transparency=i
1859
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1860
end
1861
Part.Parent=nil
1862
end),prt,msh)
1863
end
1864
1865
function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
1866
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1867
prt.Anchored=true
1868
prt.Material = "Neon"
1869
prt.CFrame=cframe
1870
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
1871
game:GetService("Debris"):AddItem(prt,5)
1872
coroutine.resume(coroutine.create(function(Part,Mesh) 
1873
	local rtype = rottype
1874
for i=0,1,delay do
1875
swait()
1876
if rtype == 1 then
1877
prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
1878
elseif rtype == 2 then
1879
prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
1880
end
1881
prt.Transparency=i
1882
Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
1883
end
1884
Part.Parent=nil
1885
end),prt,msh)
1886
end
1887
1888
function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
1889
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1890
prt.Anchored=true
1891
prt.Material = "Neon"
1892
prt.CFrame=cframe
1893
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1894
game:GetService("Debris"):AddItem(prt,5)
1895
coroutine.resume(coroutine.create(function(Part,Mesh) 
1896
	local rtype = rottype
1897
for i=0,1,delay do
1898
swait()
1899
if rtype == 1 then
1900
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1901
elseif rtype == 2 then
1902
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1903
end
1904
prt.Transparency=i
1905
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1906
end
1907
Part.Parent=nil
1908
end),prt,msh)
1909
end
1910
1911
function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1912
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1913
prt.Anchored=true
1914
prt.Material = "Neon"
1915
prt.CFrame=cframe
1916
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1917
game:GetService("Debris"):AddItem(prt,5)
1918
coroutine.resume(coroutine.create(function(Part,Mesh) 
1919
	local rtype = rottype
1920
for i=0,1,delay do
1921
swait()
1922
if rtype == 1 then
1923
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1924
elseif rtype == 2 then
1925
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1926
end
1927
prt.Transparency=i
1928
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1929
end
1930
Part.Parent=nil
1931
end),prt,msh)
1932
end
1933
 
1934
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1935
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1936
prt.Anchored=false
1937
prt.CFrame=cframe
1938
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1939
local wld=weld(prt,prt,Parent,cframe)
1940
game:GetService("Debris"):AddItem(prt,5)
1941
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1942
for i=0,1,delay do
1943
wait()
1944
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
1945
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1946
Part.Transparency=i
1947
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1948
end
1949
Part.Parent=nil
1950
end),prt,msh,wld)
1951
end
1952
 
1953
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1954
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1955
prt.Anchored=false
1956
prt.CFrame=cframe
1957
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1958
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
1959
game:GetService("Debris"):AddItem(prt,5)
1960
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1961
for i=0,1,delay do
1962
wait()
1963
Weld.C0=euler(i*20,0,0)
1964
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1965
Part.Transparency=i
1966
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1967
end
1968
Part.Parent=nil
1969
end),prt,msh,wld)
1970
end
1971
 
1972
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1973
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1974
prt.Anchored=true
1975
prt.CFrame=cframe
1976
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1977
game:GetService("Debris"):AddItem(prt,2)
1978
coroutine.resume(coroutine.create(function(Part,Mesh) 
1979
for i=0,1,delay do
1980
wait()
1981
Part.CFrame=Part.CFrame
1982
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1983
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1984
prt2.Anchored=true
1985
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1986
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
1987
game:GetService("Debris"):AddItem(prt2,2)
1988
coroutine.resume(coroutine.create(function(Part,Mesh) 
1989
for i=0,1,0.1 do
1990
wait()
1991
Part.CFrame=Part.CFrame*cf(0,0.5,0)
1992
end
1993
Part.Parent=nil
1994
end),prt2,msh2)
1995
end
1996
for i=0,1,delay*2 do
1997
wait()
1998
Part.CFrame=Part.CFrame
1999
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
2000
end
2001
Part.Parent=nil
2002
end),prt,msh)
2003
end
2004
 
2005
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2006
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2007
prt.Anchored=true
2008
prt.CFrame=cframe
2009
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2010
game:GetService("Debris"):AddItem(prt,2)
2011
coroutine.resume(coroutine.create(function(Part,Mesh) 
2012
for i=0,1,delay do
2013
wait()
2014
Part.CFrame=Part.CFrame
2015
Part.Transparency=i
2016
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2017
end
2018
Part.Parent=nil
2019
end),prt,msh)
2020
end
2021
 
2022
function BreakEffect(brickcolor,cframe,x1,y1,z1)
2023
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2024
prt.Anchored=true
2025
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2026
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2027
game:GetService("Debris"):AddItem(prt,2)
2028
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
2029
CF=Part.CFrame
2030
Numbb=0
2031
randnumb=math.random()/10
2032
rand1=math.random()/10
2033
for i=0,1,rand1 do
2034
wait()
2035
CF=CF*cf(0,math.random()/2,0)
2036
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
2037
Part.CFrame=CF*euler(Numbb,0,0)
2038
Part.Transparency=i
2039
Numbb=Numbb+randnumb
2040
end
2041
Part.Parent=nil
2042
end),prt,CF,Numbb,randnumb)
2043
end
2044
 
2045
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2046
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2047
prt.Anchored=true
2048
prt.CFrame=cframe
2049
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
2050
game:GetService("Debris"):AddItem(prt,5)
2051
coroutine.resume(coroutine.create(function(Part,Mesh) 
2052
for i=0,1,delay do
2053
wait()
2054
Part.CFrame=Part.CFrame*euler(0,0.7,0)
2055
Part.Transparency=i
2056
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2057
end
2058
Part.Parent=nil
2059
end),prt,msh)
2060
end
2061
 
2062
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2063
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2064
prt.Anchored=true
2065
prt.CFrame=cframe
2066
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
2067
game:GetService("Debris"):AddItem(prt,2)
2068
coroutine.resume(coroutine.create(function(Part,Mesh) 
2069
for i=0,1,delay do
2070
wait()
2071
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
2072
Part.Transparency=i
2073
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2074
end
2075
Part.Parent=nil
2076
end),prt,msh)
2077
end
2078
 
2079
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
2080
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2081
prt.Anchored=true
2082
prt.CFrame=cframe*cf(x,y,z)
2083
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
2084
game:GetService("Debris"):AddItem(prt,5)
2085
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
2086
local num=math.random()
2087
local num2=math.random(-3,2)+math.random()
2088
local numm=0
2089
for i=0,1,delay*2 do
2090
swait()
2091
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
2092
Part.Transparency=i
2093
numm=numm+0.01
2094
end
2095
Part.Parent=nil
2096
Mesh.Parent=nil
2097
end),prt,msh,x,y,z)
2098
end
2099
2100
function dmgstart(dmg,what)
2101
	hitcon = what.Touched:connect(function(hit)
2102
		local hum = hit.Parent:FindFirstChild("Humanoid")
2103
		if hum and not hum:IsDescendantOf(Character) then
2104
			hum:TakeDamage(dmg)
2105
		end
2106
	end)
2107
end
2108
2109
function dmgstop()
2110
	hitcon:disconnect()
2111
end
2112
2113
function Cloak()
2114
Face.Parent=nil
2115
cloaked=true
2116
        for _,v in pairs(Torso.Parent:children()) do
2117
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2118
                coroutine.resume(coroutine.create(function() 
2119
                for i=0,1,0.2 do
2120
                wait()
2121
                v.Transparency=i
2122
                end
2123
                v.Transparency=1
2124
                end))
2125
                end
2126
                if v.className=="Hat" then
2127
                hatp=v.Handle
2128
                coroutine.resume(coroutine.create(function(derp) 
2129
                for i=0,1,0.2 do
2130
                wait()
2131
                derp.Transparency=i
2132
                end
2133
                derp.Transparency=1
2134
                end),hatp)
2135
                end
2136
        end
2137
        for _,v in pairs(m:children()) do
2138
                if v.className=="Part" then
2139
                coroutine.resume(coroutine.create(function() 
2140
                for i=0,1,0.2 do
2141
                wait()
2142
                v.Transparency=i
2143
                end
2144
                v.Transparency=1
2145
                end))
2146
                end
2147
        end
2148
end
2149
 
2150
function UnCloak()
2151
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) 
2152
Face.Parent=Head 
2153
cloaked=false
2154
        for _,v in pairs(Torso.Parent:children()) do
2155
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2156
                coroutine.resume(coroutine.create(function() 
2157
                for i=0,1,0.1 do
2158
                wait()
2159
                v.Transparency=v.Transparency-0.1
2160
                end
2161
                v.Transparency=0
2162
                end))
2163
                end
2164
                if v.className=="Hat" then
2165
                hatp=v.Handle
2166
                coroutine.resume(coroutine.create(function(derp) 
2167
                for i=0,1,0.1 do
2168
                wait()
2169
                derp.Transparency=derp.Transparency-0.1
2170
                end
2171
                derp.Transparency=0
2172
                end),hatp)
2173
                end
2174
        end
2175
        for _,v in pairs(m:children()) do
2176
                if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
2177
                coroutine.resume(coroutine.create(function() 
2178
                for i=0,1,0.1 do
2179
                wait()
2180
                v.Transparency=v.Transparency-0.1
2181
                end
2182
                v.Transparency=0
2183
                end))
2184
                v.Transparency=0
2185
                end
2186
        end
2187
end
2188
2189
local origcolor = BrickColor.new("Pastel light blue")
2190
---- This section of explosions.
2191
2192
----
2193
2194
2195
function ring(type,pos,scale,value)
2196
local type = type
2197
local rng = Instance.new("Part", char)
2198
        rng.Anchored = true
2199
        rng.BrickColor = origcolor
2200
        rng.CanCollide = false
2201
        rng.FormFactor = 3
2202
        rng.Name = "Ring"
2203
        rng.Size = Vector3.new(1, 1, 1)
2204
        rng.Transparency = 0
2205
        rng.TopSurface = 0
2206
        rng.BottomSurface = 0
2207
        rng.CFrame = pos
2208
        local rngm = Instance.new("SpecialMesh", rng)
2209
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2210
rngm.Scale = scale
2211
local scaler2 = 1
2212
if type == "Add" then
2213
scaler2 = 1*value
2214
elseif type == "Divide" then
2215
scaler2 = 1/value
2216
end
2217
coroutine.resume(coroutine.create(function()
2218
for i = 0,10,0.1 do
2219
swait()
2220
if type == "Add" then
2221
scaler2 = scaler2 - 0.01*value
2222
elseif type == "Divide" then
2223
scaler2 = scaler2 - 0.01/value
2224
end
2225
rng.Transparency = rng.Transparency + 0.01
2226
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2227
end
2228
rng:Destroy()
2229
end))
2230
end
2231
2232
2233
function wave(type,pos,scale,value)
2234
local type = type
2235
local rng = Instance.new("Part", char)
2236
        rng.Anchored = true
2237
        rng.BrickColor = origcolor
2238
        rng.CanCollide = false
2239
        rng.FormFactor = 3
2240
        rng.Name = "Ring"
2241
        rng.Size = Vector3.new(1, 1, 1)
2242
        rng.Transparency = 0
2243
        rng.TopSurface = 0
2244
        rng.BottomSurface = 0
2245
        rng.CFrame = pos
2246
        local rngm = Instance.new("SpecialMesh", rng)
2247
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2248
rngm.Scale = scale
2249
local scaler2 = 1
2250
if type == "Add" then
2251
scaler2 = 1*value
2252
elseif type == "Divide" then
2253
scaler2 = 1/value
2254
end
2255
coroutine.resume(coroutine.create(function()
2256
for i = 0,10,0.1 do
2257
swait()
2258
if type == "Add" then
2259
scaler2 = scaler2 - 0.01*value
2260
elseif type == "Divide" then
2261
scaler2 = scaler2 - 0.01/value
2262
end
2263
rng.Transparency = rng.Transparency + 0.01
2264
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2265
end
2266
rng:Destroy()
2267
end))
2268
end
2269
2270
function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,value2,color)
2271
local type = type
2272
local rng = Instance.new("Part", char)
2273
        rng.Anchored = true
2274
        rng.BrickColor = color
2275
        rng.CanCollide = false
2276
        rng.FormFactor = 3
2277
        rng.Name = "Ring"
2278
        rng.Material = "Neon"
2279
        rng.Size = Vector3.new(1, 1, 1)
2280
        rng.Transparency = 0
2281
if typeoftrans == "In" then
2282
rng.Transparency = 1
2283
end
2284
        rng.TopSurface = 0
2285
        rng.BottomSurface = 0
2286
        rng.CFrame = pos
2287
        local rngm = Instance.new("SpecialMesh", rng)
2288
        rngm.MeshType = "FileMesh"
2289
rngm.MeshId = "rbxassetid://20329976"
2290
rngm.Scale = scale
2291
local scaler2 = 1
2292
local scaler2b = 1
2293
if type == "Add" then
2294
scaler2 = 1*value
2295
scaler2b = 1*value2
2296
elseif type == "Divide" then
2297
scaler2 = 1/value
2298
scaler2b = 1/value2
2299
end
2300
local randomrot = math.random(1,2)
2301
coroutine.resume(coroutine.create(function()
2302
for i = 0,10/bonuspeed,0.1 do
2303
swait()
2304
if type == "Add" then
2305
scaler2 = scaler2 - 0.01*value/bonuspeed
2306
scaler2b = scaler2b - 0.01*value/bonuspeed
2307
elseif type == "Divide" then
2308
scaler2 = scaler2 - 0.01/value*bonuspeed
2309
scaler2b = scaler2b - 0.01/value*bonuspeed
2310
end
2311
if randomrot == 1 then
2312
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0)
2313
elseif randomrot == 2 then
2314
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0)
2315
end
2316
if typeoftrans == "Out" then
2317
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2318
elseif typeoftrans == "In" then
2319
rng.Transparency = rng.Transparency - 0.01*bonuspeed
2320
end
2321
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2*bonuspeed)
2322
end
2323
rng:Destroy()
2324
end))
2325
end
2326
2327
function wave(type,pos,scale,value)
2328
local type = type
2329
local rng = Instance.new("Part", char)
2330
        rng.Anchored = true
2331
        rng.BrickColor = origcolor
2332
        rng.CanCollide = false
2333
        rng.FormFactor = 3
2334
        rng.Name = "Ring"
2335
        rng.Size = Vector3.new(1, 1, 1)
2336
        rng.Transparency = 0
2337
        rng.TopSurface = 0
2338
        rng.BottomSurface = 0
2339
        rng.CFrame = pos
2340
        local rngm = Instance.new("SpecialMesh", rng)
2341
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2342
rngm.Scale = scale
2343
local scaler2 = 1
2344
if type == "Add" then
2345
scaler2 = 1*value
2346
elseif type == "Divide" then
2347
scaler2 = 1/value
2348
end
2349
coroutine.resume(coroutine.create(function()
2350
for i = 0,10,0.1 do
2351
swait()
2352
if type == "Add" then
2353
scaler2 = scaler2 - 0.01*value
2354
elseif type == "Divide" then
2355
scaler2 = scaler2 - 0.01/value
2356
end
2357
rng.Transparency = rng.Transparency + 0.01
2358
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2359
end
2360
rng:Destroy()
2361
end))
2362
end
2363
2364
function wind(type,pos,scale,value,speed)
2365
local type = type
2366
local rng = Instance.new("Part", char)
2367
        rng.Anchored = true
2368
        rng.BrickColor = origcolor
2369
        rng.CanCollide = false
2370
        rng.FormFactor = 3
2371
        rng.Name = "Ring"
2372
        rng.Size = Vector3.new(1, 1, 1)
2373
        rng.Transparency = 0
2374
        rng.TopSurface = 0
2375
        rng.BottomSurface = 0
2376
        rng.CFrame = pos
2377
        local rngm = Instance.new("SpecialMesh", rng)
2378
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2379
rngm.Scale = scale
2380
local scaler2 = 1
2381
if type == "Add" then
2382
scaler2 = 1*value
2383
elseif type == "Divide" then
2384
scaler2 = 1/value
2385
end
2386
coroutine.resume(coroutine.create(function()
2387
for i = 0,10,0.1 do
2388
swait()
2389
if type == "Add" then
2390
scaler2 = scaler2 - 0.01*value
2391
elseif type == "Divide" then
2392
scaler2 = scaler2 - 0.01/value
2393
end
2394
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2395
rng.Transparency = rng.Transparency + 0.01
2396
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2397
end
2398
rng:Destroy()
2399
end))
2400
end
2401
2402
function groundwind(type,pos,scale,value,speed)
2403
local type = type
2404
local rng = Instance.new("Part", char)
2405
        rng.Anchored = true
2406
        rng.BrickColor = origcolor
2407
        rng.CanCollide = false
2408
        rng.FormFactor = 3
2409
        rng.Name = "Ring"
2410
        rng.Size = Vector3.new(1, 1, 1)
2411
        rng.Transparency = 0
2412
        rng.TopSurface = 0
2413
        rng.BottomSurface = 0
2414
        rng.CFrame = pos
2415
        local rngm = Instance.new("SpecialMesh", rng)
2416
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2417
rngm.Scale = scale
2418
local scaler2 = 1
2419
if type == "Add" then
2420
scaler2 = 1*value
2421
elseif type == "Divide" then
2422
scaler2 = 1/value
2423
end
2424
coroutine.resume(coroutine.create(function()
2425
for i = 0,10,0.1 do
2426
swait()
2427
if type == "Add" then
2428
scaler2 = scaler2 - 0.01*value
2429
elseif type == "Divide" then
2430
scaler2 = scaler2 - 0.01/value
2431
end
2432
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2433
rng.Transparency = rng.Transparency + 0.01
2434
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
2435
end
2436
rng:Destroy()
2437
end))
2438
end
2439
2440
function CameraManager()
2441
  if TwoD and not CamInterrupt then
2442
    if Humanoid.Health > 0 then
2443
      Camera.CameraSubject = Humanoid
2444
      Camera.CameraType = "Scriptable"
2445
      Humanoid.AutoRotate = false
2446
      if Booleans.GyroUse then
2447
        Directer.MaxTorque = Vec3(0, huge, 0)
2448
      else
2449
        Directer.MaxTorque = Vec3(0, 0, 0)
2450
      end
2451
      if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
2452
        if Booleans.CamFollow then
2453
          CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
2454
          Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
2455
        else
2456
          CPart.Position = RootPart.Position
2457
        end
2458
      else
2459
        local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
2460
        CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
2461
      end
2462
      Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
2463
    else
2464
      Camera.CameraSubject = Humanoid
2465
      Camera.CameraType = "Custom"
2466
    end
2467
  end
2468
end
2469
2470
function ring(type,pos,scale,value)
2471
local type = type
2472
local rng = Instance.new("Part", char)
2473
        rng.Anchored = true
2474
        rng.BrickColor = origcolor
2475
        rng.CanCollide = false
2476
        rng.FormFactor = 3
2477
        rng.Name = "Ring"
2478
        rng.Size = Vector3.new(1, 1, 1)
2479
        rng.Transparency = 0
2480
        rng.TopSurface = 0
2481
        rng.BottomSurface = 0
2482
        rng.CFrame = pos
2483
        local rngm = Instance.new("SpecialMesh", rng)
2484
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2485
rngm.Scale = scale
2486
local scaler2 = 1
2487
if type == "Add" then
2488
scaler2 = 1*value
2489
elseif type == "Divide" then
2490
scaler2 = 1/value
2491
end
2492
coroutine.resume(coroutine.create(function()
2493
for i = 0,10,0.1 do
2494
swait()
2495
if type == "Add" then
2496
scaler2 = scaler2 - 0.01*value
2497
elseif type == "Divide" then
2498
scaler2 = scaler2 - 0.01/value
2499
end
2500
rng.Transparency = rng.Transparency + 0.01
2501
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2502
end
2503
rng:Destroy()
2504
end))
2505
end
2506
2507
2508
function wave(type,pos,scale,value)
2509
local type = type
2510
local rng = Instance.new("Part", char)
2511
        rng.Anchored = true
2512
        rng.BrickColor = origcolor
2513
        rng.CanCollide = false
2514
        rng.FormFactor = 3
2515
        rng.Name = "Ring"
2516
        rng.Size = Vector3.new(1, 1, 1)
2517
        rng.Transparency = 0
2518
        rng.TopSurface = 0
2519
        rng.BottomSurface = 0
2520
        rng.CFrame = pos
2521
        local rngm = Instance.new("SpecialMesh", rng)
2522
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2523
rngm.Scale = scale
2524
local scaler2 = 1
2525
if type == "Add" then
2526
scaler2 = 1*value
2527
elseif type == "Divide" then
2528
scaler2 = 1/value
2529
end
2530
coroutine.resume(coroutine.create(function()
2531
for i = 0,10,0.1 do
2532
swait()
2533
if type == "Add" then
2534
scaler2 = scaler2 - 0.01*value
2535
elseif type == "Divide" then
2536
scaler2 = scaler2 - 0.01/value
2537
end
2538
rng.Transparency = rng.Transparency + 0.01
2539
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2540
end
2541
rng:Destroy()
2542
end))
2543
end
2544
2545
function sphere(bonuspeed,type,pos,scale,value,color)
2546
local type = type
2547
local rng = Instance.new("Part", char)
2548
        rng.Anchored = true
2549
if ModeOfGlitch ~= 2 then
2550
        rng.BrickColor = color
2551
elseif ModeOfGlitch == 2 then
2552
rng.Color = Color3.new(0,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2553
end
2554
        rng.CanCollide = false
2555
        rng.FormFactor = 3
2556
        rng.Name = "Ring"
2557
        rng.Material = "Neon"
2558
        rng.Size = Vector3.new(1, 1, 1)
2559
        rng.Transparency = 0
2560
        rng.TopSurface = 0
2561
        rng.BottomSurface = 0
2562
        rng.CFrame = pos
2563
        local rngm = Instance.new("SpecialMesh", rng)
2564
        rngm.MeshType = "Sphere"
2565
rngm.Scale = scale
2566
if rainbowmode == true then
2567
rng.Color = Color3.new(r/255,g/255,b/255)
2568
end
2569
if ModeOfGlitch == 2 then
2570
coroutine.resume(coroutine.create(function()
2571
while true do
2572
swait()
2573
if rng.Parent ~= nil then
2574
rng.Color = Color3.new(0,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2575
else
2576
break
2577
end
2578
end
2579
end))
2580
end
2581
local scaler2 = 1
2582
if type == "Add" then
2583
scaler2 = 1*value
2584
elseif type == "Divide" then
2585
scaler2 = 1/value
2586
end
2587
coroutine.resume(coroutine.create(function()
2588
for i = 0,10/bonuspeed,0.1 do
2589
swait()
2590
if rainbowmode == true then
2591
rng.Color = Color3.new(r/255,g/255,b/255)
2592
end
2593
if type == "Add" then
2594
scaler2 = scaler2 - 0.01*value/bonuspeed
2595
elseif type == "Divide" then
2596
scaler2 = scaler2 - 0.01/value*bonuspeed
2597
end
2598
if chaosmode == true then
2599
rng.BrickColor = BrickColor.random()
2600
end
2601
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2602
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2603
end
2604
rng:Destroy()
2605
end))
2606
end
2607
2608
function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
2609
local type = type
2610
local rng = Instance.new("Part", char)
2611
        rng.Anchored = true
2612
if ModeOfGlitch ~= 2 then
2613
        rng.BrickColor = color
2614
elseif ModeOfGlitch == 2 then
2615
rng.Color = Color3.new(0,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2616
end
2617
        rng.CanCollide = false
2618
        rng.FormFactor = 3
2619
        rng.Name = "Ring"
2620
        rng.Material = "Neon"
2621
        rng.Size = Vector3.new(1, 1, 1)
2622
        rng.Transparency = 0
2623
        rng.TopSurface = 0
2624
        rng.BottomSurface = 0
2625
        rng.CFrame = pos
2626
        local rngm = Instance.new("SpecialMesh", rng)
2627
        rngm.MeshType = "Sphere"
2628
rngm.Scale = scale
2629
if rainbowmode == true then
2630
rng.Color = Color3.new(r/255,g/255,b/255)
2631
end
2632
local scaler2 = 1
2633
local scaler2b = 1
2634
local scaler2c = 1
2635
if type == "Add" then
2636
scaler2 = 1*value
2637
scaler2b = 1*value2
2638
scaler2c = 1*value3
2639
elseif type == "Divide" then
2640
scaler2 = 1/value
2641
scaler2b = 1/value2
2642
scaler2c = 1/value3
2643
end
2644
coroutine.resume(coroutine.create(function()
2645
while true do
2646
swait()
2647
if rainbowmode == true then
2648
rng.Color = Color3.new(r/255,g/255,b/255)
2649
end
2650
end
2651
end))
2652
if ModeOfGlitch == 2 then
2653
coroutine.resume(coroutine.create(function()
2654
while true do
2655
swait()
2656
if rng.Parent ~= nil then
2657
rng.Color = Color3.new(0,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2658
else
2659
break
2660
end
2661
end
2662
end))
2663
end
2664
coroutine.resume(coroutine.create(function()
2665
for i = 0,10/bonuspeed,0.1 do
2666
swait()
2667
if type == "Add" then
2668
scaler2 = scaler2 - 0.01*value/bonuspeed
2669
scaler2b = scaler2b - 0.01*value/bonuspeed
2670
scaler2c = scaler2c - 0.01*value/bonuspeed
2671
elseif type == "Divide" then
2672
scaler2 = scaler2 - 0.01/value*bonuspeed
2673
scaler2b = scaler2b - 0.01/value*bonuspeed
2674
scaler2c = scaler2c - 0.01/value*bonuspeed
2675
end
2676
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2677
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
2678
end
2679
rng:Destroy()
2680
end))
2681
end
2682
2683
function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
2684
local type = type
2685
local rotenable = rotatingop
2686
local rng = Instance.new("Part", char)
2687
        rng.Anchored = true
2688
        rng.BrickColor = color
2689
        rng.CanCollide = false
2690
        rng.FormFactor = 3
2691
        rng.Name = "Ring"
2692
        rng.Material = "Neon"
2693
        rng.Size = Vector3.new(1, 1, 1)
2694
        rng.Transparency = 0
2695
if typeoftrans == "In" then
2696
rng.Transparency = 1
2697
end
2698
        rng.TopSurface = 0
2699
        rng.BottomSurface = 0
2700
        rng.CFrame = pos
2701
        local rngm = Instance.new("SpecialMesh", rng)
2702
        rngm.MeshType = "FileMesh"
2703
if typeofshape == "Normal" then
2704
rngm.MeshId = "rbxassetid://662586858"
2705
elseif typeofshape == "Round" then
2706
rngm.MeshId = "rbxassetid://662585058"
2707
end
2708
rngm.Scale = scale
2709
local scaler2 = 1/10
2710
if type == "Add" then
2711
scaler2 = 1*value/10
2712
elseif type == "Divide" then
2713
scaler2 = 1/value/10
2714
end
2715
local randomrot = math.random(1,2)
2716
coroutine.resume(coroutine.create(function()
2717
for i = 0,10/bonuspeed,0.1 do
2718
swait()
2719
if type == "Add" then
2720
scaler2 = scaler2 - 0.01*value/bonuspeed/10
2721
elseif type == "Divide" then
2722
scaler2 = scaler2 - 0.01/value*bonuspeed/10
2723
end
2724
if rotenable == true then
2725
if randomrot == 1 then
2726
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
2727
elseif randomrot == 2 then
2728
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
2729
end
2730
end
2731
if typeoftrans == "Out" then
2732
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2733
elseif typeoftrans == "In" then
2734
rng.Transparency = rng.Transparency - 0.01*bonuspeed
2735
end
2736
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
2737
end
2738
rng:Destroy()
2739
end))
2740
end
2741
2742
function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2743
local type = type
2744
local rng = Instance.new("Part", char)
2745
        rng.Anchored = true
2746
        rng.BrickColor = color
2747
        rng.CanCollide = false
2748
        rng.FormFactor = 3
2749
        rng.Name = "Ring"
2750
        rng.Material = "Neon"
2751
        rng.Size = Vector3.new(1, 1, 1)
2752
        rng.Transparency = 0
2753
        rng.TopSurface = 0
2754
        rng.BottomSurface = 0
2755
        rng.CFrame = pos
2756
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2757
        local rngm = Instance.new("SpecialMesh", rng)
2758
        rngm.MeshType = "Brick"
2759
rngm.Scale = vt(x1,y1,z1)
2760
if rainbowmode == true then
2761
rng.Color = Color3.new(r/255,g/255,b/255)
2762
end
2763
local scaler2 = 1
2764
local speeder = FastSpeed/10
2765
if type == "Add" then
2766
scaler2 = 1*value
2767
elseif type == "Divide" then
2768
scaler2 = 1/value
2769
end
2770
coroutine.resume(coroutine.create(function()
2771
for i = 0,10/bonuspeed,0.1 do
2772
swait()
2773
if rainbowmode == true then
2774
rng.Color = Color3.new(r/255,g/255,b/255)
2775
end
2776
if type == "Add" then
2777
scaler2 = scaler2 - 0.01*value/bonuspeed
2778
elseif type == "Divide" then
2779
scaler2 = scaler2 - 0.01/value*bonuspeed
2780
end
2781
if chaosmode == true then
2782
rng.BrickColor = BrickColor.random()
2783
end
2784
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
2785
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2786
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
2787
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2788
end
2789
rng:Destroy()
2790
end))
2791
end
2792
2793
function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2794
local type = type
2795
local rng = Instance.new("Part", char)
2796
        rng.Anchored = true
2797
        rng.BrickColor = color
2798
        rng.CanCollide = false
2799
        rng.FormFactor = 3
2800
        rng.Name = "Ring"
2801
        rng.Material = "Neon"
2802
        rng.Size = Vector3.new(1, 1, 1)
2803
        rng.Transparency = 0
2804
        rng.TopSurface = 0
2805
        rng.BottomSurface = 0
2806
        rng.CFrame = pos
2807
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2808
        local rngm = Instance.new("SpecialMesh", rng)
2809
        rngm.MeshType = "Brick"
2810
rngm.Scale = vt(x1,y1,z1)
2811
if rainbowmode == true then
2812
rng.Color = Color3.new(r/255,g/255,b/255)
2813
end
2814
local scaler2 = 1
2815
local speeder = FastSpeed/10
2816
if type == "Add" then
2817
scaler2 = 1*value
2818
elseif type == "Divide" then
2819
scaler2 = 1/value
2820
end
2821
coroutine.resume(coroutine.create(function()
2822
for i = 0,10/bonuspeed,0.1 do
2823
swait()
2824
if rainbowmode == true then
2825
rng.Color = Color3.new(r/255,g/255,b/255)
2826
end
2827
if type == "Add" then
2828
scaler2 = scaler2 - 0.01*value/bonuspeed
2829
elseif type == "Divide" then
2830
scaler2 = scaler2 - 0.01/value*bonuspeed
2831
end
2832
if chaosmode == true then
2833
rng.BrickColor = BrickColor.random()
2834
end
2835
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
2836
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2837
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2838
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2839
end
2840
rng:Destroy()
2841
end))
2842
end
2843
2844
function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2845
local type = type
2846
local rng = Instance.new("Part", char)
2847
        rng.Anchored = true
2848
        rng.BrickColor = color
2849
        rng.CanCollide = false
2850
        rng.FormFactor = 3
2851
        rng.Name = "Ring"
2852
        rng.Material = "Neon"
2853
        rng.Size = Vector3.new(1, 1, 1)
2854
        rng.Transparency = 0
2855
        rng.TopSurface = 0
2856
        rng.BottomSurface = 0
2857
        rng.CFrame = pos
2858
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2859
        local rngm = Instance.new("SpecialMesh", rng)
2860
        rngm.MeshType = "Brick"
2861
rngm.Scale = vt(x1,y1,z1)
2862
if rainbowmode == true then
2863
rng.Color = Color3.new(r/255,g/255,b/255)
2864
end
2865
local scaler2 = 0
2866
local speeder = FastSpeed/10
2867
if type == "Add" then
2868
scaler2 = 1*value
2869
elseif type == "Divide" then
2870
scaler2 = 1/value
2871
end
2872
coroutine.resume(coroutine.create(function()
2873
for i = 0,10/bonuspeed,0.1 do
2874
swait()
2875
if rainbowmode == true then
2876
rng.Color = Color3.new(r/255,g/255,b/255)
2877
end
2878
if type == "Add" then
2879
scaler2 = scaler2 - 0.01*value/bonuspeed
2880
elseif type == "Divide" then
2881
scaler2 = scaler2 - 0.01/value*bonuspeed
2882
end
2883
if chaosmode == true then
2884
rng.BrickColor = BrickColor.random()
2885
end
2886
speeder = speeder + 0.01*FastSpeed*bonuspeed/10
2887
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2888
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
2889
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2890
end
2891
rng:Destroy()
2892
end))
2893
end
2894
2895
function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
2896
local type = type
2897
local rng = Instance.new("Part", char)
2898
        rng.Anchored = true
2899
        rng.BrickColor = color
2900
        rng.Color = color3
2901
        rng.CanCollide = false
2902
        rng.FormFactor = 3
2903
        rng.Name = "Ring"
2904
        rng.Material = "Neon"
2905
        rng.Size = Vector3.new(1, 1, 1)
2906
        rng.Transparency = 0
2907
        rng.TopSurface = 0
2908
        rng.BottomSurface = 0
2909
        rng.CFrame = pos
2910
        local rngm = Instance.new("SpecialMesh", rng)
2911
        rngm.MeshType = "Brick"
2912
rngm.Scale = scale
2913
local scaler2 = 1
2914
local scaler2b = 1
2915
local scaler2c = 1
2916
if type == "Add" then
2917
scaler2 = 1*value
2918
scaler2b = 1*value2
2919
scaler2c = 1*value3
2920
elseif type == "Divide" then
2921
scaler2 = 1/value
2922
scaler2b = 1/value2
2923
scaler2c = 1/value3
2924
end
2925
coroutine.resume(coroutine.create(function()
2926
for i = 0,10/bonuspeed,0.1 do
2927
swait()
2928
if type == "Add" then
2929
scaler2 = scaler2 - 0.01*value/bonuspeed
2930
scaler2b = scaler2b - 0.01*value/bonuspeed
2931
scaler2c = scaler2c - 0.01*value/bonuspeed
2932
elseif type == "Divide" then
2933
scaler2 = scaler2 - 0.01/value*bonuspeed
2934
scaler2b = scaler2b - 0.01/value*bonuspeed
2935
scaler2c = scaler2c - 0.01/value*bonuspeed
2936
end
2937
rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
2938
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2939
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
2940
end
2941
rng:Destroy()
2942
end))
2943
end
2944
2945
function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2946
local type = type
2947
local rng = Instance.new("Part", char)
2948
        rng.Anchored = true
2949
if ModeOfGlitch ~= 9 then
2950
        rng.BrickColor = color
2951
elseif ModeOfGlitch == 9 then
2952
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2953
end
2954
        rng.CanCollide = false
2955
        rng.FormFactor = 3
2956
        rng.Name = "Ring"
2957
        rng.Material = "Neon"
2958
        rng.Size = Vector3.new(1, 1, 1)
2959
        rng.Transparency = 0
2960
        rng.TopSurface = 0
2961
        rng.BottomSurface = 0
2962
        rng.CFrame = pos
2963
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2964
        local rngm = Instance.new("SpecialMesh", rng)
2965
        rngm.MeshType = "Sphere"
2966
rngm.Scale = vt(x1,y1,z1)
2967
if rainbowmode == true then
2968
rng.Color = Color3.new(r/255,g/255,b/255)
2969
end
2970
if ModeOfGlitch == 9 then
2971
coroutine.resume(coroutine.create(function()
2972
while true do
2973
swait()
2974
if rng.Parent ~= nil then
2975
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2976
else
2977
break
2978
end
2979
end
2980
end))
2981
end
2982
local scaler2 = 1
2983
local speeder = FastSpeed
2984
if type == "Add" then
2985
scaler2 = 1*value
2986
elseif type == "Divide" then
2987
scaler2 = 1/value
2988
end
2989
coroutine.resume(coroutine.create(function()
2990
for i = 0,10/bonuspeed,0.1 do
2991
swait()
2992
if rainbowmode == true then
2993
rng.Color = Color3.new(r/255,g/255,b/255)
2994
end
2995
if type == "Add" then
2996
scaler2 = scaler2 - 0.01*value/bonuspeed
2997
elseif type == "Divide" then
2998
scaler2 = scaler2 - 0.01/value*bonuspeed
2999
end
3000
if chaosmode == true then
3001
rng.BrickColor = BrickColor.random()
3002
end
3003
speeder = speeder - 0.01*FastSpeed*bonuspeed
3004
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3005
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3006
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3007
end
3008
rng:Destroy()
3009
end))
3010
end
3011
3012
3013
function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3014
local type = type
3015
local rng = Instance.new("Part", char)
3016
        rng.Anchored = true
3017
if ModeOfGlitch ~= 9 then
3018
        rng.BrickColor = color
3019
elseif ModeOfGlitch == 9 then
3020
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3021
end
3022
        rng.CanCollide = false
3023
        rng.FormFactor = 3
3024
        rng.Name = "Ring"
3025
        rng.Material = "Neon"
3026
        rng.Size = Vector3.new(1, 1, 1)
3027
        rng.Transparency = 1
3028
        rng.TopSurface = 0
3029
        rng.BottomSurface = 0
3030
        rng.CFrame = pos
3031
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3032
        local rngm = Instance.new("SpecialMesh", rng)
3033
        rngm.MeshType = "Sphere"
3034
rngm.Scale = vt(x1,y1,z1)
3035
if rainbowmode == true then
3036
rng.Color = Color3.new(r/255,g/255,b/255)
3037
end
3038
if ModeOfGlitch == 9 then
3039
coroutine.resume(coroutine.create(function()
3040
while true do
3041
swait()
3042
if rng.Parent ~= nil then
3043
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3044
else
3045
break
3046
end
3047
end
3048
end))
3049
end
3050
local scaler2 = 1
3051
local speeder = FastSpeed
3052
if type == "Add" then
3053
scaler2 = 1*value
3054
elseif type == "Divide" then
3055
scaler2 = 1/value
3056
end
3057
coroutine.resume(coroutine.create(function()
3058
for i = 0,10/bonuspeed,0.1 do
3059
swait()
3060
if rainbowmode == true then
3061
rng.Color = Color3.new(r/255,g/255,b/255)
3062
end
3063
if type == "Add" then
3064
scaler2 = scaler2 - 0.01*value/bonuspeed
3065
elseif type == "Divide" then
3066
scaler2 = scaler2 - 0.01/value*bonuspeed
3067
end
3068
if chaosmode == true then
3069
rng.BrickColor = BrickColor.random()
3070
end
3071
speeder = speeder - 0.01*FastSpeed*bonuspeed
3072
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3073
rng.Transparency = rng.Transparency - 0.01*bonuspeed
3074
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3075
end
3076
rng:Destroy()
3077
end))
3078
end
3079
3080
function dmg(dude)
3081
if dude.Name ~= Character then
3082
local keptcolor = MAINRUINCOLOR
3083
local bgf = Instance.new("BodyGyro",dude.Head)
3084
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
3085
--[[local val = Instance.new("BoolValue",dude)
3086
val.Name = "IsHit"]]--
3087
local ds = coroutine.wrap(function()
3088
dude:WaitForChild("Head"):BreakJoints()
3089
for i, v in pairs(dude:GetChildren()) do
3090
if v:IsA("Part") or v:IsA("MeshPart") then
3091
v.Name = "DEMINISHED"
3092
end
3093
end
3094
wait(0.5)
3095
targetted = nil
3096
CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
3097
coroutine.resume(coroutine.create(function()
3098
for i, v in pairs(dude:GetChildren()) do
3099
if v:IsA("Accessory") then
3100
v:Destroy()
3101
end
3102
if v:IsA("Humanoid") then
3103
v:Destroy()
3104
end
3105
if v:IsA("CharacterMesh") then
3106
v:Destroy()
3107
end
3108
if v:IsA("Model") then
3109
v:Destroy()
3110
end
3111
if v:IsA("Part") or v:IsA("MeshPart") then
3112
for x, o in pairs(v:GetChildren()) do
3113
if o:IsA("Decal") then
3114
o:Destroy()
3115
end
3116
end
3117
coroutine.resume(coroutine.create(function()
3118
v.Material = "Neon"
3119
v.CanCollide = false
3120
v.Anchored = false
3121
local bld = Instance.new("ParticleEmitter",v)
3122
bld.LightEmission = 0.75
3123
bld.Texture = "rbxassetid://363275192" ---284205403
3124
bld.Color = ColorSequence.new(keptcolor.Color)
3125
bld.Rate = 500
3126
bld.Lifetime = NumberRange.new(1)
3127
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
3128
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
3129
bld.Speed = NumberRange.new(2,5)
3130
bld.VelocitySpread = 50000
3131
bld.Rotation = NumberRange.new(-500,500)
3132
bld.RotSpeed = NumberRange.new(-500,500)
3133
        local sbs = Instance.new("BodyPosition", v)
3134
        sbs.P = 3000
3135
        sbs.D = 1000
3136
        sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
3137
        sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
3138
v.Color = keptcolor.Color
3139
coroutine.resume(coroutine.create(function()
3140
for i = 0, 49 do
3141
swait(1)
3142
v:BreakJoints()
3143
v.Transparency = v.Transparency + 0.02
3144
end
3145
v:BreakJoints()
3146
sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
3147
CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
3148
bld.Speed = NumberRange.new(10,25)
3149
bld.Drag = 5
3150
bld.Acceleration = vt(0,2,0)
3151
wait(0.5)
3152
bld.Enabled = false
3153
wait(8)
3154
v:Destroy()
3155
dude:Destroy()
3156
end))
3157
end))
3158
end
3159
end
3160
end))
3161
end)
3162
ds()
3163
end
3164
end
3165
3166
3167
function FindNearestHead(Position, Distance, SinglePlayer)
3168
	if SinglePlayer then
3169
		return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
3170
	end
3171
	local List = {}
3172
	for i, v in pairs(workspace:GetChildren()) do
3173
		if v:IsA("Model") then
3174
			if v:findFirstChild("Head") then
3175
				if v ~= Character then
3176
					if (v.Head.Position - Position).magnitude <= Distance then
3177
						table.insert(List, v)
3178
					end 
3179
				end 
3180
			end 
3181
		end 
3182
	end
3183
	return List
3184
end
3185
3186
function FaceMouse()
3187
  Cam = workspace.CurrentCamera
3188
  return {
3189
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
3190
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
3191
  }
3192
end
3193
3194
function FaceMouse2()
3195
  Cam = workspace.CurrentCamera
3196
  return {
3197
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
3198
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
3199
  }
3200
end
3201
3202
local ModeOfGlitch = 1
3203
-- Functions are ready.
3204
local storehumanoidWS = 16
3205
3206
function createBGCircle(size,parent,color)
3207
local bgui = Instance.new("BillboardGui",parent)
3208
bgui.Size = UDim2.new(size, 0, size, 0)
3209
local imgc = Instance.new("ImageLabel",bgui)
3210
imgc.BackgroundTransparency = 1
3211
imgc.ImageTransparency = 0
3212
imgc.Size = UDim2.new(1,0,1,0)
3213
imgc.Image = "rbxassetid://997291547" --997291547,521073910
3214
imgc.ImageColor3 = color
3215
return bgui,imgc
3216
end
3217
3218
----------------------------------- Abilities
3219
3220
function Balanced()
3221
hum.WalkSpeed = 0
3222
hum.JumpPower = 0
3223
attack = true
3224
for i = 0,50 do
3225
swait()
3226
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
3227
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
3228
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),2 + 0.45 * math.cos(sine / 18))*angles(math.rad(0 - 2 * math.cos(sine / 18)),math.rad(0),math.rad(0)),.1)
3229
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
3230
RW.C0=clerp(RW.C0,cf(0.6,0.5 + 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(20),math.rad(0),math.rad(-90)),.1)
3231
LW.C0=clerp(LW.C0,cf(-0.6,0.5 + 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
3232
end
3233
local keptcolor = MAINRUINCOLOR
3234
local locat = Instance.new("Part", char)
3235
locat.CanCollide = false
3236
locat.FormFactor = 3
3237
locat.Name = "Ring"
3238
locat.Material = "Neon"
3239
locat.Size = Vector3.new(1, 1, 1)
3240
locat.Transparency = 1
3241
locat.TopSurface = 0
3242
locat.BottomSurface = 0
3243
locat.Anchored = true
3244
locat.CFrame = root.CFrame*CFrame.new(0,-3,0)
3245
local poste = 0
3246
local rotation = 0
3247
local upperpos = 0
3248
local rate = 0
3249
local x = locat
3250
CFuncs["Sound"].Create("rbxassetid://289315275", char, 3.5, 1)
3251
CFuncs["Sound"].Create("rbxassetid://419447292", char, 3.5, 1)
3252
shakes(0.5,0.3)
3253
for i = 0, 49 do
3254
swait()
3255
rotation = rotation + 5
3256
poste = poste + 1
3257
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3258
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3259
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3260
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3261
sphere2(10,"Add",root.CFrame*CFrame.new(0,-3,0),vt(5,5,5),1,0.01,1,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
3262
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
3263
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
3264
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),2 + 0.45 * math.cos(sine / 18))*angles(math.rad(-40 - 2 * math.cos(sine / 18)),math.rad(0),math.rad(0)),.1)
3265
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
3266
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(2),math.rad(0),math.rad(90)),.1)
3267
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
3268
MagniDamage(tors, 50, 99,100, 0, "Normal")
3269
end
3270
for i = 0, 500 do
3271
swait()
3272
rotation = rotation + 5
3273
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3274
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3275
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3276
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3277
sphere2(10,"Add",root.CFrame*CFrame.new(0,-3,0),vt(20,0.1,20),0.9,0.01,0.9,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
3278
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
3279
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
3280
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),2 + 0.45 * math.cos(sine / 18))*angles(math.rad(-40 - 2 * math.cos(sine / 18)),math.rad(0),math.rad(0)),.1)
3281
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
3282
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(2),math.rad(0),math.rad(90)),.1)
3283
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
3284
MagniDamage(tors, 50, 99,100, 0, "Normal")
3285
end
3286
attack = false
3287
hum.WalkSpeed = storehumanoidWS
3288
hum.JumpPower = 50
3289
end
3290
3291
function Staywey()
3292
attack = true
3293
hum.WalkSpeed = 0
3294
bosschatfunc("STAY WEY! uwu",MAINRUINCOLOR.Color,3)
3295
for i = 0,30 do
3296
swait()
3297
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(-10),math.rad(100),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
3298
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
3299
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
3300
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
3301
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(180),math.rad(0),math.rad(20)),.1)
3302
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
3303
end
3304
for i = 0,27 do
3305
swait()
3306
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(-10),math.rad(100),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
3307
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
3308
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
3309
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
3310
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(90),math.rad(0),math.rad(-90)),.1)
3311
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
3312
end
3313
MagniDamage(root, 24, 0,0, 75, "Normal")
3314
CFuncs["Sound"].Create("rbxassetid://203691492", tors, 1.5,1)
3315
shakes(0.2,0.1)
3316
for i = 0,2,0.1 do
3317
swait()
3318
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(5),math.rad(-10)),.5)
3319
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(20),math.rad(-10)),.5)
3320
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.1)*angles(math.rad(5),math.rad(0),math.rad(-45)),.5)
3321
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(45)),.5)
3322
RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(50)),.5)
3323
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(20),math.rad(10),math.rad(-30)),.5)
3324
end
3325
attack = false
3326
hum.WalkSpeed = storehumanoidWS
3327
end
3328
3329
function heartbeatatmyfeeties()
3330
attack = true
3331
hum.WalkSpeed = 0
3332
CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
3333
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
3334
CFuncs["Sound"].Create("rbxassetid://1436242685", char, 10, 1)
3335
bosschatfunc("THIS IS THE END!!!",MAINRUINCOLOR.Color,3) 
3336
local keptcolor = MAINRUINCOLOR
3337
for i = 0,8,0.1 do
3338
swait()
3339
slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.new("White"))
3340
block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.2,0.2,0.2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
3341
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
3342
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
3343
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),2 + 0.45 * math.cos(sine / 18))*angles(math.rad(0 - 2 * math.cos(sine / 18)),math.rad(0),math.rad(0)),.1)
3344
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
3345
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(180 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1)
3346
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(180 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1)
3347
end
3348
for i = 0, 99 do
3349
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
3350
dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
3351
local at1 = Instance.new("Attachment",dis)
3352
at1.Position = vt(-25000,0,0)
3353
local at2 = Instance.new("Attachment",dis)
3354
at2.Position = vt(25000,0,0)
3355
local trl = Instance.new('Trail',dis)
3356
trl.Attachment0 = at1
3357
trl.FaceCamera = true
3358
trl.Attachment1 = at2
3359
trl.Texture = "rbxassetid://1049219073"
3360
trl.LightEmission = 1
3361
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
3362
trl.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3363
trl.Lifetime = 5
3364
local bv = Instance.new("BodyVelocity")
3365
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3366
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
3367
bv.Parent = dis
3368
game:GetService("Debris"):AddItem(dis, 5)
3369
end
3370
CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
3371
CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
3372
CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
3373
for i = 0,3 do
3374
swait()
3375
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8)
3376
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8)
3377
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
3378
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
3379
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
3380
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(35),math.rad(10),math.rad(-30)),.8)
3381
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8)
3382
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8)
3383
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
3384
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
3385
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
3386
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(35),math.rad(10),math.rad(-30)),.8)
3387
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8)
3388
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8)
3389
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(0)),.8)
3390
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
3391
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
3392
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(35),math.rad(10),math.rad(-30)),.8)
3393
sphere2(3,"Add",root.CFrame*CFrame.new(0,-3,0),vt(0,0,0),6,0,6,MAINRUINCOLOR,MAINRUINCOLOR.Color)
3394
CFuncs["Sound"].Create("rbxassetid://468991944", root, 7.5, 1)
3395
CFuncs["Sound"].Create("rbxassetid://419447292", root, 2.5,1)
3396
MagniDamage(root, 1000, 78,99, 0, "Normal")
3397
swait(20)
3398
sphere2(3,"Add",root.CFrame*CFrame.new(0,-3,0),vt(0,0,0),6,0,6,MAINRUINCOLOR,MAINRUINCOLOR.Color)
3399
CFuncs["Sound"].Create("rbxassetid://468991944", root, 7.5, 1)
3400
CFuncs["Sound"].Create("rbxassetid://419447292", root, 2.5,1)
3401
MagniDamage(root, 1000, 78,99, 0, "Normal")
3402
swait(100)
3403
end
3404
3405
attack = false
3406
hum.WalkSpeed = storehumanoidWS
3407
end
3408
3409
function BURNYS()
3410
	attack = true
3411
hum.WalkSpeed = 0
3412
bosschatfunc("$#@%^$^$@*&%@^T@#%$^234",MAINRUINCOLOR.Color,1) 
3413
coroutine.resume(coroutine.create(function()
3414
local eff = Instance.new("ParticleEmitter",cen)
3415
eff.Texture = "rbxassetid://2344870656"
3416
eff.LightEmission = 1
3417
eff.Color = ColorSequence.new(keptcolor.Color)
3418
eff.Rate = 10000000
3419
eff.Enabled = true
3420
eff.EmissionDirection = "Front"
3421
eff.Lifetime = NumberRange.new(2)
3422
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,120,0),NumberSequenceKeypoint.new(0.1,40,0),NumberSequenceKeypoint.new(0.8,80,0),NumberSequenceKeypoint.new(1,140,0)})
3423
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
3424
eff.Speed = NumberRange.new(500)
3425
eff.Drag = 5
3426
eff.Rotation = NumberRange.new(-500,500)
3427
eff.SpreadAngle = Vector2.new(0,900)
3428
eff.RotSpeed = NumberRange.new(-500,500)
3429
wait(0.2)
3430
eff.Enabled = false
3431
wait(5)
3432
eff:Destroy()
3433
end))
3434
coroutine.resume(coroutine.create(function()
3435
	local shval = 10
3436
	for i = 0, 99 do
3437
		swait()
3438
		shval = shval - 0.1
3439
		hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
3440
	end
3441
	hum.CameraOffset = vt(0,0,0)
3442
end))
3443
local rrot = 0
3444
local xam = 1
3445
coroutine.resume(coroutine.create(function()
3446
for i = 0, 14 do
3447
--swait()
3448
rrot = rrot + 40
3449
xam = xam + 0.25
3450
local bonus = xam
3451
local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
3452
xa.Anchored = true
3453
xa.Color = Color3.new(0,0,0)
3454
xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
3455
CreateMesh(xa,"Sphere",30,1,30)
3456
local xc = 0
3457
coroutine.resume(coroutine.create(function()
3458
for i = 0, 99 do
3459
	swait()
3460
	xc = xc + 0.01
3461
	xa.Color = Color3.new(xc,0,0)
3462
end
3463
xa.Transparency = 1
3464
CFuncs["Sound"].Create("rbxassetid://144699494", xa, 10,0.75)
3465
MagniDamage(xa, 30, 78,99, 0, "Normal")
3466
shakes(0.3,1)
3467
sphere(1,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(1,100000,1),0.6,BrickColor.new("Really red"))
3468
sphere(1,"Add",xa.CFrame,vt(1,1,1),0.8,BrickColor.new("Really red"))
3469
for i = 0, 20 do
3470
sphereMK(0.2,0.25,"Add",xa.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0,BrickColor.new("Really red"),10)	
3471
end
3472
game:GetService("Debris"):AddItem(xa, 5)
3473
coroutine.resume(coroutine.create(function()
3474
for i = 0, 19 do
3475
swait()
3476
hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
3477
end
3478
hum.CameraOffset = vt(0,0,0)
3479
end))
3480
end))
3481
end
3482
end))
3483
for i = 0,2,0.1 do
3484
swait()
3485
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8)
3486
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8)
3487
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
3488
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
3489
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
3490
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
3491
end
3492
attack = false
3493
hum.WalkSpeed = storehumanoidWS
3494
end
3495
3496
function asd421()
3497
attack = true
3498
local absval = 0
3499
local rngb = Instance.new("Part", char)
3500
        rngb.Anchored = true
3501
        rngb.BrickColor = origcolor
3502
        rngb.CanCollide = false
3503
        rngb.FormFactor = 3
3504
        rngb.Name = "Ring"
3505
        rngb.Material = "Neon"
3506
        rngb.Size = Vector3.new(1, 0.05, 1)
3507
        rngb.Transparency = 1
3508
        rngb.TopSurface = 0
3509
        rngb.BottomSurface = 0
3510
        local rngmb = Instance.new("SpecialMesh", rngb)
3511
        rngmb.MeshType = "Brick"
3512
rngmb.Name = "SizeMesh"
3513
rngmb.Scale = vt(0,1,0)
3514
bosschatfunc("HOW DO YOU LIKE THIS???",MAINRUINCOLOR.Color,3) 
3515
local orb = rngb:Clone()
3516
orb.Parent = char
3517
orb.Transparency = 0
3518
orb.BrickColor = BrickColor.new("White")
3519
orb.Size = vt(1,1,1)
3520
local orbmish = orb.SizeMesh
3521
orbmish.Scale = vt(0,0,0)
3522
orbmish.MeshType = "Sphere"
3523
3524
CFuncs["Sound"].Create("rbxassetid://1448033299", orb, 10, 1) 
3525
3526
local orbe = rngb:Clone()
3527
orbe.Parent = char
3528
orbe.Transparency = 0.5
3529
orbe.BrickColor = BrickColor.new("New Yeller")
3530
orbe.Size = vt(1,1,1)
3531
local orbmish2 = orbe.SizeMesh
3532
orbmish2.Scale = vt(0,0,0)
3533
orbmish2.MeshType = "Sphere"
3534
orbe.Color = Color3.new(r/255,g/255,b/255)
3535
3536
local obj1 = script.chring2:Clone()
3537
obj1.Parent = char
3538
obj1.Transparency = 1
3539
obj1.Size = vt(1,1,1)
3540
obj1.Color = BrickColor.new("Lime green").Color
3541
local rval = 0
3542
rngb:Destroy()
3543
local outerscale = 0
3544
--[[
3545
local scaled = 1
3546
for i = 0,5,0.1 do
3547
swait()
3548
scaled = scaled - 0.02
3549
if SCREAMINGmode == true then
3550
orbe.Color = Color3.new(r/255,g/255,b/255)
3551
end
3552
orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
3553
orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
3554
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
3555
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
3556
sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
3557
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
3558
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
3559
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
3560
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
3561
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3562
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
3563
RootPart.CFrame = FaceMouse()[1]
3564
end]]--
3565
for i = 0,5,0.1 do
3566
swait()
3567
rval = rval + math.random(30,40)
3568
obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
3569
obj1.Transparency = obj1.Transparency - 0.05
3570
obj1.Size = obj1.Size + vt(1.8,1.8,0.3)
3571
outerscale = outerscale + 0.015
3572
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
3573
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
3574
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
3575
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
3576
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
3577
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
3578
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3579
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
3580
end
3581
orbe.Transparency = 1
3582
orb.Transparency = 1
3583
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
3584
CFuncs["Sound"].Create("rbxassetid://1368605755", char, 7.5, 1)
3585
CFuncs["Sound"].Create("rbxassetid://763718160", char, 10, 0.5)
3586
CFuncs["Sound"].Create("rbxassetid://763718160", char, 10, 0.25)
3587
CFuncs["Sound"].Create("rbxassetid://782353443", char, 10, 1)
3588
CFuncs["Sound"].Create("rbxassetid://782353443", char, 10, 0.75)
3589
CFuncs["LongSound"].Create("rbxassetid://782353443", char, 10, 0.5)
3590
CFuncs["LongSound"].Create("rbxassetid://782353443", char, 10, 0.25)
3591
CFuncs["Sound"].Create("rbxassetid://1664711478", char, 10, 1)
3592
shakes(0.3,20)
3593
local xd= Instance.new("Sound",char)
3594
xd.SoundId = "rbxassetid://445796828"
3595
xd.Pitch = 0.75
3596
xd.Looped = true
3597
xd.Volume = 1.25
3598
xd:Play()
3599
local a = Instance.new("Part",Character)
3600
	a.Name = "Direction"	
3601
	a.Anchored = true
3602
	a.BrickColor = bc("Alder")
3603
a.Color = MAINRUINCOLOR.Color
3604
a.Material = "Neon"
3605
a.Transparency = 0.5
3606
a.Shape = "Cylinder"
3607
	a.CanCollide = false
3608
local a2 = Instance.new("Part",Character)
3609
	a2.Name = "Direction"	
3610
	a2.Anchored = true
3611
	a2.BrickColor = bc("New Yeller")
3612
a2.Color = MAINRUINCOLOR.Color
3613
a2.Material = "Neon"
3614
a2.Transparency = 0.5
3615
a2.Shape = "Cylinder"
3616
	a2.CanCollide = false
3617
local ba = Instance.new("Part",Character)
3618
	ba.Name = "HitDirect"	
3619
	ba.Anchored = true
3620
	ba.BrickColor = bc("Cool yellow")
3621
ba.Material = "Neon"
3622
ba.Transparency = 1
3623
	ba.CanCollide = false
3624
	local ray = Ray.new(
3625
	    orb.CFrame.p,                           -- origin
3626
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
3627
	) 
3628
	local ignore = Character
3629
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3630
	a.BottomSurface = 10
3631
	a.TopSurface = 10
3632
	a2.BottomSurface = 10
3633
	a2.TopSurface = 10
3634
	local distance = (orb.CFrame.p - position).magnitude
3635
	a.Size = Vector3.new(distance, 1, 1)
3636
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3637
	a2.Size = Vector3.new(distance, 1, 1)
3638
	a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3639
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3640
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
3641
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
3642
game:GetService("Debris"):AddItem(a, 60)
3643
game:GetService("Debris"):AddItem(a2, 60)
3644
game:GetService("Debris"):AddItem(ba, 60)
3645
local outerscale = 0
3646
local msh = Instance.new("SpecialMesh",a)
3647
msh.MeshType = "Cylinder"
3648
msh.Scale = vt(1,0,0)
3649
local msh2 = Instance.new("SpecialMesh",a2)
3650
msh2.MeshType = "Cylinder"
3651
msh2.Scale = vt(1,0,0)
3652
for i = 0,2,0.1 do
3653
swait()
3654
rval = rval + math.random(30,40)
3655
obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
3656
CameraEnshaking(1,1)
3657
msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
3658
msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
3659
outerscale = outerscale - 0.015
3660
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
3661
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
3662
ray = Ray.new(
3663
	    orb.CFrame.p,                           -- origin
3664
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
3665
	) 
3666
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3667
distance = (orb.CFrame.p - position).magnitude
3668
if typrot == 1 then
3669
rotation = rotation + 2.5
3670
elseif typrot == 2 then
3671
rotation = rotation - 2.5
3672
end
3673
3674
a.Size = Vector3.new(distance, 1, 1)
3675
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3676
a2.Size = Vector3.new(distance, 1, 1)
3677
a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3678
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3679
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
3680
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
3681
absval = absval + 0.005
3682
coroutine.resume(coroutine.create(function()
3683
local eff = Instance.new("ParticleEmitter",ba)
3684
eff.Texture = "rbxassetid://284205403"
3685
eff.LightEmission = 0.95
3686
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3687
eff.Rate = 10000
3688
eff.Lifetime = NumberRange.new(5)
3689
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
3690
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3691
eff.Speed = NumberRange.new(600,1250)
3692
eff.Drag = 5
3693
eff.Rotation = NumberRange.new(-500,500)
3694
eff.VelocitySpread = 9000
3695
eff.RotSpeed = NumberRange.new(-500,500)
3696
wait(1)
3697
eff.Enabled = false
3698
end))
3699
sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
3700
sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
3701
slash(math.random(10,50)/10,5,true,"Round","Add","Out",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(absval/2,0.01,absval/2),math.random(50,5000)/100,BrickColor.new("Really black"))
3702
MagniDamage(ba, 100, 500,60000, 0, "Normal")
3703
end
3704
for z = 0, 2 do
3705
for i = 0,4,0.1 do
3706
swait()
3707
rval = rval + math.random(30,40)
3708
obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
3709
CameraEnshaking(1,1)
3710
msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
3711
msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
3712
outerscale = outerscale + 0.015
3713
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
3714
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
3715
ray = Ray.new(
3716
	    orb.CFrame.p,                           -- origin
3717
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
3718
	) 
3719
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3720
distance = (orb.CFrame.p - position).magnitude
3721
if typrot == 1 then
3722
rotation = rotation + 2.5
3723
elseif typrot == 2 then
3724
rotation = rotation - 2.5
3725
end
3726
3727
a.Size = Vector3.new(distance, 1, 1)
3728
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3729
a2.Size = Vector3.new(distance, 1, 1)
3730
a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3731
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3732
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
3733
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
3734
absval = absval + 0.005
3735
coroutine.resume(coroutine.create(function()
3736
local eff = Instance.new("ParticleEmitter",ba)
3737
eff.Texture = "rbxassetid://284205403"
3738
eff.LightEmission = 0.95
3739
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3740
eff.Rate = 10000
3741
eff.Lifetime = NumberRange.new(5)
3742
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
3743
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3744
eff.Speed = NumberRange.new(600,1250)
3745
eff.Drag = 5
3746
eff.Rotation = NumberRange.new(-500,500)
3747
eff.VelocitySpread = 9000
3748
eff.RotSpeed = NumberRange.new(-500,500)
3749
wait(1)
3750
eff.Enabled = false
3751
end))
3752
slash(math.random(10,50)/10,5,true,"Round","Add","Out",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(absval/2,0.01,absval/2),math.random(50,5000)/100,BrickColor.new("Really black"))
3753
sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
3754
sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
3755
MagniDamage(ba, 100, 500,60000, 0, "Normal")
3756
end
3757
for i = 0,4,0.1 do
3758
swait()
3759
rval = rval + math.random(30,40)
3760
obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
3761
CameraEnshaking(1,1)
3762
msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
3763
msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
3764
outerscale = outerscale - 0.015
3765
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
3766
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
3767
ray = Ray.new(
3768
	    orb.CFrame.p,                           -- origin
3769
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
3770
	) 
3771
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3772
distance = (orb.CFrame.p - position).magnitude
3773
if typrot == 1 then
3774
rotation = rotation + 2.5
3775
elseif typrot == 2 then
3776
rotation = rotation - 2.5
3777
end
3778
3779
a.Size = Vector3.new(distance, 1, 1)
3780
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3781
a2.Size = Vector3.new(distance, 1, 1)
3782
a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3783
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3784
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
3785
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
3786
absval = absval + 0.005
3787
coroutine.resume(coroutine.create(function()
3788
local eff = Instance.new("ParticleEmitter",ba)
3789
eff.Texture = "rbxassetid://284205403"
3790
eff.LightEmission = 0.95
3791
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3792
eff.Rate = 10000
3793
eff.Lifetime = NumberRange.new(5)
3794
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
3795
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3796
eff.Speed = NumberRange.new(600,1250)
3797
eff.Drag = 5
3798
eff.Rotation = NumberRange.new(-500,500)
3799
eff.VelocitySpread = 9000
3800
eff.RotSpeed = NumberRange.new(-500,500)
3801
wait(1)
3802
eff.Enabled = false
3803
end))
3804
slash(math.random(10,50)/10,5,true,"Round","Add","Out",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(absval/2,0.01,absval/2),math.random(50,5000)/100,BrickColor.new("Really black"))
3805
sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
3806
sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
3807
MagniDamage(ba, 100, 500,60000, 0, "Normal")
3808
end
3809
end
3810
for i = 0,4,0.1 do
3811
swait()
3812
rval = rval + math.random(30,40)
3813
obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
3814
CameraEnshaking(1,1)
3815
msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
3816
msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
3817
xd.Volume = xd.Volume - 0.025
3818
a.Transparency = a.Transparency + 0.025
3819
a2.Transparency = a2.Transparency + 0.025
3820
outerscale = outerscale - 0.015
3821
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
3822
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
3823
ray = Ray.new(
3824
	    orb.CFrame.p,                           -- origin
3825
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
3826
	) 
3827
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3828
distance = (orb.CFrame.p - position).magnitude
3829
if typrot == 1 then
3830
rotation = rotation + 2.5
3831
elseif typrot == 2 then
3832
rotation = rotation - 2.5
3833
end
3834
3835
a.Size = Vector3.new(distance, 1, 1)
3836
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3837
a2.Size = Vector3.new(distance, 1, 1)
3838
a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3839
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3840
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
3841
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
3842
absval = absval + 0.005
3843
coroutine.resume(coroutine.create(function()
3844
local eff = Instance.new("ParticleEmitter",ba)
3845
eff.Texture = "rbxassetid://284205403"
3846
eff.LightEmission = 0.95
3847
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3848
eff.Rate = 10000
3849
eff.Lifetime = NumberRange.new(5)
3850
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
3851
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3852
eff.Speed = NumberRange.new(600,1250)
3853
eff.Drag = 5
3854
eff.Rotation = NumberRange.new(-500,500)
3855
eff.VelocitySpread = 9000
3856
eff.RotSpeed = NumberRange.new(-500,500)
3857
wait(1)
3858
eff.Enabled = false
3859
end))
3860
slash(math.random(10,50)/10,5,true,"Round","Add","Out",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(absval/2,0.01,absval/2),math.random(50,5000)/100,BrickColor.new("Really black"))
3861
sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
3862
sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
3863
MagniDamage(ba, 100, 500,60000, 0, "Normal")
3864
end
3865
for i = 0,10 do
3866
swait()
3867
rval = rval + math.random(30,40)
3868
obj1.Transparency = obj1.Transparency + 0.05
3869
obj1.Size = obj1.Size - vt(1.8,1.8,0.3)
3870
obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
3871
end
3872
xd:Destroy()
3873
obj1:Destroy()
3874
a:Destroy()
3875
a2:Destroy()
3876
ba:Destroy()
3877
orb:Destroy()
3878
orbe:Destroy()
3879
attack = false
3880
end
3881
function attackone()
3882
attack = true
3883
for i = 0,1,0.1 do
3884
swait()
3885
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(5),math.rad(-10)),.5)
3886
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(20),math.rad(-10)),.5)
3887
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.1)*angles(math.rad(5),math.rad(0),math.rad(-45)),.5)
3888
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(45)),.5)
3889
RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(50)),.5)
3890
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(20),math.rad(10),math.rad(-30)),.5)
3891
end
3892
CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
3893
3894
local hitb = Instance.new("Part", char)
3895
hitb.Anchored = true
3896
hitb.CanCollide = false
3897
hitb.FormFactor = 3
3898
hitb.Name = "Ring"
3899
hitb.Material = "Neon"
3900
hitb.Size = Vector3.new(1, 1, 1)
3901
hitb.Transparency = 1
3902
hitb.TopSurface = 0
3903
hitb.BottomSurface = 0
3904
hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
3905
MagniDamage(hitb, 3, 10,30, 0, "Normal")
3906
hitb:Destroy()
3907
for i = 0,1,0.1 do
3908
swait()
3909
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(0)),.5)
3910
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(0)),.5)
3911
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(55)),.5)
3912
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-55)),.5)
3913
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.6)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
3914
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-10)),.5)
3915
end
3916
attack = false
3917
end
3918
3919
function attacktwo()
3920
for i = 0,1,0.1 do
3921
swait()
3922
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(30),math.rad(0),math.rad(0)),0.2)
3923
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
3924
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
3925
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
3926
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-0),math.rad(0),math.rad(0)),.5)
3927
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(30),math.rad(-90),math.rad(0))*angles(math.rad(-0),math.rad(0),math.rad(0)),.5)
3928
end
3929
attack = true
3930
CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
3931
local hitb = Instance.new("Part", char)
3932
hitb.Anchored = true
3933
hitb.CanCollide = false
3934
hitb.FormFactor = 3
3935
hitb.Name = "Ring"
3936
hitb.Material = "Neon"
3937
hitb.Size = Vector3.new(1, 1, 1)
3938
hitb.Transparency = 1
3939
hitb.TopSurface = 0
3940
hitb.BottomSurface = 0
3941
hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
3942
MagniDamage(hitb, 3, 10,30, 0, "Normal")
3943
hitb:Destroy()
3944
for i = 0,1,0.1 do
3945
swait()
3946
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-30),math.rad(0),math.rad(0)),0.2)
3947
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
3948
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
3949
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
3950
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(90),math.rad(90),math.rad(0))*angles(math.rad(-0),math.rad(0),math.rad(0)),.5)
3951
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(0))*angles(math.rad(-0),math.rad(0),math.rad(0)),.5)
3952
end
3953
attack = false
3954
end
3955
3956
function hopeburst()
3957
hum.WalkSpeed = 0
3958
attack = true
3959
for x = 0, 10 do
3960
for i = 0, 1, 0.6 do
3961
swait()
3962
sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR)
3963
slash(math.random(10,50)/10,5,true,"Round","Add","Out",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,250)/250,BrickColor.new("White"))
3964
3965
hum.CameraOffset = vt(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)
3966
RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
3967
LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
3968
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.8)
3969
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
3970
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(97)),.8)
3971
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-27),math.rad(0),math.rad(-98)),.8)
3972
end
3973
for i = 0, 1, 0.6 do
3974
swait()
3975
sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR)
3976
slash(math.random(10,50)/10,5,true,"Round","Add","Out",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,250)/250,BrickColor.new("White"))
3977
3978
hum.CameraOffset = vt(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)
3979
RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
3980
LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
3981
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.8)
3982
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
3983
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(97)),.8)
3984
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-27),math.rad(0),math.rad(-98)),.8)
3985
end
3986
for i = 0, 1, 0.6 do
3987
swait()
3988
sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR)
3989
slash(math.random(10,50)/10,5,true,"Round","Add","Out",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,250)/250,BrickColor.new("White"))
3990
hum.CameraOffset = vt(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)
3991
RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
3992
LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
3993
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.8)
3994
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
3995
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(97)),.8)
3996
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-27),math.rad(0),math.rad(-98)),.8)
3997
end
3998
for i = 0, 1, 0.6 do
3999
swait()
4000
sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR)
4001
slash(math.random(10,50)/10,5,true,"Round","Add","Out",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,250)/250,BrickColor.new("White"))
4002
hum.CameraOffset = vt(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)
4003
RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
4004
LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
4005
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.8)
4006
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
4007
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(97)),.8)
4008
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-27),math.rad(0),math.rad(-98)),.8)
4009
end
4010
end
4011
sphere2(4,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),10,10,10,MAINRUINCOLOR)
4012
4013
CFuncs["Sound"].Create("rbxassetid://1368637781", char, 5, 0.25)
4014
CFuncs["Sound"].Create("rbxassetid://1368637781", char, 5, 0.5)
4015
CFuncs["Sound"].Create("rbxassetid://1368637781", char, 5, 0.75)
4016
CFuncs["Sound"].Create("rbxassetid://1368637781", char, 7.5, 1)
4017
CFuncs["Sound"].Create("rbxassetid://1368605755", char, 7.5, 1)
4018
CFuncs["Sound"].Create("rbxassetid://763718160", char, 10, 0.5)
4019
CFuncs["Sound"].Create("rbxassetid://763718160", char, 10, 0.25)
4020
CFuncs["Sound"].Create("rbxassetid://782353443", char, 10, 1)
4021
CFuncs["Sound"].Create("rbxassetid://782353443", char, 10, 0.75)
4022
CFuncs["LongSound"].Create("rbxassetid://782353443", char, 10, 0.5)
4023
CFuncs["LongSound"].Create("rbxassetid://782353443", char, 10, 0.25)
4024
for i, v in pairs(FindNearestHead(root.CFrame.p, 1000000000)) do
4025
if v:FindFirstChild('Head') then
4026
dmg(v)
4027
end
4028
end
4029
for i = 0,4 do
4030
slash(math.random(10,30)/10,5,true,"Round","Add","Out",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,2500)/250,BrickColor.new("White"))
4031
slash(math.random(10,30)/10,5,true,"Round","Add","Out",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,2500)/250,BrickColor.new("White"))
4032
slash(math.random(10,30)/10,5,true,"Round","Add","Out",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,2500)/250,BrickColor.new("White"))
4033
end
4034
attack = false
4035
hum.WalkSpeed = storehumanoidWS
4036
end
4037
4038
function attackthree()
4039
	attack = true
4040
	for i = 0, 2, 0.1 do
4041
		swait()
4042
		RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
4043
		LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
4044
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
4045
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
4046
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
4047
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
4048
	end
4049
	CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
4050
	CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
4051
	for i, v in pairs(FindNearestHead(Torso.CFrame.p, 25)) do
4052
		if v:FindFirstChild("Head") then
4053
			dmg(v)
4054
		end
4055
	end
4056
	sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, MAINRUINCOLOR)
4057
	sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, MAINRUINCOLOR)
4058
	sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(25, 0.01, 25), 0.01, MAINRUINCOLOR)
4059
	for i = 0, 2, 0.1 do
4060
		swait()
4061
		sphereMK(4, 0.75, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -5, math.random(-25, 25)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-1, 1))), math.rad(math.random(-1, 1)), math.rad(math.random(-1, 1))), 2.5, 2.5, 2.5, -0.025, MAINRUINCOLOR, 0)
4062
		RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
4063
		LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
4064
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
4065
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
4066
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
4067
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
4068
	end
4069
	attack = false
4070
end
4071
4072
-------------------------------------
4073
4074
Humanoid.Animator.Parent = nil
4075
4076
-------------------------------------
4077
4078
local attacktype = 1
4079
  if attack == false and attacktype == 1 then
4080
    attacktype = 2
4081
    attackone()
4082
  elseif attack == false and attacktype == 2 then
4083
    attacktype = 3
4084
    attacktwo()
4085
  elseif attack == false and attacktype == 3 then
4086
    attacktype = 1
4087
    attackthree()
4088
  elseif attack == false and attacktype == 4 then
4089
    attacktype = 1
4090
    --attackfour()
4091
  end
4092
if k == "q" and attack == false and ModeOfGlitch ~= 1 then
4093
ModeOfGlitch = 1
4094
storehumanoidWS = 20
4095
hum.WalkSpeed = 20
4096
rainbowmode = false
4097
MAINRUINCOLOR = BrickColor.new"Really red"
4098
MAINRUINCOLOR2 = BrickColor.new"Really black"
4099
sword = false
4100
newTheme("rbxassetid://2639726704",0,1,1.25)
4101
RecolorTextAndRename("INCREATION",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4102
end
4103
if k == "e" and attack == false and ModeOfGlitch ~= 2 then
4104
ModeOfGlitch = 2
4105
storehumanoidWS = 70
4106
hum.WalkSpeed = 70
4107
rainbowmode = false
4108
MAINRUINCOLOR = BrickColor.new"Toothpaste"
4109
MAINRUINCOLOR2 = BrickColor.new"Navy blue"
4110
sword = false
4111
newTheme("rbxassetid://580367180",0,1,1.25) -- 580367180 , 170020261
4112
RecolorTextAndRename("RESELMBLANCE",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4113
end
4114
if k == "r" and attack == false and ModeOfGlitch ~= 3 then
4115
ModeOfGlitch = 3
4116
storehumanoidWS = 20
4117
hum.WalkSpeed = 20
4118
rainbowmode = false
4119
MAINRUINCOLOR = BrickColor.new"Hot pink"
4120
MAINRUINCOLOR2 = BrickColor.new"Pink"
4121
newTheme("rbxassetid://1426044282",0,1,1.25)
4122
if plr.Name == "wanTH092" then
4123
RecolorTextAndRename("CAKECOO",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4124
elseif plr.Name == "TameDoNotClick" then
4125
RecolorTextAndRename("CONFESSION",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4126
sword = true
4127
newTheme("rbxassetid://1067833276",0,1,1.25) --1067833276
4128
elseif plr.Name ~= "wanTH092" or plr.Name ~= "TameDoNotClick" then
4129
sword = false
4130
RecolorTextAndRename("IDOLIZATION",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4131
end
4132
end
4133
if k == "t" and attack == false and ModeOfGlitch ~= 4 then
4134
ModeOfGlitch = 4
4135
storehumanoidWS = 20
4136
hum.WalkSpeed = 20
4137
rainbowmode = false
4138
sword = false
4139
MAINRUINCOLOR = BrickColor.new"Lime green"
4140
MAINRUINCOLOR2 = BrickColor.new"New Yeller"
4141
newTheme("rbxassetid://2569365263",0,1,1.25)
4142
RecolorTextAndRename("FLUORESCENT",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4143
end
4144
if k == "y" and attack == false and ModeOfGlitch ~= 5 then
4145
ModeOfGlitch = 5
4146
storehumanoidWS = 70
4147
hum.WalkSpeed = 70
4148
rainbowmode = false
4149
sword = false
4150
MAINRUINCOLOR = BrickColor.new"Pink"
4151
MAINRUINCOLOR2 = BrickColor.new"White"
4152
newTheme("rbxassetid://2483763576",0,1,1.25)
4153
RecolorTextAndRename("REALITY",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4154
end
4155
if k == "f" and attack == false and ModeOfGlitch ~= 7 then
4156
ModeOfGlitch = 7
4157
storehumanoidWS = 30
4158
hum.WalkSpeed = 30
4159
rainbowmode = false
4160
sword = false
4161
MAINRUINCOLOR = BrickColor.new"Medium stone grey"
4162
MAINRUINCOLOR2 = BrickColor.new"White"
4163
newTheme("rbxassetid://2404024634",0,1,1.25)
4164
RecolorTextAndRename("RELAXATION",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4165
end
4166
if k == "u" and attack == false and ModeOfGlitch ~= 6 then
4167
ModeOfGlitch = 6
4168
storehumanoidWS = 20
4169
hum.WalkSpeed = 20
4170
rainbowmode = false
4171
sword = false
4172
MAINRUINCOLOR = BrickColor.new"Really black"
4173
MAINRUINCOLOR2 = BrickColor.new"Really black"
4174
newTheme("rbxassetid://2330164404",0,1,1.25)
4175
RecolorTextAndRename("SINGULARITY",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4176
end
4177
if k == "g" and attack == false and ModeOfGlitch ~= 8 then
4178
ModeOfGlitch = 8
4179
storehumanoidWS = 20
4180
hum.WalkSpeed = 20
4181
rainbowmode = false
4182
sword = false
4183
MAINRUINCOLOR = BrickColor.new"Really red"
4184
MAINRUINCOLOR2 = BrickColor.new"Dark blue"
4185
newTheme("rbxassetid://166255269",0,1,1.25)
4186
RecolorTextAndRename("ANNIHILATION",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4187
end
4188
if k == "h" and attack == false and ModeOfGlitch ~= 9 then
4189
ModeOfGlitch = 9
4190
storehumanoidWS = 300
4191
hum.WalkSpeed = 300
4192
rainbowmode = true
4193
sword = false
4194
MAINRUINCOLOR = BrickColor.new"White"
4195
MAINRUINCOLOR2 = BrickColor.new"White"
4196
newTheme("rbxassetid://1425453563",0,1,1.25)
4197
Showoff(0,1.3)
4198
RecolorTextAndRename("HOPE",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4199
end
4200
if k == "j" and attack == false and ModeOfGlitch ~= 10 then
4201
ModeOfGlitch = 10
4202
storehumanoidWS = 20
4203
hum.WalkSpeed = 20
4204
rainbowmode = false
4205
sword = false
4206
MAINRUINCOLOR = BrickColor.new"Dark blue"
4207
MAINRUINCOLOR2 = BrickColor.new"Royal purple"
4208
newTheme("rbxassetid://376565241",0,1,1.25)
4209
Showoff2(0,0.5)
4210
RecolorTextAndRename("PARANOIA",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4211
end
4212
if k == "k" and attack == false and ModeOfGlitch ~= 11 then
4213
ModeOfGlitch = 11
4214
storehumanoidWS = 20
4215
hum.WalkSpeed = 20
4216
rainbowmode = false
4217
sword = false
4218
MAINRUINCOLOR = BrickColor.new"Really black"
4219
MAINRUINCOLOR2 = BrickColor.new"Really black"
4220
newTheme("rbxassetid://435773595",0,1,1.25)
4221
RecolorTextAndRename("SPECTRALIZER",MAINRUINCOLOR2.Color,MAINRUINCOLOR.Color)
4222
end
4223
if k == "l" and mutedtog == false then
4224
mutedtog = true
4225
kan.Volume = 0
4226
elseif k == "l" and mutedtog == true then
4227
mutedtog = false
4228
kan.Volume = 1.25
4229
end
4230
if k == "z" and attack == false and ModeOfGlitch == 2 then
4231
Balanced()
4232
elseif k == "z" and attack == false and ModeOfGlitch == 3 and swordy == false then
4233
Staywey()
4234
elseif k == "z" and attack == false and ModeOfGlitch == 1 then
4235
BURNYS()
4236
elseif k == "z" and attack == false and ModeOfGlitch == 4 then
4237
asd421()
4238
elseif k == "v" and attack == false and ModeOfGlitch == 7 then
4239
heartbeatatmyfeeties()
4240
elseif k == "x" and attack == false and ModeOfGlitch == 9 then
4241
--hopeburst()
4242
end
4243
4244
plr.Chatted:connect(function(message)
4245
if message:sub(1,3) == "id/" then
4246
ORGID = message:sub(4)
4247
kan.TimePosition = 0
4248
kan:Play()
4249
elseif message:sub(1,6) == "pitch/" then
4250
ORPIT = message:sub(7)
4251
elseif message:sub(1,4) == "vol/" then
4252
ORVOL = message:sub(5)
4253
elseif message:sub(1,7) == "skipto/" then
4254
kan.TimePosition = message:sub(8)
4255
end
4256
end)
4257
4258
coroutine.resume(coroutine.create(function()
4259
while true do
4260
swait()
4261
if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 9 then
4262
for i, v in pairs(gunty:GetChildren()) do
4263
if v:IsA("Part") then
4264
    v.BrickColor = MAINRUINCOLOR
4265
end
4266
end
4267
for i, v in pairs(gunty2:GetChildren()) do
4268
if v:IsA("Part") then
4269
    v.BrickColor = MAINRUINCOLOR2
4270
end
4271
end
4272
for i, v in pairs(glovey:GetChildren()) do
4273
if v:IsA("Part") then
4274
    v.BrickColor = MAINRUINCOLOR
4275
end
4276
end
4277
elseif ModeOfGlitch == 6 then
4278
for i, v in pairs(gunty:GetChildren()) do
4279
if v:IsA("Part") then
4280
    v.Color = Color3.new(math.random(0,1),0,0)
4281
end
4282
end
4283
for i, v in pairs(gunty2:GetChildren()) do
4284
if v:IsA("Part") then
4285
    v.Color = Color3.new(math.random(0,1),0,0)
4286
end
4287
end
4288
for i, v in pairs(glovey:GetChildren()) do
4289
if v:IsA("Part") then
4290
    v.Color = Color3.new(math.random(0,1),0,0)
4291
end
4292
end
4293
ned.TextStrokeColor3 = Color3.new(math.random(0,1),0,0)
4294
techc2.ImageColor3 = Color3.new(math.random(0,1),0,0)
4295
circl.ImageColor3 = Color3.new(math.random(0,1),0,0)
4296
imgl2b.ImageColor3 = Color3.new(math.random(0,1),0,0)
4297
imgl2.ImageColor3 = Color3.new(math.random(0,1),0,0)
4298
ned.TextColor3 = Color3.new(math.random(0,1),0,0)
4299
elseif ModeOfGlitch == 9 then
4300
for i, v in pairs(gunty:GetChildren()) do
4301
if v:IsA("Part") then
4302
    v.Color = Color3.new(r/255,g/255,b/255)
4303
end
4304
end
4305
for i, v in pairs(gunty2:GetChildren()) do
4306
if v:IsA("Part") then
4307
    v.Color = Color3.new(r/255,g/255,b/255)
4308
end
4309
end
4310
for i, v in pairs(glovey:GetChildren()) do
4311
if v:IsA("Part") then
4312
    v.Color = Color3.new(r/255,g/255,b/255)
4313
end
4314
end
4315
ned.TextStrokeColor3 = Color3.new(r/500,g/500,b/500)
4316
techc2.ImageColor3 = Color3.new(r/500,g/500,b/500)
4317
circl.ImageColor3 = Color3.new(r/255,g/255,b/255)
4318
imgl2b.ImageColor3 = Color3.new(r/500,g/500,b/500)
4319
imgl2.ImageColor3 = Color3.new(r/255,g/255,b/255)
4320
ned.TextColor3 = Color3.new(r/255,g/255,b/255)
4321
circl2.ImageColor3 = Color3.new(r/255,g/255,b/255)
4322
techc.ImageColor3 = Color3.new(r/500,g/500,b/500)
4323
end
4324
end
4325
end))
4326
4327
Humanoid.Name = "EMPHASIS"
4328
Humanoid.MaxHealth = math.huge
4329
Humanoid.Health = math.huge
4330
Instance.new("ForceField",char).Visible = false
4331
4332
4333
idleanim=.4
4334
while true do
4335
if mutedtog == false then
4336
kan.Volume = ORVOL
4337
elseif mutedtog == true then
4338
kan.Volume = 0
4339
end
4340
kan.PlaybackSpeed = ORPIT
4341
kan.Pitch = ORPIT
4342
kan.Looped = true
4343
kan.Parent = char
4344
kan:Resume()
4345
techc.Rotation = techc.Rotation + 1
4346
circl.Rotation = circl.Rotation - kan.PlaybackLoudness/100 - 1
4347
circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/75 + 1
4348
imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/75 + 1
4349
techc2.Rotation = techc2.Rotation + kan.PlaybackLoudness/50 - 1
4350
--mdir.Position = UDim2.new(-0.414, 0, 0.918 + 0.005 * math.cos(sine / 35), 0)
4351
--mdir.Rotation = 0 - 1 * math.cos(sine / 25)
4352
ned.Rotation = 0 - 2 * math.cos(sine / 32)
4353
ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
4354
CameraManager()
4355
swait()
4356
modet.Text = ned.Text
4357
modet.Rotation = -7 * math.cos(sine / 32)
4358
modet.TextColor3 = ned.TextColor3
4359
modet.TextStrokeColor3 = ned.TextStrokeColor3
4360
--------------- Visualiser Zone
4361
if ModeOfGlitch == 11 then
4362
modet.TextColor3 = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
4363
for i, v in pairs(glovey:GetChildren()) do
4364
if v:IsA("Part") then
4365
v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
4366
end
4367
end
4368
for i, v in pairs(gunty:GetChildren()) do
4369
if v:IsA("Part") then
4370
v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
4371
end
4372
end
4373
for i, v in pairs(gunty2:GetChildren()) do
4374
if v:IsA("Part") then
4375
v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
4376
v.Material = "Neon"
4377
end
4378
end
4379
end
4380
---------------
4381
 sine = sine + change
4382
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
4383
local velderp=RootPart.Velocity.y
4384
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
4385
coroutine.resume(coroutine.create(function()
4386
if hitfloor ~= nil then
4387
if ModeOfGlitch ~= 2 and ModeOfGlitch ~= 7 and ModeOfGlitch ~= 5 then
4388
sphereMK(10,math.random(10,25)/45,"Add",root.CFrame*CFrame.new(math.random(-20,20),-5,math.random(-20,20))*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),0.25,0.25,8,0,MAINRUINCOLOR,0)
4389
sphereMK(10,math.random(10,25)/45,"Add",root.CFrame*CFrame.new(math.random(-20,20),-5,math.random(-20,20))*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),0.25,0.25,8,0,MAINRUINCOLOR2,0)
4390
elseif ModeOfGlitch == 2 then
4391
sphereMK(10,math.random(10,25)/45,"Add",root.CFrame*CFrame.new(math.random(-20,20),-5,math.random(-20,20))*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),0.5,0.5,0.5,0,MAINRUINCOLOR,0)
4392
sphereMK(10,math.random(10,25)/45,"Add",root.CFrame*CFrame.new(math.random(-20,20),-5,math.random(-20,20))*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),0.5,0.5,0.5,0,MAINRUINCOLOR2,0)
4393
swait(1)
4394
rotperm = rotperm + kan.PlaybackLoudness/100 - 0.5
4395
sphere2(8,"Add",root.CFrame*CFrame.Angles(math.rad(rotperm),math.rad(rotperm),0)*CFrame.new(0,0,5),vt(1,1,1),-0.005,-0.005,-0.005,MAINRUINCOLOR)
4396
sphere2(8,"Add",root.CFrame*CFrame.Angles(math.rad(0 + rotperm),math.rad(180 + rotperm),0)*CFrame.new(0,0,5),vt(1,1,1),-0.005,-0.005,-0.005,MAINRUINCOLOR)
4397
sphere2(10,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.1,0.01,0.1,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
4398
elseif ModeOfGlitch == 5 then
4399
sphereMK(10,math.random(10,25)/45,"Add",root.CFrame*CFrame.new(math.random(-20,20),-5,math.random(-20,20))*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),0.25,0.25,8,0,MAINRUINCOLOR,0)
4400
sphereMK(10,math.random(10,25)/45,"Add",root.CFrame*CFrame.new(math.random(-20,20),-5,math.random(-20,20))*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),0.25,0.25,8,0,MAINRUINCOLOR2,0)
4401
waveEff(20,"Add","In",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(15,0.25,15),-0.075,0.05,BrickColor.new("White"))
4402
slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,100)/250,BrickColor.new("White"))
4403
elseif ModeOfGlitch == 7 then
4404
sphereMK(10,math.random(15,45)/45,"Add",root.CFrame*CFrame.new(math.random(-50,50),-40,math.random(-50,50))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,60,-0.01,MAINRUINCOLOR,0)
4405
end
4406
end
4407
end))
4408
if equipped==true or equipped==false then
4409
if attack==false then
4410
idle=idle+1
4411
else
4412
idle=0
4413
end
4414
if idle>=500 then
4415
if attack==false then
4416
--Sheath()
4417
end
4418
end
4419
if RootPart.Velocity.y > 1 and hitfloor==nil then 
4420
Anim="Jump"
4421
if attack==false then
4422
RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
4423
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
4424
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
4425
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
4426
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
4427
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
4428
end
4429
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
4430
Anim="Fall"
4431
if attack==false then
4432
RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
4433
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
4434
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
4435
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
4436
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
4437
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
4438
end
4439
elseif torvel<1 and hitfloor~=nil then
4440
Anim="Idle"
4441
if attack==false then
4442
if ModeOfGlitch == 1 then
4443
local snapp = math.random(1,25)
4444
if snapp == 5 then
4445
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - math.random(1,40)),math.rad(0 - math.random(1,40)),math.rad(-30 + math.random(1,40))),.1)
4446
end
4447
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4448
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4449
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
4450
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-30)),.1)
4451
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(180),math.rad(0),math.rad(-20)),.1)
4452
LW.C0=clerp(LW.C0,cf(-1.,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(0),math.rad(20)),.1)
4453
elseif ModeOfGlitch == 2 then
4454
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
4455
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
4456
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),2 + 0.45 * math.cos(sine / 18))*angles(math.rad(0 - 2 * math.cos(sine / 18)),math.rad(0),math.rad(0)),.1)
4457
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
4458
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(40 - 5 * math.cos(sine/28))),.1)
4459
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(-40 + 5 * math.cos(sine/28))),.1)
4460
elseif ModeOfGlitch == 3 then
4461
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(-10),math.rad(100),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4462
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4463
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
4464
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
4465
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(20)),.1)
4466
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
4467
elseif ModeOfGlitch == 5 then -- Visualality
4468
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
4469
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
4470
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),2 + 0.45 * math.cos(sine / 18))*angles(math.rad(0 - 2 * math.cos(sine / 18)),math.rad(0),math.rad(90)),.1)
4471
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-90 + 2 * math.cos(sine / 53))),.1)
4472
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(-200 + 1 * math.cos(sine/28))),.1)
4473
RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
4474
elseif ModeOfGlitch == 4 then
4475
local snappt = math.random(1,10)
4476
if snappt == 5 then
4477
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - math.random(1,40)),math.rad(0 - math.random(1,40)),math.rad(0 + math.random(1,40))),.1)
4478
end
4479
sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.005,-0.005,BrickColor.new("Lime green"),Color3.new(0,1,0))
4480
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4481
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4482
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
4483
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
4484
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(20)),.1)
4485
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
4486
elseif ModeOfGlitch == 6 then
4487
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(30),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4488
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(30),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4489
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
4490
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-30)),.1)
4491
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
4492
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
4493
elseif ModeOfGlitch == 7 then
4494
RH.C0 = clerp(RH.C0, cf(1, -1 + 0.01 * math.cos(sine / 32), 0) * angles(math.rad(-5 - 0.1 * math.cos(sine / 32)), math.rad(90 + 12.5 * math.cos(sine / 52)), math.rad(0 + .25 * math.cos(sine / 25))), 0.1)
4495
LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.01 * math.cos(sine / 32), 0) * angles(math.rad(-10 - 0.1 * math.cos(sine / 32)), math.rad(-90 - 12.5 * math.cos(sine / 52)), math.rad(0 - .25 * math.cos(sine / 25))), 0.1)
4496
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2 + 2 * math.cos(sine / 52)) * angles(math.rad(-79 + 2 * math.cos(sine / 32)), math.rad(0), math.rad(0)), 0.1)
4497
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 0.1 * math.cos(sine / 32)), math.rad(0 - 0.1 * math.cos(sine / 0.25)), math.rad(-20 - 0.1 * math.cos(sine / 0.465))), 0.1)
4498
RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(190 + 12.5 * math.cos(sine / 52)), math.rad(20 + 2.5 * math.cos(sine / 25)), math.rad(30 + 2.5 * math.cos(sine / 25))), 0.1)
4499
LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(190 + 12.5 * math.cos(sine / 52)), math.rad(-20 + -2.5 * math.cos(sine / 25)), math.rad(-25 + -2.5 * math.cos(sine / 25))), 0.1)
4500
elseif ModeOfGlitch == 8 then
4501
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0* Player_Size, 0* Player_Size, -0.1 + 0.05* Player_Size * math.cos(sine / 18)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.08)
4502
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko* cf(0, 0, 0 + ((1* Player_Size) - 1)) * angles(math.rad(15 - 4.5 * math.sin(sine / 18)), math.rad(15 - 4.5 * math.sin(sine / 18)), math.rad(5 - 20 * math.sin(sine / 18))), 0.08)
4503
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.2 * math.cos(sine / 18),0)*angles(math.rad(0),math.rad(0),math.rad(5 + 8 * math.sin(sine/18))),.1)
4504
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.2 * math.cos(sine / 18),0)*angles(math.rad(0),math.rad(0),math.rad(-5 - 8 * math.sin(sine/18))),.1)
4505
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 18),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4506
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 18),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
4507
elseif ModeOfGlitch == 9 then
4508
RH.C0 = clerp(RH.C0, cf(1, -0.7 - 0.05 * math.cos(sine / 28), -0.2) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0 + .01 * math.cos(sine / 34))), 0.1)
4509
LH.C0 = clerp(LH.C0, cf(-1, -0.2 - 0.05 * math.cos(sine / 28), -0.4) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 0.01 * math.cos(sine / 34))), 0.1)
4510
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2 + 0.3 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(-35)), 0.1)
4511
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(25)), 0.1)
4512
RW.C0 = clerp(RW.C0, cf(1, 0.5 + 0.01 * math.cos(sine / 28), -0.4) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(-10 - 2.5 * math.cos(sine / 28))), 0.1)
4513
LW.C0 = clerp(LW.C0, cf(-1.2, 0.5 + 0.01 * math.cos(sine / 28), 0) * angles(math.rad(45 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(-90 + 2.5 * math.cos(sine / 28))), 0.1)
4514
elseif ModeOfGlitch == 10 then
4515
RH.C0 = clerp(RH.C0, cf(1, -0.2 - 0.025 * math.cos(sine / 32), -0.75) * angles(math.rad(-25), math.rad(90), math.rad(0)), 0.1)
4516
LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(-25), math.rad(-90), math.rad(0)), 0.1)
4517
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.025 * math.cos(sine / 32)) * angles(math.rad(-20 + 0.5 * math.cos(sine / 32)), math.rad(0), math.rad(0 - 5 * math.cos(sine / 0.5658))), 0.1)--rootjoint
4518
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30 - 5 * math.cos(sine / 0.5265)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 - 5 * math.cos(sine / 0.465))), 0.1)
4519
RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(96 + 2.5 * math.cos(sine / 0.252)), math.rad(0 + 2.5 * math.cos(sine / 0.123)), math.rad(-35 + 2.5 * math.cos(sine / 0.6))), 0.1)
4520
LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(132 + 2.5 * math.cos(sine / 0.568)), math.rad(0 + 2.5 * math.cos(sine / 0.664)), math.rad(45 + 2.5 * math.cos(sine / 0.23))), 0.1)
4521
elseif ModeOfGlitch == 11 then
4522
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
4523
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
4524
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(30)),.4)
4525
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-30)),.4)
4526
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(140 + 5 * math.cos(sine / 34) - kan.PlaybackLoudness/7.5),math.rad(0),math.rad(28 - 2 * math.cos(sine / 38))),.4)
4527
LW.C0=clerp(LW.C0,cf(-1.2,0.5 + 0.05 * math.cos(sine / 28),0.3)*angles(math.rad(-30),math.rad(0),math.rad(20)),.1)     
4528
4529
end
4530
end
4531
elseif torvel>2 and torvel<22 and hitfloor~=nil then
4532
Anim="Walk"
4533
if attack==false then
4534
if ModeOfGlitch ~= 1 and ModeOfGlitch ~= 6 then
4535
RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
4536
LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
4537
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
4538
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(7 - 5 * math.cos(sine / 60)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
4539
RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 5 * math.cos(sine / 4))),.1)
4540
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 15 * math.cos(sine / 4))),.1)
4541
elseif ModeOfGlitch == 1 then
4542
RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
4543
LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
4544
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
4545
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(7 - 5 * math.cos(sine / 60)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
4546
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(-20)),.1)
4547
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 15 * math.cos(sine / 4))),.1)
4548
elseif ModeOfGlitch == 6 then
4549
RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(30),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
4550
LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(30),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
4551
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(30 + 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
4552
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(7 - 5 * math.cos(sine / 60)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
4553
RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(30 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 5 * math.cos(sine / 4))),.1)
4554
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(30 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 15 * math.cos(sine / 4))),.1)
4555
end
4556
end
4557
elseif torvel>=22 and hitfloor~=nil then
4558
Anim="Run"
4559
if attack==false then
4560
if ModeOfGlitch ~= 2 and ModeOfGlitch ~= 5 and ModeOfGlitch ~= 7 and ModeOfGlitch ~= 9 then
4561
RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
4562
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
4563
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1)
4564
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
4565
RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
4566
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
4567
elseif ModeOfGlitch == 2 or ModeOfGlitch == 5 or  ModeOfGlitch == 9 then
4568
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
4569
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
4570
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
4571
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
4572
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
4573
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
4574
elseif ModeOfGlitch == 7 then
4575
RH.C0=clerp(RH.C0,cf(1,-0.5,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
4576
LH.C0=clerp(LH.C0,cf(-1,-0.5,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
4577
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5, 2 + 2 * math.cos(sine / 52))*angles(math.rad(60),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
4578
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
4579
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-50 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
4580
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(50 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
4581
4582
end
4583
end
4584
end
4585
end
4586
end