View difference between Paste ID: muGKQwiT and rHnyscdi
SHOW: | | - or go back to the newest paste.
1-
local Player = game:service'Players':WaitForChild'DavidGrativol'
1+
local Player = game:service'Players':WaitForChild'carlosname125471'
2
local FakeMouse = script.FakeMouse:Clone();
3
FakeMouse.Parent = Player.Character;
4
script.FakeMouse:Destroy()
5
do
6
	local GUID = {}
7
	do
8
	    GUID.IDs = {};
9
	    function GUID:new(len)
10
	        local id;
11
	        if(not len)then
12
	            id = (tostring(function() end))
13
	            id = id:gsub("function: ","")
14
	        else
15
	            local function genID(len)
16
	                local newID = ""
17
	                for i = 1,len do
18
	                    newID = newID..string.char(math.random(48,90))
19
	                end
20
	                return newID
21
	            end
22
	            repeat id = genID(len) until not GUID.IDs[id]
23
				local oid = id;
24
				id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
25
	            GUID.IDs[oid]=true;
26
	        end
27
	        return id
28
	    end
29
	end
30
31
	local AHB = Instance.new("BindableEvent")
32
	
33
	local FPS = 30
34
	
35
	local TimeFrame = 0
36
	
37
	local LastFrame = tick()
38
	local Frame = 1/FPS
39
	
40
	game:service'RunService'.Heartbeat:connect(function(s,p)
41
		TimeFrame = TimeFrame + s
42
		if(TimeFrame >= Frame)then
43
			for i = 1,math.floor(TimeFrame/Frame) do
44
				AHB:Fire()
45
			end
46
			LastFrame=tick()
47
			TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
48
		end
49
	end)
50
51
52
	function swait(dur)
53
		if(dur == 0 or typeof(dur) ~= 'number')then
54
			AHB.Event:wait()
55
		else
56
			for i = 1, dur*FPS do
57
				AHB.Event:wait()
58
			end
59
		end
60
	end
61
	
62
	local oPlayer = Player
63
	local Player = oPlayer
64
	
65
	local loudnesses={}
66
	script.Parent = Player.Character
67
	local CoAS = {Actions={}}
68
	local Event = Instance.new("RemoteEvent")
69
	Event.Name = "UserInputEvent"
70
	Event.Parent = Player.Character
71
	local Func = Instance.new("RemoteFunction")
72
	Func.Name = "GetClientProperty"
73
	Func.Parent = Player.Character
74
	local fakeEvent = function()
75
		local t = {_fakeEvent=true,Waited={},Connected={}}
76
		t.Connect = function(self,f)
77
			local ft={}
78
			ft={Disconnected=false;disconnect=function(s) if(self.Function==ft)then self.Function=nil end s.Disconnected=true end}
79
			ft.Disconnect=ft.disconnect
80
				
81
			ft.Func=function(...)
82
				for id,_ in next, t.Waited do 
83
					t.Waited[id] = true 
84
				end 
85
				return f(...)
86
			end; 
87
			
88
			table.insert(self.Connected,ft)
89
			return ft;
90
		end
91
		t.connect = t.Connect
92
		t.Wait = function() 
93
			local guid = GUID:new(25)
94
			local waitingId = guid:Get()
95
			t.Waited[waitingId]=false
96
			repeat swait() until t.Waited[waitingId]==true  
97
			t.Waited[waitingId]=nil;
98
			guid:Trash()
99
		end
100
		t.wait = t.Wait
101
		return t
102
	end
103
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
104
	local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
105
	local Run = {RenderStepped=fakeEvent()}
106
	
107
	function CoAS:BindAction(name,fun,touch,...)
108
		CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
109
	end
110
	function CoAS:UnbindAction(name)
111
		CoAS.Actions[name] = nil
112
	end
113
	local function te(self,ev,...)
114
		local t = self[ev]
115
		if t and t._fakeEvent and t.Connected then
116
			for i,v in next, t.Connected do
117
				if(v.Func and not v.Disconnected)then
118
					v.Func(...)
119
				else
120
					t.Connected[i]=nil
121
				end
122
			end
123
		end
124
	end
125
	m.TrigEvent = te
126
	UsIS.TrigEvent = te
127
	Run.TrigEvent = te
128
	Event.OnServerEvent:Connect(function(plr,io)
129
	    if plr~=Player then return end
130
		--[[table.foreach(io,print)
131
		print'---']]
132
		if io.Mouse then
133
			m.Target = io.Target
134
			m.Hit = io.Hit
135
		elseif io.KeyEvent then
136
			m:TrigEvent('Key'..io.KeyEvent,io.Key)
137
		elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
138
	        if io.UserInputState == Enum.UserInputState.Begin then
139
				m:TrigEvent("Button1Down")
140
			else
141
				m:TrigEvent("Button1Up")
142
			end
143
		end
144
		if(not io.KeyEvent and not io.Mouse)then
145
			
146
			for n,t in pairs(CoAS.Actions) do
147
				for _,k in pairs(t.Keys) do
148
					if k==io.KeyCode then
149
						t.Function(t.Name,io.UserInputState,io)
150
					end
151
				end
152
			end
153
	        if io.UserInputState == Enum.UserInputState.Begin then
154
				UsIS:TrigEvent("InputBegan",io,false)
155
			else
156
				UsIS:TrigEvent("InputEnded",io,false)
157
	        end
158
	    end
159
	end)
160
		
161
	Func.OnServerInvoke = function(plr,inst,play)
162
		if plr~=Player then return end
163
		if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
164
			loudnesses[inst]=play	
165
		end
166
	end
167
	
168
	function GetClientProperty(inst,prop)
169
		if(prop == 'PlaybackLoudness' and loudnesses[inst])then 
170
			return loudnesses[inst] 
171
		elseif(prop == 'PlaybackLoudness')then
172
			return Func:InvokeClient(Player,'RegSound',inst)
173
		end
174
		return Func:InvokeClient(Player,inst,prop)
175
	end
176
	local oldGame = game;
177
	function GetFakePlayer()
178
							local oldPlayer = Player;
179
	local fakePlayer = newproxy(true)
180
	getmetatable(fakePlayer).__index = function(s,i)
181
		if(i == 'GetMouse')then
182
			return function() return m; end
183
		end
184
		return Player[i]
185
	end
186
	getmetatable(fakePlayer).__newindex = function(s,i,v)
187
		Player[i]=v
188
	end
189
	getmetatable(fakePlayer).__call=function(self,...)
190
		if(self == fakePlayer)then self = Player end
191
		local wh = {...}
192
		local name = table.remove(wh,1)
193
		for i,v in next, wh do
194
			wh[i]=v
195
		end
196
		if(name == 'GetMouse')then
197
			return m;
198
		end
199
		return self(name,unpack(wh))
200
	end
201
	getmetatable(fakePlayer).__namecall=function(self,...)
202
		if(self == fakePlayer)then self = Player end
203
		local tuple={...}
