View difference between Paste ID: hLk8LXve and WvyX2QkN
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
do
4
	print("FE Compatibility code by Mokiros")
5
	script.Parent = Player.Character
6
7
	--RemoteEvent for communicating
8
	local Event = Instance.new("RemoteEvent")
9
	Event.Name = "UserInput_Event"
10
11
	--Fake event to make stuff like Mouse.KeyDown work
12
	local function fakeEvent()
13
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14
		t.connect = t.Connect
15
		return t
16
	end
17
18
	--Creating fake input objects with fake variables
19
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23
	end}
24
	--Merged 2 functions into one by checking amount of arguments
25
	CAS.UnbindAction = CAS.BindAction
26
27
	--This function will trigger the events that have been :Connect()'ed
28
	local function te(self,ev,...)
29
		local t = m[ev]
30
		if t and t._fakeEvent and t.Function then
31
			t.Function(...)
32
		end
33
	end
34
	m.TrigEvent = te
35
	UIS.TrigEvent = te
36
37
	Event.OnServerEvent:Connect(function(plr,io)
38
	    if plr~=Player then return end
39
		if io.isMouse then
40
			m.Target = io.Target
41
			m.Hit = io.Hit
42
		else
43
			local b = io.UserInputState == Enum.UserInputState.Begin
44
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46
			end
47
			for _,t in pairs(CAS.Actions) do
48
				for _,k in pairs(t.Keys) do
49
					if k==io.KeyCode then
50
						t.Function(t.Name,io.UserInputState,io)
51
					end
52
				end
53
			end
54
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
55
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
56
	    end
57
	end)
58
	Event.Parent = NLS([==[
59
	local Player = game:GetService("Players").LocalPlayer
60
	local Event = script:WaitForChild("UserInput_Event")
61
62
	local UIS = game:GetService("UserInputService")
63
	local input = function(io,a)
64
		if a then return end
65
		--Since InputObject is a client-side instance, we create and pass table instead
66
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
67
	end
68
	UIS.InputBegan:Connect(input)
69
	UIS.InputEnded:Connect(input)
70
71
	local Mouse = Player:GetMouse()
72
	local h,t
73
	--Give the server mouse data 30 times every second, but only if the values changed
74
	--If player is not moving their mouse, client won't fire events
75
	while wait(1/30) do
76
		if h~=Mouse.Hit or t~=Mouse.Target then
77
			h,t=Mouse.Hit,Mouse.Target
78
			Event:FireServer({isMouse=true,Target=t,Hit=h})
79
		end
80
	end]==],Player.Character)
81
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
82
end
83
84
warn([[Guest Glitcher V6 Loaded..
85
The third Guest Glitcher, The brand new one which will strike popularity.
86
87
Created by Tc, Edited by Derpz to make it FE AND Make it Guest Glitcher V6!
88
Credit for Idea: Poison Resistance
89
]])
90
91
---------Wielder list as of OCs:---------
92
-- Poison [The Creator]
93
-- Derpz [The Developer]
94
-----------------------------------------
95
96
print([[Icons:
97
! = New
98
? = Spoilers
99
* = Exclusivity
100
C = Changes
101
102
]])
103
warn([[V 6.2 Update Log:
104
C - We fixxed some bugs, mostly with the sounds.
105
C - Fixxed some animations not loading when script loaded.
106
? - We might add a revengeful Guest soon..
107
108
Commands for Musical mode: play/, vol/, pitch/, skipto/, telltime/]])
109
---- IMPORTANT READING:
110
---- Sources and functions might be taken from others
111
plr = owner
112
113
script.Parent = workspace.CurrentCamera
114
plr.CharacterAdded:connect(function()
115
	script.Disabled = true
116
	script:destroy()	
117
end)
118
119
char = plr.Character
120
hum = char.Humanoid
121
local cam = game.Workspace.CurrentCamera
122
Camera = cam
123
local CamInterrupt = false
124
local TwoD = false
125
local TargetInfo = {nil, nil}
126
cam.CameraType = "Custom"
127
t = char.Torso
128
h = char.Head
129
ra = char["Right Arm"]
130
la = char["Left Arm"]
131
rl = char["Right Leg"]
132
ll = char["Left Leg"]
133
tors = char.Torso
134
lleg = char["Left Leg"]
135
root = char.HumanoidRootPart
136
hed = char.Head
137
rleg = char["Right Leg"]
138
rarm = char["Right Arm"]
139
larm = char["Left Arm"]
140
radian = math.rad
141
random = math.random
142
Vec3 = Vector3.new
143
Inst = Instance.new
144
cFrame = CFrame.new
145
Euler = CFrame.fromEulerAnglesXYZ
146
vt = Vector3.new
147
bc = BrickColor.new
148
br = BrickColor.random
149
it = Instance.new
150
cf = CFrame.new
151
152
153
local Booleans = {
154
  CamFollow = true,
155
  GyroUse = true
156
}
157
158
function lerp(object, newCFrame, alpha)
159
  return object:lerp(newCFrame, alpha)
160
end
161
162
local Directer = Inst("BodyGyro", root)
163
Directer.MaxTorque = Vec3(0, 0, 0)
164
Directer.P = 600000
165
local CPart = Inst("Part")
166
CPart.Anchored = true
167
CPart.CanCollide = false
168
CPart.Locked = true
169
CPart.Transparency = 1
170
171
local rainbowmode = false
172
local chaosmode = false
173
local duringend = false
174
local ModeOfGlitch = 1
175
176
local kan = Instance.new("Sound",char)
177
kan.Volume = 1.25
178
kan.TimePosition = 0
179
kan.PlaybackSpeed = 1
180
kan.Pitch = 1.01
181
kan.SoundId = "rbxassetid://435773595"
182
kan.Name = "wreckeda"
183
kan.Looped = true
184
kan:Play()
185
186
local currentThemePlaying = kan.SoundId
187
local currentPitch = kan.Pitch
188
local currentVol = kan.Volume
189
function newTheme(ID,timepos,pitch,vol)
190
local kanz = kan
191
--kanz:Stop()
192
kanz.Volume = vol
193
--kanz.TimePosition = timepos
194
kanz.PlaybackSpeed = pitch
195
kanz.Pitch = pitch
196
kanz.SoundId = ID
197
kanz.Name = "wrecked"
198
kanz.Looped = true
199
currentThemePlaying = kanz.SoundId
200
currentVol = kanz.Volume
201
currentPitch = kanz.Pitch
202
--kanz:Play()
203
--coroutine.resume(coroutine.create(function()
204
--wait(0.05)
205
--end))
206
end
207
208
209
function newThemeCust(ID,timepos,pitch,vol)
210
local kanz = kan
211
kanz:Stop()
212
kanz.Volume = vol
213
kanz.TimePosition = timepos
214
kanz.PlaybackSpeed = pitch
215
kanz.Pitch = pitch
216
kanz.SoundId = ID
217
kanz.Name = "wrecked"
218
kanz.Looped = true
219
currentThemePlaying = kanz.SoundId
220
currentVol = kanz.Volume
221
currentPitch = kanz.Pitch
222
kanz:Play()
223
coroutine.resume(coroutine.create(function()
224
wait(0.05)
225
end))
226
end
227
228
local mutedtog = false
229
230
function CameraEnshaking(Length,Intensity)
231
coroutine.resume(coroutine.create(function()
232
      local intensity = 1*Intensity
233
      local rotM = 0.01*Intensity
234
for i = 0, Length, 0.1 do
235
swait()
236
intensity = intensity - 0.05*Intensity/Length
237
rotM = rotM - 0.0005*Intensity/Length
238
      hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
239
      cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
240
end
241
Humanoid.CameraOffset = Vec3(0, 0, 0)
242
end))
243
end
244
CamShake=function(Part,Distan,Power,Times) 
245
local de=Part.Position
246
for i,v in pairs(workspace:children()) do
247
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
248
for _,c in pairs(v:children()) do
249
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
250
local Noob=v.Humanoid
251
if Noob~=nil then
252
coroutine.resume(coroutine.create(function()
253
FV = Instance.new("BoolValue", Noob)
254
FV.Name = "CameraShake"
255
for ShakeNum=1,Times do
256
swait()
257
local ef=Power
258
  if ef>=1 then
259
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
260
  else
261
   ef=Power*10
262
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
263
  end	
264
end
265
Humanoid.CameraOffset = Vector3.new(0,0,0)
266
FV:Destroy()
267
end))
268
CameraShake(Times, Power, Noob)
269
end
270
end
271
end
272
end
273
end
274
end
275
276
local toggleTag = true
277
local bilguit = Instance.new("BillboardGui", hed)
278
bilguit.Adornee = nil
279
bilguit.Name = "Name"
280
bilguit.Size = UDim2.new(4, 0, 1.2, 0)
281
bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
282
local modet = Instance.new("TextLabel", bilguit)
283
modet.Size = UDim2.new(10/2, 0, 7/2, 0)
284
modet.FontSize = "Size8"
285
modet.TextScaled = true
286
modet.TextTransparency = 0
287
modet.BackgroundTransparency = 1 
288
modet.TextTransparency = 0
289
modet.TextStrokeTransparency = 0
290
modet.Font = "Fantasy"
291
modet.TextStrokeColor3 = Color3.new(0,0,0.4)
292
modet.TextColor3 = Color3.new(1,1,1)
293
modet.Text = "GUESTGLITCHERV6 BY DERPZDENUGGET_YT"
294
295
296
function chatfunc(text,color,typet,font,timeex)
297
local chat = coroutine.wrap(function()
298
if Character:FindFirstChild("TalkingBillBoard")~= nil then
299
Character:FindFirstChild("TalkingBillBoard"):destroy()
300
end
301
local naeeym2 = Instance.new("BillboardGui",Character)
302
naeeym2.Size = UDim2.new(0,100,0,40)
303
naeeym2.StudsOffset = Vector3.new(0,3,0)
304
naeeym2.Adornee = Character.Head
305
naeeym2.Name = "TalkingBillBoard"
306
local tecks2 = Instance.new("TextLabel",naeeym2)
307
tecks2.BackgroundTransparency = 1
308
tecks2.BorderSizePixel = 0
309
tecks2.Text = ""
310
tecks2.Font = font
311
tecks2.TextSize = 30
312
tecks2.TextStrokeTransparency = 0
313
tecks2.TextColor3 = color
314
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
315
tecks2.Size = UDim2.new(1,0,0.5,0)
316
local tecks3 = Instance.new("TextLabel",naeeym2)
317
tecks3.BackgroundTransparency = 1
318
tecks3.BorderSizePixel = 0
319
tecks3.Text = ""
320
tecks3.Font = font
321
tecks3.TextSize = 30
322
tecks3.TextStrokeTransparency = 0
323
if typet == "Inverted" then
324
tecks3.TextColor3 = Color3.new(0,0,0)
325
tecks3.TextStrokeColor3 = color
326
elseif typet == "Normal" then
327
tecks3.TextColor3 = color
328
tecks3.TextStrokeColor3 = Color3.new(0,0,0)
329
end
330
tecks3.Size = UDim2.new(1,0,0.5,0)
331
coroutine.resume(coroutine.create(function()
332
while true do
333
swait(1)
334
if chaosmode == true then
335
tecks2.TextColor3 = BrickColor.random().Color
336
tecks3.TextStrokeColor3 = BrickColor.random().Color
337
end
338
end
339
end))
340
modet.TextTransparency = modet.TextTransparency  + 1
341
modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
342
for i = 0, 74*timeex do
343
swait()
344
modet.TextTransparency = 1
345
modet.TextStrokeTransparency = 1
346
tecks2.Text = text
347
tecks3.Text = text
348
end
349
local randomrot = math.random(1,2)
350
if randomrot == 1 then
351
for i = 1, 50 do
352
swait()
353
tecks2.Text = text
354
tecks3.Text = text
355
modet.TextTransparency = modet.TextTransparency - .02
356
modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
357
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
358
tecks2.TextTransparency = tecks2.TextTransparency + .04
359
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
360
tecks3.TextTransparency = tecks2.TextTransparency + .04
361
end
362
elseif randomrot == 2 then
363
	for i = 1, 50 do
364
swait()
365
tecks2.Text = text
366
tecks3.Text = text
367
modet.TextTransparency = modet.TextTransparency - .02
368
modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
369
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
370
tecks2.TextTransparency = tecks2.TextTransparency + .04
371
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
372
tecks3.TextTransparency = tecks2.TextTransparency + .04
373
end
374
end
375
modet.TextTransparency = 0
376
modet.TextStrokeTransparency = 0
377
if toggleTag == false then
378
modet.TextTransparency = 1
379
modet.TextStrokeTransparency = 1
380
end
381
naeeym2:Destroy()
382
end)
383
chat()
384
end
385
386
387
local Create = LoadLibrary("RbxUtility").Create
388
389
CFuncs = {	
390
	["Part"] = {
391
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
392
			local Part = Create("Part"){
393
				Parent = Parent,
394
				Reflectance = Reflectance,
395
				Transparency = Transparency,
396
				CanCollide = false,
397
				Locked = true,
398
				BrickColor = BrickColor.new(tostring(BColor)),
399
				Name = Name,
400
				Size = Size,
401
				Material = Material,
402
			}
403
			RemoveOutlines(Part)
404
			return Part
405
		end;
406
	};
407
	
408
	["Mesh"] = {
409
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
410
			local Msh = Create(Mesh){
411
				Parent = Part,
412
				Offset = OffSet,
413
				Scale = Scale,
414
			}
415
			if Mesh == "SpecialMesh" then
416
				Msh.MeshType = MeshType
417
				Msh.MeshId = MeshId
418
			end
419
			return Msh
420
		end;
421
	};
422
	
423
	["Mesh"] = {
424
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
425
			local Msh = Create(Mesh){
426
				Parent = Part,
427
				Offset = OffSet,
428
				Scale = Scale,
429
			}
430
			if Mesh == "SpecialMesh" then
431
				Msh.MeshType = MeshType
432
				Msh.MeshId = MeshId
433
			end
434
			return Msh
435
		end;
436
	};
437
	
438
	["Weld"] = {
439
		Create = function(Parent, Part0, Part1, C0, C1)
440
			local Weld = Create("Weld"){
441
				Parent = Parent,
442
				Part0 = Part0,
443
				Part1 = Part1,
444
				C0 = C0,
445
				C1 = C1,
446
			}
447
			return Weld
448
		end;
449
	};
450
451
	["Sound"] = {
452
		Create = function(id, par, vol, pit) 
453
			coroutine.resume(coroutine.create(function()
454
				local S = Create("Sound"){
455
					Volume = vol,
456
                                        Name = "EffectSoundo",
457
					Pitch = pit or 1,
458
					SoundId = id,
459
					Parent = par or workspace,
460
				}
461
				wait() 
462
				S:play() 
463
				game:GetService("Debris"):AddItem(S, 10)
464
			end))
465
		end;
466
	};
467
468
["LongSound"] = {
469
		Create = function(id, par, vol, pit) 
470
			coroutine.resume(coroutine.create(function()
471
				local S = Create("Sound"){
472
					Volume = vol,
473
					Pitch = pit or 1,
474
					SoundId = id,
475
					Parent = par or workspace,
476
				}
477
				wait() 
478
				S:play() 
479
				game:GetService("Debris"):AddItem(S, 60)
480
			end))
481
		end;
482
	};
483
	
484
	["ParticleEmitter"] = {
485
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
486
			local fp = Create("ParticleEmitter"){
487
				Parent = Parent,
488
				Color = ColorSequence.new(Color1, Color2),
489
				LightEmission = LightEmission,
490
				Size = Size,
491
				Texture = Texture,
492
				Transparency = Transparency,
493
				ZOffset = ZOffset,
494
				Acceleration = Accel,
495
				Drag = Drag,
496
				LockedToPart = LockedToPart,
497
				VelocityInheritance = VelocityInheritance,
498
				EmissionDirection = EmissionDirection,
499
				Enabled = Enabled,
500
				Lifetime = LifeTime,
501
				Rate = Rate,
502
				Rotation = Rotation,
503
				RotSpeed = RotSpeed,
504
				Speed = Speed,
505
				VelocitySpread = VelocitySpread,
506
			}
507
			return fp
508
		end;
509
	};
510
511
	CreateTemplate = {
512
	
513
	};
514
}
515
516
517
518
New = function(Object, Parent, Name, Data)
519
	local Object = Instance.new(Object)
520
	for Index, Value in pairs(Data or {}) do
521
		Object[Index] = Value
522
	end
523
	Object.Parent = Parent
524
	Object.Name = Name
525
	return Object
526
end
527
local halocolor = BrickColor.new("Pastel light blue")
528
local halocolor2 = BrickColor.new("Cool yellow")
529
local starcolor = BrickColor.new("Bright yellow")
530
local lunacolor = BrickColor.new("Navy blue")
531
local lunacolor2 = BrickColor.new("Bright blue")
532
local wepcolor = BrickColor.new("Really black")
533
local maincolor = BrickColor.new("Really black")
534
local m = Instance.new("Model",char)
535
local m2 = Instance.new("Model",char)
536
local m3 = Instance.new("Model",char)
537
local mw1 = Instance.new("Model",char)
538
local mw2 = Instance.new("Model",char)
539
540
541
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
542
  local gui = it(GuiType)
543
  gui.Parent = parent
544
  gui.Text = text
545
  gui.BackgroundTransparency = backtrans
546
  gui.BackgroundColor3 = backcol
547
  gui.SizeConstraint = "RelativeXY"
548
  gui.TextXAlignment = "Center"
549
  gui.TextYAlignment = "Center"
550
  gui.Position = pos
551
  gui.Size = size
552
  gui.Font = "SourceSans"
553
  gui.FontSize = "Size14"
554
  gui.TextWrapped = false
555
  gui.TextStrokeTransparency = 0
556
  gui.TextColor = BrickColor.new("White")
557
  return gui
558
end
559
---- GUI set
560
local basgui = it("GuiMain")
561
basgui.Parent = plr.PlayerGui
562
basgui.Name = "Killcounter GUI"
563
local basframe = it("Frame")
564
basframe.Parent = basgui
565
basframe.BackgroundColor3 = Color3.new(255, 255, 255)
566
basframe.BackgroundTransparency = 1
567
basframe.BorderColor3 = Color3.new(17, 17, 17)
568
basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
569
basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
570
local uhh = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, 0.45, 0), UDim2.new(1.5, 0, 0.55, 0))
571
uhh.ZIndex = 2
572
uhh.Font = "Bodoni"
573
uhh.TextStrokeColor3 = Color3.new(0.05,0.05,0.05)
574
uhh.TextColor3 = Color3.new(1,1,1)
575
uhh.BackgroundTransparency = 0.25
576
uhh.BorderSizePixel = 2
577
uhh.BorderColor3 = Color3.new(0,0,0)
578
uhh.TextScaled = true
579
uhh.TextXAlignment = "Left"
580
uhh.Text = "Switch mode: Q-J"
581
uhh.TextSize = 64
582
local modeteller = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0, 0, -0.01, 0), UDim2.new(1, 0, 0.45, 0))
583
modeteller.ZIndex = 2
584
modeteller.Font = "Bodoni"
585
modeteller.TextStrokeColor3 = Color3.new(0.05,0.05,0.05)
586
modeteller.TextColor3 = Color3.new(1,1,1)
587
modeteller.BackgroundTransparency = 0.25
588
modeteller.BorderSizePixel = 2
589
modeteller.BorderColor3 = Color3.new(0,0,0)
590
modeteller.TextScaled = true
591
modeteller.TextXAlignment = "Right"
592
modeteller.Text = "Lol it broke"
593
modeteller.TextSize = 64
594
595
local extrawingmod1 = Instance.new("Model",char)
596
local extrawingmod2 = Instance.new("Model",char)
597
598
function CreateParta(parent,transparency,reflectance,material,brickcolor)
599
local p = Instance.new("Part")
600
p.TopSurface = 0
601
p.BottomSurface = 0
602
p.Parent = parent
603
p.Size = Vector3.new(0.1,0.1,0.1)
604
p.Transparency = transparency
605
p.Reflectance = reflectance
606
p.CanCollide = false
607
p.Locked = true
608
p.BrickColor = brickcolor
609
p.Material = material
610
return p
611
end
612
613
function CreateMesh(parent,meshtype,x1,y1,z1)
614
local mesh = Instance.new("SpecialMesh",parent)
615
mesh.MeshType = meshtype
616
mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
617
return mesh
618
end
619
620
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
621
local mesh = Instance.new("SpecialMesh",parent)
622
mesh.MeshType = "FileMesh"
623
mesh.MeshId = meshid
624
mesh.Scale = Vector3.new(x1,y1,z1)
625
return mesh
626
end
627
628
629
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
630
local mesh = Instance.new("SpecialMesh",parent)
631
mesh.MeshType = "FileMesh"
632
mesh.MeshId = meshid
633
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
634
mesh.Scale = Vector3.new(x1,y1,z1)
635
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
636
return mesh
637
end
638
639
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
640
local weld = Instance.new("Weld")
641
weld.Parent = parent
642
weld.Part0 = part0
643
weld.Part1 = part1
644
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
645
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
646
return weld
647
end
648
649
650
--------------
651
local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
652
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))
653
local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
654
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))
655
656
local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
657
CreateMesh(handle,"Brick",0,0,0)
658
local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
659
local valuaring = 10
660
661
local refec = Instance.new("ParticleEmitter",handlex)
662
refec.Texture = "rbxassetid://284205403"
663
refec.LightEmission = 0.95
664
refec.Color = ColorSequence.new(BrickColor.new("White").Color)
665
refec.Rate = 50
666
refec.Lifetime = NumberRange.new(0.5)
667
refec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.5,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
668
refec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
669
refec.Speed = NumberRange.new(0,2)
670
refec.Drag = 5
671
refec.LockedToPart = true
672
refec.Rotation = NumberRange.new(-500,500)
673
refec.VelocitySpread = 9000
674
refec.RotSpeed = NumberRange.new(-500,500)
675
local refec2 = refec:Clone()
676
refec2.LightEmission = 0.75
677
refec2.Texture = "rbxassetid://254287058"
678
refec2.Parent = handlex
679
refec2.Rate = 25
680
refec2.Lifetime = NumberRange.new(0.75)
681
refec2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.5,0),NumberSequenceKeypoint.new(0.15,1,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
682
refec2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
683
refec2.Speed = NumberRange.new(0)
684
local refec3 = refec:Clone()
685
refec3.LightEmission = 0.75
686
refec3.Texture = "rbxassetid://363275192"
687
refec3.Parent = handlex
688
refec3.Rate = 25
689
refec3.Lifetime = NumberRange.new(1)
690
refec3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0.1,0)})
691
refec3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
692
refec3.Speed = NumberRange.new(0)
693
refec3.RotSpeed = NumberRange.new(-50,50)
694
695
for i = 0, 35 do
696
	valuaring = valuaring + 10
