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