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