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