697
rn = CreateParta(mw2,0,0,"Neon",halocolor)
698
CreateMesh(rn,"Wedge",0.1,0.5,0.1)
699
CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
700
rn = CreateParta(mw2,0,0,"Neon",halocolor)
701
CreateMesh(rn,"Wedge",0.1,0.5,0.1)
702
CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
703
rn = CreateParta(mw2,0,0,"Neon",halocolor)
704
CreateMesh(rn,"Wedge",0.1,0.2,0.05)
705
CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
706
rn = CreateParta(mw2,0,0,"Neon",halocolor)
707
CreateMesh(rn,"Wedge",0.1,0.2,0.05)
708
CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
709
end
710
711
712
local handle = CreateParta(m,1,1,"Neon",maincolor)
713
CreateMesh(handle,"Brick",0.5,0.5,0.5)
714
local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
715
716
--- Left wing.
717
718
local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
719
CreateMesh(handle,"Brick",0.5,0.5,0.5)
720
local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
721
722
wed = CreateParta(mw1,0,0,"Neon",halocolor)
723
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
724
CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
725
wed = CreateParta(mw1,0,0,"Neon",halocolor)
726
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
727
CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
728
wed = CreateParta(mw1,0,0,"Neon",halocolor)
729
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
730
CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
731
wed = CreateParta(mw1,0,0,"Neon",halocolor)
732
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
733
CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
734
wed = CreateParta(mw1,0,0,"Neon",halocolor)
735
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
736
CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
737
wed = CreateParta(mw1,0,0,"Neon",halocolor)
738
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
739
CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
740
wed = CreateParta(mw1,0,0,"Neon",halocolor)
741
CreateMesh(wed,"Wedge",0.05,0.5,1.5)
742
CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
743
wed = CreateParta(mw1,0,0,"Neon",halocolor)
744
CreateMesh(wed,"Wedge",0.05,1.5,0.5)
745
CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
746
wed = CreateParta(mw1,0,0,"Neon",halocolor)
747
CreateMesh(wed,"Wedge",0.05,0.25,1.75)
748
CreateWeld(wed,lwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
749
wed = CreateParta(mw1,0,0,"Neon",halocolor)
750
CreateMesh(wed,"Wedge",0.05,1.75,0.25)
751
CreateWeld(wed,lwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
752
753
754
local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
755
CreateMesh(handle,"Brick",0.5,0.5,0.5)
756
local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
757
758
wed = CreateParta(mw1,0,0,"Neon",halocolor)
759
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
760
CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
761
wed = CreateParta(mw1,0,0,"Neon",halocolor)
762
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
763
CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
764
wed = CreateParta(mw1,0,0,"Neon",halocolor)
765
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
766
CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
767
wed = CreateParta(mw1,0,0,"Neon",halocolor)
768
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
769
CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
770
wed = CreateParta(mw1,0,0,"Neon",halocolor)
771
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
772
CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
773
wed = CreateParta(mw1,0,0,"Neon",halocolor)
774
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
775
CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
776
wed = CreateParta(mw1,0,0,"Neon",halocolor)
777
CreateMesh(wed,"Wedge",0.05,0.5,1.5)
778
CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
779
wed = CreateParta(mw1,0,0,"Neon",halocolor)
780
CreateMesh(wed,"Wedge",0.05,1.5,0.5)
781
CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
782
wed = CreateParta(mw1,0,0,"Neon",halocolor)
783
CreateMesh(wed,"Wedge",0.05,0.25,1.75)
784
CreateWeld(wed,lwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
785
wed = CreateParta(mw1,0,0,"Neon",halocolor)
786
CreateMesh(wed,"Wedge",0.05,1.75,0.25)
787
CreateWeld(wed,lwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
788
789
local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
790
CreateMesh(handle,"Brick",0.5,0.5,0.5)
791
local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
792
793
wed = CreateParta(mw1,0,0,"Neon",halocolor)
794
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
795
CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
796
wed = CreateParta(mw1,0,0,"Neon",halocolor)
797
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
798
CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
799
wed = CreateParta(mw1,0,0,"Neon",halocolor)
800
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
801
CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
802
wed = CreateParta(mw1,0,0,"Neon",halocolor)
803
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
804
CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
805
wed = CreateParta(mw1,0,0,"Neon",halocolor)
806
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
807
CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
808
wed = CreateParta(mw1,0,0,"Neon",halocolor)
809
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
810
CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
811
wed = CreateParta(mw1,0,0,"Neon",halocolor)
812
CreateMesh(wed,"Wedge",0.05,0.5,1.5)
813
CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
814
wed = CreateParta(mw1,0,0,"Neon",halocolor)
815
CreateMesh(wed,"Wedge",0.05,1.5,0.5)
816
CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
817
wed = CreateParta(mw1,0,0,"Neon",halocolor)
818
CreateMesh(wed,"Wedge",0.05,0.25,1.75)
819
CreateWeld(wed,lwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
820
wed = CreateParta(mw1,0,0,"Neon",halocolor)
821
CreateMesh(wed,"Wedge",0.05,1.75,0.25)
822
CreateWeld(wed,lwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
823
824
local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
825
CreateMesh(handle,"Brick",0.5,0.5,0.5)
826
local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
827
828
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
829
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
830
CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
831
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
832
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
833
CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
834
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
835
CreateMesh(wed,"Wedge",0.05,0.5,3)
836
CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
837
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
838
CreateMesh(wed,"Wedge",0.05,3,0.5)
839
CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
840
841
local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
842
CreateMesh(handle,"Brick",0.5,0.5,0.5)
843
local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
844
845
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
846
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
847
CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
848
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
849
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
850
CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
851
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
852
CreateMesh(wed,"Wedge",0.05,0.5,3)
853
CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
854
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
855
CreateMesh(wed,"Wedge",0.05,3,0.5)
856
CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
857
858
local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
859
CreateMesh(handle,"Brick",0.5,0.5,0.5)
860
local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
861
862
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
863
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
864
CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
865
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
866
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
867
CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
868
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
869
CreateMesh(wed,"Wedge",0.05,0.5,3)
870
CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
871
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
872
CreateMesh(wed,"Wedge",0.05,3,0.5)
873
CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
874
875
-- Right wing.
876
877
local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
878
CreateMesh(handle,"Brick",0.5,0.5,0.5)
879
local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
880
881
wed = CreateParta(mw2,0,0,"Neon",halocolor)
882
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
883
CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
884
wed = CreateParta(mw2,0,0,"Neon",halocolor)
885
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
886
CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
887
wed = CreateParta(mw2,0,0,"Neon",halocolor)
888
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
889
CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
890
wed = CreateParta(mw2,0,0,"Neon",halocolor)
891
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
892
CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
893
wed = CreateParta(mw2,0,0,"Neon",halocolor)
894
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
895
CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
896
wed = CreateParta(mw2,0,0,"Neon",halocolor)
897
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
898
CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
899
wed = CreateParta(mw2,0,0,"Neon",halocolor)
900
CreateMesh(wed,"Wedge",0.05,0.5,1.5)
901
CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
902
wed = CreateParta(mw2,0,0,"Neon",halocolor)
903
CreateMesh(wed,"Wedge",0.05,1.5,0.5)
904
CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
905
wed = CreateParta(mw2,0,0,"Neon",halocolor)
906
CreateMesh(wed,"Wedge",0.05,0.25,1.75)
907
CreateWeld(wed,rwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
908
wed = CreateParta(mw2,0,0,"Neon",halocolor)
909
CreateMesh(wed,"Wedge",0.05,1.75,0.25)
910
CreateWeld(wed,rwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
911
912
local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
913
CreateMesh(handle,"Brick",0.5,0.5,0.5)
914
local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
915
916
wed = CreateParta(mw2,0,0,"Neon",halocolor)
917
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
918
CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
919
wed = CreateParta(mw2,0,0,"Neon",halocolor)
920
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
921
CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
922
wed = CreateParta(mw2,0,0,"Neon",halocolor)
923
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
924
CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
925
wed = CreateParta(mw2,0,0,"Neon",halocolor)
926
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
927
CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
928
wed = CreateParta(mw2,0,0,"Neon",halocolor)
929
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
930
CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
931
wed = CreateParta(mw2,0,0,"Neon",halocolor)
932
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
933
CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
934
wed = CreateParta(mw2,0,0,"Neon",halocolor)
935
CreateMesh(wed,"Wedge",0.05,0.5,1.5)
936
CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
937
wed = CreateParta(mw2,0,0,"Neon",halocolor)
938
CreateMesh(wed,"Wedge",0.05,1.5,0.5)
939
CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
940
wed = CreateParta(mw2,0,0,"Neon",halocolor)
941
CreateMesh(wed,"Wedge",0.05,0.25,1.75)
942
CreateWeld(wed,rwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
943
wed = CreateParta(mw2,0,0,"Neon",halocolor)
944
CreateMesh(wed,"Wedge",0.05,1.75,0.25)
945
CreateWeld(wed,rwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
946
947
local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
948
CreateMesh(handle,"Brick",0.5,0.5,0.5)
949
local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
950
951
952
wed = CreateParta(mw2,0,0,"Neon",halocolor)
953
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
954
CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
955
wed = CreateParta(mw2,0,0,"Neon",halocolor)
956
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
957
CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
958
wed = CreateParta(mw2,0,0,"Neon",halocolor)
959
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
960
CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
961
wed = CreateParta(mw2,0,0,"Neon",halocolor)
962
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
963
CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
964
wed = CreateParta(mw2,0,0,"Neon",halocolor)
965
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
966
CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
967
wed = CreateParta(mw2,0,0,"Neon",halocolor)
968
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
969
CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
970
wed = CreateParta(mw2,0,0,"Neon",halocolor)
971
CreateMesh(wed,"Wedge",0.05,0.5,1.5)
972
CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
973
wed = CreateParta(mw2,0,0,"Neon",halocolor)
974
CreateMesh(wed,"Wedge",0.05,1.5,0.5)
975
CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
976
wed = CreateParta(mw2,0,0,"Neon",halocolor)
977
CreateMesh(wed,"Wedge",0.05,0.25,1.75)
978
CreateWeld(wed,rwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
979
wed = CreateParta(mw2,0,0,"Neon",halocolor)
980
CreateMesh(wed,"Wedge",0.05,1.75,0.25)
981
CreateWeld(wed,rwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
982
983
984
local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
985
CreateMesh(handle,"Brick",0.5,0.5,0.5)
986
local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
987
988
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
989
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
990
CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
991
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
992
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
993
CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
994
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
995
CreateMesh(wed,"Wedge",0.05,0.5,3)
996
CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
997
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
998
CreateMesh(wed,"Wedge",0.05,3,0.5)
999
CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1000
1001
local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
1002
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1003
local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1004
1005
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1006
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1007
CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1008
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1009
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1010
CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1011
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1012
CreateMesh(wed,"Wedge",0.05,0.5,3)
1013
CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1014
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1015
CreateMesh(wed,"Wedge",0.05,3,0.5)
1016
CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1017
1018
local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
1019
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1020
local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1021
1022
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1023
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1024
CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1025
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1026
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1027
CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1028
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1029
CreateMesh(wed,"Wedge",0.05,0.5,3)
1030
CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1031
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1032
CreateMesh(wed,"Wedge",0.05,3,0.5)
1033
CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1034
1035
1036
---- HERES THE RING
1037
1038
1039
--[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
1040
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
1041
CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1042
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1043
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
1044
CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1045
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1046
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
1047
CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1048
1049
1050
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1051
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1052
CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1053
1054
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1055
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1056
CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1057
1058
1059
1060
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1061
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1062
CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1063
1064
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1065
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1066
CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1067
1068
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
1069
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
1070
CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1071
1072
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1073
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
1074
CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1075
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
1076
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
1077
CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1078
1079
--- second ring
1080
1081
ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
1082
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
1083
CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1084
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1085
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
1086
CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1087
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1088
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
1089
CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1090
1091
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1092
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1093
CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1094
1095
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1096
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1097
CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1098
1099
1100
1101
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1102
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1103
CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1104
1105
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1106
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1107
CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1108
1109
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
1110
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
1111
CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1112
1113
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1114
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
1115
CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1116
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
1117
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
1118
CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
1119
1120
------------- Trails
1121
local A0 = Instance.new("Attachment",lwing1)
1122
A0.Position = Vector3.new(0,-0.7,0)
1123
local A1 = Instance.new("Attachment",lwing1)
1124
A1.Position = Vector3.new(0,-3.5,0)
1125
tl1 = Instance.new('Trail',lwing1)
1126
tl1.Attachment0 = A0
1127
tl1.Attachment1 = A1
1128
tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
1129
tl1.LightEmission = 1
1130
tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1131
tl1.Color = ColorSequence.new(BrickColor.new('White').Color)
1132
tl1.Lifetime = 0.6
1133
1134
local A0 = Instance.new("Attachment",lwing2)
1135
A0.Position = Vector3.new(0,-0.7,0)
1136
local A1 = Instance.new("Attachment",lwing2)
1137
A1.Position = Vector3.new(0,-3.5,0)
1138
tl2 = Instance.new('Trail',lwing2)
1139
tl2.Attachment0 = A0
1140
tl2.Attachment1 = A1
1141
tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
1142
tl2.LightEmission = 1
1143
tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1144
tl2.Color = ColorSequence.new(BrickColor.new('White').Color)
1145
tl2.Lifetime = 0.6
1146
1147
local A0 = Instance.new("Attachment",lwing3)
1148
A0.Position = Vector3.new(0,-0.7,0)
1149
local A1 = Instance.new("Attachment",lwing3)
1150
A1.Position = Vector3.new(0,-3.5,0)
1151
tl3 = Instance.new('Trail',lwing3)
1152
tl3.Attachment0 = A0
1153
tl3.Attachment1 = A1
1154
tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
1155
tl3.LightEmission = 1
1156
tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1157
tl3.Color = ColorSequence.new(BrickColor.new('White').Color)
1158
tl3.Lifetime = 0.6
1159
1160
local A0 = Instance.new("Attachment",rwing1)
1161
A0.Position = Vector3.new(0,-0.7,0)
1162
local A1 = Instance.new("Attachment",rwing1)
1163
A1.Position = Vector3.new(0,-3.5,0)
1164
tr1 = Instance.new('Trail',rwing1)
1165
tr1.Attachment0 = A0
1166
tr1.Attachment1 = A1
1167
tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
1168
tr1.LightEmission = 1
1169
tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1170
tr1.Color = ColorSequence.new(BrickColor.new('White').Color)
1171
tr1.Lifetime = 0.6
1172
1173
local A0 = Instance.new("Attachment",rwing2)
1174
A0.Position = Vector3.new(0,-0.7,0)
1175
local A1 = Instance.new("Attachment",rwing2)
1176
A1.Position = Vector3.new(0,-3.5,0)
1177
tr2 = Instance.new('Trail',rwing2)
1178
tr2.Attachment0 = A0
1179
tr2.Attachment1 = A1
1180
tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
1181
tr2.LightEmission = 1
1182
tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1183
tr2.Color = ColorSequence.new(BrickColor.new('White').Color)
1184
tr2.Lifetime = 0.6
1185
1186
local A0 = Instance.new("Attachment",rwing3)
1187
A0.Position = Vector3.new(0,-0.7,0)
1188
local A1 = Instance.new("Attachment",rwing3)
1189
A1.Position = Vector3.new(0,-3.5,0)
1190
tr3 = Instance.new('Trail',rwing3)
1191
tr3.Attachment0 = A0
1192
tr3.Attachment1 = A1
1193
tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
1194
tr3.LightEmission = 1
1195
tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1196
tr3.Color = ColorSequence.new(BrickColor.new('White').Color)
1197
tr3.Lifetime = 0.6
1198
1199
for i, v in pairs(mw2:GetChildren()) do
1200
if v:IsA("Part") then
1201
v.BrickColor = BrickColor.new("Navy blue")
1202
v.Material = "Neon"
1203
end
1204
end
1205
for i, v in pairs(mw1:GetChildren()) do
1206
if v:IsA("Part") then
1207
v.Transparency = 0
1208
v.BrickColor = BrickColor.new("Navy blue")
1209
v.Material = "Neon"
1210
end
1211
end
1212
for i, v in pairs(extrawingmod1:GetChildren()) do
1213
if v:IsA("Part") then
1214
v.Transparency = 1
1215
v.BrickColor = BrickColor.new("White")
1216
v.Material = "Neon"
1217
end
1218
end
1219
for i, v in pairs(extrawingmod2:GetChildren()) do
1220
if v:IsA("Part") then
1221
v.Transparency = 1
1222
v.BrickColor = BrickColor.new("White")
1223
v.Material = "Neon"
1224
end
1225
end
1226
local MAINRUINCOLOR = BrickColor.new("Navy blue")
1227
------
1228
1229
1230
function RemoveOutlines(part)
1231
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
1232
end
1233
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1234
  local Part = Create("Part")({
1235
    Parent = Parent,
1236
    Reflectance = Reflectance,
1237
    Transparency = Transparency,
1238
    CanCollide = false,
1239
    Locked = true,
1240
    BrickColor = BrickColor.new(tostring(BColor)),
1241
    Name = Name,
1242
    Size = Size,
1243
    Material = Material
1244
  })
1245
  Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
1246
  RemoveOutlines(Part)
1247
  return Part
1248
end
1249
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1250
  local Msh = Create(Mesh)({
1251
    Parent = Part,
1252
    Offset = OffSet,
1253
    Scale = Scale
1254
  })
1255
  if Mesh == "SpecialMesh" then
1256
    Msh.MeshType = MeshType
1257
    Msh.MeshId = MeshId
1258
  end
1259
  return Msh
1260
end
1261
function CreateWeld(Parent, Part0, Part1, C0, C1)
1262
  local Weld = Create("Weld")({
1263
    Parent = Parent,
1264
    Part0 = Part0,
1265
    Part1 = Part1,
1266
    C0 = C0,
1267
    C1 = C1
1268
  })
1269
  return Weld
1270
end
1271
1272
Player=owner
1273
Character=Player.Character 
1274
PlayerGui=Player.PlayerGui 
1275
Backpack=Player.Backpack 
1276
Torso=Character.Torso 
1277
Head=Character.Head 
1278
Humanoid=Character.Humanoid
1279
m=Instance.new('Model',Character)
1280
LeftArm=Character["Left Arm"] 
1281
LeftLeg=Character["Left Leg"] 
1282
RightArm=Character["Right Arm"] 
1283
RightLeg=Character["Right Leg"] 
1284
LS=Torso["Left Shoulder"] 
1285
LH=Torso["Left Hip"] 
1286
RS=Torso["Right Shoulder"] 
1287
RH=Torso["Right Hip"] 
1288
Face = Head.face
1289
Neck=Torso.Neck
1290
it=Instance.new
1291
attacktype=1
1292
vt=Vector3.new
1293
cf=CFrame.new
1294
euler=CFrame.fromEulerAnglesXYZ
1295
angles=CFrame.Angles
1296
cloaked=false
1297
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1298
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1299
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
1300
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
1301
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
1302
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
1303
RootPart=Character.HumanoidRootPart
1304
RootJoint=RootPart.RootJoint
1305
RootCF=euler(-1.57,0,3.14)
1306
attack = false 
1307
attackdebounce = false 
1308
deb=false
1309
equipped=true
1310
hand=false
1311
MMouse=nil
1312
combo=0
1313
mana=0
1314
trispeed=.2
1315
attackmode='none'
1316
local idle=0
1317
local Anim="Idle"
1318
local Effects={}
1319
local gun=false
1320
local shoot=false
1321
local sine = 0
1322
local change = 1
1323
player=nil 
1324
1325
function RecolorTextAndRename(name,col1,col2,font)
1326
modet.TextStrokeColor3 = col2
1327
modet.TextColor3 = col1
1328
modet.Font = font
1329
modet.Text = name
1330
end
1331
--save shoulders 
1332
RSH, LSH=nil, nil 
1333
--welds 
1334
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
1335
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
1336
LH=Torso["Left Hip"]
1337
RH=Torso["Right Hip"]
1338
TorsoColor=Torso.BrickColor
1339
function NoOutline(Part)
1340
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1341
end
1342
player=Player 
1343
ch=Character
1344
RSH=ch.Torso["Right Shoulder"] 
1345
LSH=ch.Torso["Left Shoulder"] 
1346
-- 
1347
RSH.Parent=nil 
1348
LSH.Parent=nil 
1349
-- 
1350
RW.Name="Right Shoulder"
1351
RW.Part0=ch.Torso 
1352
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1353
RW.C1=cf(0, 0.5, 0) 
1354
RW.Part1=ch["Right Arm"] 
1355
RW.Parent=ch.Torso 
1356
-- 
1357
LW.Name="Left Shoulder"
1358
LW.Part0=ch.Torso 
1359
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1360
LW.C1=cf(0, 0.5, 0) 
1361
LW.Part1=ch["Left Arm"] 
1362
LW.Parent=ch.Torso 
1363
1364
local Stats=Instance.new("BoolValue")
1365
Stats.Name="Stats"
1366
Stats.Parent=Character
1367
local Atk=Instance.new("NumberValue")
1368
Atk.Name="Damage"
1369
Atk.Parent=Stats
1370
Atk.Value=1
1371
local Def=Instance.new("NumberValue")
1372
Def.Name="Defense"
1373
Def.Parent=Stats
1374
Def.Value=1
1375
local Speed=Instance.new("NumberValue")
1376
Speed.Name="Speed"
1377
Speed.Parent=Stats
1378
Speed.Value=1
1379
local Mvmt=Instance.new("NumberValue")
1380
Mvmt.Name="Movement"
1381
Mvmt.Parent=Stats
1382
Mvmt.Value=1
1383
1384
local donum=0
1385
 
1386
1387
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
1388
local fp=it("Part")
1389
fp.formFactor=formfactor 
1390
fp.Parent=parent
1391
fp.Reflectance=reflectance
1392
fp.Transparency=transparency
1393
fp.CanCollide=false 
1394
fp.Locked=true
1395
fp.BrickColor=brickcolor
1396
fp.Name=name
1397
fp.Size=size
1398
fp.Position=Torso.Position 
1399
NoOutline(fp)
1400
fp.Material="SmoothPlastic"
1401
fp:BreakJoints()
1402
return fp 
1403
end 
1404
 
1405
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1406
local mesh=it(Mesh) 
1407
mesh.Parent=part
1408
if Mesh=="SpecialMesh" then
1409
mesh.MeshType=meshtype
1410
if meshid~="nil" then
1411
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
1412
end
1413
end
1414
mesh.Offset=offset
1415
mesh.Scale=scale
1416
return mesh
1417
end
1418
 
1419
function weld(parent,part0,part1,c0)
1420
local weld=it("Weld") 
1421
weld.Parent=parent
1422
weld.Part0=part0 
1423
weld.Part1=part1 
1424
weld.C0=c0
1425
return weld
1426
end
1427
 
1428
local Color1=Torso.BrickColor
1429
1430
local bodvel=Instance.new("BodyVelocity")
1431
local bg=Instance.new("BodyGyro")
1432
1433
function swait(num)
1434
if num==0 or num==nil then
1435
game:service'RunService'.Stepped:wait(0)
1436
else
1437
for i=0,num do
1438
game:service'RunService'.Stepped:wait(0)
1439
end
1440
end
1441
end
1442
1443
-------- RAINBOW LEAVE IT TO ME
1444
local r = 255
1445
local g = 0
1446
local b = 0
1447
coroutine.resume(coroutine.create(function()
1448
while wait() do
1449
	for i = 0, 254/5 do
1450
		swait()
1451
		g = g + 5
1452
	end
1453
	for i = 0, 254/5 do
1454
		swait()
1455
		r = r - 5
1456
	end
1457
	for i = 0, 254/5 do
1458
		swait()
1459
		b = b + 5
1460
	end
1461
	for i = 0, 254/5 do
1462
		swait()
1463
		g = g - 5
1464
	end
1465
	for i = 0, 254/5 do
1466
		swait()
1467
		r = r + 5
1468
	end
1469
	for i = 0, 254/5 do
1470
		swait()
1471
		b = b - 5
1472
	end
1473
end
1474
end))
1475
 
1476
 
1477
so = function(id,par,vol,pit) 
1478
coroutine.resume(coroutine.create(function()
1479
local sou = Instance.new("Sound",par or workspace)
1480
sou.Volume=vol
1481
sou.Pitch=pit or 1
1482
sou.SoundId=id
1483
swait() 
1484
sou:play() 
1485
game:GetService("Debris"):AddItem(sou,6)
1486
end))
1487
end
1488
 
1489
function clerp(a,b,t) 
1490
local qa = {QuaternionFromCFrame(a)}
1491
local qb = {QuaternionFromCFrame(b)} 
1492
local ax, ay, az = a.x, a.y, a.z 
1493
local bx, by, bz = b.x, b.y, b.z
1494
local _t = 1-t
1495
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
1496
end 
1497
 
1498
function QuaternionFromCFrame(cf) 
1499
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
1500
local trace = m00 + m11 + m22 
1501
if trace > 0 then 
1502
local s = math.sqrt(1 + trace) 
1503
local recip = 0.5/s 
1504
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
1505
else 
1506
local i = 0 
1507
if m11 > m00 then
1508
i = 1
1509
end
1510
if m22 > (i == 0 and m00 or m11) then 
1511
i = 2 
1512
end 
1513
if i == 0 then 
1514
local s = math.sqrt(m00-m11-m22+1) 
1515
local recip = 0.5/s 
1516
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
1517
elseif i == 1 then 
1518
local s = math.sqrt(m11-m22-m00+1) 
1519
local recip = 0.5/s 
1520
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
1521
elseif i == 2 then 
1522
local s = math.sqrt(m22-m00-m11+1) 
1523
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
1524
end 
1525
end 
1526
end
1527
 
1528
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
1529
local xs, ys, zs = x + x, y + y, z + z 
1530
local wx, wy, wz = w*xs, w*ys, w*zs 
1531
local xx = x*xs 
1532
local xy = x*ys 
1533
local xz = x*zs 
1534
local yy = y*ys 
1535
local yz = y*zs 
1536
local zz = z*zs 
1537
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)) 
1538
end
1539
 
1540
function QuaternionSlerp(a, b, t) 
1541
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
1542
local startInterp, finishInterp; 
1543
if cosTheta >= 0.0001 then 
1544
if (1 - cosTheta) > 0.0001 then 
1545
local theta = math.acos(cosTheta) 
1546
local invSinTheta = 1/math.sin(theta) 
1547
startInterp = math.sin((1-t)*theta)*invSinTheta 
1548
finishInterp = math.sin(t*theta)*invSinTheta  
1549
else 
1550
startInterp = 1-t 
1551
finishInterp = t 
1552
end 
1553
else 
1554
if (1+cosTheta) > 0.0001 then 
1555
local theta = math.acos(-cosTheta) 
1556
local invSinTheta = 1/math.sin(theta) 
1557
startInterp = math.sin((t-1)*theta)*invSinTheta 
1558
finishInterp = math.sin(t*theta)*invSinTheta 
1559
else 
1560
startInterp = t-1 
1561
finishInterp = t 
1562
end 
1563
end 
1564
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 
1565
end
1566
1567
local function CFrameFromTopBack(at, top, back)
1568
local right = top:Cross(back)
1569
return CFrame.new(at.x, at.y, at.z,
1570
right.x, top.x, back.x,
1571
right.y, top.y, back.y,
1572
right.z, top.z, back.z)
1573
end
1574
1575
function Triangle(a, b, c)
1576
local edg1 = (c-a):Dot((b-a).unit)
1577
local edg2 = (a-b):Dot((c-b).unit)
1578
local edg3 = (b-c):Dot((a-c).unit)
1579
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1580
a, b, c = a, b, c
1581
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1582
a, b, c = b, c, a
1583
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1584
a, b, c = c, a, b
1585
else
1586
assert(false, "unreachable")
1587
end
1588
 
1589
local len1 = (c-a):Dot((b-a).unit)
1590
local len2 = (b-a).magnitude - len1
1591
local width = (a + (b-a).unit*len1 - c).magnitude
1592
 
1593
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1594
 
1595
local list = {}
1596
 
1597
if len1 > 0.01 then
1598
local w1 = Instance.new('WedgePart', m)
1599
game:GetService("Debris"):AddItem(w1,5)
1600
w1.Material = "SmoothPlastic"
1601
w1.FormFactor = 'Custom'
1602
w1.BrickColor = BrickColor.new("Really red")
1603
w1.Transparency = 0
1604
w1.Reflectance = 0
1605
w1.Material = "SmoothPlastic"
1606
w1.CanCollide = false
1607
local l1 = Instance.new("PointLight",w1)
1608
l1.Color = Color3.new(170,0,0)
1609
NoOutline(w1)
1610
local sz = Vector3.new(0.2, width, len1)
1611
w1.Size = sz
1612
local sp = Instance.new("SpecialMesh",w1)
1613
sp.MeshType = "Wedge"
1614
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1615
w1:BreakJoints()
1616
w1.Anchored = true
1617
w1.Parent = workspace
1618
w1.Transparency = 0.7
1619
table.insert(Effects,{w1,"Disappear",.01})
1620
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1621
table.insert(list,w1)
1622
end
1623
 
1624
if len2 > 0.01 then
1625
local w2 = Instance.new('WedgePart', m)
1626
game:GetService("Debris"):AddItem(w2,5)
1627
w2.Material = "SmoothPlastic"
1628
w2.FormFactor = 'Custom'
1629
w2.BrickColor = BrickColor.new("Really red")
1630
w2.Transparency = 0
1631
w2.Reflectance = 0
1632
w2.Material = "SmoothPlastic"
1633
w2.CanCollide = false
1634
local l2 = Instance.new("PointLight",w2)
1635
l2.Color = Color3.new(170,0,0)
1636
NoOutline(w2)
1637
local sz = Vector3.new(0.2, width, len2)
1638
w2.Size = sz
1639
local sp = Instance.new("SpecialMesh",w2)
1640
sp.MeshType = "Wedge"
1641
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1642
w2:BreakJoints()
1643
w2.Anchored = true
1644
w2.Parent = workspace
1645
w2.Transparency = 0.7
1646
table.insert(Effects,{w2,"Disappear",.01})
1647
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1648
table.insert(list,w2)
1649
end
1650
return unpack(list)
1651
end
1652
 
1653
1654
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1655
  if hit.Parent == nil then
1656
    return
1657
  end
1658
  local h = hit.Parent:FindFirstChildOfClass("Humanoid")
1659
  for _, v in pairs(hit.Parent:children()) do
1660
    if v:IsA("Humanoid") then
1661
      h = v
1662
    end
1663
  end
1664
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
1665
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1666
      return
1667
    end
1668
    local c = Create("ObjectValue")({
1669
      Name = "creator",
1670
      Value = game:service("Players").LocalPlayer,
1671
      Parent = h
1672
    })
1673
    game:GetService("Debris"):AddItem(c, 0.5)
1674
    if HitSound ~= nil and HitPitch ~= nil then
1675
      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
1676
    end
1677
    local Damage = math.random(minim, maxim)
1678
    local blocked = false
1679
    local block = hit.Parent:findFirstChild("Block")
1680
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1681
      blocked = true
1682
      block.Value = block.Value - 1
1683
      print(block.Value)
1684
    end
1685
    if blocked == false then
1686
      HitHealth = h.Health
1687
      h.Health = h.Health - Damage
1688
      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
1689
        print("gained kill")
1690
      end
1691
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1692
    else
1693
      h.Health = h.Health - Damage / 2
1694
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1695
    end
1696
    if Type == "Knockdown" then
1697
      local hum = hit.Parent.Humanoid
1698
      hum.PlatformStand = true
1699
      coroutine.resume(coroutine.create(function(HHumanoid)
1700
        swait(1)
1701
        HHumanoid.PlatformStand = false
1702
      end), hum)
1703
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1704
      local bodvol = Create("BodyVelocity")({
1705
        velocity = angle * knockback,
1706
        P = 5000,
1707
        maxForce = Vector3.new(8000, 8000, 8000),
1708
        Parent = hit
1709
      })
1710
      local rl = Create("BodyAngularVelocity")({
1711
        P = 3000,
1712
        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1713
        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1714
        Parent = hit
1715
      })
1716
      game:GetService("Debris"):AddItem(bodvol, 0.5)
1717
      game:GetService("Debris"):AddItem(rl, 0.5)
1718
    elseif Type == "Normal" then
1719
      local vp = Create("BodyVelocity")({
1720
        P = 500,
1721
        maxForce = Vector3.new(math.huge, 0, math.huge),
1722
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
1723
      })
1724
      if knockback > 0 then
1725
        vp.Parent = hit.Parent.Head
1726
      end
1727
      game:GetService("Debris"):AddItem(vp, 0.5)
1728
    elseif Type == "Up" then
1729
      local bodyVelocity = Create("BodyVelocity")({
1730
        velocity = Vector3.new(0, 20, 0),
1731
        P = 5000,
1732
        maxForce = Vector3.new(8000, 8000, 8000),
1733
        Parent = hit
1734
      })
1735
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1736
      local bodyVelocity = Create("BodyVelocity")({
1737
        velocity = Vector3.new(0, 20, 0),
1738
        P = 5000,
1739
        maxForce = Vector3.new(8000, 8000, 8000),
1740
        Parent = hit
1741
      })
1742
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1743
    elseif Type == "Leech" then
1744
      local hum = hit.Parent.Humanoid
1745
      if hum ~= nil then
1746
        for i = 0, 2 do
1747
          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)
1748
        end
1749
        Humanoid.Health = Humanoid.Health + 10
1750
      end
1751
    elseif Type == "UpKnock" then
1752
      local hum = hit.Parent.Humanoid
1753
      hum.PlatformStand = true
1754
      if hum ~= nil then
1755
        hitr = true
1756
      end
1757
      coroutine.resume(coroutine.create(function(HHumanoid)
1758
        swait(5)
1759
        HHumanoid.PlatformStand = false
1760
        hitr = false
1761
      end), hum)
1762
      local bodyVelocity = Create("BodyVelocity")({
1763
        velocity = Vector3.new(0, 20, 0),
1764
        P = 5000,
1765
        maxForce = Vector3.new(8000, 8000, 8000),
1766
        Parent = hit
1767
      })
1768
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1769
      local bodyVelocity = Create("BodyVelocity")({
1770
        velocity = Vector3.new(0, 20, 0),
1771
        P = 5000,
1772
        maxForce = Vector3.new(8000, 8000, 8000),
1773
        Parent = hit
1774
      })
1775
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1776
    elseif Type == "Snare" then
1777
      local bp = Create("BodyPosition")({
1778
        P = 2000,
1779
        D = 100,
1780
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1781
        position = hit.Parent.Torso.Position,
1782
        Parent = hit.Parent.Torso
1783
      })
1784
      game:GetService("Debris"):AddItem(bp, 1)
1785
    elseif Type == "Slashnare" then
1786
      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)
1787
      for i = 1, math.random(4, 5) do
1788
        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)
1789
      end
1790
      local bp = Create("BodyPosition")({
1791
        P = 2000,
1792
        D = 100,
1793
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1794
        position = hit.Parent.Torso.Position,
1795
        Parent = hit.Parent.Torso
1796
      })
1797
      game:GetService("Debris"):AddItem(bp, 1)
1798
    elseif Type == "Spike" then
1799
      CreateBigIceSword(hit.Parent.Torso.CFrame)
1800
      local bp = Create("BodyPosition")({
1801
        P = 2000,
1802
        D = 100,
1803
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1804
        position = hit.Parent.Torso.Position,
1805
        Parent = hit.Parent.Torso
1806
      })
1807
      game:GetService("Debris"):AddItem(bp, 1)
1808
    elseif Type == "Freeze" then
1809
      local BodPos = Create("BodyPosition")({
1810
        P = 50000,
1811
        D = 1000,
1812
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1813
        position = hit.Parent.Torso.Position,
1814
        Parent = hit.Parent.Torso
1815
      })
1816
      local BodGy = Create("BodyGyro")({
1817
        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
1818
        P = 20000,
1819
        Parent = hit.Parent.Torso,
1820
        cframe = hit.Parent.Torso.CFrame
1821
      })
1822
      hit.Parent.Torso.Anchored = true
1823
      coroutine.resume(coroutine.create(function(Part)
1824
        swait(1.5)
1825
        Part.Anchored = false
1826
      end), hit.Parent.Torso)
1827
      game:GetService("Debris"):AddItem(BodPos, 3)
1828
      game:GetService("Debris"):AddItem(BodGy, 3)
1829
    end
1830
    local debounce = Create("BoolValue")({
1831
      Name = "DebounceHit",
1832
      Parent = hit.Parent,
1833
      Value = true
1834
    })
1835
    game:GetService("Debris"):AddItem(debounce, Delay)
1836
    c = Instance.new("ObjectValue")
1837
    c.Name = "creator"
1838
    c.Value = Player
1839
    c.Parent = h
1840
    game:GetService("Debris"):AddItem(c, 0.5)
1841
  end
1842
end
1843
function ShowDamage(Pos, Text, Time, Color)
1844
  local Rate = 0.03333333333333333
1845
  local Pos = Pos or Vector3.new(0, 0, 0)
1846
  local Text = Text or ""
1847
  local Time = Time or 2
1848
  local Color = Color or Color3.new(1, 0, 1)
1849
  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1850
  EffectPart.Anchored = true
1851
  local BillboardGui = Create("BillboardGui")({
1852
    Size = UDim2.new(3, 0, 3, 0),
1853
    Adornee = EffectPart,
1854
    Parent = EffectPart
1855
  })
1856
  local TextLabel = Create("TextLabel")({
1857
    BackgroundTransparency = 1,
1858
    Size = UDim2.new(1, 0, 1, 0),
1859
    Text = Text,
1860
    TextColor3 = Color,
1861
    TextScaled = true,
1862
    Font = Enum.Font.ArialBold,
1863
    Parent = BillboardGui
1864
  })
1865
  game.Debris:AddItem(EffectPart, Time + 0.1)
1866
  EffectPart.Parent = game:GetService("Workspace")
1867
  delay(0, function()
1868
    local Frames = Time / Rate
1869
    for Frame = 1, Frames do
1870
      wait(Rate)
1871
      local Percent = Frame / Frames
1872
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1873
      TextLabel.TextTransparency = Percent
1874
    end
1875
    if EffectPart and EffectPart.Parent then
1876
      EffectPart:Destroy()
1877
    end
1878
  end)
1879
end
1880
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
1881
  for _, c in pairs(workspace:children()) do
1882
    local hum = c:findFirstChildOfClass("Humanoid")
1883
    if hum ~= nil then
1884
      local head = c:findFirstChild("Head")
1885
      if head ~= nil then
1886
        local targ = head.Position - Part.Position
1887
        local mag = targ.magnitude
1888
        if magni >= mag and c.Name ~= Player.Name then
1889
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1890
        end
1891
      end
1892
    end
1893
  end
1894
end
1895
1896
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
1897
  for _, c in pairs(workspace:children()) do
1898
    local hum = c:findFirstChild("Humanoid")
1899
    if hum ~= nil then
1900
      local head = c:findFirstChild("Torso")
1901
      if head ~= nil then
1902
        local targ = head.Position - Part.Position
1903
        local mag = targ.magnitude
1904
        if magni >= mag and c.Name ~= Player.Name then
1905
	MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
1906
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1907
        end
1908
      end
1909
    end
1910
  end
1911
end
1912
1913
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1914
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1915
end 
1916
1917
local origcolor = BrickColor.new("Pastel light blue")
1918
---- This section of explosions.
1919
1920
----
1921
1922
1923
function ring(type,pos,scale,value)
1924
local type = type
1925
local rng = Instance.new("Part", char)
1926
        rng.Anchored = true
1927
        rng.BrickColor = origcolor
1928
        rng.CanCollide = false
1929
        rng.FormFactor = 3
1930
        rng.Name = "Ring"
1931
        rng.Size = Vector3.new(1, 1, 1)
1932
        rng.Transparency = 0
1933
        rng.TopSurface = 0
1934
        rng.BottomSurface = 0
1935
        rng.CFrame = pos
1936
        local rngm = Instance.new("SpecialMesh", rng)
1937
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
1938
rngm.Scale = scale
1939
local scaler2 = 1
1940
if type == "Add" then
1941
scaler2 = 1*value
1942
elseif type == "Divide" then
1943
scaler2 = 1/value
1944
end
1945
coroutine.resume(coroutine.create(function()
1946
for i = 0,10,0.1 do
1947
swait()
1948
if type == "Add" then
1949
scaler2 = scaler2 - 0.01*value
1950
elseif type == "Divide" then
1951
scaler2 = scaler2 - 0.01/value
1952
end
1953
rng.Transparency = rng.Transparency + 0.01
1954
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
1955
end
1956
rng:Destroy()
1957
end))
1958
end
1959
1960
1961
function wave(type,pos,scale,value)
1962
local type = type
1963
local rng = Instance.new("Part", char)
1964
        rng.Anchored = true
1965
        rng.BrickColor = origcolor
1966
        rng.CanCollide = false
1967
        rng.FormFactor = 3
1968
        rng.Name = "Ring"
1969
        rng.Size = Vector3.new(1, 1, 1)
1970
        rng.Transparency = 0
1971
        rng.TopSurface = 0
1972
        rng.BottomSurface = 0
1973
        rng.CFrame = pos
1974
        local rngm = Instance.new("SpecialMesh", rng)
1975
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
1976
rngm.Scale = scale
1977
local scaler2 = 1
1978
if type == "Add" then
1979
scaler2 = 1*value
1980
elseif type == "Divide" then
1981
scaler2 = 1/value
1982
end
1983
coroutine.resume(coroutine.create(function()
1984
for i = 0,10,0.1 do
1985
swait()
1986
if type == "Add" then
1987
scaler2 = scaler2 - 0.01*value
1988
elseif type == "Divide" then
1989
scaler2 = scaler2 - 0.01/value
1990
end
1991
rng.Transparency = rng.Transparency + 0.01
1992
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
1993
end
1994
rng:Destroy()
1995
end))
1996
end
1997
1998
function sphere(bonuspeed,type,pos,scale,value,color)
1999
local type = type
2000
local rng = Instance.new("Part", char)
2001
        rng.Anchored = true
2002
if ModeOfGlitch ~= 9 then
2003
        rng.BrickColor = color
2004
elseif ModeOfGlitch == 9 then
2005
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2006
end
2007
        rng.CanCollide = false
2008
        rng.FormFactor = 3
2009
        rng.Name = "Ring"
2010
        rng.Material = "Neon"
2011
        rng.Size = Vector3.new(1, 1, 1)
2012
        rng.Transparency = 0
2013
        rng.TopSurface = 0
2014
        rng.BottomSurface = 0
2015
        rng.CFrame = pos
2016
        local rngm = Instance.new("SpecialMesh", rng)
2017
        rngm.MeshType = "Sphere"
2018
rngm.Scale = scale
2019
if rainbowmode == true then
2020
rng.Color = Color3.new(r/255,g/255,b/255)
2021
end
2022
if ModeOfGlitch == 9 then
2023
coroutine.resume(coroutine.create(function()
2024
while true do
2025
swait()
2026
if rng.Parent ~= nil then
2027
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2028
else
2029
break
2030
end
2031
end
2032
end))
2033
end
2034
local scaler2 = 1
2035
if type == "Add" then
2036
scaler2 = 1*value
2037
elseif type == "Divide" then
2038
scaler2 = 1/value
2039
end
2040
coroutine.resume(coroutine.create(function()
2041
for i = 0,10/bonuspeed,0.1 do
2042
swait()
2043
if rainbowmode == true then
2044
rng.Color = Color3.new(r/255,g/255,b/255)
2045
end
2046
if type == "Add" then
2047
scaler2 = scaler2 - 0.01*value/bonuspeed
2048
elseif type == "Divide" then
2049
scaler2 = scaler2 - 0.01/value*bonuspeed
2050
end
2051
if chaosmode == true then
2052
rng.BrickColor = BrickColor.random()
2053
end
2054
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2055
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2056
end
2057
rng:Destroy()
2058
end))
2059
end
2060
2061
function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
2062
local type = type
2063
local rng = Instance.new("Part", char)
2064
        rng.Anchored = true
2065
if ModeOfGlitch ~= 9 then
2066
        rng.BrickColor = color
2067
elseif ModeOfGlitch == 9 then
2068
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2069
end
2070
        rng.CanCollide = false
2071
        rng.FormFactor = 3
2072
        rng.Name = "Ring"
2073
        rng.Material = "Neon"
2074
        rng.Size = Vector3.new(1, 1, 1)
2075
        rng.Transparency = 0
2076
        rng.TopSurface = 0
2077
        rng.BottomSurface = 0
2078
        rng.CFrame = pos
2079
        local rngm = Instance.new("SpecialMesh", rng)
2080
        rngm.MeshType = "Sphere"
2081
rngm.Scale = scale
2082
local scaler2 = 1
2083
local scaler2b = 1
2084
local scaler2c = 1
2085
if type == "Add" then
2086
scaler2 = 1*value
2087
scaler2b = 1*value2
2088
scaler2c = 1*value3
2089
elseif type == "Divide" then
2090
scaler2 = 1/value
2091
scaler2b = 1/value2
2092
scaler2c = 1/value3
2093
end
2094
if ModeOfGlitch == 9 then
2095
coroutine.resume(coroutine.create(function()
2096
while true do
2097
swait()
2098
if rng.Parent ~= nil then
2099
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2100
else
2101
break
2102
end
2103
end
2104
end))
2105
end
2106
coroutine.resume(coroutine.create(function()
2107
for i = 0,10/bonuspeed,0.1 do
2108
swait()
2109
if type == "Add" then
2110
scaler2 = scaler2 - 0.01*value/bonuspeed
2111
scaler2b = scaler2b - 0.01*value/bonuspeed
2112
scaler2c = scaler2c - 0.01*value/bonuspeed
2113
elseif type == "Divide" then
2114
scaler2 = scaler2 - 0.01/value*bonuspeed
2115
scaler2b = scaler2b - 0.01/value*bonuspeed
2116
scaler2c = scaler2c - 0.01/value*bonuspeed
2117
end
2118
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2119
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
2120
end
2121
rng:Destroy()
2122
end))
2123
end
2124
2125
function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2126
local type = type
2127
local rng = Instance.new("Part", char)
2128
        rng.Anchored = true
2129
        rng.BrickColor = color
2130
        rng.CanCollide = false
2131
        rng.FormFactor = 3
2132
        rng.Name = "Ring"
2133
        rng.Material = "Neon"
2134
        rng.Size = Vector3.new(1, 1, 1)
2135
        rng.Transparency = 0
2136
        rng.TopSurface = 0
2137
        rng.BottomSurface = 0
2138
        rng.CFrame = pos
2139
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2140
        local rngm = Instance.new("SpecialMesh", rng)
2141
        rngm.MeshType = "Brick"
2142
rngm.Scale = vt(x1,y1,z1)
2143
if rainbowmode == true then
2144
rng.Color = Color3.new(r/255,g/255,b/255)
2145
end
2146
local scaler2 = 1
2147
local speeder = FastSpeed/10
2148
if type == "Add" then
2149
scaler2 = 1*value
2150
elseif type == "Divide" then
2151
scaler2 = 1/value
2152
end
2153
coroutine.resume(coroutine.create(function()
2154
for i = 0,10/bonuspeed,0.1 do
2155
swait()
2156
if rainbowmode == true then
2157
rng.Color = Color3.new(r/255,g/255,b/255)
2158
end
2159
if type == "Add" then
2160
scaler2 = scaler2 - 0.01*value/bonuspeed
2161
elseif type == "Divide" then
2162
scaler2 = scaler2 - 0.01/value*bonuspeed
2163
end
2164
if chaosmode == true then
2165
rng.BrickColor = BrickColor.random()
2166
end
2167
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
2168
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2169
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
2170
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2171
end
2172
rng:Destroy()
2173
end))
2174
end
2175
2176
function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2177
local type = type
2178
local rng = Instance.new("Part", char)
2179
        rng.Anchored = true
2180
        rng.BrickColor = color
2181
        rng.CanCollide = false
2182
        rng.FormFactor = 3
2183
        rng.Name = "Ring"
2184
        rng.Material = "Neon"
2185
        rng.Size = Vector3.new(1, 1, 1)
2186
        rng.Transparency = 0
2187
        rng.TopSurface = 0
2188
        rng.BottomSurface = 0
2189
        rng.CFrame = pos
2190
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2191
        local rngm = Instance.new("SpecialMesh", rng)
2192
        rngm.MeshType = "Brick"
2193
rngm.Scale = vt(x1,y1,z1)
2194
if rainbowmode == true then
2195
rng.Color = Color3.new(r/255,g/255,b/255)
2196
end
2197
local scaler2 = 1
2198
local speeder = FastSpeed/10
2199
if type == "Add" then
2200
scaler2 = 1*value
2201
elseif type == "Divide" then
2202
scaler2 = 1/value
2203
end
2204
coroutine.resume(coroutine.create(function()
2205
for i = 0,10/bonuspeed,0.1 do
2206
swait()
2207
if rainbowmode == true then
2208
rng.Color = Color3.new(r/255,g/255,b/255)
2209
end
2210
if type == "Add" then
2211
scaler2 = scaler2 - 0.01*value/bonuspeed
2212
elseif type == "Divide" then
2213
scaler2 = scaler2 - 0.01/value*bonuspeed
2214
end
2215
if chaosmode == true then
2216
rng.BrickColor = BrickColor.random()
2217
end
2218
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
2219
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2220
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2221
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2222
end
2223
rng:Destroy()
2224
end))
2225
end
2226
2227
function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2228
local type = type
2229
local rng = Instance.new("Part", char)
2230
        rng.Anchored = true
2231
        rng.BrickColor = color
2232
        rng.CanCollide = false
2233
        rng.FormFactor = 3
2234
        rng.Name = "Ring"
2235
        rng.Material = "Neon"
2236
        rng.Size = Vector3.new(1, 1, 1)
2237
        rng.Transparency = 0
2238
        rng.TopSurface = 0
2239
        rng.BottomSurface = 0
2240
        rng.CFrame = pos
2241
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2242
        local rngm = Instance.new("SpecialMesh", rng)
2243
        rngm.MeshType = "Brick"
2244
rngm.Scale = vt(x1,y1,z1)
2245
if rainbowmode == true then
2246
rng.Color = Color3.new(r/255,g/255,b/255)
2247
end
2248
local scaler2 = 0
2249
local speeder = FastSpeed/10
2250
if type == "Add" then
2251
scaler2 = 1*value
2252
elseif type == "Divide" then
2253
scaler2 = 1/value
2254
end
2255
coroutine.resume(coroutine.create(function()
2256
for i = 0,10/bonuspeed,0.1 do
2257
swait()
2258
if rainbowmode == true then
2259
rng.Color = Color3.new(r/255,g/255,b/255)
2260
end
2261
if type == "Add" then
2262
scaler2 = scaler2 - 0.01*value/bonuspeed
2263
elseif type == "Divide" then
2264
scaler2 = scaler2 - 0.01/value*bonuspeed
2265
end
2266
if chaosmode == true then
2267
rng.BrickColor = BrickColor.random()
2268
end
2269
speeder = speeder + 0.01*FastSpeed*bonuspeed/10
2270
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2271
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
2272
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2273
end
2274
rng:Destroy()
2275
end))
2276
end
2277
2278
function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2279
local type = type
2280
local rng = Instance.new("Part", char)
2281
        rng.Anchored = true
2282
if ModeOfGlitch ~= 9 then
2283
        rng.BrickColor = color
2284
elseif ModeOfGlitch == 9 then
2285
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2286
end
2287
        rng.CanCollide = false
2288
        rng.FormFactor = 3
2289
        rng.Name = "Ring"
2290
        rng.Material = "Neon"
2291
        rng.Size = Vector3.new(1, 1, 1)
2292
        rng.Transparency = 0
2293
        rng.TopSurface = 0
2294
        rng.BottomSurface = 0
2295
        rng.CFrame = pos
2296
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2297
        local rngm = Instance.new("SpecialMesh", rng)
2298
        rngm.MeshType = "Sphere"
2299
rngm.Scale = vt(x1,y1,z1)
2300
if rainbowmode == true then
2301
rng.Color = Color3.new(r/255,g/255,b/255)
2302
end
2303
if ModeOfGlitch == 9 then
2304
coroutine.resume(coroutine.create(function()
2305
while true do
2306
swait()
2307
if rng.Parent ~= nil then
2308
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2309
else
2310
break
2311
end
2312
end
2313
end))
2314
end
2315
local scaler2 = 1
2316
local speeder = FastSpeed
2317
if type == "Add" then
2318
scaler2 = 1*value
2319
elseif type == "Divide" then
2320
scaler2 = 1/value
2321
end
2322
coroutine.resume(coroutine.create(function()
2323
for i = 0,10/bonuspeed,0.1 do
2324
swait()
2325
if rainbowmode == true then
2326
rng.Color = Color3.new(r/255,g/255,b/255)
2327
end
2328
if type == "Add" then
2329
scaler2 = scaler2 - 0.01*value/bonuspeed
2330
elseif type == "Divide" then
2331
scaler2 = scaler2 - 0.01/value*bonuspeed
2332
end
2333
if chaosmode == true then
2334
rng.BrickColor = BrickColor.random()
2335
end
2336
speeder = speeder - 0.01*FastSpeed*bonuspeed
2337
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2338
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2339
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
2340
end
2341
rng:Destroy()
2342
end))
2343
end
2344
2345
2346
function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2347
local type = type
2348
local rng = Instance.new("Part", char)
2349
        rng.Anchored = true
2350
if ModeOfGlitch ~= 9 then
2351
        rng.BrickColor = color
2352
elseif ModeOfGlitch == 9 then
2353
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2354
end
2355
        rng.CanCollide = false
2356
        rng.FormFactor = 3
2357
        rng.Name = "Ring"
2358
        rng.Material = "Neon"
2359
        rng.Size = Vector3.new(1, 1, 1)
2360
        rng.Transparency = 1
2361
        rng.TopSurface = 0
2362
        rng.BottomSurface = 0
2363
        rng.CFrame = pos
2364
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2365
        local rngm = Instance.new("SpecialMesh", rng)
2366
        rngm.MeshType = "Sphere"
2367
rngm.Scale = vt(x1,y1,z1)
2368
if rainbowmode == true then
2369
rng.Color = Color3.new(r/255,g/255,b/255)
2370
end
2371
if ModeOfGlitch == 9 then
2372
coroutine.resume(coroutine.create(function()
2373
while true do
2374
swait()
2375
if rng.Parent ~= nil then
2376
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2377
else
2378
break
2379
end
2380
end
2381
end))
2382
end
2383
local scaler2 = 1
2384
local speeder = FastSpeed
2385
if type == "Add" then
2386
scaler2 = 1*value
2387
elseif type == "Divide" then
2388
scaler2 = 1/value
2389
end
2390
coroutine.resume(coroutine.create(function()
2391
for i = 0,10/bonuspeed,0.1 do
2392
swait()
2393
if rainbowmode == true then
2394
rng.Color = Color3.new(r/255,g/255,b/255)
2395
end
2396
if type == "Add" then
2397
scaler2 = scaler2 - 0.01*value/bonuspeed
2398
elseif type == "Divide" then
2399
scaler2 = scaler2 - 0.01/value*bonuspeed
2400
end
2401
if chaosmode == true then
2402
rng.BrickColor = BrickColor.random()
2403
end
2404
speeder = speeder - 0.01*FastSpeed*bonuspeed
2405
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2406
rng.Transparency = rng.Transparency - 0.01*bonuspeed
2407
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
2408
end
2409
rng:Destroy()
2410
end))
2411
end
2412
2413
function dmg(dude)
2414
if dude.Name ~= Character then
2415
local bgf = Instance.new("BodyGyro",dude.Head)
2416
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
2417
local val = Instance.new("BoolValue",dude)
2418
val.Name = "IsHit"
2419
local ds = coroutine.wrap(function()
2420
local torso = dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso'
2421
for i = 1, 10 do
2422
	sphereMK(1.5,2,"Add",torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,25,-.01,BrickColor.new("White"),0,true)
2423
end
2424
dude:WaitForChild("Head"):BreakJoints()
2425
wait(0.5)
2426
targetted = nil
2427
CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
2428
2429
coroutine.resume(coroutine.create(function()
2430
for i, v in pairs(dude:GetChildren()) do
2431
if v:IsA("Accessory") then
2432
v:Destroy()
2433
end
2434
if v:IsA("Humanoid") then
2435
v:Destroy()
2436
end
2437
if v:IsA("CharacterMesh") then
2438
v:Destroy()
2439
end
2440
if v:IsA("Model") then
2441
v:Destroy()
2442
end
2443
if v:IsA("Part") or v:IsA("MeshPart") then
2444
for x, o in pairs(v:GetChildren()) do
2445
if o:IsA("Decal") then
2446
o:Destroy()
2447
end
2448
end
2449
coroutine.resume(coroutine.create(function()
2450
v.Material = "Neon"
2451
v.CanCollide = false
2452
local bld = Instance.new("ParticleEmitter",v)
2453
bld.LightEmission = 1
2454
bld.Texture = "rbxassetid://284205403"
2455
bld.Color = ColorSequence.new(Color3.new(1,1,1))
2456
bld.Rate = 50
2457
bld.Lifetime = NumberRange.new(1)
2458
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
2459
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
2460
bld.Speed = NumberRange.new(0,0)
2461
bld.VelocitySpread = 50000
2462
bld.Rotation = NumberRange.new(-500,500)
2463
bld.RotSpeed = NumberRange.new(-500,500)
2464
        local sbs = Instance.new("BodyPosition", v)
2465
        sbs.P = 3000
2466
        sbs.D = 1000
2467
        sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
2468
        sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
2469
v.Color = Color3.new(1,1,1)
2470
coroutine.resume(coroutine.create(function()
2471
for i = 0, 49 do
2472
swait(1)
2473
v.Transparency = v.Transparency + 0.02
2474
end
2475
CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
2476
bld.Speed = NumberRange.new(1,5)
2477
bld.Acceleration = vt(0,10,0)
2478
wait(0.5)
2479
bld.Enabled = false
2480
wait(3)
2481
v:Destroy()
2482
dude:Destroy()
2483
end))
2484
end))
2485
end
2486
end
2487
end))
2488
end)
2489
ds()
2490
end
2491
end
2492
2493
2494
function FindNearestHead(Position, Distance, SinglePlayer)
2495
	if SinglePlayer then
2496
		return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
2497
	end
2498
	local List = {}
2499
	for i, v in pairs(workspace:GetChildren()) do
2500
		if v:IsA("Model") then
2501
			if v:findFirstChild("Head") then
2502
				if v ~= Character then
2503
					if (v.Head.Position - Position).magnitude <= Distance then
2504
						table.insert(List, v)
2505
					end 
2506
				end 
2507
			end 
2508
		end 
2509
	end
2510
	return List
2511
end
2512
2513
function FaceMouse()
2514
  Cam = workspace.CurrentCamera
2515
  return {
2516
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
2517
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
2518
  }
2519
end
2520
2521
function FaceMouse2()
2522
  Cam = workspace.CurrentCamera
2523
  return {
2524
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
2525
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
2526
  }
2527
end
2528
2529
-- Functions are ready.
2530
local storehumanoidWS = 16
2531
2532
function resetmode()
2533
           ModeOfGlitch = 1
2534
storehumanoidWS = 16
2535
hum.WalkSpeed = 16
2536
rainbowmode = false
2537
chaosmode = false
2538
RecolorTextAndRename("Starry Guest.",Color3.new(0,0.5,1),Color3.new(0,0.3,1),"Arcade")
2539
newTheme("rbxassetid://621367124",0,1.1,1.25)
2540
MAINRUINCOLOR = BrickColor.new("Toothpaste")
2541
for i, v in pairs(mw2:GetChildren()) do
2542
if v:IsA("Part") then
2543
v.BrickColor = MAINRUINCOLOR
2544
v.Material = "Neon"
2545
end
2546
end
2547
refec.Color = ColorSequence.new(MAINRUINCOLOR.Color)
2548
refec2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
2549
refec3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
2550
tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
2551
tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
2552
tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
2553
tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
2554
tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
2555
tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
2556
for i, v in pairs(mw1:GetChildren()) do
2557
if v:IsA("Part") then
2558
v.Transparency = 0
2559
v.BrickColor = MAINRUINCOLOR
2560
v.Material = "Neon"
2561
end
2562
end
2563
for i, v in pairs(m:GetChildren()) do
2564
if v:IsA("Part") then
2565
v.BrickColor = BrickColor.new("Toothpaste")
2566
v.Material = "Ice"
2567
end
2568
end
2569
for i, v in pairs(m2:GetChildren()) do
2570
if v:IsA("Part") then
2571
v.BrickColor = BrickColor.new("Toothpaste")
2572
v.Material = "Ice"
2573
end
2574
end
2575
for i, v in pairs(m3:GetChildren()) do
2576
if v:IsA("Part") then
2577
v.BrickColor = BrickColor.new("Navy blue")
2578
v.Material = "Neon"
2579
end
2580
end
2581
for i, v in pairs(extrawingmod1:GetChildren()) do
2582
if v:IsA("Part") then
2583
v.Transparency = 0.1
2584
v.BrickColor = BrickColor.new("White")
2585
v.Material = "Neon"
2586
end
2587
end
2588
for i, v in pairs(extrawingmod2:GetChildren()) do
2589
if v:IsA("Part") then
2590
v.Transparency = 0.1
2591
v.BrickColor = BrickColor.new("White")
2592
v.Material = "Neon"
2593
end
2594
end
2595
end
2596
2597
function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo)
2598
for i, v in pairs(mw2:GetChildren()) do
2599
if v:IsA("Part") then
2600
v.BrickColor = one
2601
v.Material = "Neon"
2602
end
2603
end
2604
refec.Color = ColorSequence.new(one.Color)
2605
refec2.Color = ColorSequence.new(one.Color)
2606
refec3.Color = ColorSequence.new(one.Color)
2607
tr1.Color = ColorSequence.new(one.Color)
2608
tr2.Color = ColorSequence.new(one.Color)
2609
tr3.Color = ColorSequence.new(one.Color)
2610
for i, v in pairs(mw1:GetChildren()) do
2611
if v:IsA("Part") then
2612
v.Transparency = 0
2613
v.BrickColor = two
2614
v.Material = "Neon"
2615
end
2616
end
2617
tl1.Color = ColorSequence.new(two.Color)
2618
tl2.Color = ColorSequence.new(two.Color)
2619
tl3.Color = ColorSequence.new(two.Color)
2620
for i, v in pairs(m:GetChildren()) do
2621
if v:IsA("Part") then
2622
v.BrickColor = three
2623
v.Material = "Ice"
2624
end
2625
end
2626
for i, v in pairs(m2:GetChildren()) do
2627
if v:IsA("Part") then
2628
v.BrickColor = four
2629
v.Material = "Ice"
2630
end
2631
end
2632
for i, v in pairs(m3:GetChildren()) do
2633
if v:IsA("Part") then
2634
v.BrickColor = five
2635
v.Material = "Neon"
2636
end
2637
end
2638
for i, v in pairs(extrawingmod1:GetChildren()) do
2639
if v:IsA("Part") then
2640
v.Transparency = exonetran
2641
v.BrickColor = exone
2642
v.Material = "Neon"
2643
end
2644
end
2645
for i, v in pairs(extrawingmod2:GetChildren()) do
2646
if v:IsA("Part") then
2647
v.Transparency = extwotran
2648
v.BrickColor = extwo
2649
v.Material = "Neon"
2650
end
2651
end
2652
end
2653
2654
function attackone()
2655
	attack = true
2656
local keptcolor = MAINRUINCOLOR
2657
	for i = 0,1,0.1 do
2658
		swait()
2659
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
2660
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
2661
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
2662
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
2663
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
2664
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
2665
	end
2666
local distlook = 5
2667
coroutine.resume(coroutine.create(function()
2668
for i = 0, 4 do
2669
swait(2)
2670
CameraEnshaking(2,3)
2671
local hite = Instance.new("Part", char)
2672
        hite.Anchored = true
2673
        hite.CanCollide = false
2674
        hite.FormFactor = 3
2675
        hite.Name = "Ring"
2676
        hite.Material = "Neon"
2677
        hite.Size = Vector3.new(1, 1, 1)
2678
        hite.Transparency = 1
2679
        hite.TopSurface = 0
2680
        hite.BottomSurface = 0
2681
hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
2682
sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
2683
sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
2684
sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
2685
sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
2686
MagniDamage(hite, 9, 10,25, 0, "Normal")
2687
for i = 0, 14 do
2688
local rsiz = math.random(5,20)
2689
sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
2690
end
2691
CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
2692
CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
2693
game:GetService("Debris"):AddItem(hite, 5)
2694
distlook = distlook + 10
2695
end
2696
end))
2697
	for i = 0,1,0.1 do
2698
		swait()
2699
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
2700
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
2701
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
2702
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
2703
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5)
2704
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.5)
2705
	end
2706
	attack = false
2707
end
2708
2709
function attacktwo()
2710
	attack = true
2711
	for i = 0,1,0.1 do
2712
		swait()
2713
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
2714
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
2715
RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
2716
LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
2717
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.3)
2718
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.3)
2719
	end
2720
CameraEnshaking(3,4)
2721
MagniDamage(root, 12, 15,30, 0, "Normal")
2722
sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
2723
sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
2724
sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
2725
coroutine.resume(coroutine.create(function()
2726
local eff = Instance.new("ParticleEmitter",root)
2727
eff.Texture = "rbxassetid://363275192"
2728
eff.LightEmission = 0.95
2729
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
2730
eff.Rate = 10000
2731
eff.Lifetime = NumberRange.new(1)
2732
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
2733
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
2734
eff.Speed = NumberRange.new(10,125)
2735
eff.Drag = 5
2736
eff.Rotation = NumberRange.new(-500,500)
2737
eff.VelocitySpread = 9000
2738
eff.RotSpeed = NumberRange.new(-50,50)
2739
local eff2 = eff:Clone()
2740
eff2.Parent = root
2741
eff2.Texture = "rbxassetid://284205403"
2742
eff2.Rate = 10000
2743
eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
2744
eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
2745
eff2.Drag = 5
2746
eff2.Speed = NumberRange.new(10,50)
2747
eff2.Rotation = NumberRange.new(-500,500)
2748
eff2.VelocitySpread = 9000
2749
wait(0.25)
2750
eff2.Enabled = false
2751
eff.Enabled = false
2752
wait(3)
2753
eff2:Destroy()
2754
eff:Destroy()
2755
end))
2756
for i = 0, 9 do
2757
sphere2(7.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(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR)
2758
end
2759
for i = 0, 24 do
2760
local rsiz = math.random(5,20)
2761
sphereMK(math.random(1,5),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
2762
end
2763
CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
2764
CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
2765
CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
2766
	for i = 0,2,0.1 do
2767
		swait()
2768
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
2769
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
2770
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
2771
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
2772
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.3)
2773
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.3)
2774
	end
2775
attack = false
2776
end
2777
2778
function attackthree()
2779
attack = true
2780
local keptcolor = MAINRUINCOLOR
2781
CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75)
2782
	for i = 0,1,0.1 do
2783
		swait()
2784
sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR)
2785
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
2786
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5)
2787
RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5)
2788
LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5)
2789
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5)
2790
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5)
2791
	end