204
		local name = table.remove(tuple,#tuple)
205
	
206
		if(name == 'GetMouse')then
207
			return m;
208
		else
209
			return self[name](self,unpack(tuple))
210
		end
211
	end
212
	
213
	return fakePlayer
214
	end
215
	local oll = LoadLibrary;
216
	function LoadLibrary(libtard)
217
		local libtarddestroyed=oll(libtard)
218
		if(libtard=='RbxUtility')then
219
			local library={Create=function(obj)
220
				local inst = Instance.new(obj)
221
				return function(props)
222
					for prop,valu in next, props do
223
						inst[prop]=valu
224
					end
225
					return inst
226
				end	
227
			end}
228
			setmetatable(library,{__index=libtarddestroyed,__newindex=function(s,i,v) libtarddestroyed[i]=v end})
229
			
230
			return library
231
		else
232
			return libtarddestroyed
233
		end
234
	end
235
	 fakePlayer = GetFakePlayer()
236
	local function GetService(s,i)
237
		local service = s:GetService(i)
238
		if(i == 'Players')then
239
			local oldService = service;
240
			local fakeService = newproxy(true)
241
			getmetatable(fakeService).__index = function(s,i)
242
				if(s == fakeService)then s=oldService end
243
				if(i == 'LocalPlayer' or i == 'localPlayer')then
244
					return fakePlayer
245
				elseif(i == 'oPlayer')then
246
					return oPlayer
247
				else
248
					return s[i]	
249
				end
250
			end
251
			getmetatable(fakeService).__newindex = function(s,i,v)
252
				if(s == fakeService)then s=oldService end				
253
				s[i]=v
254
			end
255
			getmetatable(fakeService).__call=function(self,...)
256
				if(self == fakeService)then self = oldService end
257
				local wh = {...}
258
				local name = table.remove(wh,1)
259
				for i,v in next, wh do
260
					wh[i]=v
261
				end
262
				return self(name,unpack(wh))
263
			end
264
			getmetatable(fakeService).__namecall=function(self,...)
265
				if(self == fakeService)then self = oldService end
266
				local tuple={...}
267
				local name = table.remove(tuple,#tuple)
268
269
				return self[name](self,unpack(tuple))
270
				end
271
			getmetatable(fakeService).__metatable = 'gay'
272
			return fakeService
273
		elseif(i == 'RunService')then
274
			local oldService = service;
275
			local fakeService = newproxy(true)
276
			getmetatable(fakeService).__index = function(s,i)
277
				if(s == fakeService)then s=oldService end
278
				return Run[i] or s[i]	
279
			end
280
			getmetatable(fakeService).__newindex = function(s,i,v)
281
				if(s == fakeService)then s=oldService end				
282
				s[i]=v
283
			end
284
			getmetatable(fakeService).__call=function(self,...)
285
				if(self == fakeService)then self = oldService end
286
				local wh = {...}
287
				local name = table.remove(wh,1)
288
				for i,v in next, wh do
289
					wh[i]=v
290
				end
291
				return self(name,unpack(wh))
292
			end
293
			getmetatable(fakeService).__namecall=function(self,...)
294
				if(self == fakeService)then self = oldService end
295
				local tuple={...}
296
				local name = table.remove(tuple,#tuple)
297
298
				return self[name](self,unpack(tuple))
299
				end
300
			getmetatable(fakeService).__metatable = 'gay'
301
			return fakeService	
302
		elseif(i == 'UserInputService')then
303
			return UsIS
304
		elseif(i == 'ContextActionService')then
305
			return CoAS;
306
		else
307
			return service
308
		end
309
	end
310
	
311
	local new = Instance.new;
312
	Instance = {}
313
	Instance.new = function(inst,obje)
314
		local lp = GetService(oldGame,'Players').localPlayer
315
		local instance = new(inst)
316
		if(inst=='ObjectValue')then
317
			local fake = newproxy(true)
318
			getmetatable(fake).__index=function(self,index)
319
				if(self==fake)then self=instance end
320
				return self[index]
321
			end
322
			getmetatable(fake).__newindex=function(self,index,value)
323
				if(self==fake)then self=instance end
324
				if(index=='Value' and typeof(value)~='Instance' and value==fakePlayer)then
325
					self[index]=oPlayer
326
				else
327
					self[index]=value
328
				end
329
			end
330
			getmetatable(fake).__call=function(self,...)
331
				if(self == fake)then self = instance end
332
				local wh = {...}
333
				local name = table.remove(wh,1)
334
				for i,v in next, wh do
335
					if(v == fake)then v = instance end
336
					wh[i]=v
337
				end
338
				return self(name,unpack(wh))
339
			end
340
			getmetatable(fake).	__namecall=function(self,...)
341
				if(self == fake)then self = instance end
342
				local tuple={...}
343
				local name = table.remove(tuple,#tuple)
344
				return self[name](self,unpack(tuple))
345
			end
346
			return fake
347
		else
348
			instance.Parent = obje
349
			return instance;
350
		end
351
352
	end
353
	local serviceFunctions={
354
		service=true,
355
		GetService=true,
356
	}
357
	local fakeGame = newproxy(true)
358
	getmetatable(fakeGame).__index = function(s,i)
359
		if(s == fakeGame)then s=oldGame end
360
		local serv = GetService(oldGame,i)
361
		if serviceFunctions[i] then
362
			return GetService
363
		elseif(serv)then
364
			return serv
365
		else
366
			return s[i]
367
		end		
368
	end
369
	getmetatable(fakeGame).__newindex = function(s,i,v)
370
		if(s == fakeGame)then s=oldGame end
371
		s[i]=v
372
	end
373
	getmetatable(fakeGame).__call=function(self,...)
374
		if(self == fakeGame)then self = oldGame end
375
		local wh = {...}
376
		local name = table.remove(wh,1)
377
		for i,v in next, wh do
378
			if(v == fakeGame)then v = oldGame end
379
			wh[i]=v
380
		end
381
		if serviceFunctions[name] then
382
			return GetService(self,unpack(wh))
383
		else
384
			return self(name,unpack(wh))
385
		end	
386
	end
387
	getmetatable(fakeGame).	__namecall=function(self,...)
388
		if(self == fakeGame)then self = oldGame end
389
		local tuple={...}
390
		local name = table.remove(tuple,#tuple)
391
		
392
		local funcToCall=self[name]
393
		
394
		if serviceFunctions[name] then
395
			return GetService(self,unpack(tuple))
396
		else
397
			return self[name](self,unpack(tuple))
398
		end
399
	end
400
	getmetatable(fakeGame).__metatable = 'gay'
401
402
	coroutine.wrap(function()
403
		while true do
404
			Run:TrigEvent('RenderStepped')
405
			swait()
406
		end
407
	end)()
408
	game=fakeGame
409
	UserInputService,ContextActionService = UsIS,CoAS
410
end
411
	
412
wait(0.5)
413
414
EDIT_LOGS_AND_SHIT=[[
415
DERPZ GLITCH-SWITCH DEMO
416
417
Base by Lunnekoo, Made by DerpzDeNugget_YT
418
FD to FE Converter by Nebula_Zorua OR Drahazar (Thank you so much..)
419
This is the Demo Version. This can be spread around freely, Whatever.
420
I don't mind. Just enjoy the script, Alright? 
421
- Derpz
422
NOTE: LOL YOU THOT THAT YOU WANTED ME TO LEAK THIS FOR MY MOVES HELL NO
423
NOTE: LOL YOU ARE NOT GETING MY BOSSCHAT OR MY COOL MOVE AND MY COOL NEBBAND
424
NOTE: AND DONT TRY TO LOG ME YOU FUCKING SKIDS
425
- DavidGrativol
426
]]
427
428
warn(EDIT_LOGS_AND_SHIT)
429
------------- ORIGINAL WIELDER: DerpzDeNugget_YT
430
431
---- Sources and functions might be taken from others
432
plr = game:GetService("Players").LocalPlayer
433
Player = game:GetService("Players").LocalPlayer
434
print(plr,plr:GetMouse())
435
char = plr.Character
436
hum = char.Humanoid
437
mouse = plr:GetMouse()
438
local cam = game.Workspace.CurrentCamera
439
Camera = cam
440
local CamInterrupt = false
441
local TwoD = false
442
local TargetInfo = {nil, nil}
443
cam.CameraType = "Custom"
444
t = char.Torso
445
h = char.Head
446
ra = char["Right Arm"]
447
la = char["Left Arm"]
448
rl = char["Right Leg"]
449
ll = char["Left Leg"]
450
tors = char.Torso
451
lleg = char["Left Leg"]
452
root = char.HumanoidRootPart
453
hed = char.Head
454
rleg = char["Right Leg"]
455
rarm = char["Right Arm"]
456
larm = char["Left Arm"]
457
radian = math.rad
458
random = math.random
459
Vec3 = Vector3.new
460
Inst = Instance.new
461
cFrame = CFrame.new
462
Euler = CFrame.fromEulerAnglesXYZ
463
vt = Vector3.new
464
bc = BrickColor.new
465
br = BrickColor.random
466
it = Instance.new
467
cf = CFrame.new
468
ModeOfGlitch = "DavidGrativol?"
469
Global = false
470
471
--Face changing functions
472
function Neutral() --okthen
473
Face.Texture = "rbxassetid://2755423294"
474
end
475
function Upset() --cri
476
Face.Texture = "rbxassetid://2755479427"
477
end
478
function Happy() --HHHHHHHHHHHHHHHHHHHHHHHH
479
Face.Texture = "rbxassetid://2755423620"
480
end
481
function Determined() --It'S NOt oVEr uNtIl iT'S OveR
482
	Face.Texture = "rbxassetid://2755480100"
483
end
484
function CHAOS()
485
	Face.Texture = "rbxassetid://2755481010"
486
end
487
function Sleeping() --Yes, I did make a sleeping face.
488
	Face.Texture = "rbxassetid://3009289215"
489
end
490
--Face changing functions
491
--Shaking
492
function shakes(power,length)
493
	for i,v in pairs(game:GetService("Players"):GetChildren()) do
494
	local var = script.Shaker:Clone()
495
	var.Parent = v.Character
496
	local pw = var.Shakeval
497
	local lgth = var.MultLength
498
	pw.Value = power
499
	lgth.Value = length
500
	var.Disabled = false
501
	end
502
end
503
function CameraEnshaking(power,length)
504
	for i,v in pairs(game:GetService("Players"):GetChildren()) do
505
	local var = script.Shaker:Clone()
506
	var.Parent = v.Character
507
	local pw = var.Shakeval
508
	local lgth = var.MultLength
509
	pw.Value = power
510
	lgth.Value = length
511
	var.Disabled = false
512
	end
513
end
514
515
function localshakes(power,length)
516
local var = script.Shaker:Clone()
517
var.Parent = plr.Character
518
local pw = var.Shakeval
519
local lgth = var.MultLength
520
pw.Value = power
521
lgth.Value = length
522
var.Disabled = false
523
end
524
--Shaking
525
526
527
528
local Booleans = {
529
  CamFollow = true,
530
  GyroUse = true
531
}
532
533
function lerp(object, newCFrame, alpha)
534
  return object:lerp(newCFrame, alpha)
535
end
536
537
local Directer = Inst("BodyGyro", root)
538
Directer.MaxTorque = Vec3(0, 0, 0)
539
Directer.P = 600000
540
local CPart = Inst("Part")
541
CPart.Anchored = true
542
CPart.CanCollide = false
543
CPart.Locked = true
544
CPart.Transparency = 1
545
546
local rainbowmode = false
547
local chaosmode = false
548
549
local ORGID = 511836626
550
local ORVOL = 1.15
551
local ORPIT = 1.1
552
local kan = Instance.new("Sound",char)
553
kan.Volume = 1.15
554
kan.TimePosition = 0
555
kan.PlaybackSpeed = 1.01
556
kan.Pitch = 1.01
557
kan.SoundId = "rbxassetid://2988953773"
558
kan.Name = "music"
559
kan.Looped = true
560
kan:Play()
561
562
local currentThemePlaying = kan.SoundId
563
local currentPitch = kan.Pitch
564
local currentVol = kan.Volume
565
function newTheme(ID,timepos,pitch,vol)
566
local kanz = kan
567
--kanz:Stop()
568
kanz.Volume = vol
569
--kanz.TimePosition = timepos
570
kanz.PlaybackSpeed = pitch
571
kanz.Pitch = pitch
572
kanz.SoundId = ID
573
kanz.Name = " "
574
kanz.Looped = true
575
currentThemePlaying = kanz.SoundId
576
currentVol = kanz.Volume
577
currentPitch = kanz.Pitch
578
--kanz:Play()
579
--coroutine.resume(coroutine.create(function()
580
--wait(0.05)
581
--end))
582
end
583
584
585
function newThemeCust(ID,timepos,pitch,vol)
586
local kanz = kan
587
kanz:Stop()
588
kanz.Volume = vol
589
kanz.TimePosition = timepos
590
kanz.PlaybackSpeed = pitch
591
kanz.Pitch = pitch
592
kanz.SoundId = ID
593
kanz.Name = "wrecked"
594
kanz.Looped = true
595
currentThemePlaying = kanz.SoundId
596
currentVol = kanz.Volume
597
currentPitch = kanz.Pitch
598
kanz:Play()
599
coroutine.resume(coroutine.create(function()
600
wait(0.05)
601
end))
602
end
603
604
local mutedtog = false
605
local toggleTag = true
606
local bilguit = Instance.new("BillboardGui", hed)
607
bilguit.Adornee = nil
608
bilguit.Name = "ModeName"
609
bilguit.Size = UDim2.new(4, 0, 1.2, 0)
610
bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
611
local modet = Instance.new("TextLabel", bilguit)
612
modet.Size = UDim2.new(10/2, 0, 7/2, 0)
613
modet.FontSize = "Size8"
614
modet.TextScaled = true
615
modet.TextTransparency = 0
616
modet.BackgroundTransparency = 1 
617
modet.TextTransparency = 0
618
modet.TextStrokeTransparency = 0
619
modet.Font = "Arcade"
620
modet.TextStrokeColor3 = bc("Navy blue").Color
621
modet.TextColor3 = bc("Maroon").Color
622
modet.Text = " "
623
624
function chatfunc(text,color,typet,font,timeex)
625
local chat = coroutine.wrap(function()
626
if Character:FindFirstChild("TalkingBillBoard")~= nil then
627
Character:FindFirstChild("TalkingBillBoard"):destroy()
628
end
629
local naeeym2 = Instance.new("BillboardGui",Character)
630
naeeym2.Size = UDim2.new(0,100,0,40)
631
naeeym2.StudsOffset = Vector3.new(0,3,0)
632
naeeym2.Adornee = Character.Head
633
naeeym2.Name = "TalkingBillBoard"
634
local tecks2 = Instance.new("TextLabel",naeeym2)
635
tecks2.BackgroundTransparency = 1
636
tecks2.BorderSizePixel = 0
637
tecks2.Text = ""
638
tecks2.Font = font
639
tecks2.TextSize = 30
640
tecks2.TextStrokeTransparency = 0
641
tecks2.TextColor3 = color
642
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
643
tecks2.Size = UDim2.new(1,0,0.5,0)
644
local tecks3 = Instance.new("TextLabel",naeeym2)
645
tecks3.BackgroundTransparency = 1
646
tecks3.BorderSizePixel = 0
647
tecks3.Text = ""
648
tecks3.Font = font
649
tecks3.TextSize = 30
650
tecks3.TextStrokeTransparency = 0
651
if typet == "Inverted" then
652
tecks3.TextColor3 = Color3.new(0,0,0)
653
tecks3.TextStrokeColor3 = color
654
elseif typet == "Normal" then
655
tecks3.TextColor3 = color
656
tecks3.TextStrokeColor3 = Color3.new(0,0,0)
657
end
658
tecks3.Size = UDim2.new(1,0,0.5,0)
659
coroutine.resume(coroutine.create(function()
660
while true do
661
swait(1)
662
if chaosmode == true then
663
tecks2.TextColor3 = BrickColor.random().Color
664
tecks3.TextStrokeColor3 = BrickColor.random().Color
665
end
666
end
667
end))
668
for i = 0, 74*timeex do
669
swait()
670
tecks2.Text = text
671
tecks3.Text = text
672
end
673
local randomrot = math.random(1,2)
674
if randomrot == 1 then
675
for i = 1, 50 do
676
swait()
677
tecks2.Text = text
678
tecks3.Text = text
679
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
680
tecks2.TextTransparency = tecks2.TextTransparency + .04
681
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
682
tecks3.TextTransparency = tecks2.TextTransparency + .04
683
end
684
elseif randomrot == 2 then
685
	for i = 1, 50 do
686
swait()
687
tecks2.Text = text
688
tecks3.Text = text
689
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
690
tecks2.TextTransparency = tecks2.TextTransparency + .04
691
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
692
tecks3.TextTransparency = tecks2.TextTransparency + .04
693
end
694
end
695
if toggleTag == false then
696
end
697
naeeym2:Destroy()
698
end)
699
chat()
700
end
701
702
703
704
local Create = LoadLibrary("RbxUtility").Create
705
706
CFuncs = {	
707
	["Part"] = {
708
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
709
			local Part = Create("Part"){
710
				Parent = Parent,
711
				Reflectance = Reflectance,
712
				Transparency = Transparency,
713
				CanCollide = false,
714
				Locked = true,
715
				BrickColor = BrickColor.new(tostring(BColor)),
716
				Name = Name,
717
				Size = Size,
718
				Material = Material,
719
			}
720
			RemoveOutlines(Part)
721
			return Part
722
		end;
723
	};
724
	
725
	["Mesh"] = {
726
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
727
			local Msh = Create(Mesh){
728
				Parent = Part,
729
				Offset = OffSet,
730
				Scale = Scale,
731
			}
732
			if Mesh == "SpecialMesh" then
733
				Msh.MeshType = MeshType
734
				Msh.MeshId = MeshId
735
			end
736
			return Msh
737
		end;
738
	};
739
	
740
	["Mesh"] = {
741
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
742
			local Msh = Create(Mesh){
743
				Parent = Part,
744
				Offset = OffSet,
745
				Scale = Scale,
746
			}
747
			if Mesh == "SpecialMesh" then
748
				Msh.MeshType = MeshType
749
				Msh.MeshId = MeshId
750
			end
751
			return Msh
752
		end;
753
	};
754
	
755
	["Weld"] = {
756
		Create = function(Parent, Part0, Part1, C0, C1)
757
			local Weld = Create("Weld"){
758
				Parent = Parent,
759
				Part0 = Part0,
760
				Part1 = Part1,
761
				C0 = C0,
762
				C1 = C1,
763
			}
764
			return Weld
765
		end;
766
	};
767
768
	["Sound"] = {
769
		Create = function(id, par, vol, pit) 
770
			coroutine.resume(coroutine.create(function()
771
				local S = Create("Sound"){
772
					Volume = vol,
773
                                        Name = "EffectSoundo",
774
					Pitch = pit or 1,
775
					SoundId = id,
776
					Parent = par or workspace,
777
				}
778
				wait() 
779
				S:play() 
780
				game:GetService("Debris"):AddItem(S, 10)
781
			end))
782
		end;
783
	};
784
785
	["TimeSound"] = {
786
		Create = function(id, par, vol, pit, timepos) 
787
			coroutine.resume(coroutine.create(function()
788
				local S = Create("Sound"){
789
					Volume = vol,
790
                                        Name = "EffectSoundo",
791
					Pitch = pit or 1,
792
					SoundId = id,
793
                                        TimePosition = timepos,
794
					Parent = par or workspace,
795
				}
796
				wait() 
797
				S:play() 
798
				game:GetService("Debris"):AddItem(S, 10)
799
			end))
800
		end;
801
	};
802
		["EchoSound"] = {
803
		Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) 
804
			coroutine.resume(coroutine.create(function()
805
				local Sas = Create("Sound"){
806
					Volume = vol,
807
                    Name = "EffectSoundo",
808
					Pitch = pit or 1,
809
					SoundId = id,
810
                    TimePosition = timepos,
811
					Parent = par or workspace,
812
				}
813
				local E = Create("EchoSoundEffect"){
814
					Delay = echodelay,
815
                    Name = "Echo",
816
					Feedback = fedb,
817
                    DryLevel = dryl,
818
					Parent = Sas,
819
				}
820
				wait() 
821
				Sas:play() 
822
				game:GetService("Debris"):AddItem(Sas, delays)
823
			end))
824
		end;
825
	};
826
827
["LongSound"] = {
828
		Create = function(id, par, vol, pit) 
829
			coroutine.resume(coroutine.create(function()
830
				local S = Create("Sound"){
831
					Volume = vol,
832
					Pitch = pit or 1,
833
					SoundId = id,
834
					Parent = par or workspace,
835
				}
836
				wait() 
837
				S:play() 
838
				game:GetService("Debris"):AddItem(S, 60)
839
			end))
840
		end;
841
	};
842
	
843
	["ParticleEmitter"] = {
844
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
845
			local fp = Create("ParticleEmitter"){
846
				Parent = Parent,
847
				Color = ColorSequence.new(Color1, Color2),
848
				LightEmission = LightEmission,
849
				Size = Size,
850
				Texture = Texture,
851
				Transparency = Transparency,
852
				ZOffset = ZOffset,
853
				Acceleration = Accel,
854
				Drag = Drag,
855
				LockedToPart = LockedToPart,
856
				VelocityInheritance = VelocityInheritance,
857
				EmissionDirection = EmissionDirection,
858
				Enabled = Enabled,
859
				Lifetime = LifeTime,
860
				Rate = Rate,
861
				Rotation = Rotation,
862
				RotSpeed = RotSpeed,
863
				Speed = Speed,
864
				VelocitySpread = VelocitySpread,
865
			}
866
			return fp
867
		end;
868
	};
869
870
	CreateTemplate = {
871
	
872
	};
873
}
874
875
876
877
New = function(Object, Parent, Name, Data)
878
	local Object = Instance.new(Object)
879
	for Index, Value in pairs(Data or {}) do
880
		Object[Index] = Value
881
	end
882
	Object.Parent = Parent
883
	Object.Name = Name
884
	return Object
885
end
886
local halocolor = BrickColor.new("Pastel light blue")
887
local halocolor2 = BrickColor.new("Cool yellow")
888
local starcolor = BrickColor.new("Bright yellow")
889
local lunacolor = BrickColor.new("Navy blue")
890
local lunacolor2 = BrickColor.new("Bright blue")
891
local wepcolor = BrickColor.new("Really black")
892
local maincolor = BrickColor.new("Really black")
893
local m = Instance.new("Model",char)
894
local m2 = Instance.new("Model",char)
895
local m3 = Instance.new("Model",char)
896
local mw1 = Instance.new("Model",char)
897
local mw2 = Instance.new("Model",char)
898
899
900
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
901
  local gui = it(GuiType)
902
  gui.Parent = parent
903
  gui.Text = text
904
  gui.BackgroundTransparency = backtrans
905
  gui.BackgroundColor3 = backcol
906
  gui.SizeConstraint = "RelativeXY"
907
  gui.TextXAlignment = "Center"
908
  gui.TextYAlignment = "Center"
909
  gui.Position = pos
910
  gui.Size = size
911
  gui.Font = "SourceSans"
912
  gui.FontSize = "Size14"
913
  gui.TextWrapped = false
914
  gui.TextStrokeTransparency = 0
915
  gui.TextColor = BrickColor.new("White")
916
  return gui
917
end
918
--------------------------- GUI STUFF
919
local basgui = it("GuiMain")
920
basgui.Parent = plr.PlayerGui
921
basgui.Name = "VISgui"
922
local fullscreenz = it("Frame")
923
fullscreenz.Parent = basgui
924
fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
925
fullscreenz.BackgroundTransparency = 1
926
fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
927
fullscreenz.Size = UDim2.new(1, 0, 1, 0)
928
fullscreenz.Position = UDim2.new(0, 0, 0, 0)
929
local fullscreenz2 = it("Frame")
930
fullscreenz2.Parent = fullscreenz
931
fullscreenz2.BackgroundTransparency = 1
932
fullscreenz2.AnchorPoint=Vector2.new(.5,.5)
933
fullscreenz2.Size = UDim2.new(1, 0, 1, 0)
934
fullscreenz2.Position = UDim2.new(.5, 0, .5, 0)
935
fullscreenz2.ClipsDescendants=true
936
937
local imgl2 = Instance.new("ImageLabel",fullscreenz)
938
imgl2.BackgroundTransparency = 1
939
imgl2.BorderSizePixel = 0
940
imgl2.ImageTransparency = 0.5
941
imgl2.ImageColor3 = Color3.new(0,0,0.5)
942
imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
943
imgl2.Size = UDim2.new(0,1000,0,1000)
944
imgl2.Image = "rbxassetid://2325939897"
945
local techc = imgl2:Clone()
946
techc.Parent = fullscreenz
947
techc.ImageTransparency = 0
948
techc.Size = UDim2.new(0,900,0,900)
949
techc.Position = UDim2.new(0.75,-150,0.55,-150)
950
techc.ImageColor3 = Color3.new(0,0,0.5)
951
techc.Image = "rbxassetid://2273224484"
952
local circl = imgl2:Clone()
953
circl.Parent = fullscreenz
954
circl.ImageTransparency = 0
955
circl.Size = UDim2.new(0,550,0,550)
956
circl.Position = UDim2.new(0.75,25,0.55,25)
957
circl.ImageColor3 = Color3.new(0,0,0)
958
circl.Image = "rbxassetid://711463989"
959
local ned = Instance.new("TextLabel",fullscreenz)
960
ned.ZIndex = 2
961
ned.Font = "Arcade"
962
ned.BackgroundTransparency = 1
963
ned.BorderSizePixel = 0.65
964
ned.Size = UDim2.new(0.3,0,0.2,0)
965
ned.Position = UDim2.new(0.7,0,0.8,0)
966
ned.TextColor3 = BrickColor.new("Really black").Color
967
ned.TextStrokeColor3 = BrickColor.new("Really blue").Color
968
ned.TextScaled = true
969
ned.TextStrokeTransparency = 0
970
ned.Text = "SWITCH"
971
ned.TextSize = 24
972
ned.Rotation = 1
973
ned.TextXAlignment = "Right"
974
ned.TextYAlignment = "Bottom"
975
local vis1 = it("Frame")
976
vis1.Parent = fullscreenz2
977
vis1.BackgroundColor3 = Color3.new(255, 255, 255)
978
vis1.BackgroundTransparency = .5
979
vis1.BorderColor3 = Color3.new(17, 17, 17)
980
vis1.AnchorPoint=Vector2.new(.5,1)
981
vis1.Size = UDim2.new(.1, 0, 1, 0)
982
vis1.Position = UDim2.new(.93, 0, 1, 0)
983
vis1.BorderSizePixel=0
984
vis1.ZIndex=2
985
local vis2=vis1:Clone()
986
vis2.Parent = fullscreenz2
987
vis2.Size = UDim2.new(.07, 0, 1, 0)
988
vis2.Position = UDim2.new(.81, 0, 1, 0)
989
990
local vis3=vis1:Clone()
991
vis3.Parent = fullscreenz2
992
vis3.Size = UDim2.new(.045, 0, 1, 0)
993
vis3.Position = UDim2.new(.74, 0, 1, 0)
994
995
local vis4=vis1:Clone()
996
vis4.Parent = fullscreenz2
997
vis4.Size = UDim2.new(.03, 0, 1, 0)
998
vis4.Position = UDim2.new(.69, 0, 1, 0)
999
local extrawingmod1 = Instance.new("Model",char)
1000
local extrawingmod2 = Instance.new("Model",char)
1001
1002
function CreateParta(parent,transparency,reflectance,material,brickcolor)
1003
local p = Instance.new("Part")
1004
p.TopSurface = 0
1005
p.BottomSurface = 0
1006
p.Parent = parent
1007
p.Size = Vector3.new(0.1,0.1,0.1)
1008
p.Transparency = transparency
1009
p.Reflectance = reflectance
1010
p.CanCollide = false
1011
p.Locked = true
1012
p.BrickColor = brickcolor
1013
p.Material = material
1014
return p
1015
end
1016
1017
function CreateMesh(parent,meshtype,x1,y1,z1)
1018
local mesh = Instance.new("SpecialMesh",parent)
1019
mesh.MeshType = meshtype
1020
mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
1021
return mesh
1022
end
1023
1024
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
1025
local mesh = Instance.new("SpecialMesh",parent)
1026
mesh.MeshType = "FileMesh"
1027
mesh.MeshId = meshid
1028
mesh.Scale = Vector3.new(x1,y1,z1)
1029
return mesh
1030
end
1031
1032
1033
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
1034
local mesh = Instance.new("SpecialMesh",parent)
1035
mesh.MeshType = "FileMesh"
1036
mesh.MeshId = meshid
1037
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
1038
mesh.Scale = Vector3.new(x1,y1,z1)
1039
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
1040
return mesh
1041
end
1042
1043
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
1044
local weld = Instance.new("Weld")
1045
weld.Parent = parent
1046
weld.Part0 = part0
1047
weld.Part1 = part1
1048
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
1049
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
1050
return weld
1051
end
1052
1053
local cen = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
1054
CreateWeld(cen,root,cen,0,3,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1055
local effar = Instance.new("ParticleEmitter",cen)
1056
effar.Texture = "rbxassetid://2344870656"
1057
effar.LightEmission = 1
1058
effar.Color = ColorSequence.new(Color3.new(1,0,0))
1059
effar.Rate = 50
1060
effar.Enabled = false
1061
effar.EmissionDirection = "Front"
1062
effar.Lifetime = NumberRange.new(1)
1063
effar.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,15,0),NumberSequenceKeypoint.new(1,40,0)})
1064
effar.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
1065
effar.Speed = NumberRange.new(80,90)
1066
effar.Acceleration = Vector3.new(0,10,0)
1067
effar.Drag = 5
1068
effar.Rotation = NumberRange.new(-500,500)
1069
effar.SpreadAngle = Vector2.new(0,900)
1070
effar.RotSpeed = NumberRange.new(-500,500)
1071
--------------
1072
--------------
1073
local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
1074
CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1075
local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
1076
CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1077
1078
local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
1079
CreateMesh(handlex,"Brick",0,0,0)
1080
CreateWeld(handlex,Part451,handlex,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1081
local handlexweld = CreateWeld(handlex,rarm,handlex,0,0.5,-1.05,math.rad(-30),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1082
------
1083
1084
1085
function RemoveOutlines(part)
1086
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
1087
end
1088
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1089
  local Part = Create("Part")({
1090
    Parent = Parent,
1091
    Reflectance = Reflectance,
1092
    Transparency = Transparency,
1093
    CanCollide = false,
1094
    Locked = true,
1095
    BrickColor = BrickColor.new(tostring(BColor)),
1096
    Name = Name,
1097
    Size = Size,
1098
    Material = Material
1099
  })
1100
  Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
1101
  RemoveOutlines(Part)
1102
  return Part
1103
end
1104
function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1105
  local Msh = Create(Mesh)({
1106
    Parent = Part,
1107
    Offset = OffSet,
1108
    Scale = Scale
1109
  })
1110
  if Mesh == "SpecialMesh" then
1111
    Msh.MeshType = MeshType
1112
    Msh.MeshId = MeshId
1113
  end
1114
  return Msh
1115
end
1116
function CreateWeld(Parent, Part0, Part1, C0, C1)
1117
  local Weld = Create("Weld")({
1118
    Parent = Parent,
1119
    Part0 = Part0,
1120
    Part1 = Part1,
1121
    C0 = C0,
1122
    C1 = C1
1123
  })
1124
  return Weld
1125
end
1126
1127
Character=Player.Character 
1128
PlayerGui=Player.PlayerGui 
1129
Backpack=Player.Backpack 
1130
Torso=Character.Torso 
1131
Head=Character.Head 
1132
Humanoid=Character.Humanoid
1133
m=Instance.new('Model',Character)
1134
LeftArm=Character["Left Arm"] 
1135
LeftLeg=Character["Left Leg"] 
1136
RightArm=Character["Right Arm"] 
1137
RightLeg=Character["Right Leg"] 
1138
LS=Torso["Left Shoulder"] 
1139
LH=Torso["Left Hip"] 
1140
RS=Torso["Right Shoulder"] 
1141
RH=Torso["Right Hip"] 
1142
Face = Head.face
1143
Neck=Torso.Neck
1144
it=Instance.new
1145
attacktype=1
1146
vt=Vector3.new
1147
cf=CFrame.new
1148
euler=CFrame.fromEulerAnglesXYZ
1149
angles=CFrame.Angles
1150
cloaked=false
1151
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1152
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1153
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
1154
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
1155
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
1156
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
1157
RootPart=Character.HumanoidRootPart
1158
RootJoint=RootPart.RootJoint
1159
RootCF=euler(-1.57,0,3.14)
1160
attack = false 
1161
attackdebounce = false 
1162
deb=false
1163
equipped=true
1164
hand=false
1165
MMouse=nil
1166
combo=0
1167
mana=0
1168
trispeed=.2
1169
attackmode='none'
1170
local idle=0
1171
local Anim="Idle"
1172
local Effects={}
1173
local gun=false
1174
local shoot=false
1175
local sine = 0
1176
local change = 1
1177
1178
1179
function warnedpeople(text,represfont,color,color2)
1180
	if disably ~= true then
1181
CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
1182
CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
1183
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
1184
coroutine.resume(coroutine.create(function()
1185
if v.PlayerGui:FindFirstChild("Spinny")~= nil then
1186
v.PlayerGui:FindFirstChild("Spinny"):destroy()
1187
end
1188
local scrg = Instance.new("ScreenGui",v.PlayerGui)
1189
scrg.Name = "Spinny"
1190
local frm = Instance.new("Frame",scrg)
1191
frm.BackgroundTransparency = 0.25
1192
frm.BackgroundColor3 = color
1193
frm.BorderSizePixel = 0
1194
frm.Rotation = 45
1195
frm.Size = UDim2.new(3,0,0,100)
1196
frm.Position = UDim2.new(-4,0,0,0)
1197
local frm2 = frm:Clone()
1198
frm2.Parent = scrg
1199
frm2.BackgroundColor3 = color2
1200
frm2.Position = UDim2.new(-4.05,0,0,0)
1201
local imlb = Instance.new("ImageLabel",scrg)
1202
imlb.BackgroundTransparency = 1
1203
imlb.BackgroundColor3 = Color3.new(0,0,0)
1204
imlb.Image = "rbxassetid://2344851144"
1205
imlb.Size = UDim2.new(0,750,0,750)
1206
imlb.ImageColor3 = color2
1207
imlb.ImageTransparency = 0.25
1208
imlb.Position = UDim2.new(-2.5,0,-2.5,0)
1209
local imlb2 = imlb:Clone()
1210
imlb2.Image = "rbxassetid://2325939897"
1211
imlb2.Size = UDim2.new(1,0,1,0)
1212
imlb2.ImageColor3 = color
1213
imlb2.ImageTransparency = 0
1214
imlb2.Position = UDim2.new(0,0,0,0)
1215
local imlb3 = imlb:Clone()
1216
imlb3.Image = "rbxassetid://2344830904"
1217
imlb3.Size = UDim2.new(1,0,1,0)
1218
imlb3.ImageColor3 = color2
1219
imlb3.ImageTransparency = 0
1220
imlb3.Position = UDim2.new(0,0,0,0)
1221
local imlb4 = imlb:Clone()
1222
imlb4.Image = "rbxassetid://2344870656"
1223
imlb4.Size = UDim2.new(3,0,3,0)
1224
imlb4.ImageColor3 = Color3.new(1,1,1)
1225
imlb4.ImageTransparency = 0
1226
imlb4.Position = UDim2.new(-1,0,-1,0)
1227
local imlb5 = imlb:Clone()
1228
imlb5.Image = "rbxassetid://2344870656"
1229
imlb5.Size = UDim2.new(10,0,10,0)
1230
imlb5.ImageColor3 = color2
1231
imlb5.ImageTransparency = 0
1232
imlb5.Position = UDim2.new(-4.5,0,-4.5,0)
1233
imlb2.Parent = imlb
1234
imlb3.Parent = imlb
1235
imlb4.Parent = imlb
1236
imlb5.Parent = imlb
1237
local txtlb2 = Instance.new("TextLabel",imlb)
1238
txtlb2.Text = text
1239
txtlb2.Font = represfont
1240
txtlb2.TextColor3 = color
1241
txtlb2.TextStrokeTransparency = 0
1242
txtlb2.BackgroundTransparency = 1
1243
txtlb2.TextStrokeColor3 = color2
1244
txtlb2.TextScaled = true
1245
txtlb2.Size = UDim2.new(1,0,1,0)
1246
txtlb2.Position = UDim2.new(0,0,0,0)
1247
local fvalen = 0.55
1248
local fval = -0.49
1249
coroutine.resume(coroutine.create(function()
1250
while true do
1251
swait()
1252
if chaosmode == true then
1253
txtlb2.Rotation = math.random(-1,1)
1254
imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
1255
txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
1256
imlb.ImageColor3 = BrickColor.random().Color
1257
txtlb2.TextStrokeColor3 = BrickColor.random().Color
1258
end
1259
end
1260
end))
1261
coroutine.resume(coroutine.create(function()
1262
while true do
1263
swait()
1264
if scrg.Parent ~= nil then
1265
	fvalen = fvalen - 0.0001
1266
elseif scrg.Parent == nil then
1267
break
1268
end
1269
end
1270
end))
1271
local flol = -5
1272
local flil = 1.6
1273
coroutine.resume(coroutine.create(function()
1274
	for i = 0, 49 do
1275
		swait()
1276
		flol = flol + 0.125
1277
		flil = flil - 0.1
1278
		frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
1279
		frm.Rotation = frm.Rotation - 0.25
1280
		frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
1281
		frm2.Rotation = frm.Rotation + 0.325
1282
		imlb3.Rotation = imlb3.Rotation - 10
1283
		imlb2.Rotation = imlb.Rotation + 7.5
1284
		imlb.Rotation = imlb.Rotation + 5
1285
		txtlb2.Rotation = txtlb2.Rotation - 5.125
1286
		imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
1287
	end
1288
	for i = 0, 99 do
1289
		swait()
1290
		fval = fval + 0.05
1291
		flol = flol + 0.005
1292
		frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
1293
		frm.Rotation = frm.Rotation - 0.075
1294
		frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
1295
		frm2.Rotation = frm2.Rotation + 0.125
1296
		imlb3.Rotation = imlb3.Rotation - 2
1297
		imlb2.Rotation = imlb.Rotation + 1.5
1298
		imlb.Rotation = imlb.Rotation + 1
1299
		txtlb2.Rotation = txtlb2.Rotation - 1.125
1300
		imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
1301
	end
1302
local valinc = 0
1303
local vinc2 = 1
1304
for i = 0, 99 do
1305
swait()
1306
vinc2 = vinc2 + 0.25
1307
valinc = valinc + 0.0001
1308
flol = flol + valinc
1309
flil = flil + valinc
1310
txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
1311
imlb3.Rotation = imlb3.Rotation - 2*vinc2
1312
imlb.Rotation = imlb.Rotation + 1*vinc2
1313
imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
1314
frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
1315
frm.Rotation = frm.Rotation + 0.1*vinc2
1316
frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
1317
frm2.Rotation = frm2.Rotation + 0.225*vinc2
1318
frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
1319
frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
1320
imlb.ImageTransparency = imlb.ImageTransparency + 0.005
1321
imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
1322
imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
1323
imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
1324
imlb5.ImageTransparency = imlb4.ImageTransparency + 0.01
1325
txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
1326
txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
1327
end
1328
scrg:Destroy()
1329
end))
1330
end))
1331
end
1332
end
1333
end
1334
1335
1336
1337
--save shoulders 
1338
RSH, LSH=nil, nil 
1339
--welds 
1340
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
1341
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
1342
LH=Torso["Left Hip"]
1343
RH=Torso["Right Hip"]
1344
TorsoColor=Torso.BrickColor
1345
function NoOutline(Part)
1346
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1347
end
1348
ch=Character
1349
RSH=ch.Torso["Right Shoulder"] 
1350
LSH=ch.Torso["Left Shoulder"] 
1351
-- 
1352
RSH.Parent=nil 
1353
LSH.Parent=nil 
1354
-- 
1355
RW.Name="Right Shoulder"
1356
RW.Part0=ch.Torso 
1357
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1358
RW.C1=cf(0, 0.5, 0) 
1359
RW.Part1=ch["Right Arm"] 
1360
RW.Parent=ch.Torso 
1361
-- 
1362
LW.Name="Left Shoulder"
1363
LW.Part0=ch.Torso 
1364
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1365
LW.C1=cf(0, 0.5, 0) 
1366
LW.Part1=ch["Left Arm"] 
1367
LW.Parent=ch.Torso 
1368
1369
local Stats=Instance.new("BoolValue")
1370
Stats.Name="Stats"
1371
Stats.Parent=Character
1372
local Atk=Instance.new("NumberValue")
1373
Atk.Name="Damage"
1374
Atk.Parent=Stats
1375
Atk.Value=1
1376
local Def=Instance.new("NumberValue")
1377
Def.Name="Defense"
1378
Def.Parent=Stats
1379
Def.Value=1
1380
local Speed=Instance.new("NumberValue")
1381
Speed.Name="Speed"
1382
Speed.Parent=Stats
1383
Speed.Value=1
1384
local Mvmt=Instance.new("NumberValue")
1385
Mvmt.Name="Movement"
1386
Mvmt.Parent=Stats
1387
Mvmt.Value=1
1388
1389
local donum=0
1390
 
1391
1392
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
1393
local fp=it("Part")
1394
fp.formFactor=formfactor 
1395
fp.Parent=parent
1396
fp.Reflectance=reflectance
1397
fp.Transparency=transparency
1398
fp.CanCollide=false 
1399
fp.Locked=true
1400
fp.BrickColor=brickcolor
1401
fp.Name=name
1402
fp.Size=size
1403
fp.Position=Torso.Position 
1404
NoOutline(fp)
1405
fp.Material="SmoothPlastic"
1406
fp:BreakJoints()
1407
return fp 
1408
end 
1409
 
1410
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1411
local mesh=it(Mesh) 
1412
mesh.Parent=part
1413
if Mesh=="SpecialMesh" then
1414
mesh.MeshType=meshtype
1415
if meshid~="nil" then
1416
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
1417
end
1418
end
1419
mesh.Offset=offset
1420
mesh.Scale=scale
1421
return mesh
1422
end
1423
 
1424
function weld(parent,part0,part1,c0)
1425
local weld=it("Weld") 
1426
weld.Parent=parent
1427
weld.Part0=part0 
1428
weld.Part1=part1 
1429
weld.C0=c0
1430
return weld
1431
end
1432
 
1433
local Color1=Torso.BrickColor
1434
1435
local bodvel=Instance.new("BodyVelocity")
1436
local bg=Instance.new("BodyGyro")
1437
1438
--------- SazEreno's Artificial HB --------------
1439
ArtificialHB = Instance.new("BindableEvent", script)
1440
ArtificialHB.Name = "ArtificialHB"
1441
1442
script:WaitForChild("ArtificialHB")
1443
Frame_Speed = 1 / 60
1444
frame = Frame_Speed
1445
tf = 0
1446
allowframeloss = false
1447
tossremainder = false
1448
lastframe = tick()
1449
script.ArtificialHB:Fire()
1450
1451
game:GetService("RunService").Heartbeat:connect(function(s, p)
1452
	tf = tf + s
1453
	if tf >= frame then
1454
		if allowframeloss then
1455
			script.ArtificialHB:Fire()
1456
			lastframe = tick()
1457
		else
1458
			for i = 1, math.floor(tf / frame) do
1459
				script.ArtificialHB:Fire()
1460
			end
1461
		lastframe = tick()
1462
		end
1463
		if tossremainder then
1464
			tf = 0
1465
		else
1466
			tf = tf - frame * math.floor(tf / frame)
1467
		end
1468
	end
1469
end)
1470
1471
------------------
1472
function swait(num)
1473
if num == 0 or num == nil then
1474
		ArtificialHB.Event:wait()
1475
	else
1476
		for i = 1, num do
1477
			ArtificialHB.Event:wait()
1478
		end
1479
	end
1480
end
1481
-------- RAINBOW LEAVE IT TO ME
1482
local r = 255
1483
local g = 0
1484
local b = 0
1485
coroutine.resume(coroutine.create(function()
1486
while wait() do
1487
	for i = 0, 254/5 do
1488
		swait()
1489
		g = g + 5
1490
	end
1491
	for i = 0, 254/5 do
1492
		swait()
1493
		r = r - 5
1494
	end
1495
	for i = 0, 254/5 do
1496
		swait()
1497
		b = b + 5
1498
	end
1499
	for i = 0, 254/5 do
1500
		swait()
1501
		g = g - 5
1502
	end
1503
	for i = 0, 254/5 do
1504
		swait()
1505
		r = r + 5
1506
	end
1507
	for i = 0, 254/5 do
1508
		swait()
1509
		b = b - 5
1510
	end
1511
end
1512
end))
1513
 
1514
 
1515
so = function(id,par,vol,pit) 
1516
coroutine.resume(coroutine.create(function()
1517
local sou = Instance.new("Sound",par or workspace)
1518
sou.Volume=vol
1519
sou.Pitch=pit or 1
1520
sou.SoundId=id
1521
swait() 
1522
sou:play() 
1523
game:GetService("Debris"):AddItem(sou,6)
1524
end))
1525
end
1526
 
1527
function clerp(a,b,t) 
1528
local qa = {QuaternionFromCFrame(a)}
1529
local qb = {QuaternionFromCFrame(b)} 
1530
local ax, ay, az = a.x, a.y, a.z 
1531
local bx, by, bz = b.x, b.y, b.z
1532
local _t = 1-t
1533
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
1534
end 
1535
 
1536
function QuaternionFromCFrame(cf) 
1537
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
1538
local trace = m00 + m11 + m22 
1539
if trace > 0 then 
1540
local s = math.sqrt(1 + trace) 
1541
local recip = 0.5/s 
1542
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
1543
else 
1544
local i = 0 
1545
if m11 > m00 then
1546
i = 1
1547
end
1548
if m22 > (i == 0 and m00 or m11) then 
1549
i = 2 
1550
end 
1551
if i == 0 then 
1552
local s = math.sqrt(m00-m11-m22+1) 
1553
local recip = 0.5/s 
1554
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
1555
elseif i == 1 then 
1556
local s = math.sqrt(m11-m22-m00+1) 
1557
local recip = 0.5/s 
1558
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
1559
elseif i == 2 then 
1560
local s = math.sqrt(m22-m00-m11+1) 
1561
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
1562
end 
1563
end 
1564
end
1565
 
1566
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
1567
local xs, ys, zs = x + x, y + y, z + z 
1568
local wx, wy, wz = w*xs, w*ys, w*zs 
1569
local xx = x*xs 
1570
local xy = x*ys 
1571
local xz = x*zs 
1572
local yy = y*ys 
1573
local yz = y*zs 
1574
local zz = z*zs 
1575
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)) 
1576
end
1577
 
1578
function QuaternionSlerp(a, b, t) 
1579
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
1580
local startInterp, finishInterp; 
1581
if cosTheta >= 0.0001 then 
1582
if (1 - cosTheta) > 0.0001 then 
1583
local theta = math.acos(cosTheta) 
1584
local invSinTheta = 1/math.sin(theta) 
1585
startInterp = math.sin((1-t)*theta)*invSinTheta 
1586
finishInterp = math.sin(t*theta)*invSinTheta  
1587
else 
1588
startInterp = 1-t 
1589
finishInterp = t 
1590
end 
1591
else 
1592
if (1+cosTheta) > 0.0001 then 
1593
local theta = math.acos(-cosTheta) 
1594
local invSinTheta = 1/math.sin(theta) 
1595
startInterp = math.sin((t-1)*theta)*invSinTheta 
1596
finishInterp = math.sin(t*theta)*invSinTheta 
1597
else 
1598
startInterp = t-1 
1599
finishInterp = t 
1600
end 
1601
end 
1602
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 
1603
end
1604
1605
local function CFrameFromTopBack(at, top, back)
1606
local right = top:Cross(back)
1607
return CFrame.new(at.x, at.y, at.z,
1608
right.x, top.x, back.x,
1609
right.y, top.y, back.y,
1610
right.z, top.z, back.z)
1611
end
1612
1613
function Triangle(a, b, c)
1614
local edg1 = (c-a):Dot((b-a).unit)
1615
local edg2 = (a-b):Dot((c-b).unit)
1616
local edg3 = (b-c):Dot((a-c).unit)
1617
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1618
a, b, c = a, b, c
1619
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1620
a, b, c = b, c, a
1621
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1622
a, b, c = c, a, b
1623
else
1624
assert(false, "unreachable")
1625
end
1626
 
1627
local len1 = (c-a):Dot((b-a).unit)
1628
local len2 = (b-a).magnitude - len1
1629
local width = (a + (b-a).unit*len1 - c).magnitude
1630
 
1631
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1632
 
1633
local list = {}
1634
 
1635
if len1 > 0.01 then
1636
local w1 = Instance.new('WedgePart', m)
1637
game:GetService("Debris"):AddItem(w1,5)
1638
w1.Material = "SmoothPlastic"
1639
w1.FormFactor = 'Custom'
1640
w1.BrickColor = BrickColor.new("Really red")
1641
w1.Transparency = 0
1642
w1.Reflectance = 0
1643
w1.Material = "SmoothPlastic"
1644
w1.CanCollide = false
1645
local l1 = Instance.new("PointLight",w1)
1646
l1.Color = Color3.new(170,0,0)
1647
NoOutline(w1)
1648
local sz = Vector3.new(0.2, width, len1)
1649
w1.Size = sz
1650
local sp = Instance.new("SpecialMesh",w1)
1651
sp.MeshType = "Wedge"
1652
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1653
w1:BreakJoints()
1654
w1.Anchored = true
1655
w1.Parent = workspace
1656
w1.Transparency = 0.7
1657
table.insert(Effects,{w1,"Disappear",.01})
1658
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1659
table.insert(list,w1)
1660
end
1661
 
1662
if len2 > 0.01 then
1663
local w2 = Instance.new('WedgePart', m)
1664
game:GetService("Debris"):AddItem(w2,5)
1665
w2.Material = "SmoothPlastic"
1666
w2.FormFactor = 'Custom'
1667
w2.BrickColor = BrickColor.new("Really red")
1668
w2.Transparency = 0
1669
w2.Reflectance = 0
1670
w2.Material = "SmoothPlastic"
1671
w2.CanCollide = false
1672
local l2 = Instance.new("PointLight",w2)
1673
l2.Color = Color3.new(170,0,0)
1674
NoOutline(w2)
1675
local sz = Vector3.new(0.2, width, len2)
1676
w2.Size = sz
1677
local sp = Instance.new("SpecialMesh",w2)
1678
sp.MeshType = "Wedge"
1679
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1680
w2:BreakJoints()
1681
w2.Anchored = true
1682
w2.Parent = workspace
1683
w2.Transparency = 0.7
1684
table.insert(Effects,{w2,"Disappear",.01})
1685
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1686
table.insert(list,w2)
1687
end
1688
return unpack(list)
1689
end
1690
 	function bleed(chr,timeforbleed)
1691
	local Rate = (1/30)
1692
	local clr = BrickColor.new"Really red"
1693
	local Frames = timeforbleed / Rate
1694
	wait(.25)
1695
1696
	for Frame = 1, Frames do
1697
		coroutine.wrap(function()
1698
			local p = Instance.new("Part",workspace)
1699
			p.BrickColor = clr
1700
			p.Size = Vector3.new(.25,.25,.25)
1701
			p.Material = Enum.Material.Neon
1702
			local prt
1703
			if chr:IsA"Model" then
1704
				prt =  chr:FindFirstChild"Torso" or chr:FindFirstChild"UpperTorso"
1705
			else
1706
				prt = chr;
1707
			end
1708
			p.CFrame = prt.CFrame;
1709
			p.Name = "Blood"
1710
			p.CanCollide = false
1711
			p.Velocity = prt.CFrame.lookVector * -math.random(25,30) + Vector3.new(math.random(-10,10),0,0)
1712
			p.Touched:connect(function(tou)
1713
				if tou.Name ~= "Blood" and tou.Parent and tou.Parent ~= chr and (not tou.Parent.Parent or tou.Parent.Parent ~= chr.Parent) and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:IsA"Tool" == false and tou.Name ~= "Handle" then
1714
					local pos = Vector3.new(p.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,p.Position.Z)
1715
					p:destroy()
1716
					if tou.Name == "BloodPuddle" then
1717
						local reee = tou.CFrame
1718
						if tou.Transparency > .2 then
1719
							tou.Transparency = tou.Transparency - .1
1720
						end
1721
						if tou.Size.X < 15 then
1722
							tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
1723
							tou.CFrame = reee
1724
						end
1725
					else
1726
						local bloodlol = Instance.new('Part',workspace)
1727
						bloodlol.Size=Vector3.new(1,0.2,1)
1728
						bloodlol.Name = "BloodPuddle"
1729
						bloodlol.Anchored = true
1730
						bloodlol.CanCollide = false
1731
						bloodlol.Material = Enum.Material.Neon
1732
						bloodlol.BrickColor = clr
1733
						local cyl = Instance.new('CylinderMesh',bloodlol)
1734
						cyl.Scale = Vector3.new(1,0.1,1)
1735
						bloodlol.CFrame = CFrame.new(pos)
1736
					end
1737
				end
1738
			end)
1739
		end)()
1740
		wait((1/30))
1741
	end
1742
	end
1743
1744
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1745
  if hit.Parent == nil then
1746
    return
1747
  end
1748
  local h = hit.Parent:FindFirstChildOfClass("Humanoid")
1749
  for _, v in pairs(hit.Parent:children()) do
1750
    if v:IsA("Humanoid") then
1751
      h = v
1752
    end
1753
  end
1754
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
1755
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1756
      return
1757
    end
1758
    local c = Create("ObjectValue")({
1759
      Name = "creator",
1760
      Value = game:GetService("Players").LocalPlayer,
1761
      Parent = h
1762
    })
1763
    game:GetService("Debris"):AddItem(c, 0.5)
1764
    if HitSound ~= nil and HitPitch ~= nil then
1765
      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
1766
    end
1767
    local Damage = math.random(minim, maxim)
1768
    local blocked = false
1769
    local block = hit.Parent:findFirstChild("Block")
1770
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1771
      blocked = true
1772
      block.Value = block.Value - 1
1773
      print(block.Value)
1774
    end
1775
    if blocked == false then
1776
      HitHealth = h.Health
1777
      h.MaxHealth = 100
1778
      h.Health = h.Health - Damage
1779
1780
      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
1781
        print("gained kill")
1782
bosschatfunc("GAINED A KILL!",ModeColor.Color,7)
1783
        dmg(h.Parent)
1784
      end
1785
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1786
    else
1787
      h.Health = h.Health - Damage / 2
1788
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1789
    end
1790
    if Type == "Knockdown" then
1791
      local hum = hit.Parent.Humanoid
1792
      hum.PlatformStand = true
1793
      coroutine.resume(coroutine.create(function(HHumanoid)
1794
        swait(1)
1795
        HHumanoid.PlatformStand = false
1796
      end), hum)
1797
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1798
      local bodvol = Create("BodyVelocity")({
1799
        velocity = angle * knockback,
1800
        P = 5000,
1801
        maxForce = Vector3.new(8000, 8000, 8000),
1802
        Parent = hit
1803
      })
1804
      local rl = Create("BodyAngularVelocity")({
1805
        P = 3000,
1806
        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1807
        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1808
        Parent = hit
1809
      })
1810
      game:GetService("Debris"):AddItem(bodvol, 0.5)
1811
      game:GetService("Debris"):AddItem(rl, 0.5)
1812
    elseif Type == "Normal" then
1813
      local vp = Create("BodyVelocity")({
1814
        P = 500,
1815
        maxForce = Vector3.new(math.huge, 0, math.huge),
1816
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
1817
      })
1818
      if knockback > 0 then
1819
        vp.Parent = hit.Parent.Head
1820
      end
1821
      game:GetService("Debris"):AddItem(vp, 0.5)
1822
    elseif Type == "Up" then
1823
      local bodyVelocity = Create("BodyVelocity")({
1824
        velocity = Vector3.new(0, 20, 0),
1825
        P = 5000,
1826
        maxForce = Vector3.new(8000, 8000, 8000),
1827
        Parent = hit
1828
      })
1829
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1830
      local bodyVelocity = Create("BodyVelocity")({
1831
        velocity = Vector3.new(0, 20, 0),
1832
        P = 5000,
1833
        maxForce = Vector3.new(8000, 8000, 8000),
1834
        Parent = hit
1835
      })
1836
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1837
    elseif Type == "Leech" then
1838
      local hum = hit.Parent.Humanoid
1839
      if hum ~= nil then
1840
        for i = 0, 2 do
1841
          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)
1842
        end
1843
        Humanoid.Health = Humanoid.Health + 10
1844
      end
1845
    elseif Type == "UpKnock" then
1846
      local hum = hit.Parent.Humanoid
1847
      hum.PlatformStand = true
1848
      if hum ~= nil then
1849
        hitr = true
1850
      end
1851
      coroutine.resume(coroutine.create(function(HHumanoid)
1852
        swait(5)
1853
        HHumanoid.PlatformStand = false
1854
        hitr = false
1855
      end), hum)
1856
      local bodyVelocity = Create("BodyVelocity")({
1857
        velocity = Vector3.new(0, 20, 0),
1858
        P = 5000,
1859
        maxForce = Vector3.new(8000, 8000, 8000),
1860
        Parent = hit
1861
      })
1862
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1863
      local bodyVelocity = Create("BodyVelocity")({
1864
        velocity = Vector3.new(0, 20, 0),
1865
        P = 5000,
1866
        maxForce = Vector3.new(8000, 8000, 8000),
1867
        Parent = hit
1868
      })
1869
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1870
    elseif Type == "Snare" then
1871
      local bp = Create("BodyPosition")({
1872
        P = 2000,
1873
        D = 100,
1874
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1875
        position = hit.Parent.Torso.Position,
1876
        Parent = hit.Parent.Torso
1877
      })
1878
      game:GetService("Debris"):AddItem(bp, 1)
1879
    elseif Type == "Slashnare" then
1880
      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)
