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