2792
CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9)
2793
CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9)
2794
local angle = -25
2795
coroutine.resume(coroutine.create(function()
2796
for i = 0, 2 do
2797
local orb = Instance.new("Part", char)
2798
        orb.BrickColor = MAINRUINCOLOR
2799
        orb.CanCollide = false
2800
        orb.FormFactor = 3
2801
        orb.Name = "Ring"
2802
        orb.Material = "Neon"
2803
        orb.Size = Vector3.new(1, 1, 1)
2804
        orb.Transparency = 0.5
2805
        orb.TopSurface = 0
2806
        orb.BottomSurface = 0
2807
        local orbm = Instance.new("SpecialMesh", orb)
2808
        orbm.MeshType = "Sphere"
2809
orbm.Name = "SizeMesh"
2810
orbm.Scale = vt(3,3,3)
2811
orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5
2812
local bv = Instance.new("BodyVelocity")
2813
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2814
bv.velocity = orb.CFrame.lookVector*100
2815
bv.Parent = orb
2816
game:GetService("Debris"):AddItem(orb, 10)
2817
sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
2818
sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
2819
coroutine.resume(coroutine.create(function()
2820
MagniDamage(orb, 6, 8,15, 0, "Normal")
2821
for i = 0, 7 do
2822
swait(2.5)
2823
CameraEnshaking(1,2)
2824
MagniDamage(orb, 6, 8,15, 0, "Normal")
2825
CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5)
2826
for i = 0, 4 do
2827
local rsiz = math.random(5,10)
2828
sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor)
2829
sphereMK(math.random(2,6),0.15,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
2830
end
2831
sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
2832
sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
2833
end
2834
orb.Transparency = 1
2835
orb.Anchored = false
2836
wait(10)
2837
orb:Destroy()
2838
end))
2839
angle = angle + 25
2840
end
2841
end))
2842
	for i = 0,1,0.1 do