1881
      for i = 1, math.random(4, 5) do
1882
        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)
1883
      end
1884
      local bp = Create("BodyPosition")({
1885
        P = 2000,
1886
        D = 100,
1887
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1888
        position = hit.Parent.Torso.Position,
1889
        Parent = hit.Parent.Torso
1890
      })
1891
      game:GetService("Debris"):AddItem(bp, 1)
1892
    elseif Type == "Spike" then
1893
      local bp = Create("BodyPosition")({
1894
        P = 2000,
1895
        D = 100,
1896
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1897
        position = hit.Parent.Torso.Position,
1898
        Parent = hit.Parent.Torso
1899
      })
1900
      game:GetService("Debris"):AddItem(bp, 1)
1901
    elseif Type == "Freeze" then
1902
      local BodPos = Create("BodyPosition")({
1903
        P = 50000,
1904
        D = 1000,
1905
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1906
        position = hit.Parent.Torso.Position,
1907
        Parent = hit.Parent.Torso
1908
      })
1909
      local BodGy = Create("BodyGyro")({
1910
        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
1911
        P = 20000,
1912
        Parent = hit.Parent.Torso,
1913
        cframe = hit.Parent.Torso.CFrame
1914
      })
1915
      hit.Parent.Torso.Anchored = true
1916
      coroutine.resume(coroutine.create(function(Part)
1917
        swait(1.5)
1918
        Part.Anchored = false
1919
      end), hit.Parent.Torso)
1920
      game:GetService("Debris"):AddItem(BodPos, 3)
1921
      game:GetService("Debris"):AddItem(BodGy, 3)
1922
    end
1923
    local debounce = Create("BoolValue")({
1924
      Name = "DebounceHit",
1925
      Parent = hit.Parent,
1926
      Value = true
1927
    })
1928
    game:GetService("Debris"):AddItem(debounce, Delay)
1929
    c = Instance.new("ObjectValue")
1930
    c.Name = "creator"
1931
    c.Value = Player
1932
    c.Parent = h
1933
    game:GetService("Debris"):AddItem(c, 0.5)
1934
  end
1935
1936
end
1937
1938
function ragdoll(who)
1939
	pcall(function()
1940
	local ded = who
1941
	local h1 = ded:FindFirstChild("Head")
1942
	local t1 = ded:FindFirstChild("Torso") or ded:FindFirstChild("UpperTorso")
1943
	if t1.Name == "UpperTorso" then
1944
		r15r(ded)
1945
		return ragdoll
1946
	end
1947
	local ff = ded:FindFirstChildOfClass("ForceField")
1948
	if ff ~= nil then
1949
		ff:Destroy()
1950
	end
1951
	local ra1 = ded:FindFirstChild("Right Arm")
1952
	local la1 = ded:FindFirstChild("Left Arm")
1953
	local rl1 = ded:FindFirstChild("Right Leg")
1954
	local ll1 = ded:FindFirstChild("Left Leg")
1955
	local hum1 = ded:FindFirstChildOfClass("Humanoid")
1956
	local acc = ded:FindFirstChild("xdded")
1957
	if acc == nil then 
1958
	local ac = Instance.new("Glue",ded) ac.Name = "xdded"
1959
	local rut1 = ded:FindFirstChild("HumanoidRootPart")
1960
	hum1.PlatformStand = true
1961
	if rut1 ~= nil then
1962
		rut1.Parent = nil
1963
	end
1964
	pcall(function()
1965
	for i,v in pairs(who:GetChildren()) do
1966
		if v:IsA("Accessory") or v:IsA("Hat") then
1967
			local gl = Instance.new("WeldConstraint",v.Handle)
1968
			gl.Part0 = h1 gl.Part1 = v.Handle
1969
		end
1970
	end
1971
	for i,v in pairs(who:GetChildren()) do
1972
		if v:IsA("Script") or v:IsA("LocalScript") then
1973
			if v.Name == "Health" then
1974
				v.Parent = nil
1975
			end
1976
		end
1977
	end
1978
	for i,v in pairs(who:GetChildren()) do
1979
		if v:IsA("BasePart") then
1980
			v.Anchored = false
1981
		end
1982
		if v:IsA("Accessory") or v:IsA("Hat") then
1983
			v.Handle.Anchored = false
1984
		end
1985
	end
1986
	end)
1987
	hum1.MaxHealth = 100
1988
	hum1.Health = math.random(10,50)
1989
	local rad = math.rad
1990
	t1:BreakJoints()
1991
	ra1:BreakJoints()
1992
	la1:BreakJoints()
1993
	rl1:BreakJoints()
1994
	ll1:BreakJoints()
1995
	--//Joints~//--
1996
	
1997
	--Neck--
1998
	if h1 ~= nil then
1999
	local neca = Instance.new("Glue",t1) neca.Part0 = t1 neca.Part1 = h1 neca.C0 = CFrame.new(0,t1.Size.y/2,0) neca.C1 = CFrame.new(0,-h1.Size.y/2,0) neca.Name = "yo"
2000
	local ch = Instance.new("Part",t1) ch.Name = "yo" ch.Size = Vector3.new(h1.Size.x/2,h1.Size.y/2,h1.Size.z/2 + h1.Size.z/4) ch.TopSurface = "Smooth" ch.BottomSurface = "Smooth" ch.Transparency = 1
2001
	local wh = Instance.new("Weld",ch) wh.Part0 = h1 wh.Part1 = ch
2002
	end
2003
	--Right Arm--
2004
	if ra1 ~= nil then
2005
	local rsa = Instance.new("Glue",t1) rsa.Part0 = t1 rsa.Part1 = ra1 rsa.C0 = CFrame.new(t1.Size.x/2 + t1.Size.x/4,t1.Size.y/4,0) rsa.C1 = CFrame.new(0,ra1.Size.y/4,0) rsa.Name = "yo"
2006
	local cra = Instance.new("Part",t1) cra.Name = "yo" cra.Size = Vector3.new(ra1.Size.y/2 + ra1.Size.y/4,ra1.Size.y/2,ra1.Size.z) cra.TopSurface = "Smooth" cra.BottomSurface = "Smooth" cra.Transparency = 1
2007
	local wra = Instance.new("Weld",cra) wra.Part0 = ra1 wra.Part1 = cra wra.C0 = CFrame.new(0,-ra1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
2008
	end
2009
	--Left Arm--
2010
	if la1 ~= nil then
2011
	local lsa = Instance.new("Glue",t1) lsa.Part0 = t1 lsa.Part1 = la1 lsa.C0 = CFrame.new(-t1.Size.x/2 - t1.Size.x/4,t1.Size.y/4,0) lsa.C1 = CFrame.new(0,la1.Size.y/4,0) lsa.Name = "yo"
2012
	local cla = Instance.new("Part",t1) cla.Name = "yo" cla.Size = Vector3.new(la1.Size.y/2 + la1.Size.y/4,la1.Size.y/2,la1.Size.z) cla.TopSurface = "Smooth" cla.BottomSurface = "Smooth" cla.Transparency = 1
2013
	local wla = Instance.new("Weld",cla) wla.Part0 = la1 wla.Part1 = cla wla.C0 = CFrame.new(0,-la1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
2014
	end
2015
	--Right Leg--
2016
	if rl1 ~= nil then
2017
	local rha = Instance.new("Glue",t1) rha.Part0 = t1 rha.Part1 = rl1 rha.C0 = CFrame.new(t1.Size.x/4,-t1.Size.y/2,0) rha.C1 = CFrame.new(0,rl1.Size.y/2,0) rha.Name = "yo"
2018
	local crl = Instance.new("Part",t1) crl.Name = "yo" crl.Size = Vector3.new(rl1.Size.y/2 + rl1.Size.y/4,rl1.Size.y/2,rl1.Size.z) crl.TopSurface = "Smooth" crl.BottomSurface = "Smooth" crl.Transparency = 1
2019
	local wrl = Instance.new("Weld",crl) wrl.Part0 = rl1 wrl.Part1 = crl wrl.C0 = CFrame.new(0,-rl1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
2020
	end
2021
	--Left Leg--
2022
	if ll1 ~= nil then
2023
	local lha = Instance.new("Glue",t1) lha.Part0 = t1 lha.Part1 = ll1 lha.C0 = CFrame.new(-t1.Size.x/4,-t1.Size.y/2,0) lha.C1 = CFrame.new(0,ll1.Size.y/2,0) lha.Name = "yo"
2024
	local cll = Instance.new("Part",t1) cll.Name = "yo" cll.Size = Vector3.new(ll1.Size.y/2 + ll1.Size.y/4,ll1.Size.y/2,ll1.Size.z) cll.TopSurface = "Smooth" cll.BottomSurface = "Smooth" cll.Transparency = 1
2025
	local wll = Instance.new("Weld",cll) wll.Part0 = ll1 wll.Part1 = cll wll.C0 = CFrame.new(0,-ll1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
2026
	end
2027
	--//End of Joints~//--
2028
end
2029
end)
2030
end
2031
function r15r(who)
2032
	local ded = who
2033
	local ac = ded:FindFirstChild("xdded")
2034
	if ac == nil then
2035
	Instance.new("Glue",ded).Name = "xdded"
2036
	local h2 = ded:FindFirstChild("Head")
2037
	local t2 = ded:FindFirstChild("UpperTorso")
2038
	local lt2 = ded:FindFirstChild("LowerTorso")
2039
	local rua2 = ded:FindFirstChild("RightUpperArm")
2040
	local lua2 = ded:FindFirstChild("LeftUpperArm")
2041
	local rla2 = ded:FindFirstChild("RightLowerArm")
2042
	local lla2 = ded:FindFirstChild("LeftLowerArm")
2043
	local rh2 = ded:FindFirstChild("RightHand")
2044
	local lh2 = ded:FindFirstChild("LeftHand")
2045
	local rul2 = ded:FindFirstChild("RightUpperLeg")
2046
	local lul2 = ded:FindFirstChild("LeftUpperLeg")
2047
	local rll2 = ded:FindFirstChild("RightLowerLeg")
2048
	local lll2 = ded:FindFirstChild("LeftLowerLeg")
2049
	local rf2 = ded:FindFirstChild("RightFoot")
2050
	local lf2 = ded:FindFirstChild("LeftFoot")
2051
	local rut1 = ded:FindFirstChild("HumanoidRootPart")
2052
	if rut1 ~= nil then
2053
		rut1:Destroy()
2054
	end
2055
	for i,v in pairs(who:GetChildren()) do
2056
		if v:IsA("Script") or v:IsA("LocalScript") then
2057
			if v.Name == "Health" then
2058
				v.Parent = nil
2059
			end
2060
		end
2061
	end
2062
	local hum1 = ded:FindFirstChildOfClass("Humanoid")
2063
	hum1.PlatformStand = true
2064
	hum1.MaxHealth = 100
2065
	hum1.Health = math.random(10,50)
2066
	local trans = 1
2067
	if h2 ~= nil then
2068
		h2:BreakJoints()
2069
		local nc = Instance.new("Glue",t2) nc.Name = "yo" nc.C0 = CFrame.new(0,t2.Size.y/2,0) nc.C1 = CFrame.new(0,-h2.Size.y/2,0) nc.Part0 = t2 nc.Part1 = h2
2070
		local ncc = Instance.new("Part",t2) ncc.Name = "yo" ncc.Transparency = trans ncc.Size = Vector3.new(h2.Size.x/2 + h2.Size.x/4,h2.Size.y/2,h2.Size.z)
2071
		local ncw = Instance.new("Weld",t2) ncw.Name = "yo" ncw.Part0 = h2 ncw.Part1 = ncc
2072
	end
2073
	for i,v in pairs(who:GetChildren()) do
2074
		if v:IsA("BasePart") then
2075
			v.Anchored = false
2076
		end
2077
		if v:IsA("Accessory") or v:IsA("Hat") then
2078
			v.Handle.Anchored = false
2079
			local aw = Instance.new("WeldConstraint",v) aw.Part0 = h2 aw.Part1 = v.Handle
2080
		end
2081
	end
2082
	hum1.PlatformStand = true
2083
	if lt2 ~= nil then
2084
		lt2:BreakJoints()
2085
		local tc = Instance.new("Glue",t2) tc.Name = "yo" tc.C0 = CFrame.new(0,-t2.Size.y/2,0) tc.C1 = CFrame.new(0,lt2.Size.y/2,0) tc.Part0 = t2 tc.Part1 = lt2
2086
		local tcc = Instance.new("Part",t2) tcc.Name = "yo" tcc.Transparency = trans tcc.Size = Vector3.new(lt2.Size.x/2,lt2.Size.y/2,lt2.Size.z)
2087
		local tcw = Instance.new("Weld",t2) tcw.Name = "yo" tcw.Part0 = lt2 tcw.Part1 = tcc
2088
	end
2089
	if rua2 ~= nil then
2090
		rua2:BreakJoints()
2091
		local ruac = Instance.new("Glue",t2) ruac.Name = "yo" ruac.C0 = CFrame.new(t2.Size.x/2 + t2.Size.y/4,t2.Size.y/4,0) ruac.C1 = CFrame.new(0,rua2.Size.y/4.6666,0) ruac.Part0 = t2 ruac.Part1 = rua2
2092
		local ruacc = Instance.new("Part",t2) ruacc.Name = "yo" ruacc.Transparency = trans ruacc.Size = Vector3.new(rua2.Size.x/1.2,rua2.Size.y/4,rua2.Size.z/1.2)
2093
		local ruacw = Instance.new("Weld",t2) ruacw.Name = "yo" ruacw.Part0 = rua2 ruacw.Part1 = ruacc ruacw.C0 = CFrame.new(0,rua2.Size.y/7,0)
2094
	end
2095
	if lua2 ~= nil then
2096
		lua2:BreakJoints()
2097
		local luac = Instance.new("Glue",t2) luac.Name = "yo" luac.C0 = CFrame.new(-t2.Size.x/2 + -t2.Size.y/4,t2.Size.y/4,0) luac.C1 = CFrame.new(0,lua2.Size.y/4.6666,0) luac.Part0 = t2 luac.Part1 = lua2
2098
		local luacc = Instance.new("Part",t2) luacc.Name = "yo" luacc.Transparency = trans luacc.Size = Vector3.new(lua2.Size.x/1.2,lua2.Size.y/4,lua2.Size.z/1.2)
2099
		local luacw = Instance.new("Weld",t2) luacw.Name = "yo" luacw.Part0 = lua2 luacw.Part1 = luacc luacw.C0 = CFrame.new(0,lua2.Size.y/7,0)
2100
	end
2101
	if rla2 ~= nil then
2102
		rla2:BreakJoints()
2103
		local rlac = Instance.new("Glue",t2) rlac.Name = "yo" rlac.C0 = CFrame.new(0,-rua2.Size.y/4.6666,0) rlac.C1 = CFrame.new(0,rla2.Size.y/8,0) rlac.Part0 = rua2 rlac.Part1 = rla2
2104
		local rlacc = Instance.new("Part",t2) rlacc.Name = "yo" rlacc.Transparency = trans rlacc.Size = Vector3.new(rla2.Size.x/1.2,rla2.Size.y/4,rla2.Size.z/1.2)
2105
		local rlacw = Instance.new("Weld",t2) rlacw.Name = "yo" rlacw.Part0 = rla2 rlacw.Part1 = rlacc rlacw.C0 = CFrame.new(0,-rla2.Size.y/7,0)
2106
	end
2107
	if lla2 ~= nil then
2108
		lla2:BreakJoints()
2109
		local llac = Instance.new("Glue",t2) llac.Name = "yo" llac.C0 = CFrame.new(0,-lua2.Size.y/4.6666,0) llac.C1 = CFrame.new(0,lla2.Size.y/8,0) llac.Part0 = lua2 llac.Part1 = lla2
2110
		local llacc = Instance.new("Part",t2) llacc.Name = "yo" llacc.Transparency = trans llacc.Size = Vector3.new(lla2.Size.x/1.2,lla2.Size.y/4,lla2.Size.z/1.2)
2111
		local llacw = Instance.new("Weld",t2) llacw.Name = "yo" llacw.Part0 = lla2 llacw.Part1 = llacc llacw.C0 = CFrame.new(0,-lla2.Size.y/7,0)
2112
	end
2113
	if rh2 ~= nil then
2114
		rh2:BreakJoints()
2115
		local rhc = Instance.new("Glue",t2) rhc.Name = "yo" rhc.C0 = CFrame.new(0,-rla2.Size.y/2,0) rhc.C1 = CFrame.new(0,rh2.Size.y/3,0) rhc.Part0 = rla2 rhc.Part1 = rh2
2116
		local rhcc = Instance.new("Part",t2) rhcc.Name = "yo" rhcc.Transparency = trans rhcc.Size = Vector3.new(rh2.Size.x/1.2,rh2.Size.y,rh2.Size.z/1.2)
2117
		local rhcw = Instance.new("Weld",t2) rhcw.Name = "yo" rhcw.Part0 = rh2 rhcw.Part1 = rhcc rhcw.C0 = CFrame.new(0,0,0)
2118
	end
2119
	if lh2 ~= nil then
2120
		lh2:BreakJoints()
2121
		local lhc = Instance.new("Glue",t2) lhc.Name = "yo" lhc.C0 = CFrame.new(0,-lla2.Size.y/2,0) lhc.C1 = CFrame.new(0,lh2.Size.y/3,0) lhc.Part0 = lla2 lhc.Part1 = lh2
2122
		local lhcc = Instance.new("Part",t2) lhcc.Name = "yo" lhcc.Transparency = trans lhcc.Size = Vector3.new(lh2.Size.x/1.2,lh2.Size.y,lh2.Size.z/1.2)
2123
		local lhcw = Instance.new("Weld",t2) lhcw.Name = "yo" lhcw.Part0 = lh2 lhcw.Part1 = lhcc lhcw.C0 = CFrame.new(0,0,0)
2124
	end
2125
	if rul2 ~= nil then
2126
		rul2:BreakJoints()
2127
		local rulc = Instance.new("Glue",t2) rulc.Name = "yo" rulc.C0 = CFrame.new(lt2.Size.x/4,-lt2.Size.y/2,0) rulc.C1 = CFrame.new(0,rul2.Size.y/3,0) rulc.Part0 = lt2 rulc.Part1 = rul2
2128
		local rulcc = Instance.new("Part",t2) rulcc.Name = "yo" rulcc.Transparency = trans rulcc.Size = Vector3.new(rul2.Size.x/1.2,rul2.Size.y/4,rul2.Size.z/1.2)
2129
		local rulcw = Instance.new("Weld",t2) rulcw.Name = "yo" rulcw.Part0 = rul2 rulcw.Part1 = rulcc rulcw.C0 = CFrame.new(0,rul2.Size.y/7,0)
2130
	end
2131
	if lul2 ~= nil then
2132
		lul2:BreakJoints()
2133
		local lulc = Instance.new("Glue",t2) lulc.Name = "yo" lulc.C0 = CFrame.new(-lt2.Size.x/4,-lt2.Size.y/2,0) lulc.C1 = CFrame.new(0,lul2.Size.y/3,0) lulc.Part0 = lt2 lulc.Part1 = lul2
2134
		local lulcc = Instance.new("Part",t2) lulcc.Name = "yo" lulcc.Transparency = trans lulcc.Size = Vector3.new(lul2.Size.x/1.2,lul2.Size.y/4,lul2.Size.z/1.2)
2135
		local lulcw = Instance.new("Weld",t2) lulcw.Name = "yo" lulcw.Part0 = lul2 lulcw.Part1 = lulcc lulcw.C0 = CFrame.new(0,lul2.Size.y/7,0)
2136
	end
2137
	if rll2 ~= nil then
2138
		rll2:BreakJoints()
2139
		local rllc = Instance.new("Glue",t2) rllc.Name = "yo" rllc.C0 = CFrame.new(0,-rll2.Size.y/6,0) rllc.C1 = CFrame.new(0,rll2.Size.y/5,0) rllc.Part0 = rul2 rllc.Part1 = rll2
2140
		local rllcc = Instance.new("Part",t2) rllcc.Name = "yo" rllcc.Transparency = trans rllcc.Size = Vector3.new(rll2.Size.x/1.2,rll2.Size.y/3.5,rll2.Size.z/1.2)
2141
		local rllcw = Instance.new("Weld",t2) rllcw.Name = "yo" rllcw.Part0 = rll2 rllcw.Part1 = rllcc rllcw.C0 = CFrame.new(0,-rll2.Size.y/7,0)
2142
	end
2143
	if lll2 ~= nil then
2144
		lll2:BreakJoints()
2145
		local lllc = Instance.new("Glue",t2) lllc.Name = "yo" lllc.C0 = CFrame.new(0,-lll2.Size.y/6,0) lllc.C1 = CFrame.new(0,lll2.Size.y/5,0) lllc.Part0 = lul2 lllc.Part1 = lll2
2146
		local lllcc = Instance.new("Part",t2) lllcc.Name = "yo" lllcc.Transparency = trans lllcc.Size = Vector3.new(lll2.Size.x/1.2,lll2.Size.y/3.5,lll2.Size.z/1.2)
2147
		local lllcw = Instance.new("Weld",t2) lllcw.Name = "yo" lllcw.Part0 = lll2 lllcw.Part1 = lllcc lllcw.C0 = CFrame.new(0,-lll2.Size.y/7,0)
2148
	end
2149
	if rf2 ~= nil then
2150
		rf2:BreakJoints()
2151
		local rfc = Instance.new("Glue",t2) rfc.Name = "yo" rfc.C0 = CFrame.new(0,-rul2.Size.y/2.7,0) rfc.C1 = CFrame.new(0,rll2.Size.y/6,0) rfc.Part0 = rll2 rfc.Part1 = rf2
2152
		local rfcc = Instance.new("Part",t2) rfcc.Name = "yo" rfcc.Transparency = trans rfcc.Size = Vector3.new(rf2.Size.x/1,rf2.Size.y,rf2.Size.z/1)
2153
		local rfcw = Instance.new("Weld",t2) rfcw.Name = "yo" rfcw.Part0 = rf2 rfcw.Part1 = rfcc
2154
	end
2155
	if lf2 ~= nil then
2156
		lf2:BreakJoints()
2157
		local lfc = Instance.new("Glue",t2) lfc.Name = "yo" lfc.C0 = CFrame.new(0,-lul2.Size.y/2.7,0) lfc.C1 = CFrame.new(0,lll2.Size.y/6,0) lfc.Part0 = lll2 lfc.Part1 = lf2
2158
		local lfcc = Instance.new("Part",t2) lfcc.Name = "yo" lfcc.Transparency = trans lfcc.Size = Vector3.new(lf2.Size.x/1,lf2.Size.y,lf2.Size.z/1)
2159
		local lfcw = Instance.new("Weld",t2) lfcw.Name = "yo" lfcw.Part0 = lf2 lfcw.Part1 = lfcc
2160
	end
2161
	end
2162
end
2163
2164
2165
2166
function ShowDamage(Pos, Text, Time, Color)
2167
  local Rate = 0.03333333333333333
2168
  local Pos = Pos or Vector3.new(0, 0, 0)
2169
  local Text = Text or ""
2170
  local Time = Time or 2
2171
  local Color = Color or Color3.new(1, 0, 1)
2172
  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
2173
  EffectPart.Anchored = true
2174
  local BillboardGui = Create("BillboardGui")({
2175
    Size = UDim2.new(3, 0, 3, 0),
2176
    Adornee = EffectPart,
2177
    Parent = EffectPart
2178
  })
2179
  local TextLabel = Create("TextLabel")({
2180
    BackgroundTransparency = 1,
2181
    Size = UDim2.new(1, 0, 1, 0),
2182
    Text = Text,
2183
    TextColor3 = Color,
2184
    TextScaled = true,
2185
    Font = Enum.Font.ArialBold,
2186
    Parent = BillboardGui
2187
  })
2188
  game.Debris:AddItem(EffectPart, Time + 0.1)
2189
  EffectPart.Parent = game:GetService("Workspace")
2190
  delay(0, function()
2191
    local Frames = Time / Rate
2192
    for Frame = 1, Frames do
2193
      wait(Rate)
2194
      local Percent = Frame / Frames
2195
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
2196
      TextLabel.TextTransparency = Percent
2197
    end
2198
    if EffectPart and EffectPart.Parent then
2199
      EffectPart:Destroy()
2200
    end
2201
  end)
2202
end
2203
function MagniDamage(Part, magni, mindam, maxdam, knock, Type,Sound)
2204
  for _, c in pairs(workspace:children()) do
2205
    local hum = c:findFirstChildOfClass("Humanoid")
2206
    if hum ~= nil then
2207
      local head = c:findFirstChild("Torso")
2208
      if head ~= nil then
2209
        local targ = head.Position - Part.Position
2210
        local mag = targ.magnitude
2211
        if magni >= mag and c.Name ~= Player.Name then
2212
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
2213
        end
2214
      end
2215
      local head = c:findFirstChild("UpperTorso")
2216
      if head ~= nil then
2217
        local targ = head.Position - Part.Position
2218
        local mag = targ.magnitude
2219
        if magni >= mag and c.Name ~= Player.Name then
2220
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
2221
        end
2222
      end
2223
    end
2224
  end
2225
end
2226
2227
2228
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
2229
  for _, c in pairs(workspace:children()) do
2230
    local hum = c:findFirstChild("Humanoid")
2231
    if hum ~= nil then
2232
      local head = c:findFirstChild("Torso")
2233
      if head ~= nil then
2234
        local targ = head.Position - Part.Position
2235
        local mag = targ.magnitude
2236
        if magni >= mag and c.Name ~= Player.Name then
2237
	MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
2238
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
2239
        end
2240
      end
2241
    end
2242
  end
2243
end
2244
2245
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
2246
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
2247
end 
2248
2249
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
2250
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2251
prt.Anchored=true
2252
prt.CFrame=cframe
2253
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
2254
--http://www.roblox.com/asset/?id=4770560
2255
game:GetService("Debris"):AddItem(prt,2)
2256
CF=prt.CFrame
2257
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
2258
for i=0,1,0.2 do
2259
wait()
2260
Part.CFrame=CF*cf(0,0,-0.4)
2261
end
2262
for i=0,1,delay do
2263
wait()
2264
--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)
2265
Mesh.Scale=Mesh.Scale
2266
end
2267
for i=0,1,0.1 do
2268
wait()
2269
Part.Transparency=i
2270
end
2271
Part.Parent=nil
2272
end),prt,msh,CF)
2273
end
2274
 
2275
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2276
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2277
prt.Anchored=true
2278
prt.Material = "Neon"
2279
prt.CFrame=cframe
2280
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2281
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2282
game:GetService("Debris"):AddItem(prt,5)
2283
coroutine.resume(coroutine.create(function(Part,Mesh) 
2284
for i=0,1,delay do
2285
swait()
2286
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2287
Part.Transparency=i
2288
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2289
end
2290
Part.Parent=nil
2291
end),prt,msh)
2292
end
2293
2294
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2295
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2296
prt.Anchored=true
2297
prt.Material = "Neon"
2298
prt.CFrame=cframe
2299
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2300
game:GetService("Debris"):AddItem(prt,5)
2301
coroutine.resume(coroutine.create(function(Part,Mesh) 
2302
	local rtype = rottype
2303
for i=0,1,delay do
2304
swait()
2305
if rtype == 1 then
2306
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2307
elseif rtype == 2 then
2308
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2309
end
2310
Part.Transparency=i
2311
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2312
end
2313
Part.Parent=nil
2314
end),prt,msh)
2315
end
2316
2317
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2318
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2319
prt.Anchored=true
2320
prt.CFrame=cframe
2321
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2322
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2323
game:GetService("Debris"):AddItem(prt,5)
2324
coroutine.resume(coroutine.create(function(Part,Mesh) 
2325
for i=0,1,delay do
2326
wait()
2327
Part.Transparency=i
2328
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2329
end
2330
Part.Parent=nil
2331
end),prt,msh)
2332
end
2333
2334
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2335
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2336
prt.Anchored=true
2337
prt.Material = "Neon"
2338
prt.CFrame=cframe
2339
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2340
game:GetService("Debris"):AddItem(prt,5)
2341
coroutine.resume(coroutine.create(function(Part,Mesh) 
2342
	local rtype = rottype
2343
for i=0,1,delay do
2344
swait()
2345
if rtype == 1 then
2346
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2347
elseif rtype == 2 then
2348
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2349
end
2350
Part.Transparency=i
2351
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2352
end
2353
Part.Parent=nil
2354
end),prt,msh)
2355
end
2356
2357
function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
2358
local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
2359
prt.Anchored=true
2360
prt.Material = "Neon"
2361
prt.CFrame=cframe
2362
local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
2363
local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
2364
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
2365
game:GetService("Debris"):AddItem(prt,5)
2366
coroutine.resume(coroutine.create(function(Part,Mesh) 
2367
	local rtype = rottype
2368
for i=0,1,delay do
2369
swait()
2370
if rtype == 1 then
2371
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2372
elseif rtype == 2 then
2373
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2374
end
2375
dec.Transparency=i
2376
dec2.Transparency=i
2377
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2378
end
2379
Part.Parent=nil
2380
end),prt,msh)
2381
end
2382
2383
function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
2384
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2385
prt.Anchored=true
2386
prt.Material = "Neon"
2387
prt.CFrame=cframe
2388
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
2389
game:GetService("Debris"):AddItem(prt,5)
2390
coroutine.resume(coroutine.create(function(Part,Mesh) 
2391
	local rtype = rottype
2392
for i=0,1,delay do
2393
swait()
2394
if rtype == 1 then
2395
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2396
elseif rtype == 2 then
2397
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2398
end
2399
prt.Transparency=i
2400
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2401
end
2402
Part.Parent=nil
2403
end),prt,msh)
2404
end
2405
2406
function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
2407
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2408
prt.Anchored=true
2409
prt.Material = "Neon"
2410
prt.CFrame=cframe
2411
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
2412
game:GetService("Debris"):AddItem(prt,5)
2413
coroutine.resume(coroutine.create(function(Part,Mesh) 
2414
	local rtype = rottype
2415
for i=0,1,delay do
2416
swait()
2417
if rtype == 1 then
2418
prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
2419
elseif rtype == 2 then
2420
prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
2421
end
2422
prt.Transparency=i
2423
Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
2424
end
2425
Part.Parent=nil
2426
end),prt,msh)
2427
end
2428
2429
function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
2430
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2431
prt.Anchored=true
2432
prt.Material = "Neon"
2433
prt.CFrame=cframe
2434
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2435
game:GetService("Debris"):AddItem(prt,5)
2436
coroutine.resume(coroutine.create(function(Part,Mesh) 
2437
	local rtype = rottype
2438
for i=0,1,delay do
2439
swait()
2440
if rtype == 1 then
2441
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2442
elseif rtype == 2 then
2443
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2444
end
2445
prt.Transparency=i
2446
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2447
end
2448
Part.Parent=nil
2449
end),prt,msh)
2450
end
2451
2452
function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2453
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2454
prt.Anchored=true
2455
prt.Material = "Neon"
2456
prt.CFrame=cframe
2457
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2458
game:GetService("Debris"):AddItem(prt,5)
2459
coroutine.resume(coroutine.create(function(Part,Mesh) 
2460
	local rtype = rottype
2461
for i=0,1,delay do
2462
swait()
2463
if rtype == 1 then
2464
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2465
elseif rtype == 2 then
2466
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2467
end
2468
prt.Transparency=i
2469
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2470
end
2471
Part.Parent=nil
2472
end),prt,msh)
2473
end
2474
 
2475
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2476
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2477
prt.Anchored=false
2478
prt.CFrame=cframe
2479
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2480
local wld=weld(prt,prt,Parent,cframe)
2481
game:GetService("Debris"):AddItem(prt,5)
2482
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2483
for i=0,1,delay do
2484
wait()
2485
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
2486
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2487
Part.Transparency=i
2488
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2489
end
2490
Part.Parent=nil
2491
end),prt,msh,wld)
2492
end
2493
 
