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