2843
		swait()
2844
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
2845
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
2846
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
2847
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
2848
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.3)
2849
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.3)
2850
	end
2851
attack = false
2852
end
2853
2854
------------------------------------- Abilities ---------------------------------------------------------
2855
function Fireball()
2856
attack = true
2857
hum.WalkSpeed = 0 
2858
local keptcolor = MAINRUINCOLOR
2859
	for i = 0,2,0.1 do
2860
		swait()
2861
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
2862
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-40)),.3)
2863
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.3)
2864
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(40), math.rad(-40)), 0.3)
2865
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.3)
2866
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(-1),math.rad(0),math.rad(0)),.3)
2867
	end
2868
local orb = Instance.new("Part", char)
2869
        orb.BrickColor = keptcolor
2870
        orb.CanCollide = false
2871
        orb.FormFactor = 3
2872
        orb.Name = "Ring"
2873
        orb.Material = "Neon"
2874
        orb.Size = Vector3.new(1, 1, 1)
2875
        orb.Transparency = 0
2876
        orb.TopSurface = 0
2877
        orb.BottomSurface = 0
2878
        local orbm = Instance.new("SpecialMesh", orb)
2879
        orbm.MeshType = "Sphere"
2880
orbm.Name = "SizeMesh"
2881
orbm.Scale = vt(4,4,4)
2882
orb.CFrame = root.CFrame + root.CFrame.lookVector*3
2883
local eff = Instance.new("ParticleEmitter",orb)
2884
eff.Texture = "rbxassetid://296874871"
2885
eff.LightEmission = 0.95
2886
eff.Color = ColorSequence.new(orb.BrickColor.Color)
2887
eff.Rate = 10000
2888
eff.Lifetime = NumberRange.new(1.5)
2889
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,7,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
2890
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
2891
eff.Speed = NumberRange.new(25)
2892
eff.Drag = 5
2893
eff.Rotation = NumberRange.new(-500,500)
2894
eff.VelocitySpread = 9000
2895
eff.RotSpeed = NumberRange.new(-500,500)
2896
	local a = Instance.new("Part",workspace)
2897
	a.Name = "Direction"	
2898
	a.Anchored = true
2899
	a.BrickColor = bc("Bright red")
2900
a.Material = "Neon"
2901
a.Transparency = 1
2902
	a.CanCollide = false