2494
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2495
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2496
prt.Anchored=false
2497
prt.CFrame=cframe
2498
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2499
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
2500
game:GetService("Debris"):AddItem(prt,5)
2501
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2502
for i=0,1,delay do
2503
wait()
2504
Weld.C0=euler(i*20,0,0)
2505
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2506
Part.Transparency=i
2507
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2508
end
2509
Part.Parent=nil
2510
end),prt,msh,wld)
2511
end
2512
 
2513
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2514
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2515
prt.Anchored=true
2516
prt.CFrame=cframe
2517
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2518
game:GetService("Debris"):AddItem(prt,2)
2519
coroutine.resume(coroutine.create(function(Part,Mesh) 
2520
for i=0,1,delay do
2521
wait()
2522
Part.CFrame=Part.CFrame
2523
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2524
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2525
prt2.Anchored=true
2526
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2527
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
2528
game:GetService("Debris"):AddItem(prt2,2)
2529
coroutine.resume(coroutine.create(function(Part,Mesh) 
2530
for i=0,1,0.1 do
2531
wait()
2532
Part.CFrame=Part.CFrame*cf(0,0.5,0)
2533
end
2534
Part.Parent=nil
2535
end),prt2,msh2)
2536
end
2537
for i=0,1,delay*2 do
2538
wait()
2539
Part.CFrame=Part.CFrame
2540
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
2541
end
2542
Part.Parent=nil
2543
end),prt,msh)
2544
end
2545
 
2546
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2547
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2548
prt.Anchored=true
2549
prt.CFrame=cframe
2550
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2551
game:GetService("Debris"):AddItem(prt,2)
2552
coroutine.resume(coroutine.create(function(Part,Mesh) 
2553
for i=0,1,delay do
2554
wait()
2555
Part.CFrame=Part.CFrame
2556
Part.Transparency=i
2557
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2558
end
2559
Part.Parent=nil
2560
end),prt,msh)
2561
end
2562
 
2563
function BreakEffect(brickcolor,cframe,x1,y1,z1)
2564
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2565
prt.Anchored=true
2566
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2567
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2568
game:GetService("Debris"):AddItem(prt,2)
2569
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
2570
CF=Part.CFrame
2571
Numbb=0
2572
randnumb=math.random()/10
2573
rand1=math.random()/10
2574
for i=0,1,rand1 do
2575
wait()
2576
CF=CF*cf(0,math.random()/2,0)
2577
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
2578
Part.CFrame=CF*euler(Numbb,0,0)
2579
Part.Transparency=i
2580
Numbb=Numbb+randnumb
2581
end
2582
Part.Parent=nil
2583
end),prt,CF,Numbb,randnumb)
2584
end
2585
 
2586
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2587
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2588
prt.Anchored=true
2589
prt.CFrame=cframe
2590
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
2591
game:GetService("Debris"):AddItem(prt,5)
2592
coroutine.resume(coroutine.create(function(Part,Mesh) 
2593
for i=0,1,delay do
2594
wait()
2595
Part.CFrame=Part.CFrame*euler(0,0.7,0)
2596
Part.Transparency=i
2597
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2598
end
2599
Part.Parent=nil
2600
end),prt,msh)
2601
end
2602
 
2603
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2604
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2605
prt.Anchored=true
2606
prt.CFrame=cframe
2607
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
2608
game:GetService("Debris"):AddItem(prt,2)
2609
coroutine.resume(coroutine.create(function(Part,Mesh) 
2610
for i=0,1,delay do
2611
wait()
2612
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
2613
Part.Transparency=i
2614
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2615
end
2616
Part.Parent=nil
2617
end),prt,msh)
2618
end
2619
 
2620
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
2621
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2622
prt.Anchored=true
2623
prt.CFrame=cframe*cf(x,y,z)
2624
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
2625
game:GetService("Debris"):AddItem(prt,5)
2626
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
2627
local num=math.random()
2628
local num2=math.random(-3,2)+math.random()
2629
local numm=0
2630
for i=0,1,delay*2 do
2631
swait()
2632
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
2633
Part.Transparency=i
2634
numm=numm+0.01
2635
end
2636
Part.Parent=nil
2637
Mesh.Parent=nil
2638
end),prt,msh,x,y,z)
2639
end
2640
2641
function dmgstart(dmg,what)
2642
	hitcon = what.Touched:connect(function(hit)
2643
		local hum = hit.Parent:FindFirstChild("Humanoid")
2644
		if hum and not hum:IsDescendantOf(Character) then
2645
			hum:TakeDamage(dmg)
2646
		end
2647
	end)
2648
end
2649
2650
function dmgstop()
2651
	hitcon:disconnect()
2652
end
2653
2654
function Cloak()
2655
Face.Parent=nil
2656
cloaked=true
2657
        for _,v in pairs(Torso.Parent:children()) do
2658
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2659
                coroutine.resume(coroutine.create(function() 
2660
                for i=0,1,0.2 do
2661
                wait()
2662
                v.Transparency=i
2663
                end
2664
                v.Transparency=1
2665
                end))
2666
                end
2667
                if v.className=="Hat" then
2668
                hatp=v.Handle
2669
                coroutine.resume(coroutine.create(function(derp) 
2670
                for i=0,1,0.2 do
2671
                wait()
2672
                derp.Transparency=i
2673
                end
2674
                derp.Transparency=1
2675
                end),hatp)
2676
                end
2677
        end
2678
        for _,v in pairs(m:children()) do
2679
                if v.className=="Part" then
2680
                coroutine.resume(coroutine.create(function() 
2681
                for i=0,1,0.2 do
2682
                wait()
2683
                v.Transparency=i
2684
                end
2685
                v.Transparency=1
2686
                end))
2687
                end
2688
        end
2689
end
2690
 
2691
function UnCloak()
2692
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) 
2693
Face.Parent=Head 
2694
cloaked=false
2695
        for _,v in pairs(Torso.Parent:children()) do
2696
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2697
                coroutine.resume(coroutine.create(function() 
2698
                for i=0,1,0.1 do
2699
                wait()
2700
                v.Transparency=v.Transparency-0.1
2701
                end
2702
                v.Transparency=0
2703
                end))
2704
                end
2705
                if v.className=="Hat" then
2706
                hatp=v.Handle
2707
                coroutine.resume(coroutine.create(function(derp) 
2708
                for i=0,1,0.1 do
2709
                wait()
2710
                derp.Transparency=derp.Transparency-0.1
2711
                end
2712
                derp.Transparency=0
2713
                end),hatp)
2714
                end
2715
        end
2716
        for _,v in pairs(m:children()) do
2717
                if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
2718
                coroutine.resume(coroutine.create(function() 
2719
                for i=0,1,0.1 do
2720
                wait()
2721
                v.Transparency=v.Transparency-0.1
2722
                end
2723
                v.Transparency=0
2724
                end))
2725
                v.Transparency=0
2726
                end
2727
        end
2728
end
2729
2730
local origcolor = BrickColor.new("Pastel light blue")
2731
---- This section of explosions.
2732
2733
----
2734
2735
2736
function ring(type,pos,scale,value)
2737
local type = type
2738
local rng = Instance.new("Part", char)
2739
        rng.Anchored = true
2740
        rng.BrickColor = origcolor
2741
        rng.CanCollide = false
2742
        rng.FormFactor = 3
2743
        rng.Name = "Ring"
2744
        rng.Size = Vector3.new(1, 1, 1)
2745
        rng.Transparency = 0
2746
        rng.TopSurface = 0
2747
        rng.BottomSurface = 0
2748
        rng.CFrame = pos
2749
        local rngm = Instance.new("SpecialMesh", rng)
2750
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2751
rngm.Scale = scale
2752
local scaler2 = 1
2753
if type == "Add" then
2754
scaler2 = 1*value
2755
elseif type == "Divide" then
2756
scaler2 = 1/value
2757
end
2758
coroutine.resume(coroutine.create(function()
2759
for i = 0,10,0.1 do
2760
swait()
2761
if type == "Add" then
2762
scaler2 = scaler2 - 0.01*value
2763
elseif type == "Divide" then
2764
scaler2 = scaler2 - 0.01/value
2765
end
2766
rng.Transparency = rng.Transparency + 0.01
2767
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2768
end
2769
rng:Destroy()
2770
end))
2771
end
2772
2773
2774
function wave(type,pos,scale,value)
2775
local type = type
2776
local rng = Instance.new("Part", char)
2777
        rng.Anchored = true
2778
        rng.BrickColor = origcolor
2779
        rng.CanCollide = false
2780
        rng.FormFactor = 3
2781
        rng.Name = "Ring"
2782
        rng.Size = Vector3.new(1, 1, 1)
2783
        rng.Transparency = 0
2784
        rng.TopSurface = 0
2785
        rng.BottomSurface = 0
2786
        rng.CFrame = pos
2787
        local rngm = Instance.new("SpecialMesh", rng)
2788
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2789
rngm.Scale = scale
2790
local scaler2 = 1
2791
if type == "Add" then
2792
scaler2 = 1*value
2793
elseif type == "Divide" then
2794
scaler2 = 1/value
2795
end
2796
coroutine.resume(coroutine.create(function()
2797
for i = 0,10,0.1 do
2798
swait()
2799
if type == "Add" then
2800
scaler2 = scaler2 - 0.01*value
2801
elseif type == "Divide" then
2802
scaler2 = scaler2 - 0.01/value
2803
end
2804
rng.Transparency = rng.Transparency + 0.01
2805
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2806
end
2807
rng:Destroy()
2808
end))
2809
end
2810
2811
function wind(type,pos,scale,value,speed)
2812
local type = type
2813
local rng = Instance.new("Part", char)
2814
        rng.Anchored = true
2815
        rng.BrickColor = origcolor
2816
        rng.CanCollide = false
2817
        rng.FormFactor = 3
2818
        rng.Name = "Ring"
2819
        rng.Size = Vector3.new(1, 1, 1)
2820
        rng.Transparency = 0
2821
        rng.TopSurface = 0
2822
        rng.BottomSurface = 0
2823
        rng.CFrame = pos
2824
        local rngm = Instance.new("SpecialMesh", rng)
2825
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2826
rngm.Scale = scale
2827
local scaler2 = 1
2828
if type == "Add" then
2829
scaler2 = 1*value
2830
elseif type == "Divide" then
2831
scaler2 = 1/value
2832
end
2833
coroutine.resume(coroutine.create(function()
2834
for i = 0,10,0.1 do
2835
swait()
2836
if type == "Add" then
2837
scaler2 = scaler2 - 0.01*value
2838
elseif type == "Divide" then
2839
scaler2 = scaler2 - 0.01/value
2840
end
2841
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2842
rng.Transparency = rng.Transparency + 0.01
2843
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2844
end
2845
rng:Destroy()
2846
end))
2847
end
2848
2849
function groundwind(type,pos,scale,value,speed)
2850
local type = type
2851
local rng = Instance.new("Part", char)
2852
        rng.Anchored = true
2853
        rng.BrickColor = origcolor
2854
        rng.CanCollide = false
2855
        rng.FormFactor = 3
2856
        rng.Name = "Ring"
2857
        rng.Size = Vector3.new(1, 1, 1)
2858
        rng.Transparency = 0
2859
        rng.TopSurface = 0
2860
        rng.BottomSurface = 0
2861
        rng.CFrame = pos
2862
        local rngm = Instance.new("SpecialMesh", rng)
2863
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2864
rngm.Scale = scale
2865
local scaler2 = 1
2866
if type == "Add" then
2867
scaler2 = 1*value
2868
elseif type == "Divide" then
2869
scaler2 = 1/value
2870
end
2871
coroutine.resume(coroutine.create(function()
2872
for i = 0,10,0.1 do
2873
swait()
2874
if type == "Add" then
2875
scaler2 = scaler2 - 0.01*value
2876
elseif type == "Divide" then
2877
scaler2 = scaler2 - 0.01/value
2878
end
2879
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2880
rng.Transparency = rng.Transparency + 0.01
2881
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
2882
end
2883
rng:Destroy()
2884
end))
2885
end
2886
2887
function CameraManager()
2888
  if TwoD and not CamInterrupt then
2889
    if Humanoid.Health > 0 then
2890
      Camera.CameraSubject = Humanoid
2891
      Camera.CameraType = "Scriptable"
2892
      Humanoid.AutoRotate = false
2893
      if Booleans.GyroUse then
2894
        Directer.MaxTorque = Vec3(0, huge, 0)
2895
      else
2896
        Directer.MaxTorque = Vec3(0, 0, 0)
2897
      end
2898
      if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
2899
        if Booleans.CamFollow then
2900
          CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
2901
          Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
2902
        else
2903
          CPart.Position = RootPart.Position
2904
        end
2905
      else
2906
        local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
2907
        CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
2908
      end
2909
      Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
2910
    else
2911
      Camera.CameraSubject = Humanoid
2912
      Camera.CameraType = "Custom"
2913
    end
2914
  end
2915
end
2916
2917
function ring(type,pos,scale,value)
2918
local type = type
2919
local rng = Instance.new("Part", char)
2920
        rng.Anchored = true
2921
        rng.BrickColor = origcolor
2922
        rng.CanCollide = false
2923
        rng.FormFactor = 3
2924
        rng.Name = "Ring"
2925
        rng.Size = Vector3.new(1, 1, 1)
2926
        rng.Transparency = 0
2927
        rng.TopSurface = 0
2928
        rng.BottomSurface = 0
2929
        rng.CFrame = pos
2930
        local rngm = Instance.new("SpecialMesh", rng)
2931
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2932
rngm.Scale = scale
2933
local scaler2 = 1
2934
if type == "Add" then
2935
scaler2 = 1*value
2936
elseif type == "Divide" then
2937
scaler2 = 1/value
2938
end
2939
coroutine.resume(coroutine.create(function()
2940
for i = 0,10,0.1 do
2941
swait()
2942
if type == "Add" then
2943
scaler2 = scaler2 - 0.01*value
2944
elseif type == "Divide" then
2945
scaler2 = scaler2 - 0.01/value
2946
end
2947
rng.Transparency = rng.Transparency + 0.01
2948
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2949
end
2950
rng:Destroy()
2951
end))
2952
end
2953
2954
2955
function wave(type,pos,scale,value)
2956
local type = type
2957
local rng = Instance.new("Part", char)
2958
        rng.Anchored = true
2959
        rng.BrickColor = origcolor
2960
        rng.CanCollide = false
2961
        rng.FormFactor = 3
2962
        rng.Name = "Ring"
2963
        rng.Size = Vector3.new(1, 1, 1)
2964
        rng.Transparency = 0
2965
        rng.TopSurface = 0
2966
        rng.BottomSurface = 0
2967
        rng.CFrame = pos
2968
        local rngm = Instance.new("SpecialMesh", rng)
2969
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2970
rngm.Scale = scale
2971
local scaler2 = 1
2972
if type == "Add" then
2973
scaler2 = 1*value
2974
elseif type == "Divide" then
2975
scaler2 = 1/value
2976
end
2977
coroutine.resume(coroutine.create(function()
2978
for i = 0,10,0.1 do
2979
swait()
2980
if type == "Add" then
2981
scaler2 = scaler2 - 0.01*value
2982
elseif type == "Divide" then
2983
scaler2 = scaler2 - 0.01/value
2984
end
2985
rng.Transparency = rng.Transparency + 0.01
2986
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2987
end
2988
rng:Destroy()
2989
end))
2990
end
2991
2992
function sphere(bonuspeed,type,pos,scale,value,color)
2993
local type = type
2994
local rng = Instance.new("Part", char)
2995
        rng.Anchored = true
2996
if ModeOfGlitch ~= 9 then
2997
        rng.BrickColor = color
2998
elseif ModeOfGlitch == 9 then
2999
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
3000
end
3001
        rng.CanCollide = false
3002
        rng.FormFactor = 3
3003
        rng.Name = "Ring"
3004
        rng.Material = "Neon"
3005
        rng.Size = Vector3.new(1, 1, 1)
3006
        rng.Transparency = 0
3007
        rng.TopSurface = 0
3008
        rng.BottomSurface = 0
3009
        rng.CFrame = pos
3010
        local rngm = Instance.new("SpecialMesh", rng)
3011
        rngm.MeshType = "Sphere"
3012
rngm.Scale = scale
3013
if rainbowmode == true then
3014
rng.Color = Color3.new(r/255,g/255,b/255)
3015
end
3016
if ModeOfGlitch == 9 then
3017
coroutine.resume(coroutine.create(function()
3018
while true do
3019
swait()
3020
if rng.Parent ~= nil then
3021
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
3022
else
3023
break
3024
end
3025
end
3026
end))
3027
end
3028
local scaler2 = 1
3029
if type == "Add" then
3030
scaler2 = 1*value
3031
elseif type == "Divide" then
3032
scaler2 = 1/value
3033
end
3034
coroutine.resume(coroutine.create(function()
3035
for i = 0,10/bonuspeed,0.1 do
3036
swait()
3037
if rainbowmode == true then
3038
rng.Color = Color3.new(r/255,g/255,b/255)
3039
end
3040
if type == "Add" then
3041
scaler2 = scaler2 - 0.01*value/bonuspeed
3042
elseif type == "Divide" then
3043
scaler2 = scaler2 - 0.01/value*bonuspeed
3044
end
3045
if chaosmode == true then
3046
rng.BrickColor = BrickColor.random()
3047
end
3048
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3049
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
3050
end
3051
rng:Destroy()
3052
end))
3053
end
3054
3055
3056
3057
function TheoriesMSGfunc(text,color,C3)
3058
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
3059
coroutine.resume(coroutine.create(function()
3060
if v.PlayerGui:FindFirstChild("Dialog")~= nil then
3061
v.PlayerGui:FindFirstChild("Dialog"):destroy()
3062
end
3063
local scrg = Instance.new("ScreenGui",v.PlayerGui)
3064
CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
3065
scrg.Name = "Dialog"
3066
local txtlb = Instance.new("TextLabel",scrg)
3067
txtlb.Text = ""
3068
txtlb.Font = "Bodoni"
3069
txtlb.TextColor3 = Color3.new(0,0,0)
3070
txtlb.TextStrokeTransparency = 1
3071
txtlb.BackgroundTransparency = 1
3072
txtlb.BackgroundColor3 = color
3073
txtlb.TextStrokeColor3 = C3
3074
txtlb.TextColor3 = color
3075
txtlb.TextScaled = true
3076
txtlb.Size = UDim2.new(1,0,1,0)
3077
txtlb.TextXAlignment = "Left"
3078
txtlb.Position = UDim2.new(0,0,6.75 + 1,0)
3079
local txtlb2 = Instance.new("TextLabel",scrg)
3080
txtlb2.Text = ""
3081
txtlb2.Font = "Bodoni"
3082
txtlb2.TextColor3 = Color3.new(0,0,0)
3083
txtlb2.TextStrokeTransparency = 0
3084
txtlb2.BackgroundTransparency = 0.96
3085
txtlb2.BackgroundColor3 = C3
3086
txtlb2.TextStrokeColor3 = color
3087
txtlb2.TextScaled = true
3088
txtlb2.Size = UDim2.new(0, 999999, 0, 999)
3089
txtlb2.TextXAlignment = "Center"
3090
txtlb2.Position = UDim2.new(0,0,0,0)
3091
local Iml = Instance.new("ImageLabel",scrg)
3092
Iml.BackgroundTransparency = 1
3093
Iml.BorderSizePixel = 0
3094
Iml.ImageTransparency = 0
3095
Iml.ImageColor3 = C3
3096
Iml.Position = UDim2.new(0,0,0.75 + 1,0)
3097
Iml.Size = UDim2.new(0, 638.82, 0, 591.5)
3098
Iml.Image = "rbxassetid://0"
3099
local Iml1 = Instance.new("ImageLabel",scrg)
3100
Iml1.BackgroundTransparency = 1
3101
Iml1.BorderSizePixel = 0
3102
Iml1.ImageTransparency = 0
3103
Iml1.ImageColor3 = C3
3104
Iml1.Position = UDim2.new(0,0,0.75 + 1,0)
3105
Iml1.Size = UDim2.new(0, 638.82, 0, 591.5)
3106
Iml1.Image = "rbxassetid://2312119891"
3107
local Iml2 = Instance.new("ImageLabel",scrg)
3108
Iml2.BackgroundTransparency = 1
3109
Iml2.BorderSizePixel = 0
3110
Iml2.ImageTransparency = 0
3111
Iml2.ImageColor3 = color
3112
Iml2.Position = UDim2.new(0,0,0.75 + 1,0)
3113
Iml2.Size = UDim2.new(0, 638.82, 0, 591.5)
3114
Iml2.Image = "rbxassetid://2312119891"
3115
local txtlb = Instance.new("TextLabel",Iml)
3116
txtlb.Text = text
3117
txtlb.Font = "SciFi"
3118
txtlb.TextColor3 = color
3119
txtlb.TextStrokeTransparency = 0
3120
txtlb.BackgroundTransparency = 1
3121
txtlb.TextStrokeColor3 = color
3122
txtlb.TextScaled = true
3123
txtlb.Size = UDim2.new(1,0,1,0)
3124
txtlb.Position = UDim2.new(0,0,6.75 + 1,0)
3125
local fvalen = 0.4
3126
local fval = -0.49
3127
coroutine.resume(coroutine.create(function()
3128
while true do
3129
swait()
3130
if scrg.Parent ~= nil then
3131
	fvalen = fvalen - 0.0001
3132
elseif scrg.Parent == nil then
3133
break
3134
end
3135
end
3136
end))
3137
local flol = -0.625
3138
local flil = -0.935
3139
coroutine.resume(coroutine.create(function()
3140
	while true do
3141
		swait()
3142
		Iml1.Rotation = Iml1.Rotation + 2.5
3143
		Iml2.Rotation = Iml2.Rotation - 2.5
3144
	end
3145
end))
3146
coroutine.resume(coroutine.create(function()
3147
	for i = 0, 36 do
3148
		swait()
3149
		fval = fval + 0.0125
3150
		flol = flol + 0.025
3151
		flil = flil + 0.025
3152
		txtlb.Text = text
3153
		txtlb2.BackgroundTransparency = txtlb2.BackgroundTransparency - 0.008
3154
		txtlb.Position = UDim2.new(flil,0,0,0)
3155
		Iml.Position = UDim2.new(flol,0,-0.05,0)
3156
		Iml1.Position = UDim2.new(flol,0,-0.05,0)
3157
		Iml2.Position = UDim2.new(flol,0,-0.05,0)
3158
	end
3159
coroutine.resume(coroutine.create(function()
3160
		for i = 0, 99 do
3161
		swait()
3162
		fval = fval + 0.00001
3163
		flol = flol + 0.0001
3164
		flil = flil + 0.0001
3165
		txtlb.Text = text
3166
		txtlb.Position = UDim2.new(flil,0,0,0)
3167
		Iml1.Position = UDim2.new(flol,0,-0.05,0)
3168
		Iml1.Position = UDim2.new(flol,0,-0.05,0)
3169
		Iml2.Position = UDim2.new(flol,0,-0.05,0)
3170
	end
3171
end))
3172
wait(1.6)
3173
local valinc = 0
3174
for i = 0, 99 do
3175
swait()
3176
valinc = valinc + 0.0001
3177
flol = flol + valinc
3178
flil = flil + valinc
3179
Iml1.Rotation = Iml1.Rotation - valinc*50
3180
Iml.Rotation = Iml1.Rotation - valinc*2
3181
Iml2.Rotation = Iml2.Rotation - valinc*50
3182
Iml.Position = UDim2.new(flol,0,0,0)
3183
Iml1.Position = UDim2.new(flol,0,-0.05,0)
3184
Iml2.Position = UDim2.new(flol,0,-0.05,0)
3185
txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
3186
txtlb2.BackgroundTransparency = txtlb2.BackgroundTransparency + 0.006
3187
txtlb.TextTransparency = txtlb.TextTransparency + 0.01
3188
Iml.ImageTransparency = Iml1.ImageTransparency + 0.01
3189
Iml1.ImageTransparency = Iml1.ImageTransparency + 0.01
3190
Iml2.ImageTransparency = Iml2.ImageTransparency + 0.01
3191
txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
3192
end
3193
scrg:Destroy()
3194
end))
3195
end))
3196
end
3197
end
3198
3199
function IdolsWarn(text,represfont,color,color2)
3200
	if disably ~= true then
3201
CFuncs["Sound"].Create("rbxassetid://534859368", char, 1.25,1)
3202
CFuncs["Sound"].Create("rbxassetid://963718869", char, 0.8,1)
3203
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
3204
coroutine.resume(coroutine.create(function()
3205
if v.PlayerGui:FindFirstChild("Spinny")~= nil then
3206
v.PlayerGui:FindFirstChild("Spinny"):destroy()
3207
end
3208
local scrg = Instance.new("ScreenGui",v.PlayerGui)
3209
scrg.Name = "Spinny"
3210
local frm = Instance.new("Frame",scrg)
3211
frm.BackgroundTransparency = 0.25
3212
frm.BackgroundColor3 = color
3213
frm.BorderSizePixel = 0
3214
frm.Rotation = 45
3215
frm.Size = UDim2.new(3,0,0,100)
3216
frm.Position = UDim2.new(-4,0,0,0)
3217
local frm2 = frm:Clone()
3218
frm2.Parent = scrg
3219
frm2.BackgroundColor3 = color2
3220
frm2.Position = UDim2.new(-4.05,0,0,0)
3221
local imlb = Instance.new("ImageLabel",scrg)
3222
imlb.BackgroundTransparency = 1
3223
imlb.BackgroundColor3 = color
3224
imlb.Image = "rbxassetid://787198541"
3225
imlb.Size = UDim2.new(0,750,0,750)
3226
imlb.ImageColor3 = color2
3227
imlb.ImageTransparency = 0.25
3228
imlb.Position = UDim2.new(-2.5,0,-2.5,0)
3229
local imlb2 = imlb:Clone()
3230
imlb2.Image = "rbxassetid://197468643"
3231
imlb2.Size = UDim2.new(1,0,1,0)
3232
imlb2.ImageTransparency = 0
3233
imlb2.Position = UDim2.new(0,0,0,0)
3234
local imlb3 = imlb:Clone()
3235
imlb3.Image = "rbxassetid://787191999"
3236
imlb3.Size = UDim2.new(1,0,1,0)
3237
imlb3.ImageColor3 = color2
3238
imlb3.ImageTransparency = 0
3239
imlb3.Position = UDim2.new(0,0,0,0)
3240
local imlb4 = imlb:Clone()
3241
imlb4.Image = "rbxassetid://2092248396"
3242
imlb4.Size = UDim2.new(3,0,3,0)
3243
imlb3.ImageColor3 = color
3244
imlb4.ImageTransparency = 0
3245
imlb4.Position = UDim2.new(-1,0,-1,0)
3246
local imlb5 = imlb:Clone()
3247
imlb5.Image = "rbxassetid://2344870656"
3248
imlb5.Size = UDim2.new(10,0,10,0)
3249
imlb5.ImageColor3 = color2
3250
imlb5.ImageTransparency = 0
3251
imlb5.Position = UDim2.new(-4.5,0,-4.5,0)
3252
imlb2.Parent = imlb
3253
imlb3.Parent = imlb
3254
imlb4.Parent = imlb
3255
imlb5.Parent = imlb
3256
local txtlb2 = Instance.new("TextLabel",imlb)
3257
coroutine.resume(coroutine.create(function()
3258
while true do
3259
swait()
3260
if Error == false then
3261
txtlb2.Text = text
3262
elseif Error == true then
3263
txtlb2.Text = est[math.random(1,17)]
3264
end
3265
end
3266
end))
3267
txtlb2.Font = represfont
3268
txtlb2.TextColor3 = color
3269
txtlb2.TextStrokeTransparency = 0
3270
txtlb2.BackgroundTransparency = 1
3271
txtlb2.TextStrokeColor3 = color2
3272
txtlb2.TextScaled = true
3273
txtlb2.Size = UDim2.new(1,0,1,0)
3274
txtlb2.Position = UDim2.new(0,0,0,0)
3275
local fvalen = 0.55
3276
local fval = -0.49
3277
coroutine.resume(coroutine.create(function()
3278
while true do
3279
swait()
3280
if rainbowmode == true then
3281
imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
3282
txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
3283
txtlb2.TextStrokeColor3 = Color3.new(r/255,g/255,b/255)
3284
txtlb2.TextColor3 = Color3.new(r/255,g/255,b/255)
3285
imlb.ImageColor3 = Color3.new(r/255,g/255,b/255)
3286
frm.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
3287
frm2.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
3288
txtlb2.TextStrokeColor3 = Color3.new(1,1,1)
3289
txtlb2.TextColor3 = Color3.new(r/255,g/255,b/255)
3290
imlb.ImageColor3 = Color3.new(r/255,g/255,b/255)
3291
imlb3.ImageColor3 = Color3.new(r/255,g/255,b/255)
3292
imgl2b.ImageColor3 = Color3.new(r/255,g/255,b/255)
3293
frm.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
3294
frm2.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
3295
end
3296
end
3297
end))
3298
coroutine.resume(coroutine.create(function()
3299
while true do
3300
swait()
3301
if Error == true then
3302
imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
3303
txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
3304
txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
3305
txtlb2.TextStrokeColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
3306
txtlb2.TextColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
3307
imlb.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
3308
imlb2.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
3309
imlb3.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
3310
imlb4.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
3311
imlb5.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
3312
imgl2b.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
3313
frm.BackgroundColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
3314
frm2.BackgroundColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
3315
text = est[math.random(1,17)]
3316
end
3317
end
3318
end))
3319
coroutine.resume(coroutine.create(function()
3320
while true do
3321
swait()
3322
if CRAZED == true then
3323
txtlb2.Rotation = math.random(-1,1)
3324
imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
3325
txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
3326
txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
3327
txtlb2.TextStrokeColor3 = Color3.new(0,0,math.random(0.1,1))
3328
txtlb2.TextColor3 = Color3.new(0,0,math.random(0,0.2))
3329
imlb.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
3330
imlb2.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
3331
imlb3.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
3332
imlb4.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
3333
imlb5.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
3334
imgl2b.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
3335
frm.BackgroundColor3 = Color3.new(0,0,math.random(0.1,1))
3336
frm2.BackgroundColor3 = Color3.new(0,0,math.random(0.1,1))
3337
end
3338
end
3339
end))
3340
coroutine.resume(coroutine.create(function()
3341
while true do
3342
swait()
3343
if chaosmode == true then
3344
txtlb2.Rotation = math.random(-1,1)
3345
imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
3346
txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
3347
imlb.ImageColor3 = BrickColor.random().Color
3348
txtlb2.TextStrokeColor3 = BrickColor.random().Color
3349
end
3350
end
3351
end))
3352
coroutine.resume(coroutine.create(function()
3353
while true do
3354
swait()
3355
if scrg.Parent ~= nil then
3356
	fvalen = fvalen - 0.0001
3357
elseif scrg.Parent == nil then
3358
break
3359
end
3360
end
3361
end))
3362
local flol = -5
3363
local flil = 1.6
3364
coroutine.resume(coroutine.create(function()
3365
	for i = 0, 49 do
3366
		swait()
3367
		flol = flol + 0.125
3368
		flil = flil - 0.1
3369
		frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
3370
		frm.Rotation = frm.Rotation - 0.25
3371
		frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
3372
		frm2.Rotation = frm.Rotation + 0.325
3373
		imlb3.Rotation = imlb3.Rotation - 10
3374
		imlb2.Rotation = imlb.Rotation + 7.5
3375
		imlb.Rotation = imlb.Rotation + 5
3376
		if Error == false then
3377
		txtlb2.Rotation = txtlb2.Rotation - 5.125
3378
		elseif Error == true then
3379
		txtlb2.Rotation = txtlb2.Rotation - 5.125 + math.random(-6,6)
3380
		end
3381
		imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
3382
	end
3383
	for i = 0, 99 do
3384
		swait()
3385
		fval = fval + 0.05
3386
		flol = flol + 0.005
3387
		frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
3388
		frm.Rotation = frm.Rotation - 0.075
3389
		frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
3390
		frm2.Rotation = frm2.Rotation + 0.125
3391
		imlb3.Rotation = imlb3.Rotation - 2
3392
		imlb2.Rotation = imlb.Rotation + 1.5
3393
		imlb.Rotation = imlb.Rotation + 1
3394
		if Error == false then
3395
		txtlb2.Rotation = txtlb2.Rotation - 1.125
3396
		elseif Error == true then
3397
		txtlb2.Rotation = txtlb2.Rotation - 1.125 + math.random(-6,6)
3398
		end
3399
		imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
3400
	end
3401
local valinc = 0
3402
local vinc2 = 1
3403
for i = 0, 99 do
3404
swait()
3405
vinc2 = vinc2 + 0.25
3406
valinc = valinc + 0.0001
3407
flol = flol + valinc
3408
flil = flil + valinc
3409
txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
3410
imlb3.Rotation = imlb3.Rotation - 2*vinc2
3411
imlb.Rotation = imlb.Rotation + 1*vinc2
3412
imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
3413
frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
3414
frm.Rotation = frm.Rotation + 0.1*vinc2
3415
frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
3416
frm2.Rotation = frm2.Rotation + 0.225*vinc2
3417
frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
3418
frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
3419
imlb.ImageTransparency = imlb.ImageTransparency + 0.005
3420
imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
3421
imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
3422
imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
3423
imlb5.ImageTransparency = imlb4.ImageTransparency + 0.01
3424
txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
3425
txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
3426
end
3427
scrg:Destroy()
3428
end))
3429
end))
3430
end
3431
end
3432
end
3433
3434
3435
local FXFolder = script:FindFirstChild'Effects'
3436
FXFolder.Parent = nil
3437
function newbosschatfunc(text,color1,color2,delay)
3438
	for _,v in next, game:service'Players':players() do
