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