2903
	local ray = Ray.new(
2904
	    orb.CFrame.p,                           -- origin
2905
	    (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
2906
	) 
2907
	local ignore = orb
2908
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2909
	a.BottomSurface = 10
2910
	a.TopSurface = 10
2911
	local distance = (orb.CFrame.p - position).magnitude
2912
	a.Size = Vector3.new(0.1, 0.1, 0.1)
2913
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
2914
orb.CFrame = a.CFrame
2915
a:Destroy()
2916
CFuncs["Sound"].Create("rbxassetid://304448425", orb, 1.5, 0.9)
2917
local bv = Instance.new("BodyVelocity")
2918
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2919
bv.velocity = orb.CFrame.lookVector*75
2920
bv.Parent = orb
2921
game:GetService("Debris"):AddItem(orb, 10)
2922
local hitted = false
2923
coroutine.resume(coroutine.create(function()
2924
while true do
2925
swait()
2926
if orb.Parent ~= nil and hitted == false then
2927
sphere2(4,"Add",orb.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),0) - orb.CFrame.lookVector*1.5,vt(3,3,3),-0.03,-0.03,-0.03,keptcolor)
2928
elseif orb.Parent == nil and hitted == true then
2929
break
2930
end
2931
end
2932
end))
2933
local hit =orb.Touched:connect(function(hit) 
2934
	if hitted == false and hit.Parent ~= char then
2935
	hitted = true
2936
	eff.Enabled = false
2937
CameraEnshaking(4,4)
2938
CFuncs["Sound"].Create("rbxassetid://1226980789", orb, 4.5, 0.7)
2939
CFuncs["Sound"].Create("rbxassetid://178452221", orb, 2.5, 0.4)
2940
	MagniDamage(orb, 25, 20,30, 0, "Normal")
2941
sphere2(4,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
2942
sphere2(3,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
2943
sphere2(2,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
2944
for i = 0, 9 do
2945
sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1,1.5),-0.005,4,-0.005,keptcolor)
2946
end
2947
for i = 0, 49 do
2948
local rsiz = math.random(10,30)
2949
sphereMK(math.random(1,3),1,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
2950
end
2951
local eff = Instance.new("ParticleEmitter",orb)
2952
eff.Texture = "rbxassetid://296874871"
2953
eff.LightEmission = 0.95
2954
eff.Color = ColorSequence.new(orb.BrickColor.Color)
2955
eff.Rate = 10000
2956
eff.Lifetime = NumberRange.new(1.5)
2957
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
2958
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
2959
eff.Speed = NumberRange.new(150)
2960
eff.Drag = 5
2961
eff.Rotation = NumberRange.new(-500,500)
2962
eff.VelocitySpread = 9000
2963
eff.RotSpeed = NumberRange.new(-500,500)
2964
coroutine.resume(coroutine.create(function()
2965
	wait(0.25)
2966
	eff.Enabled = false
2967
end))
2968
local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
2969
orb.Anchored = true
2970
orb.Transparency = 1
2971
coroutine.resume(coroutine.create(function()
2972
if hfr ~= nil then
2973
orb.Size = vt(50,1,50)
2974
orb.Orientation = vt(0,0,0)
2975
orb.CFrame = orb.CFrame*CFrame.new(0,-5,0)
2976
orbm:Destroy()
2977
local firef = eff:Clone()
2978
firef.Parent = orb
2979
firef.VelocitySpread = 50
2980
firef.Rate = 500
2981
firef.Drag = 3
2982
firef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
2983
firef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
2984
firef.Speed = NumberRange.new(10,30)
2985
for i = 0, 24 do
2986
wait(0.25)
2987
MagniDamage(orb, 25, 3,6, 0, "Normal")
2988
end
2989
firef.Enabled = false
2990
end
2991
end))
2992
wait(10)
2993
orb:Destroy()
2994
end
2995
end)
2996
	for i = 0,1,0.1 do
2997
		swait()
2998
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.5)
2999
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
3000
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.5)
3001
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.5)
3002
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(0)),.5)
3003
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(0)),.5)
3004
	end
3005
hum.WalkSpeed = storehumanoidWS
3006
attack = false
3007
end
3008
3009
function BeamOfDeath()
3010
attack = true
3011
hum.WalkSpeed = 0 
3012
local keptcolor = MAINRUINCOLOR
3013
local orb = Instance.new("Part", char)
3014
        orb.BrickColor = keptcolor
3015
        orb.CanCollide = false
3016
        orb.FormFactor = 3
3017
        orb.Name = "Ring"
3018
        orb.Material = "Neon"
3019
        orb.Size = Vector3.new(1, 1, 1)
3020
        orb.Transparency = 1
3021
        orb.TopSurface = 0
3022
        orb.BottomSurface = 0
3023
        local orbm = Instance.new("SpecialMesh", orb)
3024
        orbm.MeshType = "Sphere"
3025
orbm.Name = "SizeMesh"
3026
orbm.Scale = vt(22.5,10000,22.5)
3027
orb.CFrame = mouse.Hit
3028
orb.Anchored = true
3029
orb.Orientation = vt(0,0,0)
3030
orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
3031
CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
3032
coroutine.resume(coroutine.create(function()
3033
coroutine.resume(coroutine.create(function()
3034
for i = 0, 399 do
3035
swait()
3036
orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
3037
orb.Transparency = orb.Transparency - 0.0025
3038
end
3039
end))
3040
wait(9)
3041
coroutine.resume(coroutine.create(function()
3042
local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
3043
if hfr ~= nil then
3044
	for i = 0, 49 do
3045
local deb = Instance.new("Part", char)
3046
deb.Anchored = true
3047
deb.CanCollide = false
3048
deb.FormFactor = 3
3049
deb.Name = "Ring"
3050
deb.Material = hitfloor.Material
3051
deb.Color = hitfloor.Color
3052
deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
3053
deb.Transparency = 0
3054
deb.TopSurface = 0
3055
deb.BottomSurface = 0
3056
deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
3057
local deb2 = Instance.new("Part", char)
3058
deb2.CanCollide = false
3059
deb2.FormFactor = 3
3060
deb2.Name = "Ring"
3061
deb2.Material = hitfloor.Material
3062
deb2.Color = hitfloor.Color
3063
deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
3064
deb2.Transparency = 0
3065
deb2.TopSurface = 0
3066
deb2.BottomSurface = 0
3067
deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
3068
deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
3069
local eff = Instance.new("ParticleEmitter",deb)
3070
eff.Texture = "rbxassetid://363275192"
3071
eff.LightEmission = 0.95
3072
eff.Color = ColorSequence.new(keptcolor.Color)
3073
eff.Rate = 100
3074
eff.Lifetime = NumberRange.new(1)
3075
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
3076
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3077
eff.Speed = NumberRange.new(0,5)
3078
eff.Rotation = NumberRange.new(-500,500)
3079
eff.VelocitySpread = 9000
3080
eff.RotSpeed = NumberRange.new(-10,10)
3081
local at1 = Instance.new('Attachment',deb2)
3082
at1.Position = vt(0,15,0)
3083
local at2 = Instance.new('Attachment',deb2)
3084
at2.Position = vt(0,-15,0)
3085
local tl = Instance.new('Trail',deb2)
3086
tl.Attachment0 = at1
3087
tl.Attachment1 = at2
3088
tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
3089
tl.Color = ColorSequence.new(BrickColor.new('White').Color)
3090
tl.Lifetime = 1
3091
game:GetService("Debris"):AddItem(deb,30)
3092
game:GetService("Debris"):AddItem(deb2,30)
3093
coroutine.resume(coroutine.create(function()
3094
	wait(15)
3095
eff.Enabled = false
3096
	for i = 0, 49 do
3097
		swait()
3098
		deb.Transparency = deb.Transparency + 0.02
3099
	end
3100
wait(1)
3101
	deb:Destroy()
3102
end))
3103
end
3104
end
3105
end))
3106
for i = 0, 199 do
3107
swait(1.5)
3108
for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
3109
if v:FindFirstChild('Head') then
3110
dmg(v)
3111
end
3112
end
3113
sphere2(5,"Add",orb.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),5,5,5,keptcolor)
3114
sphere2(5,"Add",orb.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,keptcolor)
3115
sphere2(5,"Add",orb.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,keptcolor)
3116
sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
3117
end
3118
orb:Destroy()
3119
end))
3120
hum.WalkSpeed = storehumanoidWS
3121
attack = false
3122
end
3123
3124
3125
function Beams()
3126
attack = true
3127
hum.WalkSpeed = 0 
3128
local keptcolor = MAINRUINCOLOR
3129
coroutine.resume(coroutine.create(function()
3130
for i = 0, 24 do
3131
swait(5)
3132
local orb = Instance.new("Part", char)
3133
CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
3134
        orb.BrickColor = keptcolor
3135
        orb.CanCollide = false
3136
        orb.FormFactor = 3
3137
        orb.Name = "Ring"
3138
        orb.Material = "Neon"
3139
        orb.Size = Vector3.new(1, 1, 1)
3140
        orb.Transparency = 0
3141
        orb.TopSurface = 0
3142
        orb.BottomSurface = 0
3143
orb.Anchored = true
3144
        local orbm = Instance.new("SpecialMesh", orb)
3145
        orbm.MeshType = "Sphere"
3146
orbm.Name = "SizeMesh"
3147
orbm.Scale = vt(1.25,1.25,1.25)
3148
orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
3149
sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
3150
coroutine.resume(coroutine.create(function()
3151
wait(0.5)
3152
CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
3153
sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
3154
sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
3155
orb.Transparency = 1
3156
	local a = Instance.new("Part",char)
3157
	a.Name = "Direction"	
3158
	a.Anchored = true
3159
	a.BrickColor = keptcolor
3160
a.Material = "Neon"
3161
a.Transparency = 0.25
3162
a.Shape = "Cylinder"
3163
	local ht = Instance.new("Part",char)
3164
	ht.Name = "DirectionHit"	
3165
	ht.Anchored = true
3166
	ht.BrickColor = keptcolor
3167
ht.CanCollide = false
3168
ht.Transparency = 1
3169
ht.Size = vt(0.1,0.1,0.1)
3170
CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.2)
3171
	a.CanCollide = false
3172
	local ray = Ray.new(
3173
	    orb.CFrame.p,                           -- origin
3174
	    (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
3175
	) 
3176
	local ignore = char
3177
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3178
	a.BottomSurface = 10
3179
	a.TopSurface = 10
3180
	local distance = (orb.CFrame.p - position).magnitude
3181
	a.Size = Vector3.new(distance,1,1)
3182
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3183
	ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3184
sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
3185
sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
3186
MagniDamage(ht, 9, 10,15, 0, "Normal")
3187
coroutine.resume(coroutine.create(function()
3188
local eff = Instance.new("ParticleEmitter",ht)
3189
eff.Texture = "rbxassetid://284205403"
3190
eff.LightEmission = 0.95
3191
eff.Color = ColorSequence.new(keptcolor.Color)
3192
eff.Rate = 500
3193
eff.Lifetime = NumberRange.new(0.5)
3194
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
3195
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3196
eff.Speed = NumberRange.new(10,50)
3197
eff.Drag = 5
3198
eff.Rotation = NumberRange.new(-500,500)
3199
eff.VelocitySpread = 9000
3200
eff.RotSpeed = NumberRange.new(-500,500)
3201
wait(0.25)
3202
eff.Enabled = false
3203
end))
3204
for i = 0, 4 do
3205
sphere2(8,"Add",orb.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.005,0.125,-0.005,keptcolor)
3206
sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
3207
local rsiz = math.random(10,30)
3208
sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
3209
end
3210
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
3211
local msh = Instance.new("SpecialMesh",a)
3212
msh.MeshType = "Cylinder"
3213
msh.Scale = vt(1,1,1)
3214
for i = 0, 49 do
3215
swait()
3216
msh.Scale = msh.Scale + vt(0,0.01,0.01)
3217
a.Transparency = a.Transparency + 0.02
3218
end
3219
orb:Destroy()
3220
a:Destroy()
3221
ht:Destroy()
3222
end))
3223
game:GetService("Debris"):AddItem(orb, 10)
3224
end
3225
end))
3226
	for i = 0,12,0.1 do
3227
		swait()
3228
sphere2(7,"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.075,-0.01,keptcolor)
3229
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
3230
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
3231
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
3232
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
3233
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(-20),math.rad(0)),.3)
3234
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(0)),.3)
3235
	end
3236
hum.WalkSpeed = storehumanoidWS
3237
attack = false
3238
end
3239
3240
function smiter()
3241
local targetted = nil
3242
if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
3243
targetted = mouse.Target.Parent
3244
end
3245
if targetted ~= nil then
3246
RootPart.CFrame = FaceMouse()[1]
3247
attack = true
3248
hum.WalkSpeed = 0
3249
coroutine.resume(coroutine.create(function()
3250
CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
3251
sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
3252
local vel = Instance.new("BodyPosition", targetted.Head)
3253
vel.P = 12500
3254
vel.D = 1000
3255
vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
3256
vel.position = targetted.Head.CFrame.p
3257
end))
3258
CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
3259
	for i = 0,4,0.1 do
3260
		swait()
3261
sphere2(4,"Add",sorb2.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.125,-0.01,MAINRUINCOLOR)
3262
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
3263
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
3264
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
3265
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
3266
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(0)),.2)
3267
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(20),math.rad(5)),.2)
3268
	end
3269
coroutine.resume(coroutine.create(function()
3270
CameraEnshaking(6,5)
3271
MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
3272
CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
3273
CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
3274
CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
3275
sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
3276
sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
3277
sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
3278
sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
3279
coroutine.resume(coroutine.create(function()
3280
local eff = Instance.new("ParticleEmitter",targetted.Head)
3281
eff.Texture = "rbxassetid://363275192"
3282
eff.LightEmission = 0.95
3283
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3284
eff.Rate = 10000
3285
eff.Lifetime = NumberRange.new(1.5)
3286
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
3287
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3288
eff.Speed = NumberRange.new(25,150)
3289
eff.Drag = 5
3290
eff.Rotation = NumberRange.new(-500,500)
3291
eff.VelocitySpread = 9000
3292
eff.RotSpeed = NumberRange.new(-50,50)
3293
local eff2 = eff:Clone()
3294
eff2.Parent = targetted.Head
3295
eff2.Texture = "rbxassetid://284205403"
3296
eff2.Rate = 10000
3297
eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3298
eff2.Drag = 5
3299
eff2.Rotation = NumberRange.new(-500,500)
3300
eff2.VelocitySpread = 9000
3301
wait(0.5)
3302
eff2.Enabled = false
3303
eff.Enabled = false
3304
end))
3305
for i = 0, 9 do
3306
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(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
3307
end
3308
for i = 0, 49 do
3309
local rsiz = math.random(10,50)
3310
sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
3311
end
3312
game:GetService("Debris"):AddItem(vel,1)
3313
dmg(targetted)
3314
end))
3315
	for i = 0,1,0.1 do
3316
		swait()
3317
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
3318
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
3319
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5)
3320
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-50)), 0.5)
3321
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(0)),.5)
3322
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(20),math.rad(5)),.5)
3323
	end
3324
attack = false
3325
hum.WalkSpeed = storehumanoidWS
3326
end
3327
end
3328
3329
function supsmiter()
3330
local targetted = nil
3331
if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
3332
targetted = mouse.Target.Parent
3333
end
3334
if targetted ~= nil then
3335
RootPart.CFrame = FaceMouse()[1]
3336
attack = true
3337
hum.WalkSpeed = 0
3338
coroutine.resume(coroutine.create(function()
3339
CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
3340
sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
3341
sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.2,0.2,0.2,MAINRUINCOLOR)
3342
local vel = Instance.new("BodyPosition", targetted.Head)
3343
vel.P = 12500
3344
vel.D = 1000
3345
vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
3346
vel.position = targetted.Head.CFrame.p
3347
end))
3348
CFuncs["Sound"].Create("rbxassetid://1042700914", sorb2, 2.5, 0.25)
3349
	for i = 0,14,0.1 do
3350
		swait()
3351
rsiz = math.random(5,15)
3352
sphereMK(math.random(3,9),0.25,"Add",sorb2.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,MAINRUINCOLOR,-15)	
3353
sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1.5,1.5),-0.01,0.15,-0.01,MAINRUINCOLOR)
3354
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
3355
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
3356
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
3357
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
3358
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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
3359
LH.C0=clerp(LH.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(5 + 1 * math.cos(sine / 34))),.2)
3360
	end
3361
coroutine.resume(coroutine.create(function()
3362
CameraEnshaking(6,5)
3363
MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
3364
MagniDamage(targetted.Head, 9, 18000,30000, 0, "Normal")
3365
CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 5.5, 0.8)
3366
CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 5.25, 0.8)
3367
CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 4, 0.8)
3368
sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
3369
sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
3370
sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
3371
sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
3372
coroutine.resume(coroutine.create(function()
3373
local eff = Instance.new("ParticleEmitter",targetted.Head)
3374
eff.Texture = "rbxassetid://363275192"
3375
eff.LightEmission = 0.95
3376
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3377
eff.Rate = 10000
3378
eff.Lifetime = NumberRange.new(1.5)
3379
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
3380
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3381
eff.Speed = NumberRange.new(25,150)
3382
eff.Drag = 5
3383
eff.Rotation = NumberRange.new(-500,500)
3384
eff.VelocitySpread = 9000
3385
eff.RotSpeed = NumberRange.new(-50,50)
3386
local eff2 = eff:Clone()
3387
eff2.Parent = targetted.Head
3388
eff2.Texture = "rbxassetid://284205403"
3389
eff2.Rate = 10000
3390
eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3391
eff2.Drag = 5
3392
eff2.Rotation = NumberRange.new(-500,500)
3393
eff2.VelocitySpread = 9000
3394
wait(0.5)
3395
eff2.Enabled = false
3396
eff.Enabled = false
3397
end))
3398
for i = 0, 9 do
3399
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(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
3400
end
3401
for i = 0, 49 do
3402
local rsiz = math.random(10,50)
3403
sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
3404
end
3405
wait(0.75)
3406
CameraEnshaking(6,6)
3407
MagniDamage(targetted.Head, 20, 25,40, 0, "Normal")
3408
MagniDamage(targetted.Head, 12, 18000,30000, 0, "Normal")
3409
CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.7)
3410
CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.7)
3411
CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.7)
3412
sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR)
3413
sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR)
3414
sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR)
3415
sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR)
3416
coroutine.resume(coroutine.create(function()
3417
local eff = Instance.new("ParticleEmitter",targetted.Head)
3418
eff.Texture = "rbxassetid://363275192"
3419
eff.LightEmission = 0.95
3420
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3421
eff.Rate = 10000
3422
eff.Lifetime = NumberRange.new(1.5)
3423
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,35,0),NumberSequenceKeypoint.new(1,0,0)})
3424
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3425
eff.Speed = NumberRange.new(25,250)
3426
eff.Drag = 5
3427
eff.Rotation = NumberRange.new(-500,500)
3428
eff.VelocitySpread = 9000
3429
eff.RotSpeed = NumberRange.new(-50,50)
3430
local eff2 = eff:Clone()
3431
eff2.Parent = targetted.Head
3432
eff2.Texture = "rbxassetid://284205403"
3433
eff2.Rate = 10000
3434
eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3435
eff2.Drag = 5
3436
eff2.Rotation = NumberRange.new(-500,500)
3437
eff2.VelocitySpread = 9000
3438
wait(0.5)
3439
eff2.Enabled = false
3440
eff.Enabled = false
3441
end))
3442
for i = 0, 9 do
3443
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(2,1,2),-0.02,4.5,-0.02,MAINRUINCOLOR)
3444
end
3445
for i = 0, 49 do
3446
local rsiz = math.random(15,55)
3447
sphereMK(math.random(1,4),1.5,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
3448
end
3449
wait(0.75)
3450
CameraEnshaking(6,7)
3451
MagniDamage(targetted.Head, 23, 40,80, 0, "Normal")
3452
MagniDamage(targetted.Head, 15, 18000,30000, 0, "Normal")
3453
CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 7.5, 0.6)
3454
CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 7.25, 0.6)
3455
CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 6, 0.6)
3456
sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR)
3457
sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR)
3458
sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR)
3459
sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR)
3460
coroutine.resume(coroutine.create(function()
3461
local eff = Instance.new("ParticleEmitter",targetted.Head)
3462
eff.Texture = "rbxassetid://363275192"
3463
eff.LightEmission = 0.95
3464
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3465
eff.Rate = 10000
3466
eff.Lifetime = NumberRange.new(1.5)
3467
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
3468
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3469
eff.Speed = NumberRange.new(50,450)
3470
eff.Drag = 5
3471
eff.Rotation = NumberRange.new(-500,500)
3472
eff.VelocitySpread = 9000
3473
eff.RotSpeed = NumberRange.new(-50,50)
3474
local eff2 = eff:Clone()
3475
eff2.Parent = targetted.Head
3476
eff2.Texture = "rbxassetid://284205403"
3477
eff2.Rate = 10000
3478
eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3479
eff2.Drag = 5
3480
eff2.Rotation = NumberRange.new(-500,500)
3481
eff2.VelocitySpread = 9000
3482
wait(0.5)
3483
eff2.Enabled = false
3484
eff.Enabled = false
3485
end))
3486
for i = 0, 9 do
3487
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(2,1,2),-0.02,6,-0.02,MAINRUINCOLOR)
3488
end
3489
for i = 0, 49 do
3490
local rsiz = math.random(20,60)
3491
sphereMK(math.random(1,4),2,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
3492
end
3493
dmg(targetted)
3494
game:GetService("Debris"):AddItem(vel,1)
3495
end))
3496
	for i = 0,7,0.1 do
3497
		swait()
3498
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
3499
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
3500
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5)
3501
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-60)), 0.5)
3502
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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.5)
3503
LH.C0=clerp(LH.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(5 + 1 * math.cos(sine / 34))),.5)
3504
	end
3505
attack = false
3506
hum.WalkSpeed = storehumanoidWS
3507
end
3508
end
3509
3510
function BinaryBLINK()
3511
for i = 0, 9 do
3512
sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)		sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)	    sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
3513
end
3514
sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
3515
coroutine.resume(coroutine.create(function()
3516
local eff = Instance.new("ParticleEmitter",root)
3517
eff.Texture = "rbxassetid://1175838406"
3518
eff.LightEmission = 0.95
3519
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3520
eff.Rate = 10000
3521
eff.Lifetime = NumberRange.new(1)
3522
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
3523
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3524
eff.Speed = NumberRange.new(30,160)
3525
eff.Drag = 5
3526
eff.Rotation = NumberRange.new(-500,500)
3527
eff.VelocitySpread = 100000
3528
wait(0.25)
3529
eff.Enabled = false
3530
wait(4)
3531
eff:Destroy()
3532
end))
3533
CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
3534
RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
3535
CameraEnshaking(2,10)
3536
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 10)) do
3537
if v:FindFirstChild('Head') then
3538
dmg(v)
3539
end
3540
end
3541
for i = 0, 9 do
3542
sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)		sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)	    sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
3543
end
3544
sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
3545
end
3546
3547
function BinaryE()
3548
local posit = -2
3549
attack = true
3550
hum.WalkSpeed = 5
3551
CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
3552
	for i = 0,2,0.1 do
3553
		swait()
3554
sphere2(7,"Add",sorb2.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.075,-0.01,MAINRUINCOLOR)
3555
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
3556
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
3557
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
3558
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
3559
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(-20),math.rad(0)),.5)
3560
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(0)),.5)
3561
	end
3562
for i = 0, 2 do
3563
CameraEnshaking(1,2)
3564
local hite = Instance.new("Part", char)
3565
        hite.Anchored = true
3566
        hite.CanCollide = false
3567
        hite.FormFactor = 3
3568
        hite.Name = "Ring"
3569
        hite.Material = "Neon"
3570
        hite.Size = Vector3.new(1, 1, 1)
3571
        hite.Transparency = 1
3572
        hite.TopSurface = 0
3573
        hite.BottomSurface = 0
3574
hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
3575
CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
3576
CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
3577
coroutine.resume(coroutine.create(function()
3578
local eff = Instance.new("ParticleEmitter",hite)
3579
eff.Texture = "rbxassetid://1175838406"
3580
eff.LightEmission = 0.95
3581
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3582
eff.Rate = 1000
3583
eff.Lifetime = NumberRange.new(1)
3584
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)})
3585
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3586
eff.Speed = NumberRange.new(10,50)
3587
eff.Drag = 5
3588
eff.Rotation = NumberRange.new(-500,500)
3589
eff.VelocitySpread = 100000
3590
wait(0.25)
3591
eff.Enabled = false
3592
end))
3593
coroutine.resume(coroutine.create(function()
3594
for i = 0, 1 do
3595
	swait()
3596
		sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
3597
		sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
3598
end
3599
end))
3600
sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR)
3601
MagniDamage(hite, 3, 30,40, 0, "Normal")
3602
game:GetService("Debris"):AddItem(hite, 5)
3603
posit = posit + 2
3604
end
3605
	for i = 0,1,0.1 do
3606
		swait()
3607
sphere2(7,"Add",sorb2.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.075,-0.01,MAINRUINCOLOR)
3608
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
3609
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
3610
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
3611
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
3612
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(-20),math.rad(0)),.5)
3613
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(0)),.5)
3614
	end
3615
	for i = 0,1,0.1 do
3616
		swait()