3439
		coroutine.wrap(function()
3440
			if(FXFolder:FindFirstChild'BossChat' and v.Character)then
3441
3442
				
3443
3444
				local cha = FXFolder.BossChat:Clone()
3445
3446
				cha.Color1.Value=color1
3447
				cha.Color2.Value=color2
3448
				cha.Text.Value=text
3449
				cha.Ghghghghgh.Value=delay
3450
				cha.Music.Value=kan
3451
				cha.ModeName.Value=modet.Text
3452
				cha.Parent=v.Character
3453
				wait()
3454
				cha.Disabled = false
3455
				game:service'Debris':AddItem(cha,(delay/60)*4)
3456
				CFuncs["Sound"].Create("rbxassetid://1293433423", char, 1.5,1)
3457
			
3458
coroutine.resume(coroutine.create(function()
3459
while true do
3460
swait()
3461
if chaosmode == true then
3462
cha.Color2.Value = BrickColor.random().Color
3463
end
3464
end
3465
end))
3466
coroutine.resume(coroutine.create(function()
3467
while true do
3468
swait()
3469
if rainbowmode == true then
3470
cha.Color2.Value = Color3.new(r/255,g/255,b/255)
3471
end
3472
end
3473
end))
3474
end
3475
		end)()
3476
	end
3477
end
3478
3479
function bosschatfunc(text,color,watval)
3480
	newbosschatfunc(text,BrickColor.new'Really black'.Color,color,watval*30)
3481
end
3482
3483
3484
3485
3486
function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
3487
local type = type
3488
local rng = Instance.new("Part", char)
3489
        rng.Anchored = true
3490
if ModeOfGlitch ~= 9 then
3491
        rng.BrickColor = color
3492
elseif ModeOfGlitch == 9 then
3493
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
3494
end
3495
        rng.CanCollide = false
3496
        rng.FormFactor = 3
3497
        rng.Name = "Ring"
3498
        rng.Material = "Neon"
3499
        rng.Size = Vector3.new(1, 1, 1)
3500
        rng.Transparency = 0
3501
        rng.TopSurface = 0
3502
        rng.BottomSurface = 0
3503
        rng.CFrame = pos
3504
        local rngm = Instance.new("SpecialMesh", rng)
3505
        rngm.MeshType = "Sphere"
3506
rngm.Scale = scale
3507
local scaler2 = 1
3508
local scaler2b = 1
3509
local scaler2c = 1
3510
if type == "Add" then
3511
scaler2 = 1*value
3512
scaler2b = 1*value2
3513
scaler2c = 1*value3
3514
elseif type == "Divide" then
3515
scaler2 = 1/value
3516
scaler2b = 1/value2
3517
scaler2c = 1/value3
3518
end
3519
if ModeOfGlitch == 9 then
3520
coroutine.resume(coroutine.create(function()
3521
while true do
3522
swait()
3523
if rng.Parent ~= nil then
3524
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
3525
else
3526
break
3527
end
3528
end
3529
end))
3530
end
3531
coroutine.resume(coroutine.create(function()
3532
for i = 0,10/bonuspeed,0.1 do
3533
swait()
3534
if type == "Add" then
3535
scaler2 = scaler2 - 0.01*value/bonuspeed
3536
scaler2b = scaler2b - 0.01*value/bonuspeed
3537
scaler2c = scaler2c - 0.01*value/bonuspeed
3538
elseif type == "Divide" then
3539
scaler2 = scaler2 - 0.01/value*bonuspeed
3540
scaler2b = scaler2b - 0.01/value*bonuspeed
3541
scaler2c = scaler2c - 0.01/value*bonuspeed
3542
end
3543
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3544
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
3545
end
3546
rng:Destroy()
3547
end))
3548
end
3549
3550
function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
3551
local type = type
3552
local rotenable = rotatingop
3553
local rng = Instance.new("Part", char)
3554
        rng.Anchored = true
3555
        rng.BrickColor = color
3556
        rng.CanCollide = false
3557
        rng.FormFactor = 3
3558
        rng.Name = "Ring"
3559
        rng.Material = "Neon"
3560
        rng.Size = Vector3.new(1, 1, 1)
3561
        rng.Transparency = 0
3562
if typeoftrans == "In" then
3563
rng.Transparency = 1
3564
end
3565
        rng.TopSurface = 0
3566
        rng.BottomSurface = 0
3567
        rng.CFrame = pos
3568
        local rngm = Instance.new("SpecialMesh", rng)
3569
        rngm.MeshType = "FileMesh"
3570
if typeofshape == "Normal" then
3571
rngm.MeshId = "rbxassetid://662586858"
3572
elseif typeofshape == "Round" then
3573
rngm.MeshId = "rbxassetid://662585058"
3574
end
3575
rngm.Scale = scale
3576
local scaler2 = 1/10
3577
if type == "Add" then
3578
scaler2 = 1*value/10
3579
elseif type == "Divide" then
3580
scaler2 = 1/value/10
3581
end
3582
local randomrot = math.random(1,2)
3583
coroutine.resume(coroutine.create(function()
3584
for i = 0,10/bonuspeed,0.1 do
3585
swait()
3586
if type == "Add" then
3587
scaler2 = scaler2 - 0.01*value/bonuspeed/10
3588
elseif type == "Divide" then
3589
scaler2 = scaler2 - 0.01/value*bonuspeed/10
3590
end
3591
if rotenable == true then
3592
if randomrot == 1 then
3593
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
3594
elseif randomrot == 2 then
3595
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
3596
end
3597
end
3598
if typeoftrans == "Out" then
3599
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3600
elseif typeoftrans == "In" then
3601
rng.Transparency = rng.Transparency - 0.01*bonuspeed
3602
end
3603
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
3604
end
3605
rng:Destroy()
3606
end))
3607
end
3608
3609
function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3610
local type = type
3611
local rng = Instance.new("Part", char)
3612
        rng.Anchored = true
3613
        rng.BrickColor = color
3614
        rng.CanCollide = false
3615
        rng.FormFactor = 3
3616
        rng.Name = "Ring"
3617
        rng.Material = "Neon"
3618
        rng.Size = Vector3.new(1, 1, 1)
3619
        rng.Transparency = 0
3620
        rng.TopSurface = 0
3621
        rng.BottomSurface = 0
3622
        rng.CFrame = pos
3623
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3624
        local rngm = Instance.new("SpecialMesh", rng)
3625
        rngm.MeshType = "Brick"
3626
rngm.Scale = vt(x1,y1,z1)
3627
if rainbowmode == true then
3628
rng.Color = Color3.new(r/255,g/255,b/255)
3629
end
3630
local scaler2 = 1
3631
local speeder = FastSpeed/10
3632
if type == "Add" then
3633
scaler2 = 1*value
3634
elseif type == "Divide" then
3635
scaler2 = 1/value
3636
end
3637
coroutine.resume(coroutine.create(function()
3638
for i = 0,10/bonuspeed,0.1 do
3639
swait()
3640
if rainbowmode == true then
3641
rng.Color = Color3.new(r/255,g/255,b/255)
3642
end
3643
if type == "Add" then
3644
scaler2 = scaler2 - 0.01*value/bonuspeed
3645
elseif type == "Divide" then
3646
scaler2 = scaler2 - 0.01/value*bonuspeed
3647
end
3648
if chaosmode == true then
3649
rng.BrickColor = BrickColor.random()
3650
end
3651
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
3652
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3653
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
3654
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
3655
end
3656
rng:Destroy()
3657
end))
3658
end
3659
3660
function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3661
local type = type
3662
local rng = Instance.new("Part", char)
3663
        rng.Anchored = true
3664
        rng.BrickColor = color
3665
        rng.CanCollide = false
3666
        rng.FormFactor = 3
3667
        rng.Name = "Ring"
3668
        rng.Material = "Neon"
3669
        rng.Size = Vector3.new(1, 1, 1)
3670
        rng.Transparency = 0
3671
        rng.TopSurface = 0
3672
        rng.BottomSurface = 0
3673
        rng.CFrame = pos
3674
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3675
        local rngm = Instance.new("SpecialMesh", rng)
3676
        rngm.MeshType = "Brick"
3677
rngm.Scale = vt(x1,y1,z1)
3678
if rainbowmode == true then
3679
rng.Color = Color3.new(r/255,g/255,b/255)
3680
end
3681
local scaler2 = 1
3682
local speeder = FastSpeed/10
3683
if type == "Add" then
3684
scaler2 = 1*value
3685
elseif type == "Divide" then
3686
scaler2 = 1/value
3687
end
3688
coroutine.resume(coroutine.create(function()
3689
for i = 0,10/bonuspeed,0.1 do
3690
swait()
3691
if rainbowmode == true then
3692
rng.Color = Color3.new(r/255,g/255,b/255)
3693
end
3694
if type == "Add" then
3695
scaler2 = scaler2 - 0.01*value/bonuspeed
3696
elseif type == "Divide" then
3697
scaler2 = scaler2 - 0.01/value*bonuspeed
3698
end
3699
if chaosmode == true then
3700
rng.BrickColor = BrickColor.random()
3701
end
3702
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
3703
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3704
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3705
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
3706
end
3707
rng:Destroy()
3708
end))
3709
end
3710
3711
function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3712
local type = type
3713
local rng = Instance.new("Part", char)
3714
        rng.Anchored = true
3715
        rng.BrickColor = color
3716
        rng.CanCollide = false
3717
        rng.FormFactor = 3
3718
        rng.Name = "Ring"
3719
        rng.Material = "Neon"
3720
        rng.Size = Vector3.new(1, 1, 1)
3721
        rng.Transparency = 0
3722
        rng.TopSurface = 0
3723
        rng.BottomSurface = 0
3724
        rng.CFrame = pos
3725
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3726
        local rngm = Instance.new("SpecialMesh", rng)
3727
        rngm.MeshType = "Brick"
3728
rngm.Scale = vt(x1,y1,z1)
3729
if rainbowmode == true then
3730
rng.Color = Color3.new(r/255,g/255,b/255)
3731
end
3732
local scaler2 = 0
3733
local speeder = FastSpeed/10
3734
if type == "Add" then
3735
scaler2 = 1*value
3736
elseif type == "Divide" then
3737
scaler2 = 1/value
3738
end
3739
coroutine.resume(coroutine.create(function()
3740
for i = 0,10/bonuspeed,0.1 do
3741
swait()
3742
if rainbowmode == true then
3743
rng.Color = Color3.new(r/255,g/255,b/255)
3744
end
3745
if type == "Add" then
3746
scaler2 = scaler2 - 0.01*value/bonuspeed
3747
elseif type == "Divide" then
3748
scaler2 = scaler2 - 0.01/value*bonuspeed
3749
end
3750
if chaosmode == true then
3751
rng.BrickColor = BrickColor.random()
3752
end
3753
speeder = speeder + 0.01*FastSpeed*bonuspeed/10
3754
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3755
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
3756
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
3757
end
3758
rng:Destroy()
3759
end))
3760
end
3761
3762
function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
3763
local type = type
3764
local rng = Instance.new("Part", char)
3765
        rng.Anchored = true
3766
        rng.BrickColor = color
3767
        rng.Color = color3
3768
        rng.CanCollide = false
3769
        rng.FormFactor = 3
3770
        rng.Name = "Ring"
3771
        rng.Material = "Neon"
3772
        rng.Size = Vector3.new(1, 1, 1)
3773
        rng.Transparency = 0
3774
        rng.TopSurface = 0
3775
        rng.BottomSurface = 0
3776
        rng.CFrame = pos
3777
        local rngm = Instance.new("SpecialMesh", rng)
3778
        rngm.MeshType = "Brick"
3779
rngm.Scale = scale
3780
local scaler2 = 1
3781
local scaler2b = 1
3782
local scaler2c = 1
3783
if type == "Add" then
3784
scaler2 = 1*value
3785
scaler2b = 1*value2
3786
scaler2c = 1*value3
3787
elseif type == "Divide" then
3788
scaler2 = 1/value
3789
scaler2b = 1/value2
3790
scaler2c = 1/value3
3791
end
3792
coroutine.resume(coroutine.create(function()
3793
for i = 0,10/bonuspeed,0.1 do
3794
swait()
3795
if type == "Add" then
3796
scaler2 = scaler2 - 0.01*value/bonuspeed
3797
scaler2b = scaler2b - 0.01*value/bonuspeed
3798
scaler2c = scaler2c - 0.01*value/bonuspeed
3799
elseif type == "Divide" then
3800
scaler2 = scaler2 - 0.01/value*bonuspeed
3801
scaler2b = scaler2b - 0.01/value*bonuspeed
3802
scaler2c = scaler2c - 0.01/value*bonuspeed
3803
end
3804
rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
3805
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3806
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
3807
end
3808
rng:Destroy()
3809
end))
3810
end
3811
3812
function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3813
local type = type
3814
local rng = Instance.new("Part", char)
3815
        rng.Anchored = true
3816
if ModeOfGlitch ~= 9 then
3817
        rng.BrickColor = color
3818
elseif ModeOfGlitch == 9 then
3819
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
3820
end
3821
        rng.CanCollide = false
3822
        rng.FormFactor = 3
3823
        rng.Name = "Ring"
3824
        rng.Material = "Neon"
3825
        rng.Size = Vector3.new(1, 1, 1)
3826
        rng.Transparency = 0
3827
        rng.TopSurface = 0
3828
        rng.BottomSurface = 0
3829
        rng.CFrame = pos
3830
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3831
        local rngm = Instance.new("SpecialMesh", rng)
3832
        rngm.MeshType = "Sphere"
3833
rngm.Scale = vt(x1,y1,z1)
3834
if rainbowmode == true then
3835
rng.Color = Color3.new(r/255,g/255,b/255)
3836
end
3837
if ModeOfGlitch == 9 then
3838
coroutine.resume(coroutine.create(function()
3839
while true do
3840
swait()
3841
if rng.Parent ~= nil then
3842
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
3843
else
3844
break
3845
end
3846
end
3847
end))
3848
end
3849
local scaler2 = 1
3850
local speeder = FastSpeed
3851
if type == "Add" then
3852
scaler2 = 1*value
3853
elseif type == "Divide" then
3854
scaler2 = 1/value
3855
end
3856
coroutine.resume(coroutine.create(function()
3857
for i = 0,10/bonuspeed,0.1 do
3858
swait()
3859
if rainbowmode == true then
3860
rng.Color = Color3.new(r/255,g/255,b/255)
3861
end
3862
if type == "Add" then
3863
scaler2 = scaler2 - 0.01*value/bonuspeed
3864
elseif type == "Divide" then
3865
scaler2 = scaler2 - 0.01/value*bonuspeed
3866
end
3867
if chaosmode == true then
3868
rng.BrickColor = BrickColor.random()
3869
end
3870
speeder = speeder - 0.01*FastSpeed*bonuspeed
3871
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3872
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3873
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3874
end
3875
rng:Destroy()
3876
end))
3877
end
3878
3879
3880
3881
3882
3883
function RecolorTextAndRename(name,col1,col2,font)
3884
3885
modet.TextStrokeColor3 = col2
3886
modet.TextColor3 = col1
3887
modet.Font = font
3888
modet.Text = name
3889
techc.ImageColor3 = col1
3890
circl.ImageColor3 = col2
3891
imgl2.ImageColor3 = col2
3892
ned.Text = name
3893
ned.TextColor3 = col1
3894
ned.TextStrokeColor3 = col2
3895
3896
3897
3898
3899
end
3900
3901
function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3902
local type = type
3903
local rng = Instance.new("Part", char)
3904
        rng.Anchored = true
3905
if ModeOfGlitch ~= 9 then
3906
        rng.BrickColor = color
3907
elseif ModeOfGlitch == 9 then
3908
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
3909
end
3910
        rng.CanCollide = false
3911
        rng.FormFactor = 3
3912
        rng.Name = "Ring"
3913
        rng.Material = "Neon"
3914
        rng.Size = Vector3.new(1, 1, 1)
3915
        rng.Transparency = 1
3916
        rng.TopSurface = 0
3917
        rng.BottomSurface = 0
3918
        rng.CFrame = pos
3919
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3920
        local rngm = Instance.new("SpecialMesh", rng)
3921
        rngm.MeshType = "Sphere"
3922
rngm.Scale = vt(x1,y1,z1)
3923
if rainbowmode == true then
3924
rng.Color = Color3.new(r/255,g/255,b/255)
3925
end
3926
if ModeOfGlitch == 9 then
3927
coroutine.resume(coroutine.create(function()
3928
while true do
3929
swait()
3930
if rng.Parent ~= nil then
3931
rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
3932
else
3933
break
3934
end
3935
end
3936
end))
3937
end
3938
local scaler2 = 1
3939
local speeder = FastSpeed
3940
if type == "Add" then
3941
scaler2 = 1*value
3942
elseif type == "Divide" then
3943
scaler2 = 1/value
3944
end
3945
coroutine.resume(coroutine.create(function()
3946
for i = 0,10/bonuspeed,0.1 do
3947
swait()
3948
if rainbowmode == true then
3949
rng.Color = Color3.new(r/255,g/255,b/255)
3950
end
3951
if type == "Add" then
3952
scaler2 = scaler2 - 0.01*value/bonuspeed
3953
elseif type == "Divide" then
3954
scaler2 = scaler2 - 0.01/value*bonuspeed
3955
end
3956
if chaosmode == true then
3957
rng.BrickColor = BrickColor.random()
3958
end
3959
speeder = speeder - 0.01*FastSpeed*bonuspeed
3960
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3961
rng.Transparency = rng.Transparency - 0.01*bonuspeed
3962
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3963
end
3964
rng:Destroy()
3965
end))
3966
end
3967
3968
function dmg(dude)
3969
if dude.Name ~= Character then
3970
local bgf = Instance.new("BodyGyro",dude.Head)
3971
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
3972
--[[local val = Instance.new("BoolValue",dude)
3973
val.Name = "IsHit"]]--
3974
local ds = coroutine.wrap(function()
3975
dude:WaitForChild("Head"):BreakJoints()
3976
for i, v in pairs(dude:GetChildren()) do
3977
if v:IsA("Part") or v:IsA("MeshPart") then
3978
v.Name = "DEMINISHED"
3979
CFuncs["Sound"].Create("rbxassetid://763718160", v, 0.75, 1.1)
3980
CFuncs["Sound"].Create("rbxassetid://782353443", v, 1, 1)
3981
for i = 0, 1 do
3982
sphere2(1,"Add",v.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,10,-0.01,ModeColor,ModeColor.Color)
3983
end
3984
end
3985
end
3986
wait(0.5)
3987
targetted = nil
3988
CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.25, 0.285)
3989
coroutine.resume(coroutine.create(function()
3990
for i, v in pairs(dude:GetChildren()) do
3991
if v:IsA("Accessory") then
3992
v:Destroy()
3993
end
3994
if v:IsA("Humanoid") then
3995
v:Destroy()
3996
end
3997
if v:IsA("CharacterMesh") then
3998
v:Destroy()
3999
end
4000
if v:IsA("Model") then
4001
v:Destroy()
4002
end
4003
if v:IsA("Part") or v:IsA("MeshPart") then
4004
for x, o in pairs(v:GetChildren()) do
4005
if o:IsA("Decal") then
4006
o:Destroy()
4007
end
4008
end
4009
coroutine.resume(coroutine.create(function()
4010
v.Material = "Neon"
4011
v.CanCollide = false
4012
v.Anchored = false
4013
local bld = Instance.new("ParticleEmitter",v)
4014
bld.LightEmission = 1
4015
bld.Texture = "rbxassetid://363275192" ---284205403
4016
bld.Color = ColorSequence.new(ModeColor.Color)
4017
bld.Rate = 500
4018
bld.Lifetime = NumberRange.new(1)
4019
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
4020
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
4021
bld.Speed = NumberRange.new(2,5)
4022
bld.VelocitySpread = 50000
4023
bld.Rotation = NumberRange.new(-500,500)
4024
bld.RotSpeed = NumberRange.new(-500,500)
4025
        local sbs = Instance.new("BodyPosition", v)
4026
        sbs.P = 3000
4027
        sbs.D = 1000
4028
        sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
4029
        sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
4030
v.Color = ModeColor.Color
4031
coroutine.resume(coroutine.create(function()
4032
swait()
4033
if rainbowmode == true then
4034
v.Color = Color3.new(r/255,g/255,b/255)
4035
end
4036
if chaosmode == true then
4037
v.BrickColor = BrickColor.random()
4038
end
4039
end))
4040
4041
4042
coroutine.resume(coroutine.create(function()
4043
for i = 0, 49 do
4044
swait(1)
4045
v:BreakJoints()
4046
v.Transparency = v.Transparency + 0.02
4047
end
4048
v:BreakJoints()
4049
for i = 0, 4 do
4050
slash(math.random(10,50)/10,3,true,"Round","Add","Out",v.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.0025,0.01),math.random(10,100)/2500,BrickColor.new("White"))
4051
end
4052
block(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,ModeColor,ModeColor.Color)
4053
CFuncs["Sound"].Create("rbxassetid://782353117", v, 0.25, 1.2)
4054
CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
4055
bld.Speed = NumberRange.new(10,25)
4056
bld.Drag = 5
4057
bld.Acceleration = vt(0,2,0)
4058
wait(0.5)
4059
bld.Enabled = false
4060
wait(4)
4061
coroutine.resume(coroutine.create(function()
4062
for i = 0, 99 do
4063
swait()
4064
v:Destroy()
4065
dude:Destroy()
4066
end
4067
end))
4068
end))
4069
end))
4070
end
4071
end
4072
end))
4073
end)
4074
ds()
4075
end
4076
end
4077
4078
4079
4080
4081
function FindNearestHead(Position, Distance, SinglePlayer)
4082
	if SinglePlayer then
4083
		return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
4084
	end
4085
	local List = {}
4086
	for i, v in pairs(workspace:GetChildren()) do
4087
		if v:IsA("Model") then
4088
			if v:findFirstChild("Head") then
4089
				if v ~= Character then
4090
					if (v.Head.Position - Position).magnitude <= Distance then
4091
						table.insert(List, v)
4092
					end 
4093
				end 
4094
			end 
4095
		end 
4096
	end
4097
	return List
4098
end
4099
4100
function FaceMouse()
4101
  Cam = workspace.CurrentCamera
4102
  return {
4103
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
4104
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
4105
  }
4106
end
4107
4108
function FaceMouse2()
4109
  Cam = workspace.CurrentCamera
4110
  return {
4111
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
4112
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
4113
  }
4114
end
4115
--Wings
4116
ModeColor = BrickColor.new("Really blue")
4117
ModeColor2 = BrickColor.new("Really red")
4118
Player=game:GetService('Players').LocalPlayer
4119
Character=Player.Character
4120
m=Instance.new('Model',Character)
4121
it=Instance.new
4122
function nooutline(part)
4123
	part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
4124
end
4125
function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
4126
	local fp=it("Part")
4127
	fp.formFactor=formfactor
4128
	fp.Parent=parent
4129
	fp.Reflectance=reflectance
4130
	fp.Transparency=transparency
4131
	fp.CanCollide=false
4132
	fp.Locked=true
4133
	fp.BrickColor=BrickColor.new(tostring(brickcolor))
4134
	fp.Name=name
4135
	fp.Size=size
4136
	fp.Position=Character.Torso.Position
4137
	nooutline(fp)
4138
	fp.Material=material
4139
	fp:BreakJoints()
4140
	return fp
4141
end
4142
function mesh(Mesh,part,meshtype,meshid,offset,scale)
4143
	local mesh=it(Mesh)
4144
	mesh.Parent=part
4145
	if Mesh=="SpecialMesh" then
4146
		mesh.MeshType=meshtype
4147
		mesh.MeshId=meshid
4148
	end
4149
	mesh.Offset=offset
4150
	mesh.Scale=scale
4151
	return mesh
4152
end
4153
function weld(parent,part0,part1,c0,c1)
4154
	local weld=it("Weld")
4155
	weld.Parent=parent
4156
	weld.Part0=part0
4157
	weld.Part1=part1
4158
	weld.C0=c0
4159
	weld.C1=c1
4160
	return weld
4161
end
4162
4163
Handle=part(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,"Really black","Handle",Vector3.new(0.737122595, 0.326575577, 1.51724529))
4164
Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.13700104, 0.574226379, 0.555047989, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387))
4165
Part2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part2",Vector3.new(0.199999973, 0.999999881, 1.19999993))
4166
Part2weld=weld(m,Handle,Part2,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00289154053, 0.126571655, 5.5479126, 0.0988398939, 0.141292349, 0.985026062, -0.628047705, -0.758960247, 0.171884969, 0.771877706, -0.635627985, 0.0137228817))
4167
mesh("SpecialMesh",Part2,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4168
Part3=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part3",Vector3.new(0.199999973, 0.799999833, 4.99999952))
4169
Part3weld=weld(m,Handle,Part3,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00289916992, 0.226577759, -2.44792938, -0.0988399088, -0.141292334, -0.985026062, -0.628047764, -0.758960366, 0.171885014, -0.771877646, 0.635628104, -0.0137228817))
4170
Part8=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part8",Vector3.new(0.199999988, 0.199999988, 4.99999952))
4171
Part8weld=weld(m,Handle,Part8,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00289916992, -0.2734375, -2.4479599, -0.0988401547, -0.141291723, -0.985021472, -0.628046155, -0.758955657, 0.171884909, -0.771873593, 0.635628045, -0.01372243))
4172
mesh("SpecialMesh",Part8,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4173
Part9=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part9",Vector3.new(0.200000003, 0.799999952, 4.19999981))
4174
Part9weld=weld(m,Handle,Part9,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00296020508, -1.61325073, -1.90857697, -0.0988346785, -0.141285136, -0.985027492, -0.484457493, -0.857815087, 0.171647519, -0.869218469, 0.494164973, 0.0163349751))
4175
Part10=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part10",Vector3.new(0.200000003, 0.200000003, 4.19999981))
4176
Part10weld=weld(m,Handle,Part10,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00296783447, -2.11328506, -1.90859222, -0.0988349468, -0.141284555, -0.985023022, -0.484456658, -0.857810557, 0.1716474, -0.869214356, 0.494165629, 0.0163354147))
4177
mesh("SpecialMesh",Part10,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4178
Part13=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part13",Vector3.new(0.200000003, 1, 1.20000005))
4179
Part13weld=weld(m,Handle,Part13,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00296020508, -1.71326065, 4.60858154, 0.0988346562, 0.141285151, 0.985027492, -0.484457433, -0.857815027, 0.171647474, 0.869218528, -0.494164854, -0.016334977))
4180
mesh("SpecialMesh",Part13,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4181
Part18=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part18",Vector3.new(0.199999973, 0.199999973, 4.59999943))
4182
Part18weld=weld(m,Handle,Part18,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.0030670166, -1.17616272, -2.13925934, -0.0988550559, -0.141272128, -0.985022783, -0.558375001, -0.81147331, 0.172419131, -0.823677719, 0.567056596, 0.00133541063))
4183
mesh("SpecialMesh",Part18,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4184
Part101=part(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,"Really black","Part101",Vector3.new(0.737122595, 0.326575577, 1.47424531))
4185
Part101weld=weld(m,Handle,Part101,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.229278564, 0.00509643555, -1.30854034, -0.995167911, 0.00477665802, 0.0980637521, -0.0976645499, -0.150390878, -0.983790755, 0.010048613, -0.988614321, 0.150130734))
4186
Part21=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part21",Vector3.new(0.199999973, 0.999999881, 1.19999993))
4187
Part21weld=weld(m,Handle,Part21,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.003074646, -0.77614212, 5.03923035, 0.0988549143, 0.141272902, 0.985027492, -0.558376133, -0.811478198, 0.172419384, 0.823682308, -0.567056, -0.0013350076))
4188
mesh("SpecialMesh",Part21,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4189
Part20=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part20",Vector3.new(0.199999973, 0.799999833, 4.59999943))
4190
Part20weld=weld(m,Handle,Part20,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.0030670166, -0.676166534, -2.13925934, -0.0988565385, -0.141273394, -0.985032141, -0.558380485, -0.81147939, 0.172420278, -0.823683262, 0.56705898, 0.00133514532))
4191
4192
4193
4194
-------------------------------------------------
4195
Player=game:GetService('Players').LocalPlayer
4196
Character=Player.Character
4197
	M1=Instance.new('Model',Character)
4198
it=Instance.new
4199
function nooutline(part)
4200
	part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
4201
end
4202
function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
4203
	local fp=it("Part")
4204
	fp.formFactor=formfactor
4205
	fp.Parent=parent
4206
	fp.Reflectance=reflectance
4207
	fp.Transparency=transparency
4208
	fp.CanCollide=false
4209
	fp.Locked=true
4210
	fp.BrickColor=BrickColor.new(tostring(brickcolor))
4211
	fp.Name=name
4212
	fp.Size=size
4213
	fp.Position=Character.Torso.Position
4214
	nooutline(fp)
4215
	fp.Material=material
4216
	fp:BreakJoints()
4217
	return fp
4218
end
4219
function mesh(Mesh,part,meshtype,meshid,offset,scale)
4220
	local mesh=it(Mesh)
4221
	mesh.Parent=part
4222
	if Mesh=="SpecialMesh" then
4223
		mesh.MeshType=meshtype
4224
		mesh.MeshId=meshid
4225
	end
4226
	mesh.Offset=offset
4227
	mesh.Scale=scale
4228
	return mesh
4229
end
4230
function weld(parent,part0,part1,c0,c1)
4231
	local weld=it("Weld")
