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