3617
sphere2(7,"Add",sorb2.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.075,-0.01,MAINRUINCOLOR)
3618
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,0)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
3619
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
3620
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
3621
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
3622
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(-20),math.rad(30)),.5)
3623
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(40)),.5)
3624
	end
3625
	posit = -6
3626
	for i = 0, 6 do
3627
CameraEnshaking(1,3)
3628
local hite = Instance.new("Part", char)
3629
        hite.Anchored = true
3630
        hite.CanCollide = false
3631
        hite.FormFactor = 3
3632
        hite.Name = "Ring"
3633
        hite.Material = "Neon"
3634
        hite.Size = Vector3.new(1, 1, 1)
3635
        hite.Transparency = 1
3636
        hite.TopSurface = 0
3637
        hite.BottomSurface = 0
3638
hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
3639
CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
3640
CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
3641
sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR)
3642
coroutine.resume(coroutine.create(function()
3643
local eff = Instance.new("ParticleEmitter",hite)
3644
eff.Texture = "rbxassetid://1175838406"
3645
eff.LightEmission = 0.95
3646
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3647
eff.Rate = 1000
3648
eff.Lifetime = NumberRange.new(1)
3649
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)})
3650
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3651
eff.Speed = NumberRange.new(20,70)
3652
eff.Drag = 5
3653
eff.Rotation = NumberRange.new(-500,500)
3654
eff.VelocitySpread = 100000
3655
wait(0.25)
3656
eff.Enabled = false
3657
end))
3658
coroutine.resume(coroutine.create(function()
3659
for i = 0, 2 do
3660
	swait()
3661
		sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
3662
		sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
3663
	    sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
3664
end
3665
end))
3666
MagniDamage(hite, 5, 40,70, 0, "Normal")
3667
game:GetService("Debris"):AddItem(hite, 5)
3668
posit = posit + 2
3669
	end
3670
	for i = 0,1,0.1 do
3671
		swait()
3672
sphere2(7,"Add",sorb2.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.075,-0.01,MAINRUINCOLOR)
3673
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
3674
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
3675
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
3676
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
3677
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(10),math.rad(-10)),.5)
3678
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(60)),.5)
3679
	end
3680
	hum.WalkSpeed = storehumanoidWS
3681
attack = false
3682
end
3683
3684
function AZUREFINALE()
3685
attack = true
3686
duringend = true
3687
hum.WalkSpeed = 0
3688
CFuncs["Sound"].Create("rbxassetid://1117054464", char, 7.5, 0.75)
3689
CFuncs["LongSound"].Create("rbxassetid://1042700914", char, 3.5, 0.05)
3690
local hite = Instance.new("Part", char)
3691
        hite.Anchored = true
3692
        hite.CanCollide = false
3693
        hite.FormFactor = 3
3694
        hite.Name = "Ring"
3695
        hite.Material = "Neon"
3696
        hite.Size = Vector3.new(1, 1, 1)
3697
        hite.Transparency = 0
3698
        hite.TopSurface = 0
3699
        hite.BottomSurface = 0
3700
        hite.BrickColor = MAINRUINCOLOR
3701
        local orbm = Instance.new("SpecialMesh", hite)
3702
        orbm.MeshType = "Sphere"
3703
orbm.Name = "SizeMesh"
3704
orbm.Scale = vt(0,0,0)
3705
hite.CFrame = root.CFrame*CFrame.new(0,200,0)
3706
	for i = 0,70,0.1 do
3707
		swait()
3708
orbm.Scale = orbm.Scale + vt(0.5,0.5,0.5)
3709
rsiz = math.random(10,45)
3710
kan.Volume = kan.Volume + 0.01
3711
kan.Pitch = kan.Pitch - 0.00070
3712
chatfunc("I'm sorry I have to do this...",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
3713
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
3714
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
3715
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
3716
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
3717
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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
3718
LH.C0=clerp(LH.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(5 + 1 * math.cos(sine / 34))),.2)
3719
	end
3720
	kan.Pitch = 0.6
3721
hite.Transparency = 1
3722
for i = 0,2 do
3723
CFuncs["LongSound"].Create("rbxassetid://324849898", char, 10,0.9)
3724
end
3725
CFuncs["LongSound"].Create("rbxassetid://1117054464", char, 5, 0.75)
3726
coroutine.resume(coroutine.create(function()
3727
local eff = Instance.new("ParticleEmitter",hite)
3728
eff.Texture = "rbxassetid://284205403"
3729
eff.LightEmission = 0.95
3730
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3731
eff.Rate = 10000
3732
eff.Lifetime = NumberRange.new(5)
3733
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
3734
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3735
eff.Speed = NumberRange.new(600,1250)
3736
eff.Drag = 5
3737
eff.Rotation = NumberRange.new(-500,500)
3738
eff.VelocitySpread = 9000
3739
eff.RotSpeed = NumberRange.new(-500,500)
3740
wait(1)
3741
eff.Enabled = false
3742
end))
3743
	for i = 0,5,0.1 do
3744
		swait()
3745
chatfunc("...This will kill me... But I don't care...",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
3746
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
3747
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
3748
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
3749
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
3750
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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
3751
LH.C0=clerp(LH.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(5 + 1 * math.cos(sine / 34))),.2)
3752
	end
3753
local adsc = 0
3754
local radiatezone = 0
3755
	for i = 0,20,0.1 do
3756
		swait()
3757
adsc = adsc + 0.025
3758
radiatezone = radiatezone + 1.25
3759
for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
3760
if v:FindFirstChild('Head') then
3761
dmg(v)
3762
end
3763
end
3764
chatfunc("Goodbye...",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
3765
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
3766
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
3767
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
3768
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
3769
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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
3770
LH.C0=clerp(LH.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(5 + 1 * math.cos(sine / 34))),.2)
3771
	end
3772
for i = 0,2 do
3773
CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.9)
3774
end
3775
	for i = 0,40,0.1 do
3776
		swait()
3777
adsc = adsc + 0.05
3778
radiatezone = radiatezone + 2.5
3779
for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
3780
if v:FindFirstChild('Head') then
3781
dmg(v)
3782
end
3783
end
3784
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
3785
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
3786
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
3787
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
3788
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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
3789
LH.C0=clerp(LH.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(5 + 1 * math.cos(sine / 34))),.2)
3790
	end
3791
for i = 0,4 do
3792
CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.75)
3793
CFuncs["LongSound"].Create("rbxassetid://923073285", char, 1.25,0.75)
3794
end
3795
	for i = 0,80,0.1 do
3796
		swait()
3797
adsc = adsc + 0.075
3798
radiatezone = radiatezone + 3.75
3799
sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
3800
for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
3801
if v:FindFirstChild('Head') then
3802
dmg(v)
3803
end
3804
end
3805
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
3806
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
3807
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
3808
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
3809
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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
3810
LH.C0=clerp(LH.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(5 + 1 * math.cos(sine / 34))),.2)
3811
	end
3812
hite:Destroy()
3813
char:BreakJoints()
3814
duringend = false
3815
hum.WalkSpeed = storehumanoidWS
3816
attack = false
3817
end
3818
3819
function GalacticalBeams()
3820
attack = true
3821
local keptcolor = MAINRUINCOLOR
3822
coroutine.resume(coroutine.create(function()
3823
for i = 0, 0 do
3824
swait(10)
3825
local orb = Instance.new("Part", char)
3826
CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
3827
        orb.BrickColor = keptcolor
3828
        orb.CanCollide = false
3829
        orb.FormFactor = 3
3830
        orb.Name = "Ring"
3831
        orb.Material = "Neon"
3832
        orb.Size = Vector3.new(1, 1, 1)
3833
        orb.Transparency = 1
3834
        orb.TopSurface = 0
3835
        orb.BottomSurface = 0
3836
orb.Anchored = true
3837
        local orbm = Instance.new("SpecialMesh", orb)
3838
        orbm.MeshType = "Sphere"
3839
orbm.Name = "SizeMesh"
3840
orbm.Scale = vt(1.25,1.25,1.25)
3841
orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25))
3842
coroutine.resume(coroutine.create(function()
3843
orb.Transparency = 1
3844
	local a = Instance.new("Part",char)
3845
	a.Name = "Direction"	
3846
	a.Anchored = true
3847
	a.BrickColor = keptcolor
3848
a.Material = "Neon"
3849
a.Transparency = 1
3850
a.Shape = "Cylinder"
3851
	local x = Instance.new("Part",char)
3852
	x.Name = "Direction"	
3853
	x.Anchored = true
3854
	x.BrickColor = keptcolor
3855
x.Material = "Neon"
3856
x.Transparency = 1
3857
x.Shape = "Cylinder"
3858
	local ht = Instance.new("Part",char)
3859
	ht.Name = "DirectionHit"	
3860
	ht.Anchored = true
3861
	ht.BrickColor = keptcolor
3862
ht.CanCollide = false
3863
ht.Transparency = 1
3864
ht.Size = vt(0.1,0.1,0.1)
3865
	a.CanCollide = false
3866
	local ray = Ray.new(
3867
	    orb.CFrame.p,                           -- origin
3868
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
3869
	) 
3870
	local ignore = char
3871
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3872
	a.BottomSurface = 10
3873
	a.TopSurface = 10
3874
	local distance = (orb.CFrame.p - position).magnitude
3875
	a.Size = Vector3.new(distance,1,1)
3876
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3877
	ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3878
	x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
3879
local poste = 0
3880
local rotation = 0
3881
CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1)
3882
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor)
3883
CameraEnshaking(2,2)
3884
for i = 0, 49 do
3885
swait()
3886
rotation = rotation + 5
3887
poste = poste + 1
3888
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3889
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3890
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3891
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3892
end
3893
local A1 = Instance.new("Attachment",x)
3894
local A2 = Instance.new("Attachment",ht)
3895
local Beem = Instance.new("Beam",ht)
3896
Beem.Attachment0 = A1
3897
Beem.Attachment1 = A2
3898
Beem.LightEmission = 1
3899
Beem.FaceCamera = true
3900
Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)})
3901
Beem.Width0 = 125
3902
Beem.Width1 = 125
3903
Beem.Texture = "rbxassetid://1134824633"
3904
Beem.TextureMode = "Wrap"
3905
Beem.TextureLength = 200
3906
Beem.TextureSpeed = 1.5
3907
Beem.Color = ColorSequence.new(keptcolor.Color)
3908
CameraEnshaking(3,6)
3909
CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5)
3910
a.Transparency = 0.25
3911
sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
3912
sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
3913
sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
3914
MagniDamage(ht, 70, 1000,1500, 0, "Normal")
3915
local eff = Instance.new("ParticleEmitter",ht)
3916
eff.Texture = "rbxassetid://284205403"
3917
eff.LightEmission = 0.95
3918
eff.Color = ColorSequence.new(keptcolor.Color)
3919
eff.Rate = 500
3920
eff.Lifetime = NumberRange.new(1)
3921
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)})
3922
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3923
eff.Speed = NumberRange.new(80,500)
3924
eff.Drag = 5
3925
eff.Rotation = NumberRange.new(-500,500)
3926
eff.VelocitySpread = 9000
3927
eff.RotSpeed = NumberRange.new(-500,500)
3928
for i = 0, 24 do
3929
sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
3930
local rsiz = math.random(10,50)
3931
sphereMK(math.random(3,6),1.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
3932
end
3933
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
3934
local msh = Instance.new("SpecialMesh",a)
3935
msh.MeshType = "Cylinder"
3936
msh.Scale = vt(1,15,15)
3937
for i = 0, 49 do
3938
swait()
3939
CameraEnshaking(1,4)
3940
MagniDamage(ht, 70, 1000,1500, 0, "Normal")
3941
rotation = rotation + 5
3942
sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
3943
sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
3944
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor)
3945
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
3946
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
3947
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
3948
for i = 0, 2 do
3949
local rsiz = math.random(50,250)
3950
sphereMK(math.random(3,6),math.random(2,4),"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
3951
end
3952
msh.Scale = msh.Scale + vt(0,0.25,0.25)
3953
end
3954
eff.Enabled = false
3955
local visibility = 0
3956
for i = 0, 49 do
3957
swait()
3958
visibility = visibility + 0.02
3959
Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)})
3960
rotation = rotation + 5
3961
poste = poste - 1
3962
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3963
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3964
sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
3965
msh.Scale = msh.Scale + vt(0,-0.5,-0.5)
3966
a.Transparency = a.Transparency + 0.02
3967
end
3968
wait(1)
3969
orb:Destroy()
3970
a:Destroy()
3971
ht:Destroy()
3972
end))
3973
game:GetService("Debris"):AddItem(orb, 10)
3974
end
3975
end))
3976
hum.WalkSpeed = storehumanoidWS
3977
attack = false
3978
end
3979
3980
3981
function WarpedDash()
3982
attack = true
3983
hum.WalkSpeed = 0
3984
hum.JumpPower = 0
3985
CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
3986
local poste = 3
3987
local rotation = 0
3988
local rate = 0
3989
for i = 0, 124 do
3990
swait()
3991
rotation = rotation + rate
3992
poste = poste + 0.1
3993
rate = rate + 0.1
3994
sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
3995
sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR)
3996
sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
3997
sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
3998
sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
3999
sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
4000
RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
4001
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.5)
4002
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
4003
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
4004
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
4005
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
4006
end
4007
CameraEnshaking(3,7)
4008
local loc = Instance.new("Part", char)
4009
loc.BrickColor = MAINRUINCOLOR
4010
loc.CanCollide = false
4011
loc.FormFactor = 3
4012
loc.Name = "Ring"
4013
loc.Material = "Neon"
4014
loc.Size = Vector3.new(1, 1, 1)
4015
loc.Transparency = 1
4016
loc.TopSurface = 0
4017
loc.BottomSurface = 0
4018
loc.Anchored = true
4019
loc.CFrame = root.CFrame + root.CFrame.lookVector*100
4020
CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
4021
CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
4022
MagniDamage(loc, 95, 500,6000, 0, "Normal")
4023
sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
4024
sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
4025
sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
4026
sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
4027
coroutine.resume(coroutine.create(function()
4028
local eff = Instance.new("ParticleEmitter",loc)
4029
eff.Texture = "rbxassetid://363275192"
4030
eff.LightEmission = 0.95
4031
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
4032
eff.Rate = 10000
4033
eff.Lifetime = NumberRange.new(1)
4034
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
4035
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
4036
eff.Speed = NumberRange.new(100,500)
4037
eff.Drag = 5
4038
eff.Rotation = NumberRange.new(-500,500)
4039
eff.VelocitySpread = 9000
4040
eff.RotSpeed = NumberRange.new(-50,50)
4041
wait(0.5)
4042
eff.Enabled = false
4043
end))
4044
for i = 0, 49 do
4045
sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
4046
end
4047
for i = 0, 9 do
4048
sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
4049
end
4050
game:GetService("Debris"):AddItem(loc, 5)
4051
root.CFrame = root.CFrame + root.CFrame.lookVector*200
4052
hum.WalkSpeed = storehumanoidWS
4053
hum.JumpPower = 50
4054
attack = false
4055
end
4056
4057
------------------------------------
4058
function harmonytaunty()
4059
attack = true
4060
hum.WalkSpeed = 0
4061
CFuncs["Sound"].Create("rbxassetid://430312221", tors, 1.25, 1.15)
4062
for i = 0,7,0.1 do
4063
swait()
4064
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-20 + 6 * math.cos(sine / 34))),.2)
4065
LH.C0=clerp(LH.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(10 - 4 * math.cos(sine / 47))),.2)
4066
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(-2 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-2 + 4 * math.cos(sine / 62))),.2)
4067
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(12 - 3 * math.cos(sine / 28)),math.rad(12 - 3 * math.cos(sine / 79)),math.rad(2 - 4 * math.cos(sine / 62))),.2)
4068
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.01 * math.cos(sine / 28),-0.1)*angles(math.rad(34 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-13 - 3 * math.cos(sine / 28))),.2)
4069
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(80 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(10 + 5 * math.cos(sine / 30))),.2)
4070
end
4071
attack = false
4072
end
4073
4074
function vistaunty()
4075
attack = true
4076
hum.WalkSpeed = 0
4077
local rd = math.random(1,5)
4078
if rd == 1 then
4079
chatfunc("Do you know this song?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
4080
elseif rd == 2 then
4081
chatfunc("You seem annoyed. Did I make you? It's possible...",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
4082
elseif rd == 3 then
4083
chatfunc("I'm just bored. Don't mess with me, Capiche?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
4084
elseif rd == 4 then
4085
chatfunc("Ready to dance? If not, come back if you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
4086
elseif rd == 5 then
4087
chatfunc("Dance to the beat with me, Yeah?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
4088
end
4089
for i = 0, 8, 0.1 do
4090
swait()
4091
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
4092
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
4093
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(60)),.4)
4094
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-60)),.4)
4095
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(90 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(60 - 2 * math.cos(sine / 38))),.4)
4096
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
4097
end
4098
attack = false
4099
end
4100
4101
function shytaunty()
4102
attack = true
4103
hum.WalkSpeed = 0
4104
CFuncs["Sound"].Create("rbxassetid://543623779", tors, 0.35, 1)
4105
local blush = Instance.new("Decal",hed)
4106
blush.Texture = "rbxassetid://898404027"
4107
blush.Face = "Front"
4108
for i = 0, 13, 0.1 do
4109
swait()
4110
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
4111
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
4112
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
4113
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1)
4114
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1)
4115
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1)
4116
end
4117
coroutine.resume(coroutine.create(function()
4118
for i = 0, 49 do
4119
swait()
4120
blush.Transparency = blush.Transparency + 0.02
4121
end
4122
blush:Destroy()
4123
end))
4124
attack = false
4125
end
4126
------------------------------------ Mode Ascendances
4127
function UnknownA()
4128
hum.WalkSpeed = 0
4129
attack = true
4130
local keptcolor = MAINRUINCOLOR
4131
local locat = Instance.new("Part", char)
4132
locat.CanCollide = false
4133
locat.FormFactor = 3
4134
locat.Name = "Ring"
4135
locat.Material = "Neon"
4136
locat.Size = Vector3.new(1, 1, 1)
4137
locat.Transparency = 1
4138
locat.TopSurface = 0
4139
locat.BottomSurface = 0
4140
locat.Anchored = true
4141
locat.CFrame = root.CFrame*CFrame.new(0,-3,0)
4142
local poste = 0
4143
local rotation = 0
4144
local upperpos = 0
4145
local rate = 0
4146
local x = locat
4147
CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1)
4148
CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1)
4149
sphere2(8,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
4150
CameraEnshaking(2,5)
4151
for i = 0, 49 do
4152
swait()
4153
rotation = rotation + 5
4154
poste = poste + 1
4155
RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
4156
LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
4157
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5)
4158
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5)
4159
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.5)
4160
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.5)
4161
end
4162
for i = 0, 49 do
4163
swait()
4164
rotation = rotation + 5
4165
RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
4166
LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
4167
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5)
4168
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5)
4169
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.5)
4170
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.5)
4171
end
4172
ModeOfGlitch = 6000000000
4173
storehumanoidWS = 300
4174
hum.WalkSpeed = 300
4175
rainbowmode = false
4176
chaosmode = false
4177
RecolorTextAndRename("The Last Guest",BrickColor.new("Navy blue").Color,BrickColor.new("Really red").Color,"Antique")
4178
newThemeCust("rbxassetid://1504604335",0,1.25,1.5)
4179
MAINRUINCOLOR = BrickColor.new("Really blue")
4180
keptcolor = MAINRUINCOLOR
4181
RecolorThing(MAINRUINCOLOR,BrickColor.new("Navy blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4182
CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1)
4183
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.75)
4184
sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("Navy blue"))
4185
attack = false
4186
hum.WalkSpeed = storehumanoidWS
4187
for i = 0, 49 do
4188
local rsiz = math.random(150,450)
4189
sphere2(math.random(1,4),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(25,500)/25,-0.05,BrickColor.new("Deep blue"))
4190
end
4191
coroutine.resume(coroutine.create(function()
4192
local eff = Instance.new("ParticleEmitter",x)
4193
eff.Texture = "rbxassetid://284205403"
4194
eff.LightEmission = 0.95
4195
eff.Color = ColorSequence.new(BrickColor.new("Navy blue").Color)
4196
eff.Rate = 50000
4197
eff.Lifetime = NumberRange.new(2.5)
4198
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)})
4199
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
4200
eff.Speed = NumberRange.new(250,1000)
4201
eff.Drag = 5
4202
eff.Rotation = NumberRange.new(-500,500)
4203
eff.VelocitySpread = 9000
4204
eff.RotSpeed = NumberRange.new(-500,500)
4205
wait(0.5)
4206
eff.Enabled = false
4207
end))
4208
--[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do
4209
if v:FindFirstChild('Head') then
4210
dmg(v)
4211
end
4212
end]]--
4213
CameraEnshaking(8,10)
4214
for i = 0, 99 do
4215
swait()
4216
rotation = rotation + 5
4217
poste = poste + 1
4218
upperpos = upperpos + rate
4219
rate = rate + 0.1
4220
end
4221
x:Destroy()
4222
end
4223
4224
function ChaosGroundStrike()
4225
	attack = true
4226
	for i = 0, 2, 0.1 do
4227
		swait()
4228
		RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
4229
		LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
4230
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
4231
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
4232
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
4233
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
4234
	end
4235
	CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
4236
	CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
4237
	for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
4238
		if v:FindFirstChild("Head") then
4239
			dmg(v)
4240
		end
4241
	end
4242
	sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
4243
	sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
4244
	sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
4245
	for i = 0, 2, 0.1 do
4246
		swait()
4247
		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, BrickColor.random(), 0)
4248
		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, BrickColor.random(), 0)
4249
		RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
4250
		LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
4251
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
4252
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
4253
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
4254
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
4255
	end
4256
	attack = false
4257
end
4258
4259
function ExtinctiveHeartbreak()
4260
	local targetted
4261
	if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
4262
		targetted = mouse.Target.Parent
4263
	end
4264
	if targetted ~= nil then
4265
		attack = true
4266
		CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
4267
		for i = 0, 9 do
4268
			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 black"), 0)
4269
		end
4270
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Navy blue"))
4271
		local originalpos = root.CFrame
4272
		RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
4273
		for i = 0, 9 do
4274
			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 black"), 0)
4275
		end
4276
		hum.WalkSpeed = 0
4277
		targetted.Head.Anchored = true
4278
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Navy blue"))
4279
		for i = 0, 2, 0.1 do
4280
			swait()
4281
			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)), 0.4)
4282
			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)), 0.4)
4283
			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)), 0.4)
4284
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
4285
			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)), 0.4)
4286
			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)), 0.4)
4287
		end
4288
		coroutine.resume(coroutine.create(function()
4289
			bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
4290
			bld.LightEmission = 0.1
4291
			bld.Texture = "rbxassetid://284205403"
4292
			bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
4293
			bld.Rate = 500
4294
			bld.Lifetime = NumberRange.new(1)
4295
			bld.Size = NumberSequence.new({
4296
				NumberSequenceKeypoint.new(0, 2, 0),
4297
				NumberSequenceKeypoint.new(1, 0, 0)
4298
			})
4299
			bld.Acceleration = vt(0, -25, 0)
4300
			bld.Transparency = NumberSequence.new({
4301
				NumberSequenceKeypoint.new(0, 0, 0),
4302
				NumberSequenceKeypoint.new(1, 0, 0)
4303
			})
4304
			bld.Speed = NumberRange.new(10, 50)
4305
			bld.EmissionDirection = "Front"
4306
			bld.VelocitySpread = 25
4307
			bld.Rotation = NumberRange.new(-500, 500)
4308
			bld.RotSpeed = NumberRange.new(-500, 500)
4309
		end))