4232
	weld.Parent=parent
4233
	weld.Part0=part0
4234
	weld.Part1=part1
4235
	weld.C0=c0
4236
	weld.C1=c1
4237
	return weld
4238
end
4239
4240
Handle2=part(Enum.FormFactor.Symmetric,M1,Enum.Material.Neon,0,0,"Really black","Handle2",Vector3.new(0.737122595, 0.326575577, 1.51724529))
4241
Handle2weld=weld(M1,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.07476044, 0.582122803, 0.578117371, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387))
4242
Part10=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part10",Vector3.new(0.200000003, 0.200000003, 4.19999981))
4243
Part10weld=weld(M1,Handle2,Part10,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.0029296875, -2.11326599, -1.90862274, -0.0988372117, 0.141284317, 0.985022843, 0.484451026, -0.857813537, 0.171648204, 0.869217157, 0.494160533, 0.0163385645))
4244
mesh("SpecialMesh",Part10,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4245
Part101=part(Enum.FormFactor.Symmetric,M1,Enum.Material.Neon,0,0,"Really black","Part101",Vector3.new(0.737122595, 0.326575577, 1.47424531))
4246
Part101weld=weld(M1,Handle2,Part101,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(0.229278564, 0.00509643555, -1.30853653, -0.995167911, -0.00477665802, -0.0980637521, 0.0976645499, -0.150390878, -0.983790755, -0.010048613, -0.988614321, 0.150130734))
4247
Part13=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part13",Vector3.new(0.200000003, 1, 1.20000005))
4248
Part13weld=weld(M1,Handle2,Part13,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00296020508, -1.71326447, 4.60858154, 0.0988346562, -0.141285151, -0.985027492, 0.484457433, -0.857815027, 0.171647474, -0.869218528, -0.494164854, -0.016334977))
4249
mesh("SpecialMesh",Part13,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4250
Part18=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part18",Vector3.new(0.199999973, 0.199999973, 4.59999943))
4251
Part18weld=weld(M1,Handle2,Part18,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.0030670166, -1.1761322, -2.13922882, -0.0988577381, 0.141272023, 0.985022545, 0.558369696, -0.811476648, 0.172420546, 0.823680997, 0.567051828, 0.00133872975))
4252
mesh("SpecialMesh",Part18,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4253
Part2=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part2",Vector3.new(0.199999973, 0.999999881, 1.19999993))
4254
Part2weld=weld(M1,Handle2,Part2,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00288391113, 0.126571655, 5.54790497, 0.0988398939, -0.141292349, -0.985026062, 0.628047705, -0.758960247, 0.171884969, -0.771877706, -0.635627985, 0.0137228817))
4255
mesh("SpecialMesh",Part2,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4256
Part20=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part20",Vector3.new(0.199999973, 0.799999833, 4.59999943))
4257
Part20weld=weld(M1,Handle2,Part20,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00305175781, -0.676185608, -2.1392746, -0.0988565087, 0.141273409, 0.985032201, 0.558380425, -0.81147939, 0.172420278, 0.8236835, 0.567058921, 0.00133515324))
4258
Part21=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part21",Vector3.new(0.199999973, 0.999999881, 1.19999993))
4259
Part21weld=weld(M1,Handle2,Part21,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(0.003074646, -0.776145935, 5.03923798, 0.0988549143, -0.141272902, -0.985027492, 0.558376133, -0.811478198, 0.172419384, -0.823682308, -0.567056, -0.0013350076))
4260
mesh("SpecialMesh",Part21,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4261
Part3=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part3",Vector3.new(0.199999973, 0.799999833, 4.99999952))
4262
Part3weld=weld(M1,Handle2,Part3,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00289154053, 0.226577759, -2.44792175, -0.0988399088, 0.141292334, 0.985026062, 0.628047764, -0.758960366, 0.171885014, 0.771877646, 0.635628104, -0.0137228817))
4263
Part8=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part8",Vector3.new(0.199999988, 0.199999988, 4.99999952))
4264
Part8weld=weld(M1,Handle2,Part8,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00289154053, -0.2734375, -2.44793701, -0.098837696, 0.141291857, 0.985021651, 0.628049672, -0.758953035, 0.171883389, 0.771870911, 0.635631084, -0.0137251355))
4265
mesh("SpecialMesh",Part8,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
4266
Part9=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part9",Vector3.new(0.200000003, 0.799999952, 4.19999981))
4267
Part9weld=weld(M1,Handle2,Part9,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00295257568, -1.61328125, -1.90859985, -0.0988361612, 0.141285598, 0.985031843, 0.484461337, -0.857816219, 0.171648264, 0.86921978, 0.494167566, 0.0163351614))
4268
4269
4270
4271
--------------------------------------------------------------------------
4272
local ModeOfGlitch = "DavidGrativol"
4273
-- Functions are ready.
4274
local storehumanoidWS = 16
4275
4276
function createBGCircle(size,parent,color)
4277
local bgui = Instance.new("BillboardGui",parent)
4278
bgui.Size = UDim2.new(size, 0, size, 0)
4279
local imgc = Instance.new("ImageLabel",bgui)
4280
imgc.BackgroundTransparency = 1
4281
imgc.ImageTransparency = 0
4282
imgc.Size = UDim2.new(1,0,1,0)
4283
imgc.Image = "rbxassetid://997291547" --997291547,521073910
4284
imgc.ImageColor3 = color
4285
return bgui,imgc
4286
end
4287
4288
----------------------------------- Abilities
4289
function attackone()
4290
attack = true
4291
for x = 0, 1 do
4292
for i = 0,1,0.5 do
4293
swait()
4294
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
4295
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
4296
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
4297
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
4298
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
4299
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
4300
end
4301
for i = 0,1,0.5 do
4302
swait()
4303
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
4304
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
4305
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
4306
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
4307
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
4308
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
4309
end
4310
for i = 0,1,0.5 do
4311
swait()
4312
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
4313
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
4314
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
4315
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
4316
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
4317
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
4318
end
4319
for i = 0,1,0.5 do
4320
swait()
4321
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
4322
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
4323
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
4324
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
4325
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
4326
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.8)
4327
end
4328
end
4329
CFuncs["Sound"].Create("rbxassetid://153092213", Head, 2.5,1)
4330
4331
local hitb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.Random())
4332
hitb.Anchored = true
4333
hitb.CFrame = root.CFrame + root.CFrame.lookVector*4
4334
MagniDamage(hitb, 4, 10,50, 0, "Normal",153092213)
4335
shakes(0.1,0.1)
4336
hitb:Destroy()
4337
	for i = 0,1,0.1 do
4338
		swait()
4339
		sphere2(8,"Add",rarm.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.01,0.01,-0.01,ModeColor2,Color3.new(0,1,0))
4340
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
4341
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
4342
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
4343
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
4344
RH.C0=clerp(RH.C0,cf(1.3,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-50)),.4)
4345
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(-10)),.4)
4346
	end
4347
attack = false
4348
end
4349
function attacktwo()
4350
attack = true
4351
for i = 0,5,0.5 do
4352
swait()
4353
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.01,0.01,-0.01,ModeColor,Color3.new(0,1,0))
4354
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
4355
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(60),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
4356
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
4357
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
4358
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(40),math.rad(0),math.rad(-100)),.3)
4359
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
4360
end
4361
CFuncs["Sound"].Create("rbxassetid://153092213", Head, 2.5,1)
4362
4363
local hitb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.Random())
4364
hitb.Anchored = true
4365
hitb.CFrame = root.CFrame + root.CFrame.lookVector*4
4366
MagniDamage(hitb, 4, 10,50, 0, "Normal",153092213)
4367
shakes(0.1,0.1)
4368
hitb:Destroy()
4369
	for i = 0,1,0.1 do
4370
		swait()
4371
		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.01,0.01,-0.01,ModeColor,Color3.new(0,1,0))
4372
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-40)),0.4)
4373
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(40),math.rad(40)),.4)
4374
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
4375
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
4376
RH.C0=clerp(RH.C0,cf(1.3,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-50)),.4)
4377
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(-60),math.rad(0),math.rad(-10)),.4)
4378
	end
4379
attack = false
4380
end
4381
function attackthree()
4382
attack = true
4383
for i = 0, 2, 0.1 do
4384
swait()
4385
slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
4386
4387
RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1)
4388
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)),.1)
4389
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
4390
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
4391
RW.C0=clerp(RW.C0,cf(1.05,1.30,0)*angles(math.rad(190),math.rad(0),math.rad(-30)),.6)
4392
LW.C0=clerp(LW.C0,cf(-1.05,1.30,0)*angles(math.rad(190),math.rad(0),math.rad(30)),.6)
4393
end
4394
CFuncs["Sound"].Create("rbxassetid://1208650519", root, 1, 1)
4395
CameraEnshaking(0.1,1)
4396
local hitb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.Random())
4397
hitb.Anchored = true
4398
hitb.CFrame = root.CFrame + root.CFrame.lookVector*4
4399
MagniDamage(hitb, 20, 10,50, 0, "Normal",153092213)
4400
hitb:Destroy()
4401
sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,ModeColor)
4402
sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,ModeColor2)
4403
sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(30,0.1,30),0.01,ModeColor)
4404
for i = 0, 2, 0.1 do
4405
swait()
4406
slash(math.random(25,50)/10,5,true,"Round","Add","Out",tors.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
4407
sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,ModeColor,0)
4408
sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,ModeColor2,0)
4409
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)),.4)
4410
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)),.4)
4411
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
4412
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
4413
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
4414
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
4415
end
4416
attack = false
4417
end
4418
4419
function RemindedOfIRLBully()
4420
	attack = true
4421
bosschatfunc("...You really remind me of someone.",ModeColor.Color,4)
4422
for i = 0,20,0.1 do
4423
	swait()
4424
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
4425
	RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.1)
4426
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.1)
4427
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(10 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
4428
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90 + 1 * math.cos(sine / 0.252)),math.rad(0 + 1 * math.cos(sine / 0.123)),math.rad(15 + 1 * math.cos(sine / 0.6))),.1)
4429
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 1 * math.cos(sine / 0.568)),math.rad(0 + 1 * math.cos(sine / 0.664)),math.rad(0 + 1 * math.cos(sine / 0.23))),.1)
4430
sphere2(8,"Add",rarm.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,ModeColor,Color3.new(0,1,0))
4431
end
4432
bosschatfunc("...Named Ronan Bray... The devilish person himself.",ModeColor.Color,4)
4433
for i = 0,20,0.1 do
4434
	swait()
4435
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 5 * math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
4436
	RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.1)
4437
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.1)
4438
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(10 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
4439
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(30 + 1 * math.cos(sine / 0.252)),math.rad(0 + 1 * math.cos(sine / 0.123)),math.rad(15 + 1 * math.cos(sine / 0.6))),.1)
4440
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 1 * math.cos(sine / 0.568)),math.rad(0 + 1 * math.cos(sine / 0.664)),math.rad(-15 + 1 * math.cos(sine / 0.23))),.1)
4441
sphere2(8,"Add",rarm.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,ModeColor,Color3.new(0,1,0))
4442
end
4443
attack = false
4444
end
4445
function Hmph() --Hmph. Your bad lOOopOoOKLOlaAOlaoALondijkwaiufnhbase bvfjkabgfi;qkBGIK|FB
4446
	attack = true
4447
	ok = Instance.new("Sound",tors)
4448
	ok.Volume = 4
4449
	ok.SoundId = "rbxassetid://2854929194"
4450
	ok:Play()
4451
for i = 0,5,0.1 do
4452
	swait()
4453
  	local Alpha = .3
4454
  	RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*RootCF,Alpha)
4455
  	LH.C0 = LH.C0:lerp(cf(-1,-1,-0.1)*angles(math.rad(2),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
4456
  	RH.C0 = RH.C0:lerp(cf(1,-1.1,0)*angles(math.rad(-6),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
4457
  	LW.C0 = LW.C0:lerp(cf(-0.5,-0.2,-0.7)*angles(math.rad(-6.8),math.rad(21.2),math.rad(-178.3)),Alpha)
4458
  	RW.C0 = RW.C0:lerp(cf(0.8,0.5,-0.9)*angles(math.rad(84.8),math.rad(21.3),math.rad(-67.9)),Alpha)
4459
  	Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 10)),math.rad(0),math.rad(40)),.1)
4460
4461
end
4462
attack = false
4463
end
4464
function attackfour()
4465
	attack = true
4466
	hum.WalkSpeed = 0
4467
  for i = 0, 4, 0.1 do
4468
  	swait()
4469
  	local Alpha = .1
4470
sphere2(8,"Add",rarm.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.05,0.05,-0.05,ModeColor,Color3.new(0,1,0))
4471
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.05,0.05,-0.05,ModeColor2,Color3.new(0,1,0))
4472
  	RootJoint.C0 = RootJoint.C0:lerp(cf(0,1.7,0)*angles(math.rad(21.6),math.rad(0),math.rad(0))*RootCF,Alpha)
4473
  	LH.C0 = LH.C0:lerp(cf(-1,-1,-0.1)*angles(math.rad(-32.9),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
4474
  	RH.C0 = RH.C0:lerp(cf(1,0.1,-0.8)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
4475
  	LW.C0 = LW.C0:lerp(cf(-1.2,1.5,0)*angles(math.rad(153.6),math.rad(-2.9),math.rad(31)),Alpha)
4476
  	RW.C0 = RW.C0:lerp(cf(1,1.4,-0.2)*angles(math.rad(176),math.rad(3.2),math.rad(-33.3)),Alpha)
4477
  	Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.3,0.4)*angles(math.rad(-32),math.rad(0),math.rad(0))*necko,Alpha)
4478
  end
4479
local hitb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.Random())
4480
hitb.Anchored = true
4481
hitb.CFrame = root.CFrame + root.CFrame.lookVector*4
4482
MagniDamage1234(hitb, 50, 50,50, 0, "Normal",153092213)
4483
shakes(0.1,0.1)
4484
hitb:Destroy()
4485
sphere2(1,"Add",tors.CFrame,vt(0,0,0),1,1,1,ModeColor2)
4486
sphere2(1,"Add",tors.CFrame,vt(0,0,0),2,2,2,ModeColor)
4487
sphere2(1,"Add",tors.CFrame,vt(0,0,0),2.5,2.5,2.5,ModeColor2)
4488
sphere2(1,"Add",root.CFrame,vt(0,0,0),3,3,3,ModeColor)
4489
sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,ModeColor2)
4490
sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,ModeColor2)
4491
4492
CFuncs["Sound"].Create("rbxassetid://763718160", char, 1.5, 0.5)
4493
CFuncs["Sound"].Create("rbxassetid://763718160", char, 1.5, 0.25)
4494
CFuncs["Sound"].Create("rbxassetid://782353443", char, 4, 1)
4495
CFuncs["Sound"].Create("rbxassetid://782353443", char, 4, 0.75)
4496
  for i = 0, 10, 0.1 do
4497
  	swait()
4498
  	local Alpha = .3
4499
sphere2(8,"Add",rarm.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,ModeColor,Color3.new(0,1,0))
4500
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,ModeColor2,Color3.new(0,1,0))
4501
4502
  	RootJoint.C0 = RootJoint.C0:lerp(cf(0,-1,-1.2)*angles(math.rad(-37),math.rad(0),math.rad(0))*RootCF,Alpha)
4503
  	LH.C0 = LH.C0:lerp(cf(-1,-1,-0.1)*angles(math.rad(-32.9),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
4504
  	RH.C0 = RH.C0:lerp(cf(1,0.2,-0.3)*angles(math.rad(39.2),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
4505
  	LW.C0 = LW.C0:lerp(cf(-1.4,0.4,-0.8)*angles(math.rad(37.4),math.rad(-4.2),math.rad(-9.8)),Alpha)
4506
  	RW.C0 = RW.C0:lerp(cf(1.6,0.4,-0.7)*angles(math.rad(27.1),math.rad(-9.9),math.rad(24)),Alpha)
4507
  	Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.2,0.2)*angles(math.rad(-21.3),math.rad(0),math.rad(0))*necko,Alpha)
4508
  end
4509
hum.WalkSpeed = storehumanoidWS
4510
attack = false
4511
end
4512
function YouFightLikeAPRFan() --HAH
4513
	hum.WalkSpeed = 0
4514
	attack = true
4515
	local voice = Instance.new("Sound",tors)
4516
	voice.SoundId = "rbxassetid://2852509470"
4517
	voice.Volume = 10
4518
	voice:Play()
4519
	--2852509470
4520
	bosschatfunc("You fight like a [REDACTED] fan.",BrickColor.new("Navy blue").Color,4)
4521
for i = 0,15,0.1 do
4522
	swait()
4523
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(80),math.rad(17 - 2 * math.cos(sine / 32)))*angles(math.rad(-3),math.rad(5.5 - 2 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
4524
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-82),math.rad(-17 - 2 * math.cos(sine / 32)))*angles(math.rad(-6),math.rad(-22 - 2 * math.cos(sine / 56)),math.rad(12 + 2 * math.cos(sine / 32))),.1)
4525
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(22 + 2 * math.cos(sine / 56))),.1)
4526
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 10) - math.random(-2,2)),math.rad(0 + 1.8 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(-22 - 2 * math.cos(sine / 56) - math.random(-5,5))),.1)
4527
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.03)
4528
LW.C0=clerp(LW.C0,cf(-1.5,0.6 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(157 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.3)
4529
end
4530
	bosschatfunc("What are you,",BrickColor.new("Navy blue").Color,4)
4531
for i = 0,5,0.1 do
4532
	swait()
4533
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(80),math.rad(17 - 2 * math.cos(sine / 32)))*angles(math.rad(-3),math.rad(5.5 - 2 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
4534
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-82),math.rad(-17 - 2 * math.cos(sine / 32)))*angles(math.rad(-6),math.rad(-22 - 2 * math.cos(sine / 56)),math.rad(12 + 2 * math.cos(sine / 32))),.1)
4535
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(10 + 2 * math.cos(sine / 56))),.1)
4536
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 10) - math.random(-2,2)),math.rad(0 + 1.8 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(5 - 10 * math.cos(sine / 5) - math.random(-5,5))),.1)
4537
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.03)
4538
LW.C0=clerp(LW.C0,cf(-1.5,0.6 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(-22 - 2 * math.cos(sine / 45))),.3)
4539
end
4540
Neutral()
4541
	bosschatfunc("Stupid?",BrickColor.new("Navy blue").Color,4)
4542
	ORVOL = 0
4543
for i = 0,8,0.1 do
4544
	swait()
4545
	local Alpha = 0.1
4546
  	RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*RootCF,Alpha)
4547
  	LH.C0 = LH.C0:lerp(cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
4548
  	RH.C0 = RH.C0:lerp(cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
4549
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 10) - math.random(-2,2)),math.rad(30 + 1.8 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(0 - 2 * math.cos(sine / 56) - math.random(-5,5))),.1)
4550
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 + 0 * math.cos(sine / 43)),math.rad(0 - 0 * math.cos(sine / 52)),math.rad(0 + 9 * math.cos(sine / 45))),.03)
4551
LW.C0=clerp(LW.C0,cf(-1.5,0.6 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0 * math.cos(sine / 51)),math.rad(0 - 0 * math.cos(sine / 64)),math.rad(0 - 2 * math.cos(sine / 45))),.3)
4552
end
4553
ORVOL = 1.25
4554
newTheme("rbxassetid://511836626",0,1.1,1.25)
4555
Upset()
4556
hum.WalkSpeed = storehumanoidWS
4557
attack = false
4558
end
4559
CORRUPTCHAOS = false
4560
4561
transp=0
4562
e=Instance.new("Folder",char)
4563
e.Name = "Effects"
4564
function EffectBoi(par,color,CF,x,y,z,x1,y1,z1,de,mtyp,typ,rad,id,min,max,qu)
4565
local ex=Create("Part"){
4566
Size=Vector3.new(.2,.2,.2),
4567
CanCollide=false,
4568
Material="Neon",
4569
Anchored=true,
4570
Parent=par,
4571
Transparency=transp}
4572
NoOutline(ex)
4573
ex.CFrame=CF
4574
local exe=Create("SpecialMesh"){
4575
Scale=Vector3.new(x,y,z),
4576
MeshType=mtyp,
4577
Parent=ex}
4578
if mtyp=="FileMesh"and id~=""then
4579
exe.MeshId="rbxassetid://"..id
4580
end
4581
if color == "Rainbow" then
4582
ex.Color = Color3.new(r/255,g/255,b/255)
4583
else
4584
ex.BrickColor=BrickColor.new(color)
4585
end
4586
game:GetService("Debris"):AddItem(ex,10)
4587
local ez=ex.CFrame
4588
local nu=0
4589
local no=math.random()-math.random()
4590
coroutine.resume(coroutine.create(function()
4591
for i=transp,1.01,de do
4592
swait()
4593
if typ~=5 then
4594
ex.Transparency=i
4595
end
4596
exe.Scale=exe.Scale+Vector3.new(x1,y1,z1)
4597
if typ==1 then
4598
ex.CFrame=ex.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
4599
elseif typ==2 then
4600
ex.CFrame=ex.CFrame*CFrame.Angles(0,math.rad(rad),0)
4601
elseif typ==3 then
4602
ex.CFrame=ex.CFrame*CFrame.new(0,0,rad)
4603
elseif typ==4 then
4604
nu=nu+no
4605
ez=ez*CFrame.new(0,math.random(min,max)/qu,0)
4606
ex.CFrame=ez*CFrame.Angles(nu,0,0)
4607
--ex.CFrame=ex.CFrame
4608
elseif typ==7 then
4609
ex.CFrame=ez*CFrame.new(0,0,rad*i)
4610
ex.CFrame=ex.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
4611
end
4612
end
4613
ex:Remove()
4614
end))
4615
return ex
4616
end
4617
4618
4619
function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
4620
local bgui,imgc = createBGCircle(size,guipar,color)
4621
bgui.AlwaysOnTop = true
4622
imgc.Image = "rbxassetid://" ..img
4623
local rrot = math.random(1,2)
4624
CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
4625
coroutine.resume(coroutine.create(function()
4626
for i = 0, 24*delay do
4627
swait()
4628
if rotationenabled == true then
4629
if rrot == 1 then
4630
imgc.Rotation = imgc.Rotation + rotsp
4631
elseif rrot == 2 then
4632
imgc.Rotation = imgc.Rotation - rotsp
4633
end
4634
end
4635
bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
4636
imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
4637
end
4638
bgui:Destroy()
4639
end))
4640
end
4641
4642
4643
4644
4645
local glitchMeshes = {}	
4646
4647
function genGlitches()
4648
	clearGlitches()
4649
	for _,v in next, char:children() do
4650
		if(v:IsA'Part' and v.Name~='Ring')then
4651
			local mesh = v:FindFirstChildOfClass'SpecialMesh'
4652
			if(mesh)then
4653
				mesh.Parent=nil
4654
				local glitched = mesh:Clone()
4655
				glitched.Parent=v
4656
				table.insert(glitchMeshes,{Part=v,Original=mesh,New=glitched;})
4657
			else
4658
				table.insert(glitchMeshes,{Part=v,New=Instance.new("BlockMesh",v);})
4659
			end
4660
		elseif(v:IsA'Accessory' and v:FindFirstChild'Handle')then
4661
			local mesh = v.Handle:FindFirstChildOfClass'SpecialMesh'
4662
			if(mesh)then
4663
				mesh.Parent=nil
4664
				local glitched = mesh:Clone()
4665
				glitched.Parent=v.Handle
4666
				table.insert(glitchMeshes,{Part=v.Handle,Original=mesh,New=glitched;})
4667
			else
4668
				table.insert(glitchMeshes,{Part=v.Handle,New=Instance.new("BlockMesh",v.Handle);})
4669
			end
4670
		end
4671
	end
4672
end
4673
4674
function clearGlitches()
4675
	for _,v in next, glitchMeshes do
4676
		if(v.Original)then
4677
			v.Original.Parent=v.Part
4678
		end
4679
		v.New:destroy()
4680
	end
4681
	glitchMeshes={}
4682
end
4683
4684
function causeGlitch(intensity)
4685
	local intensity = intensity or 1
4686
	for _,v in next, glitchMeshes do
4687
		v.New.Offset=Vector3.new((math.random(-1,1)/10)*intensity,(math.random(-1,1)/10)*intensity,(math.random(-1,1)/10)*intensity)
4688
	end
4689
end
4690
4691
local Glitching=false
4692
local lastGlitch=tick()
4693
local static = Instance.new("Sound")
4694
static.Volume=1
4695
static.SoundId='rbxassetid://1588058260'
4696
4697
coroutine.wrap(function()
4698
	while true do
4699
		swait()
4700
		if(ModeOfGlitch == "Corrupt" or ModeOfGlitch == "CHAOS")then
4701
			if(tick()-lastGlitch>=(math.random()*2) and math.random(0,30)==1 and not Glitching)then
4702
				genGlitches()
4703
				Glitching=true
4704
				static.Parent=tors
4705
				wait()
4706
				static:Play()
4707
				local start=tick()
4708
				repeat swait()
4709
					causeGlitch((ModeOfGlitch == "CHAOS" and 4))
4710
				until tick()-start>=(math.random()*2)+0.1
4711
				lastGlitch=tick()
4712
				Glitching=false
4713
				clearGlitches()
4714
				static:Stop()
4715
				static.Parent=nil
4716
			end
4717
		end
4718
	end	
4719
end)()
4720
4721
4722
4723
4724
4725
4726
function ExtinctiveHeartbreak()
4727
4728
local targetted = nil
4729
if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
4730
targetted = mouse.Target.Parent
4731
end
4732
if targetted ~= nil then
4733
attack = true
4734
4735
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
4736
for i = 0, 9 do
4737
sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
4738
end
4739
for i = 0, 24 do
4740
PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
4741
end
4742
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
4743
local originalpos = root.CFrame
4744
RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
4745
for i = 0, 9 do
4746
sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
4747
end
4748
for i = 0, 24 do
4749
PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
4750
end
4751
hum.WalkSpeed = 0
4752
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
4753
local radm = math.random(1,3)
4754
if radm == 1 then
4755
bosschatfunc("YOU WONT BE NECCESSARY.",ModeColor.Color,2)
4756
elseif radm == 2 then
4757
bosschatfunc("YOUR EXISTANCE WILL BE GONE.",ModeColor.Color,2)
4758
elseif radm == 3 then
4759
bosschatfunc("DIE!",ModeColor.Color,2)
4760
end
4761
for i = 0,2,0.1 do
4762
swait()
4763
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(-10),math.rad(0)),.4)
4764
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)),.4)
4765
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
4766
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
4767
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
4768
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
4769
end
4770
CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
4771
CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
4772
for i = 0,2,0.1 do
4773
swait()
4774
coroutine.resume(coroutine.create(function()
4775
targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
4776
for i,v in pairs(targetted:GetChildren()) do
4777
if v:IsA("BasePart") or v:IsA("MeshPart") then
4778
v.Velocity = vt(0,0,0)
4779
end
4780
end
4781
end))
4782
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)),.8)
4783
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(10),math.rad(0)),.8)
4784
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
4785
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
4786
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
4787
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
4788
end
4789
shakes(1.25,1.5)
4790
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
4791
CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
4792
for i = 0, 1 do
4793
CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
4794
end
4795
CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
4796
--chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
4797
for i = 0,4,0.1 do
4798
swait()
4799
coroutine.resume(coroutine.create(function()
4800
local dis = CreateParta(char,1,1,"Neon",ModeColor)
4801
dis.CFrame = targetted.Head.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)))
4802
local at1 = Instance.new("Attachment",dis)
4803
at1.Position = vt(-25000,0,0)
4804
local at2 = Instance.new("Attachment",dis)
4805
at2.Position = vt(25000,0,0)
4806
local trl = Instance.new('Trail',dis)
4807
trl.Attachment0 = at1
4808
trl.FaceCamera = true
4809
trl.Attachment1 = at2
4810
trl.Texture = "rbxassetid://1049219073"
4811
trl.LightEmission = 1
4812
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
4813
trl.Color = ColorSequence.new(Color3.new(1,0,0))
4814
trl.Lifetime = 5
4815
local bv = Instance.new("BodyVelocity")
4816
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4817
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
4818
bv.Parent = dis
4819
game:GetService("Debris"):AddItem(dis, 5)
4820
targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
4821
CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
4822
CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
4823
CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
4824
CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
4825
CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
4826
sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,ModeColor)
4827
targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
4828
for i = 0, 2 do
4829
slash(5,5,true,"Round","Add","Out",targetted.Head.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,350)/250,BrickColor.new("KING CRIMSON DAVID!"))
4830
end
4831
symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
4832
for i,v in pairs(targetted:GetChildren()) do
4833
if v:IsA("BasePart") or v:IsA("MeshPart") then
4834
v.Velocity = vt(0,0,0)
4835
end
4836
end
4837
end))
4838
hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
4839
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)),.8)
4840
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(10),math.rad(0)),.8)
4841
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
4842
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
4843
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8)
4844
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
4845
end
4846
hum.CameraOffset = vt(0,0,0)
4847
for i = 0, 49 do
4848
local dis = CreateParta(char,1,1,"Neon",ModeColor)
4849
dis.CFrame = targetted.Head.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)))
4850
local at1 = Instance.new("Attachment",dis)
4851
at1.Position = vt(-50000,0,0)
4852
local at2 = Instance.new("Attachment",dis)
4853
at2.Position = vt(50000,0,0)
4854
local trl = Instance.new('Trail',dis)
4855
trl.Attachment0 = at1
4856
trl.FaceCamera = true
4857
trl.Attachment1 = at2
4858
trl.Texture = "rbxassetid://1049219073"
4859
trl.LightEmission = 1
4860
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
4861
trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
4862
trl.Lifetime = 5
4863
local bv = Instance.new("BodyVelocity")
4864
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4865
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
4866
bv.Parent = dis
4867
game:GetService("Debris"):AddItem(dis, 5)
4868
end
4869
for i = 0, 49 do
4870
sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,ModeColor)
4871
slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.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(40,500)/250,BrickColor.new("Really red"))
4872
end
4873
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
4874
for i = 0, 1 do
4875
CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
4876
CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
4877
end
4878
for i = 0, 4 do
4879
CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
4880
end
4881
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
4882
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
4883
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
4884
dmg(targetted)
4885
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
4886
for i = 0, 9 do
4887
sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
4888
end
4889
for i = 0, 24 do
4890
PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
4891
end
4892
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
4893
root.CFrame = originalpos
4894
for i = 0, 9 do
4895
sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
4896
end
4897
for i = 0, 24 do
4898
PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
4899
end
4900
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
4901
attack = false
4902
hum.WalkSpeed = storehumanoidWS
4903
4904
end
4905
end
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
function warnedyo(text,represfont,color,color2)
4917
	if disably ~= true then
