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