4310
		coroutine.resume(coroutine.create(function()
4311
			bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
4312
			bld.LightEmission = 0.1
4313
			bld.Texture = "rbxassetid://284205403"
4314
			bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
4315
			bld.Rate = 500
4316
			bld.Lifetime = NumberRange.new(1)
4317
			bld.Size = NumberSequence.new({
4318
				NumberSequenceKeypoint.new(0, 2, 0),
4319
				NumberSequenceKeypoint.new(1, 0, 0)
4320
			})
4321
			bld.Acceleration = vt(0, -25, 0)
4322
			bld.Transparency = NumberSequence.new({
4323
				NumberSequenceKeypoint.new(0, 0, 0),
4324
				NumberSequenceKeypoint.new(1, 0, 0)
4325
			})
4326
			bld.Speed = NumberRange.new(10, 50)
4327
			bld.EmissionDirection = "Front"
4328
			bld.VelocitySpread = 25
4329
			bld.Rotation = NumberRange.new(-500, 500)
4330
			bld.RotSpeed = NumberRange.new(-500, 500)
4331
		end))
4332
		game:GetService("Debris"):AddItem(bld, 3)
4333
		dmg(targetted)
4334
		CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
4335
		for i = 0, 1, 0.1 do
4336
			swait()
4337
			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)), 0.8)
4338
			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)), 0.8)
4339
			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)), 0.8)
4340
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
4341
			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)), 0.8)
4342
			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)), 0.8)
4343
		end
4344
		CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
4345
		for i = 0, 9 do
4346
			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 black"), 0)
4347
		end
4348
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Deep blue"))
4349
		root.CFrame = originalpos
4350
		for i = 0, 9 do
4351
			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 black"), 0)
4352
		end
4353
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Deep blue"))
4354
		bld.Enabled = false
4355
		attack = false
4356
		hum.WalkSpeed = 20
4357
	end
4358
end
4359
4360
function Suicidal()
4361
hum.WalkSpeed = 0
4362
attack = true
4363
local keptcolor = MAINRUINCOLOR
4364
local locat = Instance.new("Part", char)
4365
locat.CanCollide = false
4366
locat.FormFactor = 3
4367
locat.Name = "Ring"
4368
locat.Material = "Neon"
4369
locat.Size = Vector3.new(1, 1, 1)
4370
locat.Transparency = 1
4371
locat.TopSurface = 0
4372
locat.BottomSurface = 0
4373
locat.Anchored = true
4374
locat.CFrame = root.CFrame*CFrame.new(0,-3,0)
4375
local poste = 0
4376
local rotation = 0
4377
local upperpos = 0
4378
local rate = 0
4379
local x = locat
4380
CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1)
4381
CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1)
4382
sphere2(8,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
4383
CameraEnshaking(2,5)
4384
for i = 0, 49 do
4385
swait()
4386
rotation = rotation + 5
4387
poste = poste + 1
4388
RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
4389
LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
4390
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)	
4391
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
4392
RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
4393
LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
4394
end
4395
for i = 0, 49 do
4396
swait()
4397
rotation = rotation + 5
4398
RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
4399
LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
4400
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)	
4401
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
4402
RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
4403
LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
4404
end
4405
ModeOfGlitch = 999
4406
storehumanoidWS = 300
4407
hum.WalkSpeed = 16
4408
rainbowmode = false
4409
chaosmode = false
4410
RecolorTextAndRename("InSaNiTy gUESt",BrickColor.new("Black").Color,BrickColor.new("Really red").Color,"Antique")
4411
newThemeCust("rbxassetid://1166635630",0,0.9,1.5)
4412
MAINRUINCOLOR = BrickColor.new("Really red")
4413
keptcolor = MAINRUINCOLOR
4414
RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4415
CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1)
4416
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.75)
4417
sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("Navy blue"))
4418
attack = false
4419
hum.WalkSpeed = storehumanoidWS
4420
for i = 0, 49 do
4421
local rsiz = math.random(150,450)
4422
end
4423
coroutine.resume(coroutine.create(function()
4424
local eff = Instance.new("ParticleEmitter",x)
4425
eff.Texture = "rbxassetid://284205403"
4426
eff.LightEmission = 0.95
4427
eff.Color = ColorSequence.new(BrickColor.new("Navy blue").Color)
4428
eff.Rate = 50000
4429
eff.Lifetime = NumberRange.new(2.5)
4430
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)})
4431
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
4432
eff.Speed = NumberRange.new(250,1000)
4433
eff.Drag = 5
4434
eff.Rotation = NumberRange.new(-500,500)
4435
eff.VelocitySpread = 9000
4436
eff.RotSpeed = NumberRange.new(-500,500)
4437
wait(0.5)
4438
eff.Enabled = false
4439
end))
4440
--[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do
4441
if v:FindFirstChild('Head') then
4442
dmg(v)
4443
end
4444
end]]--
4445
CameraEnshaking(8,10)
4446
for i = 0, 99 do
4447
swait()
4448
rotation = rotation + 5
4449
poste = poste + 1
4450
upperpos = upperpos + rate
4451
rate = rate + 0.1
4452
end
4453
x:Destroy()
4454
end
4455
4456
function BITCHPLEASE()
4457
hum.WalkSpeed = 0
4458
attack = true
4459
local keptcolor = MAINRUINCOLOR
4460
local locat = Instance.new("Part", char)
4461
locat.CanCollide = false
4462
locat.FormFactor = 3
4463
locat.Name = "Ring"
4464
locat.Material = "Neon"
4465
locat.Size = Vector3.new(1, 1, 1)
4466
locat.Transparency = 1
4467
locat.TopSurface = 0
4468
locat.BottomSurface = 0
4469
locat.Anchored = true
4470
locat.CFrame = root.CFrame*CFrame.new(0,-3,0)
4471
local poste = 0
4472
local rotation = 0
4473
local upperpos = 0
4474
local rate = 0
4475
local x = locat
4476
CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1)
4477
CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1)
4478
sphere2(8,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
4479
CameraEnshaking(2,5)
4480
for i = 0, 49 do
4481
swait()
4482
rotation = rotation + 5
4483
poste = poste + 1
4484
RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
4485
LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
4486
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)	
4487
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
4488
RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
4489
LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
4490
end
4491
for i = 0, 49 do
4492
swait()
4493
rotation = rotation + 5
4494
RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
4495
LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
4496
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)	
4497
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
4498
RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
4499
LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
4500
end
4501
ModeOfGlitch = 6969
4502
storehumanoidWS = 300
4503
hum.WalkSpeed = 300
4504
rainbowmode = false
4505
chaosmode = false
4506
RecolorTextAndRename("MEME-WORTHY DERPZ",BrickColor.new("Pink").Color,BrickColor.new("Really blue").Color,"Antique")
4507
newThemeCust("rbxassetid://2039029608",0,0,1.5)
4508
MAINRUINCOLOR = BrickColor.new("Really blue")
4509
keptcolor = MAINRUINCOLOR
4510
RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4511
CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1)
4512
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.75)
4513
sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("Navy blue"))
4514
attack = false
4515
hum.WalkSpeed = storehumanoidWS
4516
for i = 0, 49 do
4517
local rsiz = math.random(150,450)
4518
end
4519
coroutine.resume(coroutine.create(function()
4520
local eff = Instance.new("ParticleEmitter",x)
4521
eff.Texture = "rbxassetid://284205403"
4522
eff.LightEmission = 0.95
4523
eff.Color = ColorSequence.new(BrickColor.new("Navy blue").Color)
4524
eff.Rate = 50000
4525
eff.Lifetime = NumberRange.new(2.5)
4526
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)})
4527
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
4528
eff.Speed = NumberRange.new(250,1000)
4529
eff.Drag = 5
4530
eff.Rotation = NumberRange.new(-500,500)
4531
eff.VelocitySpread = 9000
4532
eff.RotSpeed = NumberRange.new(-500,500)
4533
wait(0.5)
4534
eff.Enabled = false
4535
end))
4536
--[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do
4537
if v:FindFirstChild('Head') then
4538
dmg(v)
4539
end
4540
end]]--
4541
CameraEnshaking(8,10)
4542
for i = 0, 99 do
4543
swait()
4544
rotation = rotation + 5
4545
poste = poste + 1
4546
upperpos = upperpos + rate
4547
rate = rate + 0.1
4548
end
4549
x:Destroy()
4550
end
4551
4552
function INSANITY()
4553
hum.WalkSpeed = 0
4554
attack = true
4555
local keptcolor = MAINRUINCOLOR
4556
local locat = Instance.new("Part", char)
4557
locat.CanCollide = false
4558
locat.FormFactor = 3
4559
locat.Name = "Ring"
4560
locat.Material = "Neon"
4561
locat.Size = Vector3.new(1, 1, 1)
4562
locat.Transparency = 1
4563
locat.TopSurface = 0
4564
locat.BottomSurface = 0
4565
locat.Anchored = true
4566
locat.CFrame = root.CFrame*CFrame.new(0,-3,0)
4567
local poste = 0
4568
local rotation = 0
4569
local upperpos = 0
4570
local rate = 0
4571
local x = locat
4572
CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1)
4573
CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1)
4574
CameraEnshaking(2,5)
4575
for i = 0, 49 do
4576
swait()
4577
rotation = rotation + 5
4578
poste = poste + 1
4579
RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
4580
LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
4581
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5)
4582
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5)
4583
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.5)
4584
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.5)
4585
end
4586
for i = 0, 49 do
4587
swait()
4588
rotation = rotation + 5
4589
RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
4590
LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
4591
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5)
4592
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5)
4593
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.5)
4594
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.5)
4595
end
4596
ModeOfGlitch = 666
4597
storehumanoidWS = 9
4598
hum.WalkSpeed = 9
4599
rainbowmode = false
4600
chaosmode = false
4601
RecolorTextAndRename("CoRRUpTeD_GUeSt",BrickColor.new("Really red").Color,BrickColor.new("Really red").Color,"Antique")
4602
newThemeCust("rbxassetid://641812804",0,0.8,1.5)
4603
MAINRUINCOLOR = BrickColor.new("Really red")
4604
keptcolor = MAINRUINCOLOR
4605
RecolorThing(MAINRUINCOLOR,BrickColor.new("Maroon"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4606
CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1)
4607
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.75)
4608
sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.random())
4609
attack = false
4610
hum.WalkSpeed = storehumanoidWS
4611
for i = 0, 49 do
4612
local rsiz = math.random(150,450)
4613
sphere2(math.random(1,4),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(25,500)/25,-0.05,BrickColor.random())
4614
end
4615
coroutine.resume(coroutine.create(function()
4616
local eff = Instance.new("ParticleEmitter",x)
4617
eff.Texture = "rbxassetid://284205403"
4618
eff.LightEmission = 0.95
4619
eff.Color = ColorSequence.new(BrickColor.random())
4620
eff.Rate = 50000
4621
eff.Lifetime = NumberRange.new(2.5)
4622
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)})
4623
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
4624
eff.Speed = NumberRange.new(250,1000)
4625
eff.Drag = 5
4626
eff.Rotation = NumberRange.new(-500,500)
4627
eff.VelocitySpread = 9000
4628
eff.RotSpeed = NumberRange.new(-500,500)
4629
wait(0.5)
4630
eff.Enabled = false
4631
end))
4632
--[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do
4633
if v:FindFirstChild('Head') then
4634
dmg(v)
4635
end
4636
end]]--
4637
CameraEnshaking(8,10)
4638
for i = 0, 99 do
4639
swait()
4640
rotation = rotation + 5
4641
poste = poste + 1
4642
upperpos = upperpos + rate
4643
rate = rate + 0.1
4644
end
4645
x:Destroy()
4646
end
4647
4648
function loveydovey()
4649
attack = true
4650
local keptcolor = MAINRUINCOLOR
4651
hum.WalkSpeed = 0
4652
for i = 0, 5, 0.1 do
4653
	swait()
4654
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1)
4655
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),math.rad(0)),.1)
4656
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
4657
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1)
4658
RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1)
4659
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1)
4660
end
4661
CameraEnshaking(4,9)
4662
CFuncs["Sound"].Create("rbxassetid://763717897", char, 0.75, 1.25)
4663
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 0.75, 1)
4664
coroutine.resume(coroutine.create(function()
4665
local eff = Instance.new("ParticleEmitter",root)
4666
eff.Texture = "rbxassetid://363275192"
4667
eff.LightEmission = 0.95
4668
eff.Color = ColorSequence.new(keptcolor.Color)
4669
eff.Rate = 10000
4670
eff.Lifetime = NumberRange.new(1)
4671
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
4672
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
4673
eff.Speed = NumberRange.new(50,200)
4674
eff.Drag = 5
4675
eff.Rotation = NumberRange.new(-500,500)
4676
eff.VelocitySpread = 9000
4677
eff.RotSpeed = NumberRange.new(-50,50)
4678
wait(0.5)
4679
eff.Enabled = false
4680
wait(5)
4681
eff:Destroy()
4682
end))
4683
for i = 0, 49 do
4684
local rsiz = math.random(70,90)
4685
end
4686
CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
4687
CFuncs["Sound"].Create("rbxassetid://543623779", root, 1.5,1)
4688
newTheme("rbxassetid://1067833276",0,1,2)
4689
ModeOfGlitch = 9600000000
4690
MAINRUINCOLOR = BrickColor.new("Hot pink")
4691
for i = 0, 1, 0.2 do
4692
	swait()
4693
	RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
4694
LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
4695
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8)
4696
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(20),math.rad(0)),.8)
4697
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(12),math.rad(0),math.rad(57)),.8)
4698
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(13),math.rad(0),math.rad(-58)),.8)
4699
end
4700
for i = 0, 9, 0.1 do
4701
	swait()
4702
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1)
4703
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),math.rad(0)),.1)
4704
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
4705
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1)
4706
RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1)
4707
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1)
4708
end
4709
CameraEnshaking(2,11)
4710
CFuncs["Sound"].Create("rbxassetid://763717897", char, 1, 1.125)
4711
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 0.75)
4712
for i = 0, 49 do
4713
local rsiz = math.random(70,90)
4714
end
4715
CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
4716
for i = 0, 1, 0.2 do
4717
	swait()
4718
	RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
4719
LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
4720
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8)
4721
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(20),math.rad(0)),.8)
4722
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(12),math.rad(0),math.rad(57)),.8)
4723
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(13),math.rad(0),math.rad(-58)),.8)
4724
end
4725
for i = 0, 1, 0.1 do
4726
	swait()
4727
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1)
4728
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),math.rad(0)),.1)
4729
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
4730
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1)
4731
RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1)
4732
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1)
4733
end
4734
CameraEnshaking(9,14)
4735
CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
4736
CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1)
4737
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
4738
for i = 0, 99 do
4739
local rsiz = math.random(150,450)
4740
end
4741
coroutine.resume(coroutine.create(function()
4742
local eff = Instance.new("ParticleEmitter",root)
4743
eff.Texture = "rbxassetid://749327003"
4744
eff.LightEmission = 1
4745
eff.Color = ColorSequence.new(BrickColor.new("Pink").Color)
4746
eff.Rate = 50000
4747
eff.Lifetime = NumberRange.new(5)
4748
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,60,0),NumberSequenceKeypoint.new(1,0.1,0)})
4749
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
4750
eff.Speed = NumberRange.new(250,1000)
4751
eff.Drag = 5
4752
eff.Rotation = NumberRange.new(-50,50)
4753
eff.VelocitySpread = 9000
4754
eff.RotSpeed = NumberRange.new(-50,50)
4755
wait(0.5)
4756
eff.Enabled = false
4757
wait(5)
4758
eff:Destroy()
4759
end))
4760
storehumanoidWS = 20
4761
rainbowmode = false
4762
chaosmode = false
4763
RecolorTextAndRename("Love Guest",BrickColor.new("Pink").Color,BrickColor.new("Hot pink").Color,"Cartoon")
4764
RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4765
for i = 0, 10, 0.1 do
4766
	swait()
4767
	RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