4918
CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
4919
CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
4920
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
4921
coroutine.resume(coroutine.create(function()
4922
if v.PlayerGui:FindFirstChild("Spinny")~= nil then
4923
v.PlayerGui:FindFirstChild("Spinny"):destroy()
4924
end
4925
local scrg = Instance.new("ScreenGui",v.PlayerGui)
4926
scrg.Name = "Spinny"
4927
local frm = Instance.new("TextLabel",scrg)
4928
frm.BackgroundTransparency = 0.75
4929
frm.BackgroundColor3 = color2
4930
frm.BorderSizePixel = 0
4931
frm.Rotation = 0
4932
frm.Size = UDim2.new(4,0,0,75)
4933
frm.Position = UDim2.new(-4,0,0,0)
4934
frm.Text = text
4935
frm.Font = represfont
4936
frm.TextColor3 = color
4937
frm.TextStrokeColor3 = color
4938
frm.TextScaled = true
4939
local frm2 = frm:Clone()
4940
frm2.Parent = scrg
4941
frm2.BackgroundColor3 = color2
4942
frm2.Position = UDim2.new(-4.05,0,22222222,0)
4943
local txtlb2 = Instance.new("TextLabel",imlb)
4944
txtlb2.Text = text
4945
txtlb2.Font = represfont
4946
txtlb2.TextColor3 = color
4947
txtlb2.TextStrokeTransparency = 0
4948
txtlb2.BackgroundTransparency = 1
4949
txtlb2.TextStrokeColor3 = color2
4950
txtlb2.TextScaled = true
4951
txtlb2.Size = UDim2.new(1,0,1,0)
4952
txtlb2.Position = UDim2.new(0,0,0,0)
4953
local fvalen = 0.55
4954
local fval = -0.49
4955
coroutine.resume(coroutine.create(function()
4956
while true do
4957
swait()
4958
if chaosmode == true then
4959
txtlb2.TextStrokeColor3 = BrickColor.random().Color
4960
end
4961
end
4962
end))
4963
coroutine.resume(coroutine.create(function()
4964
while true do
4965
swait()
4966
if scrg.Parent ~= nil then
4967
	fvalen = fvalen - 0.0001
4968
elseif scrg.Parent == nil then
4969
break
4970
end
4971
end
4972
end))
4973
local flol = -5
4974
local flil = 1.6
4975
coroutine.resume(coroutine.create(function()
4976
	for i = 0, 49 do
4977
		swait()
4978
		flol = flol + 0.125
4979
		flil = flil - 0.1
4980
		frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
4981
		frm.Rotation = frm.Rotation - 0
4982
		frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
4983
		frm2.Rotation = frm.Rotation + 0.325
4984
		txtlb2.Rotation = txtlb2.Rotation - 5.125
4985
end
4986
	for i = 0, 99 do
4987
		swait()
4988
		fval = fval + 0.05
4989
		flol = flol + 0.005
4990
		frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
4991
		frm.Rotation = frm.Rotation - 0
4992
		frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
4993
		frm2.Rotation = frm2.Rotation + 0.125
4994
		txtlb2.Rotation = txtlb2.Rotation - 1.125
4995
	end
4996
local valinc = 0
4997
local vinc2 = 1
4998
for i = 0, 99 do
4999
swait()
5000
vinc2 = vinc2 + 0.25
5001
valinc = valinc + 0.0001
5002
flol = flol + valinc
5003
flil = flil + valinc
5004
txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
5005
frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
5006
frm.Rotation = frm.Rotation + 0*vinc2
5007
frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
5008
frm2.Rotation = frm2.Rotation + 0.225*vinc2
5009
frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
5010
frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
5011
txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
5012
txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
5013
end
5014
scrg:Destroy()
5015
end))
5016
end))
5017
end
5018
end
5019
end
5020
5021
function MagniDamage1234(Part, magni, mindam, maxdam, knock, Type)
5022
  for _, c in pairs(workspace:children()) do
5023
    local hum = c:findFirstChildOfClass("Humanoid")
5024
    if hum ~= nil then
5025
      local head = c:findFirstChild("Head")
5026
      if head ~= nil then
5027
        local targ = head.Position - Part.Position
5028
        local mag = targ.magnitude
5029
        if magni >= mag and c.Name ~= Player.Name then
5030
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
5031
        end
5032
      end
5033
    end
5034
  end
5035
end
5036
5037
5038
5039
5040
function CastRay(startPos,endPos,range,ignoreList)
5041
	local ray = Ray.new(startPos,(endPos-startPos).unit*range)
5042
	local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {char},false,true)
5043
	return part,pos,norm,(pos and (startPos-pos).magnitude)
5044
end
5045
5046
function Part(parent,color,material,size,cframe,anchored,cancollide)
5047
	local part = Instance.new("Part")
5048
	part.Parent = parent or char
5049
	part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0)
5050
	part.Material = material or Enum.Material.SmoothPlastic
5051
	part.TopSurface,part.BottomSurface=10,10
5052
	part.Size = size or Vector3.new(1,1,1)
5053
	part.CFrame = cframe or cf(0,0,0)
5054
	part.CanCollide = cancollide or false
5055
	part.Anchored = anchored or false
5056
	return part
5057
end
5058
5059
5060
	local fromaxisangle = function(x, y, z) -- credit to phantom forces devs
5061
	if not y then
5062
		x, y, z = x.x, x.y, x.z
5063
	end
5064
	local m = (x * x + y * y + z * z) ^ 0.5
5065
	if m > 1.0E-5 then
5066
		local si = math.sin(m / 2) / m
5067
		return CFrame.new(0, 0, 0, si * x, si * y, si * z, math.cos(m / 2))
5068
	else
5069
		return CFrame.new()
5070
	end
5071
end
5072
function fakePhysics(elapsed,cframe,velocity,rotation,acceleration)
5073
	local pos = cframe.p
5074
	local matrix = cframe-pos
5075
	return fromaxisangle(elapsed*rotation)*matrix+pos+elapsed*velocity+elapsed*elapsed*acceleration
5076
end
5077
5078
function Projectile(data)
5079
	local Size = data.Size or 1;
5080
	local Origin = data.Origin or Torso.CFrame;
5081
	local Velocity = data.Velocity or Vector3.new(0,100,0);
5082
	local Gravity = data.Gravity or workspace.Gravity;
5083
	local Color = data.Color or Color3.new(.7,0,0);
5084
	local Lifetime = data.Lifetime or 1;
5085
	local Material = data.Material or Enum.Material.Glass;
5086
	local Ignore = data.Ignorelist or {char};
5087
    local MeshData = data.Mesh or {};
5088
	local HitFunc = data.Hit;
5089
	local ShouldCollide = data.CheckCollision;
5090
    local Update = data.Update;
5091
    local Initialize = data.Initialize;
5092
5093
	local drop = Part(char,Color,Material,typeof(Size)=='number' and Vector3.new(Size,Size,Size) or typeof(Size)=='Vector3' and Size or Vector3.new(1,1,1),Origin,true,false)
5094
    local dropM = Mesh(drop,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
5095
    if(Initialize)then
5096
        Initialize(drop,dropM)
5097
    end
5098
	local startTick = tick();
5099
	coroutine.wrap(function()
5100
		while true do
5101
			local elapsed = tick()-startTick
5102
			if(elapsed>Lifetime)then
5103
				drop:destroy();
5104
				break
5105
			end
5106
			local newCF = fakePhysics(elapsed,Origin,Velocity,Vector3.new(),Vector3.new(0,-Gravity,0))
5107
			local dist = (drop.Position-newCF.p).magnitude
5108
			local hit,pos,norm = CastRay(drop.Position,newCF.p,dist,Ignore)
5109
			if(hit and (not ShouldCollide or ShouldCollide(hit)))then
5110
				drop:destroy()
5111
				if(HitFunc)then HitFunc(hit,pos,norm,data) end
5112
				break
5113
			else
5114
				if(hit)then table.insert(Ignore,hit) end
5115
				drop.CFrame = newCF
5116
			end
5117
            if(Update)then
5118
                Update(drop)
5119
            end
5120
			swait()
5121
		end
5122
	end)()
5123
	end
5124
5125
5126
5127
function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
5128
	local orb = Instance.new("Part", char)
5129
	orb.Anchored = true
5130
	orb.BrickColor = color
5131
	orb.CanCollide = false
5132
	orb.FormFactor = 3
5133
	orb.Name = "Ring"
5134
	orb.Material = "Neon"
5135
	orb.Size = Vector3.new(1, 1, 1)
5136
	orb.Transparency = 0
5137
	orb.TopSurface = 0
5138
	orb.BottomSurface = 0
5139
	local orbm = Instance.new("SpecialMesh", orb)
5140
	orbm.MeshType = "Sphere"
5141
	orb.CFrame = positted
5142
	orbm.Name = "SizeMesh"
5143
	orbm.Scale = vt(1, 1, 1)
5144
	CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
5145
	sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
5146
	coroutine.resume(coroutine.create(function()
5147
		wait(timer)
5148
		
5149
		orb.Transparency = 1
5150
		MagniDamage1234(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
5151
		sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
5152
		CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
5153
		wait(3)
5154
		orb:Destroy()
5155
	end))
5156
end
5157
5158
ModeColor = ModeColor
5159
function CorruptionEvent2()
5160
attack = true
5161
local ModeColor = ModeColor
5162
5163
5164
bosschatfunc("Corruption",BrickColor.new("Royal purple").Color,7)
5165
hum.WalkSpeed = 0
5166
CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
5167
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
5168
local keptcolor = ModeColor
5169
for i = 0,4,0.1 do
5170
swait()
5171
block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,ModeColor,ModeColor.Color)
5172
RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
5173
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)),.1)
5174
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
5175
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
5176
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
5177
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
5178
end
5179
5180
symbolizeBlink(root,0,2109052855,ModeColor.Color,25,0,0,0,root,false,0,1)
5181
symbolizeBlink(root,0,2109052855,ModeColor.Color,25,0,0,0,root,false,0,1.5)
5182
symbolizeBlink(root,0,2109052855,ModeColor.Color,25,0,0,0,root,false,0,3)
5183
CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
5184
CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
5185
CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
5186
CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
5187
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
5188
coroutine.resume(coroutine.create(function()
5189
local eff = Instance.new("ParticleEmitter",cen)
5190
eff.Texture = "rbxassetid://2344870656"
5191
eff.LightEmission = 1
5192
eff.Color = ColorSequence.new(keptcolor.Color)
5193
eff.Rate = 10000000
5194
eff.Enabled = true
5195
eff.EmissionDirection = "Front"
5196
eff.Lifetime = NumberRange.new(2)
5197
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)})
5198
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
5199
eff.Speed = NumberRange.new(500)
5200
eff.Drag = 5
5201
eff.Rotation = NumberRange.new(-500,500)
5202
eff.SpreadAngle = Vector2.new(0,900)
5203
eff.RotSpeed = NumberRange.new(-500,500)
5204
wait(0.2)
5205
eff.Enabled = false
5206
wait(5)
5207
eff:Destroy()
5208
end))
5209
bosschatfunc("Event!",BrickColor.new("Royal purple").Color,7)
5210
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,ModeColor,ModeColor.Color)
5211
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,ModeColor,ModeColor.Color)
5212
for i = 0, 24 do
5213
slash(math.random(15,50)/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(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
5214
end
5215
local rrot = 0
5216
coroutine.resume(coroutine.create(function()
5217
	local rot = 0
5218
	local randomrotations = math.random(1, 2)
5219
	local lookv = 2.5
5220
	local power = 5
5221
	sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
5222
	sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
5223
	for i = 0, 9 do
5224
		sphereMK(1, 1.5, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 10, 10, 45, -0.1, BrickColor.new("Royal purple"), 0)
5225
	end
5226
	CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
5227
	CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
5228
	CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
5229
	CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
5230
	CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
5231
	local out = 5
5232
	coroutine.wrap(function()
5233
		for rad = 0, 180,5 do
5234
			if(rad>90)then
5235
				out=out-5
5236
			else
5237
				out=out+5
5238
			end
5239
			local start=root.CFrame
5240
			orb_spawn_norm(start*angles(0,math.rad(rad),0)*cf(0,-2,out), 3, BrickColor.new("Really black"), power, 25, 75, 10, power / 5, 7.5)
5241
			orb_spawn_norm(start*angles(0,math.rad(rad),0)*cf(0,-2,-out), 3, BrickColor.new("Really black"), power, 25, 75, 10, power / 5, 7.5)
5242
			orb_spawn_norm(start*angles(0,math.rad(rad),0)*cf(out,-2,0), 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
5243
			orb_spawn_norm(root.CFrame*angles(0,math.rad(rad),0)*cf(-out,-2,0), 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
5244
			swait()
5245
		end
5246
	end)()
5247
end))
5248
for i = 0,2,0.1 do
5249
swait()
5250
RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
5251
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(10)),.8)
5252
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
5253
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
5254
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
5255
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
5256
end
5257
5258
5259
attack = false
5260
hum.WalkSpeed = storehumanoidWS
5261
end
5262
5263
5264
5265
5266
5267
5268
5269
5270
local p1mit = Instance.new("ParticleEmitter")
5271
p1mit.Texture = "rbxasset://textures/particles/fire_main.dds"
5272
p1mit.LightEmission = 1
5273
p1mit.Color = ColorSequence.new(Color3.new(0,0,1))
5274
p1mit.Size = NumberSequence.new(1,0)
5275
p1mit.Lifetime = NumberRange.new(2)
5276
p1mit.Rate = 1000
5277
p1mit.Rotation = NumberRange.new(0,359)
5278
p1mit.Speed = NumberRange.new(0)
5279
5280
5281
5282
5283
coroutine.resume(coroutine.create(function()
5284
	while true do 
5285
	swait()
5286
if  ModeOfGlitch == "Dreamess of David." then
5287
5288
5289
5290
5291
sphere2(3,"Add",root.CFrame*CFrame.new(0,-3,0),vt(3,0.55,3),0.025,-0.01,0.025,ModeColor)
5292
5293
Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-2,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 10)),math.rad(-30 * math.cos(sine / 10))),.1)
5294
Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-2,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 10)),math.rad(30 * math.cos(sine / 10))),.1)
5295
				end
5296
			end
5297
		
5298
	
5299
end))
5300
5301
5302
coroutine.resume(coroutine.create(function()
5303
	while true do 
5304
	swait()
5305
if ModeOfGlitch == "KING CRIMSON DAVID!" then
5306
Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
5307
Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
5308
		end
5309
	end
5310
end))
5311
5312
coroutine.resume(coroutine.create(function()
5313
	while true do 
5314
	swait()
5315
if ModeOfGlitch == "DavidGrativol" then
5316
local			lolwut = {"David...?","David...?","David...?","David...?","David...?","David...?","David...?","David...?","David...?","David...?"}
5317
local            Sanicz = lolwut[math.random(1,#lolwut)]
5318
           RecolorTextAndRename(Sanicz,BrickColor.new("Really black").Color,BrickColor.new("Really red").Color,"Arcade")
5319
            ModeColor = BrickColor.new("Really red")
5320
			ModeColor2 = BrickColor.new("Really blue")
5321
		end
5322
	end
5323
end))
5324
5325
5326
function owo()
5327
local targetted = nil
5328
if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
5329
targetted = mouse.Target.Parent
5330
end
5331
if targetted ~= nil then
5332
RootPart.CFrame = FaceMouse()[1]
5333
attack = true
5334
hum.WalkSpeed = 0
5335
for x = 0, 1 do
5336
for i = 0,1,0.5 do
5337
swait()
5338
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
5339
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
5340
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
5341
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
5342
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
5343
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
5344
end
5345
for i = 0,1,0.5 do
5346
swait()
5347
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
5348
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
5349
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
5350
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
5351
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
5352
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
5353
end
5354
for i = 0,1,0.5 do
5355
swait()
5356
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
5357
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
5358
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
5359
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
5360
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
5361
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
5362
end
5363
for i = 0,1,0.5 do
5364
swait()
5365
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
5366
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
5367
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
5368
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
5369
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
5370
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
5371
end
5372
end
5373
coroutine.resume(coroutine.create(function()
5374
5375
CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
5376
CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
5377
end))
5378
local A1 = Instance.new("Attachment",targetted.Head)
5379
local A2 = Instance.new("Attachment",sorb)
5380
local Beem = Instance.new("Beam",tors)
5381
Beem.Attachment0 = A1
5382
Beem.Attachment1 = A2
5383
Beem.Texture = "rbxassetid://897585362"
5384
Beem.LightEmission = 0.75
5385
Beem.FaceCamera = true
5386
Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
5387
Beem.Width0 = 1
5388
Beem.Width1 = 1
5389
Beem.TextureMode = "Wrap"
5390
Beem.TextureLength = 1
5391
Beem.Color = ColorSequence.new(ModeColor.Color)
5392
sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),0.15,0.15,0.15,ModeColor)
5393
sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),0.2,0.2,0.2,ModeColor)
5394
for x = 0, 24 do
5395
local rsiz = math.random(5,15)
5396
sphereMK(math.random(1,5),0.25,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,ModeColor,0)
5397
end
5398
5399
CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
5400
CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
5401
local radm = math.random(1,3)
5402
if radm == 1 then
5403
bosschatfunc("GOTCHA!!",ModeColor.Color,1)
5404
elseif radm == 2 then
5405
bosschatfunc("COM'ERE!!",ModeColor.Color,1)
5406
elseif radm == 3 then
5407
bosschatfunc("UwU",ModeColor.Color,1)
5408
end
5409
for i = 0,3,0.1 do
5410
swait()
5411
coroutine.resume(coroutine.create(function()
5412
local rsiz = math.random(5,15)
5413
sphereMK(math.random(1,5),0.01,"Add",targetted.Head.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))),rsiz/10,rsiz/10,rsiz/10,0,ModeColor,0)
5414
end))
5415
sphere2(8,"Add",sorb.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,0.01,0.01,ModeColor)
5416
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
5417
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
5418
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
5419
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
5420
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(50)),.6)
5421
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.6)
5422
end
5423
CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
5424
CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
5425
local vel = Instance.new("BodyPosition", targetted.Head)
5426
vel.P = 12500
5427
vel.D = 1000
5428
vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
5429
vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
5430
for i = 0,4,0.1 do
5431
swait()
5432
coroutine.resume(coroutine.create(function()
5433
local rsiz = math.random(5,15)
5434
sphereMK(math.random(1,5),0.01,"Add",targetted.Head.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))),rsiz/10,rsiz/10,rsiz/10,0,ModeColor,0)
5435
end))
5436
sphere2(8,"Add",sorb.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,0.01,0.01,ModeColor)
5437
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
5438
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.2)
5439
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
5440
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
5441
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-50)),.2)
5442
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.2)
5443
end
5444
local visibility = 0
5445
coroutine.resume(coroutine.create(function()
5446
for i = 0, 49 do
5447
swait()
5448
visibility = visibility + 0.02
5449
Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
5450
end
5451
Beem:Destroy()
5452
A1:Destroy()
5453
A2:Destroy()
5454
end))
5455
game:GetService("Debris"):AddItem(vel,0.75)
5456
attack = false
5457
hum.WalkSpeed = storehumanoidWS
5458
5459
end
5460
end
5461
5462
5463
5464
5465
Distorted = false
5466
-------------------------------------
5467
5468
Humanoid.Animator.Parent = nil
5469
5470
-------------------------------------
5471
bosschatfunc(EDIT_LOGS_AND_SHIT,BrickColor.new("Really blue").Color,50)
5472
5473
5474
--[[
5475
local fastcast=require(script.FastCast)
5476
5477
local bloodPuddle = script:WaitForChild'BloodPuddle'
5478
bloodPuddle.Parent=nil
5479
local BloodPuddles = {}
5480
function newBloodCaster(ignores)
5481
	local bloodCaster = fastcast.new()
5482
	bloodCaster.Gravity =workspace.Gravity
5483
	bloodCaster.ExtraForce = Vector3.new(0,0,0)
5484
	bloodCaster.IgnoreDescendantsInstance = (ignores or char)
5485
	bloodCaster.LengthChanged:Connect(function(origin,sorigin,sdir,len,bloodDrop)
5486
		bloodDrop.Size = Vector3.new(.2,.2,len)
5487
		bloodDrop.CFrame = CFrame.new(sorigin,sorigin+sdir) * CFrame.new(0, 0, -len/2)
5488
	end)
5489
	
5490
	bloodCaster.RayHit:Connect(function(hit,pos,norm,mat,bloodDrop)
5491
		
5492
		if hit then
5493
			if(BloodPuddles[hit])then
5494
				local cyl = hit:FindFirstChild'CylinderMesh'
5495
				if(cyl)then
5496
					BloodPuddles[hit] = 0
5497
					cyl.Scale = cyl.Scale + Vector3.new(bloodDrop.Size.x*2,0,bloodDrop.Size.z*2)
5498
					hit.Transparency = 0
5499
				end
5500
			else
5501
				local part = bloodPuddle:Clone();
5502
				part.Parent = workspace
5503
				part.CFrame = CFrame.new(pos,pos+norm)*CFrame.Angles(math.rad(90),0,0)
5504
				part.Size = Vector3.new(bloodDrop.Size.x*2,.1,bloodDrop.Size.z*2)
5505
				
5506
				BloodPuddles[part]=0
5507
			end
5508
		end
5509
		bloodDrop:destroy()
5510
	end)
5511
	
5512
	return bloodCaster;
5513
end
5514
	
5515
function bloodDrop(origin,dir,speed,ignores)
5516
	local bloodCaster=newBloodCaster()
5517
	local origin = origin or root.CFrame.p;
5518
	local dir = dir or root.CFrame.lookVector
5519
	local speed = speed or 150;
5520
	local drop = Instance.new("Part")
5521
	drop.Color = bloodPuddle.Color;
5522
	drop.Anchored = true
5523
	drop.CanCollide = false
5524
	drop.Locked = true
5525
	drop.Material = bloodPuddle.Material
5526
	drop.Size = Vector3.new(.2,.2,.2)
5527
	drop.CFrame = CFrame.new(origin, origin+dir)
5528
	drop.Parent = workspace
5529
	drop.Name = 'Drop'
5530
	bloodCaster:Fire(origin,dir*800,speed,drop)
5531
end
5532
5533
5534
	for i,v in next, BloodPuddles do
5535
		local mesh = i:FindFirstChild'CylinderMesh'
5536
		BloodPuddles[i] = v + 1
5537
		if(not mesh or i.Transparency >= 1)then
5538
			print(mesh,i.Transparency)
5539
			i:destroy() 
5540
			BloodPuddles[i] = nil
5541
		elseif(v >= Frame_Speed*4)then
5542
			local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
5543
			i.Transparency = trans
5544
	            if(mesh.Scale.Z > 0)then
5545
	                mesh.Scale = mesh.Scale-Vector3.new(.05,0,.05)
5546
	            end
5547
		else
5548
			i.Transparency = 0
5549
		end
5550
	end]]
5551
	
5552
5553
5554
--------------------------
5555
5556
--------------------------
5557
5558
print(mouse,mouse.Button1Down)
5559
local attacktype = 1
5560
mouse.Button1Down:connect(function()
5561
  if attack == false and attacktype == 1 then
5562
    attacktype = 2
5563
    attackone()
5564
  elseif attack == false and attacktype == 2 then
5565
    attacktype = 3
5566
    attacktwo()
5567
  elseif attack == false and attacktype == 3 then
5568
    attacktype = 4
5569
    attackthree()
5570
  elseif attack == false and attacktype == 4 then
5571
    attacktype = 1
5572
    attackfour()
5573
  end
5574
end)
5575
Shadow = false
5576
newTheme("rbxassetid://511836626",0,1.1,1.25)
5577
mouse.KeyDown:connect(function(k)
5578
if k == "l" and mutedtog == false then
5579
mutedtog = true
5580
kan.Volume = 0.05
5581
elseif k == "l" and mutedtog == true then
5582
mutedtog = false
5583
kan.Volume = 1.25
5584
end
5585
if k == "q" and attack == false and ModeOfGlitch ~= "DavidGrativol" then
5586
ModeOfGlitch = "DavidGrativol"
5587
Upset()
5588
storehumanoidWS = 20
5589
hum.WalkSpeed = 20
5590
RecolorTextAndRename("DavidGrativol...?",BrickColor.new("Really red").Color,BrickColor.new("Really black").Color,"Antique")
5591
chaosmode = false
5592
rainbowmode = false
5593
Distorted = false
5594
ENRAGE = false
5595
Global = false
5596
Shadow = true
5597
CORRUPTCHAOS = false
5598
newTheme("rbxassetid://511836626",0,1.1,1.25)
5599
ModeColor = BrickColor.new("Really blue")
5600
ModeColor2 = BrickColor.new("Really red")
5601
disably = false
5602
warnedyo("YOU MONSTER... G-GR....","Arcade",Color3.new(0.25,0,0),Color3.new(1,0,0))
5603
5604
elseif k == "e" and attack == false and ModeOfGlitch ~= "Ocean David." then
5605
ModeOfGlitch = "Ocean David."
5606
Happy()
5607
storehumanoidWS = 20
5608
hum.WalkSpeed = 20
5609
chaosmode = false
5610
rainbowmode = false
5611
Distorted = false
5612
ModeColor = BrickColor.new("Toothpaste")
5613
ModeColor2 = BrickColor.new("Toothpaste")
5614
ENRAGE = false
5615
Global = false
5616
Shadow = false
5617
CORRUPTCHAOS = false
5618
newTheme("rbxassetid://2914547104",0,1.1,1.25)
5619
RecolorTextAndRename("Ocean David.",BrickColor.new("Toothpaste").Color,BrickColor.new("Deep blue").Color,"Code")
5620
elseif k == "r" and attack == false and ModeOfGlitch ~= "Corrupt" then
5621
ModeOfGlitch = "Corrupt"
5622
Happy()
5623
storehumanoidWS = 20
5624
hum.WalkSpeed = 20
5625
chaosmode = false
5626
rainbowmode = false
5627
Distorted = false
5628
ENRAGE = false
5629
Global = false
5630
Shadow = true
5631
CORRUPTCHAOS = false
5632
ModeColor = BrickColor.new("Really black")
5633
ModeColor2 = BrickColor.new("Royal purple")
5634
newTheme("rbxassetid://544291208",58.15,0.98,1.25)
5635
RecolorTextAndRename("CORRUPTED DAVID...",BrickColor.new("Really black").Color,BrickColor.new("Royal purple").Color,"SciFi")
5636
elseif k == "t" and attack == false and ModeOfGlitch ~= "CHAOS" then
5637
ModeOfGlitch = "C H A O S | D A V I D"
5638
Upset()
5639
storehumanoidWS = 20
5640
hum.WalkSpeed = 20
5641
chaosmode = true
5642
rainbowmode = false
5643
Distorted = false
5644
ENRAGE = false
5645
Global = false
5646
Shadow = true
5647
CORRUPTCHAOS = false
5648
ModeColor = BrickColor.new("Black")
5649
ModeColor2 = BrickColor.new("Black")
5650
newTheme("rbxassetid://623662713",0,1.02,1.25)
5651
RecolorTextAndRename("CHAOS",BrickColor.random().Color,BrickColor.random().Color,"Code")
5652
bosschatfunc("CHAOS",Color3.new(1,1,1),7)
5653
elseif k == "y" and attack == false and ModeOfGlitch ~= "DIVINITY" then
5654
ModeOfGlitch = "DIVINITY"
5655
Happy()
5656
storehumanoidWS = 20
5657
hum.WalkSpeed = 20
5658
chaosmode = false
5659
rainbowmode = false
5660
Distorted = false
5661
ENRAGE = false
5662
Global = false
5663
Shadow = false
5664
CORRUPTCHAOS = false
5665
ModeColor = BrickColor.new("White")
5666
ModeColor2 = BrickColor.new("Bright yellow")
5667
newTheme("rbxassetid://862258091",0,1.02,1.25)
5668
RecolorTextAndRename("Angelic David.",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
5669
5670
elseif k == "u" and attack == false and ModeOfGlitch ~= "Flying To Skys!" then
5671
ModeOfGlitch = "Flying To Skys!"
5672
Happy()
5673
storehumanoidWS = 100
5674
hum.WalkSpeed = 100
5675
chaosmode = false
5676
rainbowmode = false
5677
Distorted = false
5678
ENRAGE = false
5679
Global = false
5680
Shadow = false
5681
CORRUPTCHAOS = false
5682
ModeColor = BrickColor.new("Deep blue")
5683
ModeColor2 = BrickColor.new("Deep blue")
5684
newTheme("rbxassetid://186267011",0,1.02,1.25)
5685
RecolorTextAndRename("Flying David!",BrickColor.new("Deep blue").Color,BrickColor.new("Really blue").Color,"Arcade")
5686
TheoriesMSGfunc("Flying David!",modet.TextColor3,modet.TextStrokeColor3)
5687
5688
end
5689
if k == "n" and attack == false and ModeOfGlitch == "Corrupt" and ModeOfGlitch ~= "D̴.̴i̴.̴s̴.̴t̴.̴o̴.̴r̴.̴t̴.̴e̴.̴d̴ ̴D̴.̴a̴.̴v̴.̴i̴.̴d̴" then
5690
ModeOfGlitch = "D̴.̴i̴.̴s̴.̴t̴.̴o̴.̴r̴.̴t̴.̴e̴.̴d̴ ̴D̴.̴a̴.̴v̴.̴i̴.̴d̴"
5691
Upset()
5692
storehumanoidWS = 16
5693
hum.WalkSpeed = 16
5694
chaosmode = false
5695
rainbowmode = false
5696
Distorted = true
5697
ENRAGE = false
5698
Global = false
5699
Shadow = true
5700
CORRUPTCHAOS = false
5701
ModeColor = BrickColor.new("Really red")
5702
ModeColor2 = BrickColor.new("Really blue")
5703
newTheme("rbxassetid://1751171913",0,1,1.25)
5704
RecolorTextAndRename("D̴.̴i̴.̴s̴.̴t̴.̴o̴.̴r̴.̴t̴.̴e̴.̴d̴ ̴D̴.̴a̴.̴v̴.̴i̴.̴d̴",BrickColor.new("Really red").Color,BrickColor.new("Really blue").Color,"Arcade")
5705
end
5706
if k == "m" and attack == false and ModeOfGlitch == "Corrupt" and ModeOfGlitch ~= "KING CRIMSON DAVID!" then
5707
ModeOfGlitch = "KING CRIMSON DAVID!"
5708
Happy()
5709
storehumanoidWS = 12
5710
hum.WalkSpeed = 12
5711
chaosmode = false
5712
rainbowmode = false
5713
Distorted = false
5714
ENRAGE = false
5715
Global = false
5716
Shadow = true
5717
CORRUPTCHAOS = false
5718
ModeColor = BrickColor.new("KING CRIMSON DAVID!")
5719
ModeColor2 = BrickColor.new("KING CRIMSON DAVID!")
5720
newTheme("rbxassetid://338871337",0,1.01,1.5)
5721
RecolorTextAndRename("KING CRIMSON DAVID!",BrickColor.new("KING CRIMSON DAVID!").Color,Color3.new(0.7,0,0),"Antique")
5722
end
5723
if k == "n" and attack == false and ModeOfGlitch == "DavidGrativol" and ModeOfGlitch ~= "STRONGER DAVID!" then
5724
ModeOfGlitch = "STRONGER DAVID!"
5725
Happy()
5726
storehumanoidWS = 12
5727
hum.WalkSpeed = 12
5728
chaosmode = false
5729
rainbowmode = false
5730
Distorted = false
5731
ENRAGE = false
5732
Global = false
5733
Shadow = true
5734
CORRUPTCHAOS = false
5735
ModeColor = BrickColor.new("Really red")
5736
ModeColor2 = BrickColor.new("Really red")
5737
newTheme("rbxassetid://495971354",48.6,1,1.25)
5738
RecolorTextAndRename("STRONGER DAVID!",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
5739
end
5740
if k == "n" and attack == false and ModeOfGlitch == "Ocean David." and ModeOfGlitch ~= "Dreamess of David." then
5741
ModeOfGlitch = "Dreamess of David."
5742
Happy()
5743
storehumanoidWS = 50
5744
hum.WalkSpeed = 50
5745
chaosmode = false
5746
rainbowmode = false
5747
Distorted = false
5748
ENRAGE = false
5749
Global = false
5750
Shadow = true
5751
CORRUPTCHAOS = false
5752
ModeColor = BrickColor.new("Hot pink")
5753
ModeColor2 = BrickColor.new("Really black")
5754
newTheme("rbxassetid://2483763576",0,1.01,1.25)
5755
RecolorTextAndRename("Dreamess of David.",Color3.new(0,0,0),BrickColor.new("Pink").Color,"Garamond")
5756
TheoriesMSGfunc("Dreamess of David.",modet.TextColor3,modet.TextStrokeColor3)
5757
5758
end
5759
if k == "j" and attack == false and ModeOfGlitch ~= "RAINBOW" then
5760
ModeOfGlitch = "RAINBOW"
5761
Happy()
5762
storehumanoidWS = 100
5763
hum.WalkSpeed = 100
5764
chaosmode = false
5765
rainbowmode = true
5766
Distorted = false
5767
ENRAGE = false
5768
Global = false
5769
Shadow = false
5770
CORRUPTCHAOS = false
5771
ModeColor = BrickColor.new("Really red")
5772
ModeColor2 = BrickColor.new("Really red")
5773
newTheme("rbxassetid://2988953773",0,1,1.15)
5774
RecolorTextAndRename("RAINBOW",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
5775
bosschatfunc("RAINBOW M- what.",Color3.new(0,255,0),20)
5776
end
5777
5778
if k == "b" and attack == false and ModeOfGlitch == "DavidGrativol" and ModeOfGlitch ~= "Darkness will hunt you soul." then
5779
SSSOH()
5780
end
5781
------Attacks!
5782
if k == "z" and attack == false and ModeOfGlitch == "DavidGrativol" then
5783
ExtinctiveHeartbreak()
5784
end
5785
if k == "z" and attack == false and ModeOfGlitch == "STRONGER DAVID!" then
5786
ExtinctiveHeartbreak()
5787
end
5788
if k == "x" and attack == false and ModeOfGlitch == "DavidGrativol" then
5789
EndGROUND()
5790
end
5791
if k == "x" and attack == false and ModeOfGlitch == "STRONGER DAVID!" then
5792
EndGROUND()
5793
end
5794
if k == "z" and attack == false and ModeOfGlitch == "Corrupt" then
5795
CorruptionEvent2()
5796
end
5797
if k == "0" and attack == false then
5798
die()
5799
end
5800
if k == "v" and attack == false and ModeOfGlitch == "RAINBOW" then
5801
killadudeDJFDFHUEUFBEUFB()
5802
end
5803
if k == "c" and attack == false and ModeOfGlitch == "RAINBOW" then
5804
owo()
5805
end
5806
end)
5807
ah = false
5808
--Upper-head Shadow by IgnorantRojo
5809
FHead = New("Part",char,"Upper Shadow",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
5810
Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
5811
Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
5812
FHead.CanCollide = false
5813
FHead.Transparency = 1
5814
Shadow = true
5815
Humanoid.Name = "aaa"
5816
Humanoid.MaxHealth = 500
5817
Humanoid.Health = 300
5818
5819
function SSSOH()
5820
attack=true
5821
newTheme("rbxassetid://723652641",0,1.02,0.85)
5822
kan.TimePosition = 0
5823
	bosschatfunc("Grrrrr.",ModeColor.Color,5)
5824
	for i = 0, 12, .1 do
5825
		swait()
5826
		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(30)),.4)
5827
		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(-30)),.4)
5828
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
5829
		Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.4)
5830
		RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.4)
5831
		LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.4)
5832
	end
5833
	bosschatfunc("you wanted me to do this right?",ModeColor.Color,700)
5834
	for i = 0, 14, .1 do
5835
		swait()
5836
		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(30)),.4)
5837
		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(-30)),.4)
5838
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
5839
		Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.4)
5840
		RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.4)
5841
		LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.4)
5842
	end
5843
		bosschatfunc("well.",ModeColor.Color,700)
5844
	for i = 0, 12, .1 do
5845
		swait()
5846
		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(30)),.4)
5847
		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(-30)),.4)
5848
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
5849
		Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.4)
5850
		RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.4)
5851
		LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.4)
5852
	end
5853
	bosschatfunc("you wanted true power right?",ModeColor.Color,700)
5854
	for i = 0, 14, .1 do
5855
		swait()
5856
		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(30)),.4)
5857
		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(-30)),.4)
5858
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
5859
		Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.4)
5860
		RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.4)
5861
		LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.4)
5862
	end
5863
		bosschatfunc("it is your death.",ModeColor.Color,700)
5864
	for i = 0, 12, .1 do
5865
		swait()
5866
		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(30)),.4)
5867
		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(-30)),.4)
5868
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
5869
		Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.4)
5870
		RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.4)
5871
		LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.4)
5872
	end
5873
	CFuncs["EchoSound"].Create("rbxassetid://1664711478", root, 1, 1,0,10,0.25,0.25,1)
5874
5875
		
5876
	ModeColor = BrickColor.new("Black")
5877
sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,ModeColor)
5878
for i = 0, 49 do
5879
PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,ModeColor,0)
5880
end
5881
for i = 0, 24 do
5882
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,ModeColor)
5883
slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.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,350)/250,BrickColor.new("White"))
5884
end
5885
for i = 0,3,0.1 do
5886
sphereMK(2.5,-1,"Add",root.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,25,-0.025,ModeColor,0)
5887
end
5888
attack=false
5889
	bosschatfunc("i tryed to warn you.",ModeColor.Color,7)
5890
ModeOfGlitch = "D A V I R K N E S S"
5891
Happy()
5892
storehumanoidWS = 16
5893
hum.WalkSpeed = 16
5894
chaosmode = false
5895
rainbowmode = false
5896
Distorted = false
5897
ENRAGE = false
5898
Global = false
5899
Shadow = true
5900
CORRUPTCHAOS = false
5901
ModeColor = BrickColor.new("Black")
5902
ModeColor2 = BrickColor.new("Really black")
5903
RecolorTextAndRename("D A V I R K N E S S",Color3.new(0,0,0),BrickColor.new(255,255,255).Color,"Antique")
5904
warnedpeople("D A V I R K N E S S.",modet.Font,modet.TextColor3,modet.TextStrokeColor3)
5905
CFuncs["EchoSound"].Create("rbxassetid://1664711478", root, 1, 1,0,10,0.25,0.25,1)
5906
5907
end
5908
5909
5910
coroutine.resume(coroutine.create(function()
5911
while true do
5912
swait()
5913
if ModeOfGlitch == "Corrupt" then
5914
PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,BrickColor.new("Royal purple"),0)
5915
PixelBlockX(5,0.25,"Add",RightLeg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,BrickColor.new("Really black"),0)
5916
end
5917
end
5918
end))
5919
5920
5921
--------------------------------------
5922
--hacker stuff
5923
--------------------------------------
5924
5925
5926
5927
5928
5929
Upset()
5930
idleanim=.4
5931
while true do
5932
5933
Humanoid.JumpPower = 130
5934
if CORRUPTCHAOS == true then
5935
rdm = math.random(0,4)
5936
if rdm == 1 then
5937
Neutral()
5938
elseif rdm == 2 then
5939
Happy()
5940
elseif rdm == 3 then
5941
Upset()
5942
elseif rdm == 4 then
5943
CHAOS()
5944
elseif rdm == 0 then
5945
Determined()
5946
end
5947
else
5948
end
5949
	if Shadow == true then
5950
	FHead.Transparency = 0
5951
elseif Shadow == false then
5952
	FHead.Transparency = 1
5953
end
5954
	if Global == false then
5955
kan.Parent = tors
5956
kan.RollOffMode = "Inverse"
5957
kan.MaxDistance = 100000
5958
elseif Global == true then
5959
kan.Parent = char
5960
kan.RollOffMode = "LinearSquare"
5961
kan.MaxDistance = 100000
5962
end
5963
if mutedtog == false then
5964
kan.Volume = ORVOL
5965
elseif mutedtog == true then
5966
kan.Volume = 0
5967
end
5968
kan.Looped = true
5969
kan.Parent = tors
5970
kan:Resume()
5971
if chaosmode == false  then
5972
modet.Position = UDim2.new(0,0,0,0)
5973
modet.Rotation = -5 * math.cos(sine / 32)
5974
techc.Rotation = techc.Rotation + 1
5975
circl.Rotation = circl.Rotation - GetClientProperty(kan,'PlaybackLoudness')/75 - 1
5976
imgl2.Rotation = imgl2.Rotation - GetClientProperty(kan,'PlaybackLoudness')/50 + 1
5977
ned.Rotation = 0 - 2 * math.cos(sine / 100)
5978
ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
5979
vis1.BackgroundColor3 = ModeColor2.Color
5980
vis2.BackgroundColor3 = ModeColor2.Color
5981
vis3.BackgroundColor3 = ModeColor.Color
5982
vis4.BackgroundColor3 = ModeColor.Color
5983
5984
vis1.Size = UDim2.new(.1, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1600, 0)
5985
vis2.Size = UDim2.new(.07, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1400, 0)
5986
vis3.Size = UDim2.new(.045, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1200, 0)
5987
vis4.Size = UDim2.new(.03, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1000, 0)
5988
5989
else
5990
		techc.Rotation = techc.Rotation + 1
5991
circl.Rotation = circl.Rotation - GetClientProperty(kan,'PlaybackLoudness')/75 + math.random(-5,5)
5992
imgl2.Rotation = imgl2.Rotation - GetClientProperty(kan,'PlaybackLoudness')/50 + math.random(-5,5)
5993
ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
5994
ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
5995
modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
5996
modet.Rotation = -2 * math.cos(sine / 1) + math.random(-5,5)
5997
5998
vis1.BackgroundColor3 = BrickColor.Random().Color
5999
vis2.BackgroundColor3 = BrickColor.Random().Color
6000
vis3.BackgroundColor3 = BrickColor.Random().Color
6001
vis4.BackgroundColor3 = BrickColor.Random().Color
6002
6003
vis1.Size = UDim2.new(.1, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1600, 0+ math.random(-5,5))
6004
vis2.Size = UDim2.new(.07, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1400, 0+ math.random(-5,5))
6005
vis3.Size = UDim2.new(.045, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1200, 0+ math.random(-5,5))
6006
vis4.Size = UDim2.new(.03, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1000, 0+ math.random(-5,5))
6007
6008
end
6009
6010
if rainbowmode == true then
6011
6012
RecolorTextAndRename("RAINBOW MEMER",Color3.new(r/255,g/255,b/255),Color3.new(r/255,g/255,b/255),"Fantasy")
6013
6014
6015
6016
6017
6018
vis1.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
6019
vis2.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
6020
vis3.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
6021
vis4.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
6022
6023
vis1.Size = UDim2.new(.1, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1600, 0+ math.random(-3,3))
6024
vis2.Size = UDim2.new(.07, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1400, 0+ math.random(-5,5))
6025
vis3.Size = UDim2.new(.045, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1200, 0+ math.random(-5,5))
6026
vis4.Size = UDim2.new(.03, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1000, 0+ math.random(-5,5))
6027
6028
6029
ModeColor=BrickColor.new("White")
6030
ModeColor2=BrickColor.new("White")
6031
for i, v in pairs(m:GetChildren()) do
6032
if v:IsA("Part") then
6033
v.Color = Color3.new(r/255,g/255,b/255)
6034
end
6035
end
6036
for i, v in pairs(M1:GetChildren()) do
6037
if v:IsA("Part") then
6038
v.Color = Color3.new(r/255,g/255,b/255)
6039
end
6040
end
6041
end
6042
6043
CameraManager()
6044
swait()
6045
 sine = sine + change
6046
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
6047
local velderp=RootPart.Velocity.y
6048
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
6049
coroutine.resume(coroutine.create(function()
6050
		for i, v in pairs(m:GetChildren()) do
6051
if v:IsA("BasePart") then
6052
	v.BrickColor = ModeColor
6053
	v.Transparency = 0
6054
	elseif v:IsA("ParticleEmitter") then
6055
	v.Color = ColorSequence.new(ModeColor.Color,ModeColor2.Color)
6056
end
6057
end
6058
for i, v in pairs(M1:GetChildren()) do
6059
if v:IsA("BasePart") then
6060
	v.BrickColor = ModeColor2
6061
v.Transparency = 0
6062
elseif v:IsA("ParticleEmitter") then
6063
	v.Color = ColorSequence.new(ModeColor.Color,ModeColor2.Color)
6064
end
6065
end
6066
if ENRAGE == true then
6067
			for i, v in pairs(m:GetChildren()) do
6068
if v:IsA("BasePart") then
6069
v.Color = Color3.new(math.random(0,1),0,0)
6070
end
6071
end
6072
for i, v in pairs(M1:GetChildren()) do
6073
if v:IsA("BasePart") then
6074
	v.Color = Color3.new(math.random(0,1),0,0)
6075
end
6076
end
6077
end
6078
if chaosmode == true then
6079
	RecolorTextAndRename("CHAOS",BrickColor.random().Color,BrickColor.random().Color,"Code")
6080
		for i, v in pairs(m:GetChildren()) do
6081
if v:IsA("BasePart") then
6082
	v.BrickColor = BrickColor.random()
6083
	elseif v:IsA("ParticleEmitter") then
6084
	v.Color = ColorSequence.new(ModeColor.Color,ModeColor2.Color)
6085
end
6086
end
6087
for i, v in pairs(M1:GetChildren()) do
6088
if v:IsA("BasePart") then
6089
	v.BrickColor = BrickColor.random()
6090
	v.Transparency = 0.50
6091
elseif v:IsA("ParticleEmitter") then
6092
	v.Color = ColorSequence.new(ModeColor.Color,ModeColor2.Color)
6093
elseif chaosmode == false then
6094
		for i, v in pairs(m:GetChildren()) do
6095
if v:IsA("BasePart") then
6096
	v.BrickColor = ModeColor
6097
end
6098
end
6099
for i, v in pairs(M1:GetChildren()) do
6100
if v:IsA("BasePart") then
6101
	v.BrickColor = ModeColor2
6102
6103
end
6104
end
6105
end
6106
end
6107
end
6108
if ModeOfGlitch == "KING CRIMSON DAVID!" or ModeOfGlitch == "Flying the skys!" or ModeOfGlitch == "Dreamess of David." or ModeOfGlitch == "Powered" or ModeOfGlitch == "Powered+" or ModeOfGlitch == 62 or ModeOfGlitch == 82 or ModeOfGlitch == 23 or ModeOfGlitch == 14 or ModeOfGlitch == 24 or ModeOfGlitch == 34 or ModeOfGlitch == 44 or ModeOfGlitch == 54 or ModeOfGlitch == 64 or ModeOfGlitch == 65 or ModeOfGlitch == 85 or ModeOfGlitch == "Unbeatable" then
6109
if hitfloor ~= nil then
6110
	effar.Enabled = true
6111
		effar.Color = ColorSequence.new(ModeColor.Color)
6112
	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,50)/250,ModeColor)
6113
elseif hitfloor == nil then
6114
	effar.Enabled = false
6115
end
6116
elseif ModeOfGlitch == "REVENGE" then
6117
	if hitfloor ~= nil  and ah == false then
6118
	    effar.Enabled = true
6119
				Handle2weld.C1 = clerp(Handle2weld.C1,cf(2.5,2,0.5 + 0.1 * math.cos(sine / 30))*angles(math.rad(0),math.rad(360 * math.cos(sine / 100)),math.rad(0 * math.cos(sine / 10))),.1)
6120
Handleweld.C1 = clerp(Handleweld.C1,cf(-2.5,2,0.5 + 0.1 * math.cos(sine / 30))*angles(math.rad(0),math.rad(360 * math.cos(sine / 100)),math.rad(0 * math.cos(sine / 10))),.1)
6121
	elseif ah == true and hitfloor ~= nil then
6122
		effar.Enabled = true
6123
				Handle2weld.C1 = clerp(Handle2weld.C1,cf(2.5,4,-10 + 0.1 * math.cos(sine / 30))*angles(math.rad(0),math.rad(50 * math.cos(sine / 100)),math.rad(0 * math.cos(sine / 10))),.1)
6124
Handleweld.C1 = clerp(Handleweld.C1,cf(-2.5,2,-10 + 0.1 * math.cos(sine / 30))*angles(math.rad(0),math.rad(-50 * math.cos(sine / 100)),math.rad(0 * math.cos(sine / 10))),.1)
6125
6126
	end
6127
elseif ModeOfGlitch == "EXTREMECORRUPT" then
6128
	if hitfloor ~= nil then
6129
Handle2weld.C1 = clerp(Handle2weld.C1,cf(1+ math.random(-1,1),-1.12+ math.random(-1,1),1.1+ 0.3 * math.cos(sine / 50)+ math.random(-1,1))*angles(math.rad(-90+ math.random(-7,7)),math.rad(16 * math.cos(sine / 50)+ math.random(-7,7)),math.rad(-16 * math.cos(sine / 50)+ math.random(-7,7))),.1)
6130
Handleweld.C1 = clerp(Handleweld.C1,cf(-1+ math.random(-1,1),-1.12+ math.random(-1,1),1.1+ 0.3 * math.cos(sine / 50)+ math.random(-1,1))*angles(math.rad(-90+ math.random(-7,7)),math.rad(-16 * math.cos(sine / 50)+ math.random(-7,7)),math.rad(16 * math.cos(sine / 50)+ math.random(-7,7))),.1)
6131
--+ math.random(-7,7)
6132
	end
6133
elseif ModeOfGlitch ~= 5 or ModeOfGlitch ~= 7 or ModeOfGlitch ~= 8 or ModeOfGlitch ~= 62 or ModeOfGlitch ~= 82 or ModeOfGlitch ~= 23 or ModeOfGlitch ~= 14 or ModeOfGlitch ~= 24 or ModeOfGlitch ~= 34 or ModeOfGlitch ~= 44 or ModeOfGlitch ~= 54 or ModeOfGlitch ~= 64 or ModeOfGlitch ~= 65 or ModeOfGlitch ~= 85 then
6134
    effar.Enabled = false
6135
Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1+ 0.3 * math.cos(sine / 50))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 50)),math.rad(-16 * math.cos(sine / 50))),.1)
6136
Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1+ 0.3 * math.cos(sine / 50))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 50)),math.rad(16 * math.cos(sine / 50))),.1)
6137
end
6138
end))
6139
if equipped==true or equipped==false then
6140
if attack==false then
6141
idle=idle+1
6142
else
6143
idle=0
6144
end
6145
if idle>=500 then
6146
if attack==false then
6147
--Sheath()
6148
end
6149
end
6150
if RootPart.Velocity.y > 1 and hitfloor==nil then 
6151
Anim="Jump"
6152
if attack==false then
6153
				Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-25 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
6154
Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(25 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
6155
6156
RH.C0=clerp(RH.C0,cf(1,-0.18 - 0.05 * math.cos(sine / 25),-0.65)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
6157
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)
6158
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10 - 2 * math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
6159
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 10 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
6160
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(0),math.rad(20 + 10 * math.cos(sine / 25))),.1)
6161
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(0),math.rad(-20 - 10 * math.cos(sine / 25))),.1)
6162
end
6163
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
6164
Anim="Fall"
6165
if attack==false then
6166
	Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1+ 0.3 * math.cos(sine / 50))*angles(math.rad(-60),math.rad(16 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
6167
Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1+ 0.3 * math.cos(sine / 50))*angles(math.rad(-60),math.rad(-16 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
6168
6169
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)
6170
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)
6171
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10 + 5 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.1)
6172
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 + 10 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
6173
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-40),math.rad(0 - 10 * math.cos(sine / 25)),math.rad(90)),.1)
6174
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-40),math.rad(0 + 10 * math.cos(sine / 25)),math.rad(-90)),.1)
6175
end
6176
elseif torvel<1 and hitfloor~=nil then
6177
Anim="Idle"
6178
if attack==false then
6179
	if ModeOfGlitch == "DavidGrativol" then
6180
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(80),math.rad(17 - 2 * math.cos(sine / 32)))*angles(math.rad(-3),math.rad(5.5 - 2 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
6181
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-82),math.rad(-17 - 2 * math.cos(sine / 32)))*angles(math.rad(-6),math.rad(-22 - 2 * math.cos(sine / 56)),math.rad(12 + 2 * math.cos(sine / 32))),.1)
6182
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(22 + 2 * math.cos(sine / 56))),.1)
6183
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 37) - math.random(-2,2)),math.rad(0 + 1.8 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(-22 - 2 * math.cos(sine / 56) - math.random(-5,5))),.1)
6184
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.03)
6185
LW.C0=clerp(LW.C0,cf(-1.5,0.6 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(157 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.3)
6186
6187
	elseif ModeOfGlitch == "Ocean David." then
6188
		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(-7.5),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
6189
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 + 2 * math.cos(sine / 34))),.1)
6190
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
6191
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0 - 4 * math.cos(sine / 42)),math.rad(0 - 3 * math.cos(sine / 76))),.1)
6192
RW.C0=clerp(RW.C0,cf(0.8,0.5 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(0 - 0 * math.cos(sine / 39)),math.rad(0),math.rad(-70 - 0 * math.cos(sine / 47))),.1)
6193
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
6194
	elseif ModeOfGlitch == "Corrupt" then
6195
				local snap = math.random(1,200)
6196
if snap == 1 then
6197
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(20 + math.random(-1,1))),0.6)
6198
end
6199
		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 - 3 * math.cos(sine / 34))),.1)
6200
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(20 - 3 * math.cos(sine / 56)),math.rad(0 + 3 * math.cos(sine / 34))),.1)
6201
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-20 + 3 * math.cos(sine / 56))),.1)
6202
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3.5 * math.cos(sine / 33)),math.rad(0 + 4 * math.cos(sine / 63)),math.rad(20 - 3 * math.cos(sine / 56))),.1)
6203
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-30 + 2 * math.cos(sine / 37))),.1)
6204
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(30 - 3 * math.cos(sine / 57) )),.1)
6205
	elseif ModeOfGlitch == "CHAOS" then
6206
		local snap = math.random(1,200)
6207
if snap == 1 then
6208
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
6209
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
6210
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
6211
end
6212
		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)
6213
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)
6214
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)
6215
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)+ math.random(-5,5)),math.rad(0 + math.random(-5,5)),math.rad(0 + math.random(-5,5))),.1)
6216
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)
6217
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)
6218
elseif ModeOfGlitch == "DIVINITY" then
6219
	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 - 2 * math.cos(sine / 34))),.1)
6220
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 + 2 * math.cos(sine / 34))),.1)
6221
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
6222
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 4 * math.cos(sine / 42)),math.rad(0 - 3 * math.cos(sine / 76))),.1)
6223
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-30 + 2 * math.cos(sine / 37))),.1)
6224
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(7 + 2 * math.cos(sine / 57)),math.rad(20 + 4 * math.cos(sine / 47)),math.rad(-0 - 2 * math.cos(sine / 29))),.1)
6225
	elseif ModeOfGlitch == "Flying David!" then
6226
			Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
6227
Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
6228
6229
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)
6230
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)
6231
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 25))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
6232
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0 + 2.5 * math.cos(sine / 28))),.1)
6233
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.8)*angles(math.rad(68),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
6234
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.6)*angles(math.rad(90),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
6235
	elseif ModeOfGlitch == "D̴.̴i̴.̴s̴.̴t̴.̴o̴.̴r̴.̴t̴.̴e̴.̴d̴ ̴D̴.̴a̴.̴v̴.̴i̴.̴d̴" then
6236
		RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
6237
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
6238
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
6239
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
6240
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
6241
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
6242
	elseif ModeOfGlitch == "KING CRIMSON DAVID!" then
6243
Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
6244
Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
6245
6246
	local Alpha = .1
6247
	RootJoint.C0 = RootJoint.C0:lerp(cf(0,3+.5*math.cos(sine/32),0.1)*angles(math.rad(32-5*math.sin(sine/32)),math.rad(0),math.rad(0))*RootCF,Alpha)
6248
	LH.C0 = LH.C0:lerp(cf(-1,-1-.1*math.sin(sine/32),0)*angles(math.rad(-14.3+15*math.sin(sine/32)),math.rad(7.6+2.5*math.sin(sine/32)),math.rad(-7.8-5*math.sin(sine/32)))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
6249
	RH.C0 = RH.C0:lerp(cf(0.9,-0.7-.1*math.sin(sine/32),-0.5)*angles(math.rad(-14.3+15*math.sin(sine/32)),math.rad(-12.7-2.5*math.sin(sine/32)),math.rad(7+5*math.sin(sine/32)))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
6250
	LW.C0 = LW.C0:lerp(cf(-1.2,0.5-.075*math.sin(sine/32),-0.1)*angles(math.rad(7.1+3*math.cos(sine/32)),math.rad(10.2),math.rad(24.2)),Alpha)
6251
	RW.C0 = RW.C0:lerp(cf(1.3,1-.075*math.sin(sine/32),-0.2)*angles(math.rad(150.3+5*math.cos(sine/32)),math.rad(0),math.rad(-32.7)),Alpha)
6252
	Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0.1)*angles(math.rad(-14.3-3*math.sin(sine/32)),math.rad(0),math.rad(0))*necko,Alpha)
6253
	elseif ModeOfGlitch == "STRONGER DAVID!" then
6254
		
6255
local snap = math.random(1,10)
6256
local Alpha = .1
6257
RootJoint.C0 = RootJoint.C0:lerp(cf(0,.5+.3*math.cos(sine/32),0)*angles(math.rad(0),math.rad(10),math.rad(0))*RootCF,Alpha)
6258
LH.C0 = LH.C0:lerp(cf(-0.9,-0.7+0.05*math.cos(sine/32),-0.2)*angles(math.rad(-6.3),math.rad(26.1),math.rad(-6.3))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
6259
RH.C0 = RH.C0:lerp(cf(1,-0.1+0.05*math.cos(sine/32),-1)*angles(math.rad(-14.8),math.rad(-2.6),math.rad(-0.3))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
6260
LW.C0 = LW.C0:lerp(cf(-1.3,0.4+0.05*math.cos(sine/32),0.7)*angles(math.rad(-35),math.rad(0),math.rad(40+2*math.cos(sine/32))),Alpha)
6261
RW.C0 = RW.C0:lerp(cf(1.5,0.7+0.05*math.cos(sine/32),0.1)*angles(math.rad(9.1),math.rad(-23.4),math.rad(21.9+2*math.cos(sine/32))),Alpha)
6262
Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0.1,0,0.2)*angles(math.rad(-5.9),math.rad(-10.4),math.rad(3.9))*necko,Alpha)
6263
6264
6265
6266
elseif ModeOfGlitch == "RAINBOW" then --RAINBOW Idle
6267
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(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
6268
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)
6269
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)
6270
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1)
6271
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)
6272
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(172 - 7 * math.cos(sine / 58)),math.rad(1 - 5 * math.cos(sine / 55)),math.rad(19 - 3 * math.cos(sine / 45))),.2)
6273
	elseif ModeOfGlitch == "DREAMER" then
6274
		local snap = math.random(1,100)
6275
if snap == 1 then
6276
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(32 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
6277
end
6278
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(-4 - 7 * math.cos(sine / 39))),.1)
6279
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(15 + 8 * math.cos(sine / 31))),.1)
6280
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(32 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
6281
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
6282
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(32 + 6 * math.cos(sine / 72)),math.rad(2 - 4 * math.cos(sine / 58)),math.rad(14 + 1 * math.cos(sine / 45))),.1)
6283
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(32 - 7 * math.cos(sine / 66)),math.rad(6 - 5 * math.cos(sine / 59)),math.rad(-9 - 3 * math.cos(sine / 45))),.1)
6284
elseif ModeOfGlitch == "D A V I R K N E S S" then
6285
local snap = math.random(1,10)
6286
if snap == 1 then
6287
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
6288
end
6289
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
6290
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
6291
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
6292
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
6293
RW.C0=clerp(RW.C0,cf(1.5,.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
6294
LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.1)
6295
6296
		end
6297
end
6298
elseif torvel>2 and torvel<22 and hitfloor~=nil then
6299
Anim="Walk"
6300
if attack==false then
6301
	if ModeOfGlitch == "DavidGrativol" then
6302
RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * 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 + 25 * math.cos(sine / 8))), 0.1)
6303
LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * 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 + 25 * math.cos(sine / 8))), 0.1)
6304
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)
6305
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
6306
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(0 - 1 * math.cos(sine / 4))),.1)
6307
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
6308
elseif ModeOfGlitch == "Corrupt" then
6309
RH.C0=clerp(RH.C0,cf(1,-1,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)
6310
LH.C0=clerp(LH.C0,cf(-1,-.5,-.6)*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)
6311
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(45),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
6312
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)
6313
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-30 + 2 * math.cos(sine / 37))),.1)
6314
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(30 - 3 * math.cos(sine / 57) )),.1)
6315
	elseif ModeOfGlitch == "Ocean David." then
6316
		RW.C0=clerp(RW.C0,cf(0.8,0.5 + 0.1 * math.cos(sine / 4),-0.5)*angles(math.rad(0 - 0 * math.cos(sine / 39)),math.rad(0),math.rad(-70 - 0 * math.cos(sine / 47))),.1)
6317
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 4),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
6318
RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * 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 + 25 * math.cos(sine / 8))), 0.1)
6319
LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * 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 + 25 * math.cos(sine / 8))), 0.1)
6320
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)
6321
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
6322
	elseif ModeOfGlitch == "CHAOS" then
6323
		RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * 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 + 25 * math.cos(sine / 8))), 0.1)
6324
LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * 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 + 25 * math.cos(sine / 8))), 0.1)
6325
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)
6326
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)+ math.random(-5,5)),math.rad(0 + math.random(-5,5)),math.rad(0 + math.random(-5,5))),.1)
6327
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(0 - 1 * math.cos(sine / 4))),.1)
6328
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(0 + 1 * math.cos(sine / 4))),.1)
6329
	elseif ModeOfGlitch == "DJ" then
6330
		RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * 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 + 25 * math.cos(sine / 8))), 0.1)
6331
LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * 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 + 25 * math.cos(sine / 8))), 0.1)
6332
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)
6333
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
6334
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(40 + 5 * math.cos(sine / 34) + GetClientProperty(kan,'PlaybackLoudness')/7.5),math.rad(0),math.rad(0 - 2 * math.cos(sine / 38))),.1)
6335
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 30 * math.cos(sine / 8)),math.rad(0),math.rad(0 + 1 * math.cos(sine / 4))),.1)
6336
elseif ModeOfGlitch ~= "Corrupt" and ModeOfGlitch ~= "DavidGrativol" and ModeOfGlitch ~= "CHAOS" and ModeOfGlitch ~= "DJ" and ModeOfGlitch ~= "Ocean David." and ModeOfGlitch ~= "Genocidial" or ModeOfGlitch ~= "Depressed" then
6337
RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * 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 + 25 * math.cos(sine / 8))), 0.1)
6338
LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * 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 + 25 * math.cos(sine / 8))), 0.1)
6339
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)
6340
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
6341
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(0 - 1 * math.cos(sine / 4))),.1)
6342
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(0 + 1 * math.cos(sine / 4))),.1)
6343
6344
end
6345
end
6346
elseif torvel>=22 and hitfloor~=nil then
6347
Anim="Run"
6348
if attack==false then
6349
6350
if ModeOfGlitch == "Flying David!" then
6351
			Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
6352
Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
6353
6354
	RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.2)*angles(math.rad(-40),math.rad(90),math.rad(0)),.1)
6355
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),-0.3)*angles(math.rad(-40),math.rad(-90),math.rad(0)),.1)
6356
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 29),-0.5 + 0.5 * math.cos(sine / 34),1 + 0.25 * math.cos(sine / 28))*angles(math.rad(50),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.05)
6357
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35 + 2.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0)),.1)
6358
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0.3 * math.cos(sine / 43)),math.rad(-35 - 2 * math.cos(sine / 52)),math.rad(19 + 0.9 * math.cos(sine / 45))),.1)
6359
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(180 - 0.2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(0 - 0.2 * math.cos(sine / 45))),.1)
6360
elseif ModeOfGlitch ~= "DREAMER" then
6361
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)
6362
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)
6363
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)
6364
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)
6365
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)
6366
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)
6367
 	elseif ModeOfGlitch == "DREAMER" then
6368
	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)
6369
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)
6370
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)
6371
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)
6372
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)
6373
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)
6374
6375
6376
6377
6378
6379
	elseif ModeOfGlitch ~= "Flying David!" and ModeOfGlitch ~= "DETERMINED" and ModeOfGlitch ~= "REVENGE" then
6380
			Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.4,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-40),math.rad(-16 * math.cos(sine / 10))),.1)
6381
Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.4,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(40),math.rad(16 * math.cos(sine / 10))),.1)
6382
6383
RH.C0 = clerp(RH.C0, cf(1, -0.75 - 0.25 * math.cos(sine / 3), -0.25 - 0.25 * math.cos(sine / 3)) * 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))), 0.1)
6384
LH.C0 = clerp(LH.C0, cf(-1, -0.75 + 0.25 * math.cos(sine / 3), -0.25 + 0.25 * math.cos(sine / 3)) * 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))), 0.1)
6385
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)
6386
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)
6387
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 100 * math.cos(sine / 6)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
6388
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 100 * math.cos(sine / 6)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
6389
end
6390
end
6391
end
6392
end
6393
end