4768
LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
4769
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8)
4770
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(0),math.rad(0)),.8)
4771
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(97)),.8)
4772
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-27),math.rad(0),math.rad(-98)),.8)
4773
end
4774
hum.WalkSpeed = 20
4775
attack = false
4776
end
4777
-------------------------------------
4778
4779
Humanoid.Animator.Parent = nil
4780
4781
-------------------------------------
4782
4783
local attacktype = 1
4784
mouse.Button1Down:connect(function()
4785
  if attack == false and attacktype == 1 then
4786
    attacktype = 2
4787
    attackone()
4788
  elseif attack == false and attacktype == 2 then
4789
    attacktype = 3
4790
    attacktwo()
4791
  elseif attack == false and attacktype == 3 then
4792
    attacktype = 1
4793
    attackthree()
4794
  elseif attack == false and attacktype == 4 then
4795
    attacktype = 1
4796
    --attackfour()
4797
  end
4798
end)
4799
4800
local OVMID = 1702473314
4801
local OVMPIT = 1
4802
local OVMVOL = 1
4803
mouse.KeyDown:connect(function(k)
4804
if k == "q" and attack == false and ModeOfGlitch ~= 1 then
4805
resetmode()
4806
end
4807
if k == "e" and attack == false and ModeOfGlitch ~= 2 then
4808
                 ModeOfGlitch = 2
4809
storehumanoidWS = 16
4810
hum.WalkSpeed = 16
4811
rainbowmode = false
4812
chaosmode = false
4813
RecolorTextAndRename("Mysterious Guest",Color3.new(0,0,0),BrickColor.new("Really red").Color,"Code")
4814
newTheme("rbxassetid://660801673",0,1.1,1.25)
4815
MAINRUINCOLOR = BrickColor.new("Really black")
4816
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4817
end
4818
if k == "m" and attack == false and ModeOfGlitch == 7 then
4819
                 ModeOfGlitch = 7
4820
storehumanoidWS = 999
4821
hum.WalkSpeed = 999
4822
rainbowmode = false
4823
chaosmode = false
4824
RecolorTextAndRename("INSANELY FAST GUEST",Color3.new(0,0,0),BrickColor.new("Toothpaste").Color,"Cartoon")
4825
newTheme("rbxassetid://1312492868",0,2,1.25)
4826
MAINRUINCOLOR = BrickColor.new("Really blue")
4827
RecolorThing(MAINRUINCOLOR,BrickColor.new("Navy blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4828
end
4829
if k == "m" and attack == false and ModeOfGlitch == 1 then
4830
                 ModeOfGlitch = 6699
4831
storehumanoidWS = 16
4832
hum.WalkSpeed = 16
4833
rainbowmode = false
4834
chaosmode = false
4835
RecolorTextAndRename("Suggestable Behavior Guest...",Color3.new(0,0,0),BrickColor.new("Pink").Color,"Cartoon")
4836
newTheme("rbxassetid://1131624146",0,1,1.25)
4837
MAINRUINCOLOR = BrickColor.new("Really blue")
4838
RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4839
end
4840
if k == "r" and attack == false and ModeOfGlitch ~= 3 then
4841
                 ModeOfGlitch = 3
4842
storehumanoidWS = 16
4843
hum.WalkSpeed = 16
4844
rainbowmode = false
4845
chaosmode = false
4846
RecolorTextAndRename("C_od+E Guest",Color3.new(0,0,0),Color3.new(0,0.5,0),"Code")
4847
newTheme("rbxassetid://919231299",0,1.01,1.25)
4848
MAINRUINCOLOR = BrickColor.new("Forest green")
4849
RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4850
end
4851
if k == "t" and attack == false and ModeOfGlitch ~= 4 then
4852
                 ModeOfGlitch = 4
4853
storehumanoidWS = 16
4854
hum.WalkSpeed = 16
4855
rainbowmode = false
4856
chaosmode = false
4857
RecolorTextAndRename("Controlled Guest",Color3.new(0,0,0.25),BrickColor.new("Really red").Color,"Code")
4858
newTheme("rbxassetid://1430790805",1,1,10)
4859
MAINRUINCOLOR = BrickColor.new("Navy blue")
4860
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4861
end
4862
if k == "y" and attack == false and ModeOfGlitch ~= 5 then
4863
                 ModeOfGlitch = 5
4864
storehumanoidWS = 16
4865
hum.WalkSpeed = 16
4866
rainbowmode = false
4867
chaosmode = false
4868
RecolorTextAndRename("Solar Guest.",Color3.new(1,0.5,0),Color3.new(1,1,0),"Fantasy")
4869
newTheme("rbxassetid://1146120545",0,1.2,1.25)
4870
MAINRUINCOLOR = BrickColor.new("Deep orange")
4871
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4872
end
4873
if k == "m" and attack == false and ModeOfGlitch == 5 then
4874
                 ModeOfGlitch = 7
4875
storehumanoidWS = 16
4876
hum.WalkSpeed = 16
4877
rainbowmode = false
4878
chaosmode = false
4879
RecolorTextAndRename("Serene Guest",Color3.new(0,0,0.3),Color3.new(0,0,0.2),"Code")
4880
newTheme("rbxassetid://1146120545",0,1.2,1.25)
4881
MAINRUINCOLOR = BrickColor.new("Toothpaste")
4882
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4883
end
4884
if k == "m" and attack == false and ModeOfGlitch == 9 then
4885
                 ModeOfGlitch = 25
4886
storehumanoidWS = 16
4887
hum.WalkSpeed = 16
4888
rainbowmode = false
4889
chaosmode = false
4890
RecolorTextAndRename("This isn't a guest glitcher form",Color3.new(1,0,1),Color3.new(0,0,0.3),"Fantasy")
4891
newTheme("rbxassetid://1146120545",0,1.2,1.25)
4892
MAINRUINCOLOR = BrickColor.new("Really blue")
4893
RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4894
end
4895
if k == "u" and attack == false and ModeOfGlitch ~= 6 then
4896
                 ModeOfGlitch = 6
4897
storehumanoidWS = 100
4898
hum.WalkSpeed = 100
4899
rainbowmode = false
4900
chaosmode = false
4901
RecolorTextAndRename("Justice Guest",Color3.new(0,0,0.5),Color3.new(0.75,1,1),"Fantasy")
4902
newTheme("rbxassetid://186267011",0,1.1,1.25)
4903
MAINRUINCOLOR = BrickColor.new("Navy blue")
4904
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4905
end
4906
if k == "p" and attack == false and ModeOfGlitch ~= 7 then
4907
                 ModeOfGlitch = 7
4908
storehumanoidWS = 175
4909
hum.WalkSpeed = 175
4910
rainbowmode = false
4911
chaosmode = false
4912
RecolorTextAndRename("Speedy Guest",BrickColor.new("Cyan").Color,BrickColor.new("Toothpaste").Color,"Code")
4913
newTheme("rbxassetid://1522980500",0,1.01,1.25)
4914
MAINRUINCOLOR = BrickColor.new("Cyan")
4915
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4916
end
4917
if k == "g" and attack == false and ModeOfGlitch ~= 8 then
4918
ModeOfGlitch = 8
4919
storehumanoidWS = 100
4920
hum.WalkSpeed = 100
4921
rainbowmode = false
4922
chaosmode = false
4923
RecolorTextAndRename("ENRAGED GUEST",BrickColor.new("Really red").Color,BrickColor.new("Deep blue").Color,"Antique")
4924
newTheme("rbxassetid://183142252",0,1.2,1.65)
4925
MAINRUINCOLOR = BrickColor.new("Really red")
4926
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4927
end
4928
if k == "h" and attack == false and ModeOfGlitch ~= 9 then
4929
                 ModeOfGlitch = 9
4930
storehumanoidWS = 135
4931
hum.WalkSpeed = 135
4932
rainbowmode = false
4933
chaosmode = false
4934
RecolorTextAndRename("Peaceful Guest.",BrickColor.new("Navy blue").Color,BrickColor.new("Toothpaste").Color,"Arcade")
4935
newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
4936
MAINRUINCOLOR = BrickColor.new("Navy blue")
4937
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4938
end
4939
if k == "j" and attack == false and ModeOfGlitch ~= 10 then
4940
                 ModeOfGlitch = 10
4941
storehumanoidWS = 12
4942
hum.WalkSpeed = 12
4943
rainbowmode = false
4944
chaosmode = false
4945
RecolorTextAndRename("Lucid Guest.",BrickColor.new("Navy blue").Color,BrickColor.new("Deep blue").Color,"Garamond")
4946
newTheme("rbxassetid://328340676",0,1.01,1.65)
4947
MAINRUINCOLOR = BrickColor.new("Black")
4948
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4949
end
4950
if k == "m" and attack == false and ModeOfGlitch == 10 then
4951
                 ModeOfGlitch = 30
4952
storehumanoidWS = 12
4953
hum.WalkSpeed = 12
4954
rainbowmode = false
4955
chaosmode = false
4956
RecolorTextAndRename("Frozen Guest.",BrickColor.new("Toothpaste").Color,BrickColor.new("Light pastel blue").Color,"Garamond")
4957
newTheme("rbxassetid://561833161",0,1.1,1.65)
4958
MAINRUINCOLOR = BrickColor.new("Light pastel blue")
4959
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4960
end
4961
if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 2000000000 then
4962
                 ModeOfGlitch = 2000000000
4963
storehumanoidWS = 200
4964
hum.WalkSpeed = 200
4965
rainbowmode = false
4966
chaosmode = false
4967
RecolorTextAndRename("GUEST'S FINAL ACT",BrickColor.new("Navy blue").Color,BrickColor.new("Really red").Color,"Antique")
4968
newThemeCust("rbxassetid://496055561",0.8, 0.8, 10)
4969
MAINRUINCOLOR = BrickColor.new("Really red")
4970
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
4971
end
4972
if k == "f" and attack == false and ModeOfGlitch ~= 9600000000 then
4973
loveydovey()
4974
end
4975
if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 6000000000 then
4976
UnknownA()
4977
end
4978
if k == "b" and ModeOfGlitch == 6000000000 and attack == false then
4979
harmonytaunty()
4980
elseif k == "b" and ModeOfGlitch == 9 and attack == false then
4981
vistaunty()
4982
elseif k == "b" and ModeOfGlitch == 9600000000 and attack == false then
4983
shytaunty()
4984
end
4985
if k == "z" and ModeOfGlitch == 1 and attack == false then
4986
Beams()
4987
elseif k == "z" and ModeOfGlitch == 2 and attack == false  then
4988
smiter()
4989
elseif k == "z" and ModeOfGlitch == 2000000000 and attack == false  then
4990
supsmiter()
4991
elseif k == "z" and ModeOfGlitch == 6000000000 and ModeOfGlitch == 3 and attack == false then
4992
BinaryE()
4993
elseif k == "x" and ModeOfGlitch == 6000000000 and attack == false then
4994
AZUREFINALE()
4995
elseif k == "c" and ModeOfGlitch == 6000000000 and attack == false then
4996
AZUREFINALE()
4997
elseif k == "z" and ModeOfGlitch == 4 and attack == false  then
4998
BinaryBLINK()
4999
elseif k == "x" and ModeOfGlitch == 4 and attack == false  then
5000
ExtinctiveHeartbreak()
5001
elseif k == "z" and ModeOfGlitch == 5 and attack == false  then
5002
Fireball()
5003
elseif k == "z" and ModeOfGlitch == 6 and attack == false  then
5004
GalacticalBeams()
5005
elseif k == "z" and ModeOfGlitch == 7 and attack == false  then
5006
WarpedDash()
5007
elseif k == "z" and ModeOfGlitch == 8 and attack == false  then
5008
BeamOfDeath()
5009
elseif k == "z" and ModeOfGlitch == 9 and attack == false  then
5010
end
5011
if k == "x" and ModeOfGlitch == 3 and attack == false  then
5012
BinaryBLINK()
5013
end
5014
if k == "v" and ModeOfGlitch == 2000000000 and attack == false then
5015
AZUREFINALE()
5016
end
5017
if k == "k" and ModeOfGlitch ~= 666 and attack == false then
5018
INSANITY()
5019
end
5020
if k == "l" and ModeOfGlitch ~= 2 and ModeOfGlitch ~= 999 and attack == false then
5021
Suicidal()
5022
end
5023
if k == "l" and ModeOfGlitch == 2 and ModeOfGlitch ~= 6969 and attack == false then
5024
BITCHPLEASE()
5025
end
5026
if k == "z" and ModeOfGlitch == 4 and ModeOfGlitch == 1 and attack == false then
5027
ExtinctiveHeartbreak()
5028
end
5029
if k == "z" and ModeOfGlitch == 666 and attack == false then
5030
ChaosGroundStrike()
5031
end
5032
if k == "z" and ModeOfGlitch == 999 and attack == false then
5033
ChaosGroundStrike()
5034
end
5035-
if k == "o" and mutedtog == false then
5035+
if k == ";" and mutedtog == false then
5036
mutedtog = true
5037
kan.Volume = 0.1
5038-
elseif k == "o" and mutedtog == true then
5038+
elseif k == ";" and mutedtog == true then
5039
mutedtog = false
5040
kan.Volume = 1.25
5041
end
5042
if k == "n" and toggleTag == false then
5043
toggleTag = true
5044
modet.TextTransparency = 0
5045
modet.TextStrokeTransparency = 0
5046
elseif k == "n" and toggleTag == true then
5047
toggleTag = false
5048-
modet.TextTransparency = 0.8
5048+
5049-
modet.TextStrokeTransparency = 0.8
5049+
5050
end
5051
if k == "z" and attack == false and ModeOfGlitch == 1 then
5052
end
5053
end)
5054
5055
plr.Chatted:connect(function(message)
5056
if ModeOfGlitch == 9 then
5057
if message:sub(1,5) == "play/" then
5058
OVMID = message:sub(6)
5059
newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
5060
elseif message:sub(1,6) == "pitch/" then
5061
OVMPIT = message:sub(7)
5062
newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
5063
elseif message:sub(1,4) == "vol/" then
5064
OVMVOL = message:sub(5)
5065
newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
5066
elseif message:sub(1,7) == "skipto/" then
5067
chatfunc("Skipped to "..message:sub(8).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
5068
newThemeCust("rbxassetid://"..OVMID,message:sub(8),OVMPIT,OVMVOL)
5069
elseif message:sub(1,9) == "telltime/" then
5070
chatfunc("Current time pos: "..math.floor(kan.TimePosition).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
5071
end
5072
end
5073
end)
5074
local rotperm = 0
5075
coroutine.resume(coroutine.create(function()
5076
while true do
5077
swait()
5078
if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 then
5079
swait(0.5)
5080
sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,MAINRUINCOLOR,0)
5081
elseif ModeOfGlitch == 5 then
5082
swait(0.5)
5083
local rsiz = math.random(1,3)
5084
sphereMK(math.random(3,6),math.random(-25,25)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
5085
sphereMK(math.random(6,9),math.random(-10,10)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-5,5)/50,math.random(-5,5)/50,math.random(-5,5)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/3,rsiz/3,rsiz/3,0,MAINRUINCOLOR,0)
5086
elseif ModeOfGlitch == 9600000000 then
5087
swait(0.25)
5088
sphereMK(5,math.random(-14,-8)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0)
5089
elseif ModeOfGlitch == 6000000000 then
5090
coroutine.resume(coroutine.create(function()
5091
swait(5)
5092
sphereMK(10,math.random(15,45)/45,"Add",root.CFrame*CFrame.new(math.random(-50,50),-40,math.random(-50,50))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,60,-0.01,MAINRUINCOLOR,0)
5093
end))
5094
swait(1)
5095
rotperm = rotperm + 12
5096
sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,MAINRUINCOLOR)
5097
sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,BrickColor.new("Cool yellow"))
5098
elseif ModeOfGlitch == 9 and kan.PlaybackLoudness >= 50 then
5099
swait(25 - kan.PlaybackLoudness/80)
5100
sphere2(4,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.25,0,0.25,MAINRUINCOLOR)
5101
if kan.PlaybackLoudness >= 300 then
5102
CameraEnshaking(1,3)
5103
for i = 0, 4 do
5104
sphereMK(5,math.random(15,35)/150,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,20,-0.01,MAINRUINCOLOR,0)
5105
end
5106
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.5,0,0.5,MAINRUINCOLOR)
5107
end
5108
local notsp = Instance.new("Part", char)
5109
notsp.CanCollide = false
5110
notsp.FormFactor = 3
5111
notsp.Name = "Ring"
5112
notsp.Material = "Neon"
5113
notsp.Size = Vector3.new(10, 1, 10)
5114
if kan.PlaybackLoudness >= 300 then
5115
notsp.Size = Vector3.new(25, 1, 25)
5116
end
5117
notsp.Transparency = 1
5118
notsp.TopSurface = 0
5119
notsp.BottomSurface = 0
5120
notsp.Anchored = true
5121
notsp.CFrame = root.CFrame*CFrame.new(0,-3,0)
5122
coroutine.resume(coroutine.create(function()
5123
local eff = Instance.new("ParticleEmitter",notsp)
5124
eff.Texture = "rbxassetid://288898235"
5125
eff.LightEmission = 0.5
5126
eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000))
5127
eff.Rate = 300
5128
eff.Lifetime = NumberRange.new(1)
5129
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,0,0)})
5130
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
5131
eff.Speed = NumberRange.new(20,40)
5132
eff.Acceleration = vt(0,-75,0)
5133
eff.Drag = 1
5134
eff.Rotation = NumberRange.new(-10,10)
5135
eff.VelocitySpread = 20
5136
eff.RotSpeed = NumberRange.new(-1,1)
5137
coroutine.resume(coroutine.create(function()
5138
while true do
5139
swait()
5140
if eff.Parent ~= nil then
5141
if ModeOfGlitch == 9 then
5142
eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000))
5143
elseif ModeOfGlitch ~= 9 then
5144
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
5145
end
5146
else
5147
break
5148
end
5149
end
5150
end))
5151
wait(0.1)
5152
eff.Enabled = false
5153
end))
5154
game:GetService("Debris"):AddItem(notsp, 5)
5155
end
5156
end
5157
end))
5158
5159
5160
Humanoid.Name = "GGLITCHER"
5161
Humanoid.MaxHealth = math.huge
5162
Humanoid.Health = math.huge
5163
Instance.new("ForceField",char).Visible = false
5164
5165
idleanim=.4
5166
while true do
5167
Humanoid.MaxHealth = math.huge
5168
Humanoid.Health = math.huge
5169
if mutedtog == false and duringend == false then
5170
kan.Volume = currentVol
5171
elseif mutedtog == true and duringend == false then
5172
kan.Volume = 0
5173
end
5174
if duringend == false then
5175
kan.PlaybackSpeed = currentPitch
5176
kan.Pitch = currentPitch
5177
end
5178
kan.SoundId = currentThemePlaying
5179
kan.Looped = true
5180
kan.Parent = char
5181
kan:Resume()
5182
5183
modeteller.Text = string.upper(modet.Text)
5184
modeteller.TextColor3 = MAINRUINCOLOR.Color
5185
5186
swait()
5187
handlexweld.C0=clerp(handlexweld.C0,cf(0 + 0.25 * math.cos(sine / 63),0 + 0.25 * math.cos(sine / 70),0 + 0.05 * math.cos(sine / 57))*angles(math.rad(0 + 2 * math.cos(sine / 55)),math.rad(0 + 2 * math.cos(sine / 46)),math.rad(0 + 2 * math.cos(sine / 32))),.3)
5188
5189
lwing1weld.C1=clerp(lwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 42)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 + 5 * math.cos(sine / 56))),.3)
5190
lwing2weld.C1=clerp(lwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(130 + 5 * math.cos(sine / 56))),.3)
5191
lwing3weld.C1=clerp(lwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 48)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(50 + 5 * math.cos(sine / 56))),.3)
5192
rwing1weld.C1=clerp(rwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 46)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 5 * math.cos(sine / 56))),.3)
5193
rwing2weld.C1=clerp(rwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-130 - 5 * math.cos(sine / 56))),.3)
5194
rwing3weld.C1=clerp(rwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 40)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-50 - 5 * math.cos(sine / 56))),.3)
5195
--------------- Visualiser Zone
5196
if ModeOfGlitch == 9 then
5197
modet.TextColor3 = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
5198
for i, v in pairs(mw2:GetChildren()) do
5199
if v:IsA("Part") then
5200
v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
5201
v.Material = "Neon"
5202
end
5203
end
5204
for i, v in pairs(mw1:GetChildren()) do
5205
if v:IsA("Part") then
5206
v.Transparency = 0
5207
v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
5208
v.Material = "Neon"
5209
end
5210
end
5211
end
5212
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
5213
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
5214
---------------
5215
  sine = sine + change
5216
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
5217
local velderp=RootPart.Velocity.y
5218
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
5219
if equipped==true or equipped==false then
5220
if attack==false then
5221
idle=idle+1
5222
else
5223
idle=0
5224
end
5225
if idle>=500 then
5226
if attack==false then
5227
--Sheath()
5228
end
5229
end
5230
if RootPart.Velocity.y > 1 and hitfloor==nil then 
5231
Anim="Jump"
5232
if attack==false then
5233
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)
5234
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)
5235
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
5236
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
5237
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
5238
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
5239
end
5240
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
5241
Anim="Fall"
5242
if attack==false then
5243
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)
5244
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)
5245
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
5246
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
5247
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
5248
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
5249
end
5250
elseif torvel<1 and hitfloor~=nil then
5251
Anim="Idle"
5252
if attack==false then
5253
if ModeOfGlitch == 1 then
5254
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.sin(sine / 14),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(2 + 1 * math.cos(sine / 14))),.1)
5255
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.sin(sine / 14),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(1 + 1 * math.cos(sine / 14))),.1)
5256
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.sin(sine / 14))*angles(math.rad(0 - 1 * math.sin(sine / 14)),math.rad(0),math.rad(-20)),.1)
5257
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5, 0.3 - 0.2 * math.sin(sine / 14)),math.rad(0),math.rad(20)),.1)
5258
RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.2 * math.sin(sine / 14),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 14)),math.rad(0),math.rad(-100 - 2.5 * math.sin(sine / 14))),.1)
5259
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.2 * math.sin(sine / 14),-0.65)*angles(math.rad(40 - 1 * math.sin(sine / 14)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 14))),.1)
5260
elseif ModeOfGlitch == 2 then
5261
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5 + 3 * math.cos(sine / 45)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
5262
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 3 * math.cos(sine / 45)),math.rad(5),math.rad(0 + 2 * math.cos(sine / 34))),.1)
5263
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.03 * math.cos(sine / 45),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 + 3 * math.cos(sine / 45)),math.rad(0)),.1)
5264
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 99)),math.rad(0 + 10 * math.cos(sine / 78))),.1)
5265
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15 + 5 * math.cos(sine / 33)),math.rad(15 + 6 * math.cos(sine / 38)),math.rad(-10 - 3 * math.cos(sine / 42))),.1)
5266
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 5 * math.cos(sine / 28))),.1)
5267
elseif ModeOfGlitch == 6969 then
5268
RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(0,0,math.rad(0+5*math.cos(sine/16)))*RootCF,.1)
5269
Torso.Neck.C0 = Torso.Neck.C0:lerp(necko*angles(0,0,-math.rad(0+5*math.cos(sine/16))),.1)
5270
LH.C0 = LH.C0:lerp(cf(-1-math.rad(0+5*math.cos(sine/16)),-1+math.rad(0+5*math.cos(sine/16)),0)*angles(0,0,-math.rad(0+5*math.cos(sine/16)))*angles(math.rad(-15),math.rad(25),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
5271
RH.C0 = RH.C0:lerp(cf(1-math.rad(0+5*math.cos(sine/16)),-1-math.rad(0+5*math.cos(sine/16)),0)*angles(0,0,-math.rad(0+5*math.cos(sine/16)))*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
5272
LW.C0 = LW.C0:lerp(cf(-1.5,0.5,0)*cf(0,-.15,0)*angles(math.rad(15),0,math.rad(20)),.1)
5273
RW.C0 = RW.C0:lerp(cf(1.5,0.5,0)*angles(0,0,math.rad(5+5*math.sin(sine/16))),.1)
5274
elseif ModeOfGlitch == 666 then
5275
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(20)),.1)
5276
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(-20)),.1)
5277
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
5278
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
5279
RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
5280
LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
5281
elseif ModeOfGlitch == 999 then
5282
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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
5283
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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
5284
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
5285
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
5286
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
5287
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
5288
elseif ModeOfGlitch == 10 then
5289
RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -0.1 + 0.1 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
5290
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0)), 0.3)
5291
RH.C0 = clerp(RH.C0, CFrame.new(1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * RHCF * angles(math.rad(-4.5), math.rad(0), math.rad(0)), 0.15)
5292
LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * LHCF * angles(math.rad(-6.5), math.rad(0), math.rad(0)), 0.15)
5293
RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1)
5294
LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4 + 0.05 * math.cos(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
5295
elseif ModeOfGlitch == 3 then
5296
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(-5 - 2 * math.cos(sine / 34))),.1)
5297
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(-1.5),math.rad(20 - 2 * math.cos(sine / 72)),math.rad(0 + 2 * math.cos(sine / 34))),.1)
5298
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(-20 + 2 * math.cos(sine / 72))),.1)
5299
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 / 55)),math.rad(20 - 2 * math.cos(sine / 72))),.1)
5300
RW.C0=clerp(RW.C0,cf(1.15,0.5 + 0.1 * math.cos(sine / 28),0.25)*angles(math.rad(-22 + 2 * math.cos(sine / 38)),math.rad(0),math.rad(-15 - 2 * math.cos(sine / 41))),.1)
5301
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 - 6 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 46)),math.rad(-20 + 5 * math.cos(sine / 34))),.1)
5302
elseif ModeOfGlitch == 4 then
5303
RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
5304
LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
5305
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)	
5306
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1)
5307
RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
5308
LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
5309
elseif ModeOfGlitch == 5 then
5310
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 4 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
5311
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 4 * math.cos(sine / 50)),math.rad(18),math.rad(0 + 2 * math.cos(sine / 34))),.1)
5312
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),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 + 4 * math.cos(sine / 50)),math.rad(-18)),.1)
5313
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(-5 - 2.5 * math.cos(sine / 57)),math.rad(18)),.1)
5314
RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(36 - 3 * math.cos(sine / 34)),math.rad(0 - 2 * math.cos(sine / 45)),math.rad(-80 + 5 * math.cos(sine / 28))),.1)
5315
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(7 + 3 * math.cos(sine / 49)),math.rad(12 + 2 * math.cos(sine / 52)),math.rad(-16 - 6 * math.cos(sine / 39))),.1)
5316
elseif ModeOfGlitch == 6 then
5317
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-10 + 4 * math.cos(sine / 34))),.1)
5318
LH.C0=clerp(LH.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(5 + 2 * math.cos(sine / 34))),.1)
5319
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-5 - 2 * math.cos(sine / 53))),.1)
5320
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(2 + 3 * math.cos(sine / 41)),math.rad(5 + 2 * math.cos(sine / 53))),.1)
5321
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 4 * math.cos(sine / 28)),math.rad(0),math.rad(14 + 8 * math.cos(sine / 28))),.1)
5322
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(5 + 3 * math.cos(sine / 46)),math.rad(10 + 5 * math.cos(sine / 52)),math.rad(-15 - 6 * math.cos(sine / 28))),.1)
5323
elseif ModeOfGlitch == 7 then
5324
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(1),math.rad(0 - 1 * math.cos(sine / 34))),.1)
5325
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(5),math.rad(0 + 1 * math.cos(sine / 34))),.1)
5326
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.01 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
5327
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 1 * math.cos(sine / 71)),math.rad(0)),.1)
5328
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(4 - 4 * math.cos(sine / 28)),math.rad(-8),math.rad(10 - 5 * math.cos(sine / 34))),.1)
5329
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(5),math.rad(5),math.rad(5)),.1)
5330
elseif ModeOfGlitch == 8 then
5331
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),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
5332
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
5333
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
5334
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
5335
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 3 * math.cos(sine / 30)),math.rad(25 - 3 * math.cos(sine / 38)),math.rad(28 - 6 * math.cos(sine / 34))),.1)
5336
LW.C0=clerp(LW.C0,cf(-0.95,0.65 + 0.075 * math.cos(sine / 28),-0.65)*angles(math.rad(90 + 2 * math.cos(sine / 73)),math.rad(25 + 5 * math.cos(sine / 24)),math.rad(73 - 3 * math.cos(sine / 65))),.1)
5337
elseif ModeOfGlitch == 9 then
5338
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
5339
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
5340
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
5341
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
5342
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1)
5343
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1)
5344
elseif ModeOfGlitch == 2000000000 then
5345
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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
5346
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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
5347
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
5348
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
5349
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
5350
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
5351
elseif ModeOfGlitch == 6000000000 then
5352
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-15 + 6 * math.cos(sine / 34))),.1)
5353
LH.C0=clerp(LH.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(7.5 - 4 * math.cos(sine / 47))),.1)
5354
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-1 + 4 * math.cos(sine / 62))),.1)
5355
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 28)),math.rad(5 - 6 * math.cos(sine / 79)),math.rad(1 - 4 * math.cos(sine / 62))),.1)
5356
RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(38 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-95 - 3 * math.cos(sine / 28))),.1)
5357
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(45 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(80 + 5 * math.cos(sine / 30))),.1)
5358
elseif ModeOfGlitch == 9600000000 then
5359
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
5360
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
5361
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
5362
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5 - 2.5 * math.cos(sine / 28)),math.rad(10 + 5 * math.cos(sine / 62)),math.rad(17 + 5 * math.cos(sine / 59))),.1)
5363
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-37 + 2 * math.cos(sine / 37))),.1)
5364
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(23 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(38 - 3 * math.cos(sine / 57) )),.1)
5365
end
5366
end
5367
elseif torvel>2 and torvel<22 and hitfloor~=nil then
5368
Anim="Walk"
5369
if attack==false then
5370
if ModeOfGlitch == 10 then
5371
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(4-2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(5 * math.cos(sine / 7))), 0.15)
5372
Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3)
5373
RH.C0 = clerp(RH.C0, cf(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 5 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
5374
LH.C0 = clerp(LH.C0, cf(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 5 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
5375
RW.C0 = clerp(RW.C0, cf(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1)
5376
LW.C0 = clerp(LW.C0, cf(-1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
5377
elseif ModeOfGlitch == 666 then
5378
RH.C0=clerp(RH.C0,cf(1,-.9-.4*math.cos(sine/8)/2,.4*math.cos(sine/8)/2)*angles(math.rad(2-2*math.cos(sine/10))-math.sin(sine/8)/2,0,0)*angles(0,math.rad(90),0),.1)
5379
LH.C0=clerp(LH.C0,cf(-1,-.9+.4*math.cos(sine/8)/2,-.4*math.cos(sine/8)/2)*angles(math.rad(2+2*math.cos(sine/10))+math.sin(sine/8)/2,0,0)*angles(0,math.rad(-90),0),.1)
5380
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1)
5381
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
5382
RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
5383
LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
5384
elseif ModeOfGlitch == 999 then
5385
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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
5386
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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
5387
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
5388
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
5389
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
5390
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
5391
elseif ModeOfGlitch ~= 9600000000 then
5392
RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
5393
LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
5394
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 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
5395
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
5396
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(5 - 10 * math.cos(sine / 4))),.1)
5397
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(-5 + 10 * math.cos(sine / 4))),.1)
5398
elseif ModeOfGlitch == 9600000000 then
5399
RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1)
5400
LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1)
5401
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.1,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(15 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 8))),.1)
5402
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15 + 3 * math.cos(sine / 4)),math.rad(0 - 10 * math.cos(sine / 8)),math.rad(0 - hed.RotVelocity.Y*2.5 + 10 * math.cos(sine / 8))),.1)
5403
RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 80 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
5404
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 80 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
5405
end
5406
end
5407
elseif torvel>=22 and hitfloor~=nil then
5408
Anim="Run"
5409
if attack==false then
5410
if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 2000000000 and ModeOfGlitch ~= 6000000000 then
5411
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 + 85 * math.cos(sine / 6))),.1)
5412
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 + 85 * math.cos(sine / 6))),.1)
5413
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1)
5414
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1)
5415
RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 140 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1)
5416
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 140 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1)
5417
if ModeOfGlitch == 7 then
5418
end
5419
elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 or ModeOfGlitch == 6000000000 then
5420
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)
5421
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)
5422
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)
5423
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)
5424
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)
5425
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)
5426
end
5427
end
5428
end
5429
end
5430
end