View difference between Paste ID: 8fdgaj2d and S2AVDCia
SHOW: | | - or go back to the newest paste.
1
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
do
5
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
6
	script.Parent = Player.Character
7
8
	--RemoteEvent for communicating
9
	local Event = Instance.new("RemoteEvent")
10
	Event.Name = "UserInput_Event"
11
12
	--Fake event to make stuff like Mouse.KeyDown work
13
	local function fakeEvent()
14
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
15
		t.connect = t.Connect
16
		return t
17
	end
18
19
	--Creating fake input objects with fake variables
20
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
21
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
22
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
23
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
24
	end}
25
	--Merged 2 functions into one by checking amount of arguments
26
	CAS.UnbindAction = CAS.BindAction
27
28
	--This function will trigger the events that have been :Connect()'ed
29
	local function te(self,ev,...)
30
		local t = m[ev]
31
		if t and t._fakeEvent and t.Function then
32
			t.Function(...)
33
		end
34
	end
35
	m.TrigEvent = te
36
	UIS.TrigEvent = te
37
38
	Event.OnServerEvent:Connect(function(plr,io)
39
	    if plr~=Player then return end
40
		if io.isMouse then
41
			m.Target = io.Target
42
			m.Hit = io.Hit
43
		else
44
			local b = io.UserInputState == Enum.UserInputState.Begin
45
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
46
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
47
			end
48
			for _,t in pairs(CAS.Actions) do
49
				for _,k in pairs(t.Keys) do
50
					if k==io.KeyCode then
51
						t.Function(t.Name,io.UserInputState,io)
52
					end
53
				end
54
			end
55
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
56
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
57
	    end
58
	end)
59
	Event.Parent = NLS([==[
60
	local Player = game:GetService("Players").LocalPlayer
61
	local Event = script:WaitForChild("UserInput_Event")
62
63
	local UIS = game:GetService("UserInputService")
64
	local input = function(io,a)
65
		if a then return end
66
		--Since InputObject is a client-side instance, we create and pass table instead
67
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
68
	end
69
	UIS.InputBegan:Connect(input)
70
	UIS.InputEnded:Connect(input)
71
72
	local Mouse = Player:GetMouse()
73
	local h,t
74
	--Give the server mouse data 30 times every second, but only if the values changed
75
	--If player is not moving their mouse, client won't fire events
76
	while wait(1/30) do
77
		if h~=Mouse.Hit or t~=Mouse.Target then
78
			h,t=Mouse.Hit,Mouse.Target
79
			Event:FireServer({isMouse=true,Target=t,Hit=h})
80
		end
81
	end]==],Player.Character)
82
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
83
end
84
warn("Star Glitcher Loaded.")
85
warn("All purpose switcher...")
86
warn("Edit By Frepix.")
87
warn("Minor Edit By UndeniableInfinity.")
88
warn("Please Support The Original Creator Of This Script.")
89
plr = game.Players.LocalPlayer
90
char = plr.Character
91
hum = char.Humanoid
92
local cam = game.Workspace.CurrentCamera
93
local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
94
Camera = cam
95
local CamInterrupt = false
96
local TwoD = false
97
local TargetInfo = {nil, nil}
98
cam.CameraType = "Custom"
99
t = char.Torso
100
h = char.Head
101
ra = char["Right Arm"]
102
la = char["Left Arm"]
103
rl = char["Right Leg"]
104
ll = char["Left Leg"]
105
tors = char.Torso
106
lleg = char["Left Leg"]
107
root = char.HumanoidRootPart
108
hed = char.Head
109
rleg = char["Right Leg"]
110
rarm = char["Right Arm"]
111
larm = char["Left Arm"]
112
radian = math.rad
113
random = math.random
114
Vec3 = Vector3.new
115
Inst = Instance.new
116
cFrame = CFrame.new
117
Euler = CFrame.fromEulerAnglesXYZ
118
vt = Vector3.new
119
bc = BrickColor.new
120
br = BrickColor.random
121
it = Instance.new
122
cf = CFrame.new
123
local Booleans = {CamFollow = true, GyroUse = true}
124
function lerp(object, newCFrame, alpha)
125
	return object:lerp(newCFrame, alpha)
126
end
127
128
ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
129
ff.Visible = false
130
131
132
local Directer = Inst("BodyGyro", root)
133
Directer.MaxTorque = Vec3(0, 0, 0)
134
Directer.P = 600000
135
local CPart = Inst("Part")
136
CPart.Anchored = true
137
CPart.CanCollide = false
138
CPart.Locked = true
139
CPart.Transparency = 1
140
local rainbowmode = false
141
local chaosmode = false
142
kan = Instance.new("Sound", char)
143
kan.Volume = 1.98
144
kan.TimePosition = 0
145
kan.PlaybackSpeed = 1
146
kan.Pitch = 1
147
kan.SoundId = "rbxassetid://415898123"
148
kan.Name = "wrecked"
149
kan.Looped = true
150
kan:Play()
151
function newTheme(ID, timepos, pitch, vol)
152
	local kanz = kan
153
	kanz.PlaybackSpeed = pitch
154
	kanz.Pitch = pitch
155
	kanz.SoundId = ID
156
	kanz.Name = "wrecked"
157
	kanz.Looped = true
158
end
159
function CameraShake(Times, Power, PlayerTarget)
160
	coroutine.resume(coroutine.create(function()
161
		FV = Instance.new("BoolValue", PlayerTarget)
162
		FV.Name = "CameraShake"
163
		for ShakeNum = 1, Times do
164
			swait()
165
			local ef = Power
166
			if ef >= 1 then
167
				Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
168
			else
169
				ef = Power * 10
170
				Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
171
			end
172
		end
173
		Humanoid.CameraOffset = Vector3.new(0, 0, 0)
174
		FV:Destroy()
175
	end))
176
end
177
function CameraEnshaking(Length, Intensity)
178
	coroutine.resume(coroutine.create(function()
179
		local intensity = 1 * Intensity
180
		local rotM = 0.01 * Intensity
181
		for i = 0, Length, 0.1 do
182
			swait()
183
			intensity = intensity - 0.05 * Intensity / Length
184
			rotM = rotM - 5.0E-4 * Intensity / Length
185
			hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
186
			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)
187
		end
188
		Humanoid.CameraOffset = Vec3(0, 0, 0)
189
	end))
190
end
191
function CamShake(Part, Distan, Power, Times)
192
	local de = Part.Position
193
	for i, v in pairs(workspace:children()) do
194
		if v:IsA("Model") and v:findFirstChild("Humanoid") then
195
			for _, c in pairs(v:children()) do
196
				if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then
197
					do
198
						local Noob = v.Humanoid
199
						if Noob ~= nil then
200
							coroutine.resume(coroutine.create(function()
201
								FV = Instance.new("BoolValue", Noob)
202
								FV.Name = "CameraShake"
203
								for ShakeNum = 1, Times do
204
									swait()
205
									local ef = Power
206
									if ef >= 1 then
207
										Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
208
									else
209
										ef = Power * 10
210
										Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
211
									end
212
								end
213
								Humanoid.CameraOffset = Vector3.new(0, 0, 0)
214
								FV:Destroy()
215
							end))
216
							CameraShake(Times, Power, Noob)
217
						end
218
					end
219
				end
220
			end
221
		end
222
	end
223
end
224
function chatfunc(text, color)
225
	local chat = coroutine.wrap(function()
226
		if Character:FindFirstChild("TalkingBillBoard") ~= nil then
227
			Character:FindFirstChild("TalkingBillBoard"):destroy()
228
		end
229
		local naeeym2 = Instance.new("BillboardGui", Character)
230
		naeeym2.Size = UDim2.new(0, 100, 0, 40)
231
		naeeym2.StudsOffset = Vector3.new(0, 3, 0)
232
		naeeym2.Adornee = Character.Head
233
		naeeym2.Name = "TalkingBillBoard"
234
		local tecks2 = Instance.new("TextLabel", naeeym2)
235
		tecks2.BackgroundTransparency = 1
236
		tecks2.BorderSizePixel = 0
237
		tecks2.Text = ""
238
		tecks2.Font = "SciFi"
239
		tecks2.TextSize = 30
240
		tecks2.TextStrokeTransparency = 0
241
		tecks2.TextColor3 = color
242
		tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
243
		tecks2.Size = UDim2.new(1, 0, 0.5, 0)
244
		local tecks3 = Instance.new("TextLabel", naeeym2)
245
		tecks3.BackgroundTransparency = 1
246
		tecks3.BorderSizePixel = 0
247
		tecks3.Text = ""
248
		tecks3.Font = "SciFi"
249
		tecks3.TextSize = 30
250
		tecks3.TextStrokeTransparency = 0
251
		tecks3.TextColor3 = Color3.new(0, 0, 0)
252
		tecks3.TextStrokeColor3 = color
253
		tecks3.Size = UDim2.new(1, 0, 0.5, 0)
254
		coroutine.resume(coroutine.create(function()
255
			while true do
256
				swait(1)
257
				if chaosmode == true then
258
					tecks2.TextColor3 = BrickColor.random().Color
259
					tecks3.TextStrokeColor3 = BrickColor.random().Color
260
				end
261
				tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
262
				tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
263
				tecks2.Rotation = math.random(-5, 5)
264
				tecks3.Rotation = math.random(-5, 5)
265
			end
266
		end))
267
		for i = 1, string.len(text) do
268
			CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
269
			tecks2.Text = string.sub(text, 1, i)
270
			tecks3.Text = string.sub(text, 1, i)
271
			swait(1)
272
		end
273
		wait(1)
274
		local randomrot = math.random(1, 2)
275
		if randomrot == 1 then
276
			for i = 1, 50 do
277
				swait()
278
				tecks2.Rotation = tecks2.Rotation - 0.75
279
				tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
280
				tecks2.TextTransparency = tecks2.TextTransparency + 0.04
281
				tecks3.Rotation = tecks2.Rotation + 0.75
282
				tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
283
				tecks3.TextTransparency = tecks2.TextTransparency + 0.04
284
			end
285
		elseif randomrot == 2 then
286
			for i = 1, 50 do
287
				swait()
288
				tecks2.Rotation = tecks2.Rotation + 0.75
289
				tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
290
				tecks2.TextTransparency = tecks2.TextTransparency + 0.04
291
				tecks3.Rotation = tecks2.Rotation - 0.75
292
				tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
293
				tecks3.TextTransparency = tecks2.TextTransparency + 0.04
294
			end
295
		end
296
		naeeym2:Destroy()
297
	end)
298
	chat()
299
end
300
local Create = LoadLibrary("RbxUtility").Create
301
CFuncs = {
302
	Part = {
303
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
304
			local Part = Create("Part")({
305
				Parent = Parent,
306
				Reflectance = Reflectance,
307
				Transparency = Transparency,
308
				CanCollide = false,
309
				Locked = true,
310
				BrickColor = BrickColor.new(tostring(BColor)),
311
				Name = Name,
312
				Size = Size,
313
				Material = Material
314
			})
315
			RemoveOutlines(Part)
316
			return Part
317
		end
318
	},
319
	Mesh = {
320
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
321
			local Msh = Create(Mesh)({
322
				Parent = Part,
323
				Offset = OffSet,
324
				Scale = Scale
325
			})
326
			if Mesh == "SpecialMesh" then
327
				Msh.MeshType = MeshType
328
				Msh.MeshId = MeshId
329
			end
330
			return Msh
331
		end
332
	},
333
	Mesh = {
334
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
335
			local Msh = Create(Mesh)({
336
				Parent = Part,
337
				Offset = OffSet,
338
				Scale = Scale
339
			})
340
			if Mesh == "SpecialMesh" then
341
				Msh.MeshType = MeshType
342
				Msh.MeshId = MeshId
343
			end
344
			return Msh
345
		end
346
	},
347
	Weld = {
348
		Create = function(Parent, Part0, Part1, C0, C1)
349
			local Weld = Create("Weld")({
350
				Parent = Parent,
351
				Part0 = Part0,
352
				Part1 = Part1,
353
				C0 = C0,
354
				C1 = C1
355
			})
356
			return Weld
357
		end
358
	},
359
	Sound = {
360
		Create = function(id, par, vol, pit)
361
			coroutine.resume(coroutine.create(function()
362
				local S = Create("Sound")({
363
					Volume = vol,
364
					Pitch = pit or 1,
365
					SoundId = id,
366
					Parent = par or workspace
367
				})
368
				wait()
369
				S:play()
370
				game:GetService("Debris"):AddItem(S, 10)
371
			end))
372
		end
373
	},
374
	LongSound = {
375
		Create = function(id, par, vol, pit)
376
			coroutine.resume(coroutine.create(function()
377
				local S = Create("Sound")({
378
					Volume = vol,
379
					Pitch = pit or 1,
380
					SoundId = id,
381
					Parent = par or workspace
382
				})
383
				wait()
384
				S:play()
385
				game:GetService("Debris"):AddItem(S, 30)
386
			end))
387
		end
388
	},
389
	ParticleEmitter = {
390
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
391
			local fp = Create("ParticleEmitter")({
392
				Parent = Parent,
393
				Color = ColorSequence.new(Color1, Color2),
394
				LightEmission = LightEmission,
395
				Size = Size,
396
				Texture = Texture,
397
				Transparency = Transparency,
398
				ZOffset = ZOffset,
399
				Acceleration = Accel,
400
				Drag = Drag,
401
				LockedToPart = LockedToPart,
402
				VelocityInheritance = VelocityInheritance,
403
				EmissionDirection = EmissionDirection,
404
				Enabled = Enabled,
405
				Lifetime = LifeTime,
406
				Rate = Rate,
407
				Rotation = Rotation,
408
				RotSpeed = RotSpeed,
409
				Speed = Speed,
410
				VelocitySpread = VelocitySpread
411
			})
412
			return fp
413
		end
414
	},
415
	CreateTemplate = {}
416
}
417
function New(Object, Parent, Name, Data)
418
	local Object = Instance.new(Object)
419
	for Index, Value in pairs(Data or {}) do
420
		Object[Index] = Value
421
	end
422
	Object.Parent = Parent
423
	Object.Name = Name
424
	return Object
425
end
426
local halocolor = BrickColor.new("Pastel light blue")
427
local halocolor2 = BrickColor.new("Really black")
428
local starcolor = BrickColor.new("Really black")
429
local lunacolor = BrickColor.new("Navy blue")
430
local lunacolor2 = BrickColor.new("Bright blue")
431
local wepcolor = BrickColor.new("Really black")
432
local maincolor = BrickColor.new("Really black")
433
local m = Instance.new("Model", char)
434
local m2 = Instance.new("Model", char)
435
local m3 = Instance.new("Model", char)
436
local mw1 = Instance.new("Model", char)
437
local mw2 = Instance.new("Model", char)
438
local extrawingmod1 = Instance.new("Model", char)
439
local extrawingmod2 = Instance.new("Model", char)
440
function CreateParta(parent, transparency, reflectance, material, brickcolor)
441
	local p = Instance.new("Part")
442
	p.TopSurface = 0
443
	p.BottomSurface = 0
444
	p.Parent = parent
445
	p.Size = Vector3.new(0.1, 0.1, 0.1)
446
	p.Transparency = transparency
447
	p.Reflectance = reflectance
448
	p.CanCollide = false
449
	p.Locked = true
450
	p.BrickColor = brickcolor
451
	p.Material = material
452
	return p
453
end
454
function CreateMesh(parent, meshtype, x1, y1, z1)
455
	local mesh = Instance.new("SpecialMesh", parent)
456
	mesh.MeshType = meshtype
457
	mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10)
458
	return mesh
459
end
460
function CreateSpecialMesh(parent, meshid, x1, y1, z1)
461
	local mesh = Instance.new("SpecialMesh", parent)
462
	mesh.MeshType = "FileMesh"
463
	mesh.MeshId = meshid
464
	mesh.Scale = Vector3.new(x1, y1, z1)
465
	return mesh
466
end
467
function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1)
468
	local mesh = Instance.new("SpecialMesh", parent)
469
	mesh.MeshType = "FileMesh"
470
	mesh.MeshId = meshid
471
	mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
472
	mesh.Scale = Vector3.new(x1, y1, z1)
473
	mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
474
	return mesh
475
end
476
function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za)
477
	local weld = Instance.new("Weld")
478
	weld.Parent = parent
479
	weld.Part0 = part0
480
	weld.Part1 = part1
481
	weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za)
482
	weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za)
483
	return weld
484
end
485
local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor)
486
CreateMesh(handle, "Brick", 0, 0, 0)
487
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))
488
local valuaring = 10
489
for i = 0, 49 do
490
	valuaring = valuaring + 10
491
	rn = CreateParta(mw2, 0, 0, "Neon", halocolor)
492
	CreateMesh(rn, "Brick", 0.25, 0.1, 0.1)
493
	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))
494
end
495
local handle = CreateParta(m, 1, 1, "Neon", maincolor)
496
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
497
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))
498
local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
499
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
500
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))
501
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
502
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
503
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))
504
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
505
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
506
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))
507
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
508
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
509
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))
510
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
511
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
512
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))
513
local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
514
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
515
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))
516
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
517
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
518
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))
519
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
520
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
521
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))
522
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
523
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
524
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))
525
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
526
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
527
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))
528
local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
529
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
530
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))
531
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
532
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
533
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))
534
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
535
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
536
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))
537
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
538
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
539
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))
540
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
541
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
542
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))
543
local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
544
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
545
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))
546
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
547
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
548
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))
549
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
550
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
551
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))
552
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
553
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
554
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))
555
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
556
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
557
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))
558
local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
559
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
560
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))
561
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
562
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
563
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))
564
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
565
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
566
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))
567
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
568
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
569
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))
570
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
571
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
572
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))
573
local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
574
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
575
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))
576
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
577
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
578
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))
579
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
580
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
581
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))
582
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
583
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
584
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))
585
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
586
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
587
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))
588
local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
589
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
590
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))
591
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
592
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
593
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))
594
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
595
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
596
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))
597
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
598
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
599
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))
600
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
601
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
602
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))
603
local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
604
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
605
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))
606
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
607
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
608
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))
609
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
610
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
611
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))
612
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
613
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
614
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))
615
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
616
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
617
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))
618
local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
619
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
620
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))
621
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
622
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
623
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))
624
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
625
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
626
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))
627
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
628
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
629
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))
630
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
631
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
632
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))
633
local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
634
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
635
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))
636
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
637
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
638
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))
639
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
640
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
641
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))
642
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
643
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
644
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))
645
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
646
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
647
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))
648
local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
649
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
650
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))
651
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
652
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
653
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))
654
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
655
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
656
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))
657
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
658
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
659
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))
660
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
661
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
662
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))
663
local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
664
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
665
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))
666
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
667
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
668
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))
669
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
670
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
671
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))
672
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
673
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
674
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))
675
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
676
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
677
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))
678
ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
679
CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
680
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))
681
ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
682
CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
683
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))
684
ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
685
CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
686
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))
687
gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
688
CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
689
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))
690
gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
691
CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
692
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))
693
gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
694
CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
695
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))
696
gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
697
CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
698
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))
699
gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
700
CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
701
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))
702
star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
703
CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
704
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))
705
starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
706
CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
707
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))
708
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
709
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
710
CreateWeld(dotsec, larm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
711
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
712
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
713
CreateWeld(dotseca, larm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
714
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
715
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
716
CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
717
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
718
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
719
CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
720
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
721
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
722
CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
723
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
724
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
725
CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
726
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
727
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
728
CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
729
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
730
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
731
CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
732
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
733
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
734
CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
735
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
736
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
737
CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
738
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
739
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
740
CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
741
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
742
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
743
CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
744
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
745
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
746
CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
747
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
748
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
749
CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
750
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
751
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
752
CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
753
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
754
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
755
CreateWeld(dotsec, larm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
756
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
757
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
758
CreateWeld(dotseca, larm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
759
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
760
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
761
CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
762
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
763
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
764
CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
765
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
766
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
767
CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
768
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
769
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
770
CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
771
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
772
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
773
CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
774
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
775
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
776
CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
777
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
778
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
779
CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
780
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
781
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
782
CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
783
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
784
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
785
CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
786
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
787
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
788
CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
789
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
790
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
791
CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
792
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
793
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
794
CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
795
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
796
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
797
CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
798
ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
799
CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
800
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))
801
ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
802
CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
803
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))
804
ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
805
CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
806
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))
807
gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
808
CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
809
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))
810
gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
811
CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
812
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))
813
gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
814
CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
815
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))
816
gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
817
CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
818
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))
819
gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
820
CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
821
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))
822
star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
823
CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
824
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))
825
starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
826
CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
827
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))
828
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
829
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
830
CreateWeld(dotsec, rarm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
831
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
832
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
833
CreateWeld(dotseca, rarm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
834
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
835
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
836
CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
837
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
838
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
839
CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
840
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
841
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
842
CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
843
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
844
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
845
CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
846
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
847
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
848
CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
849
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
850
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
851
CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
852
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
853
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
854
CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
855
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
856
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
857
CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
858
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
859
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
860
CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
861
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
862
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
863
CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
864
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
865
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
866
CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
867
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
868
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
869
CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
870
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
871
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
872
CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
873
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
874
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
875
CreateWeld(dotsec, rarm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
876
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
877
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
878
CreateWeld(dotseca, rarm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
879
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
880
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
881
CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
882
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
883
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
884
CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
885
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
886
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
887
CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
888
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
889
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
890
CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
891
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
892
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
893
CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
894
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
895
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
896
CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
897
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
898
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
899
CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
900
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
901
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
902
CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
903
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
904
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
905
CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
906
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
907
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
908
CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
909
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
910
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
911
CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
912
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
913
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
914
CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
915
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
916
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
917
CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
918
for i, v in pairs(m:GetChildren()) do
919
	if v:IsA("Part") then
920
		v.BrickColor = BrickColor.new("Really black")
921
		v.Material = "Glass"
922
	end
923
end
924
for i, v in pairs(m2:GetChildren()) do
925
	if v:IsA("Part") then
926
		v.BrickColor = BrickColor.new("Crimson")
927
		v.Material = "Granite"
928
	end
929
end
930
for i, v in pairs(m3:GetChildren()) do
931
	if v:IsA("Part") then
932
		v.BrickColor = BrickColor.new("Really red")
933
		v.Material = "Neon"
934
	end
935
end
936
for i, v in pairs(mw2:GetChildren()) do
937
	if v:IsA("Part") then
938
		v.BrickColor = BrickColor.new("Really red")
939
		v.Material = "Neon"
940
	end
941
end
942
for i, v in pairs(mw1:GetChildren()) do
943
	if v:IsA("Part") then
944
		v.Transparency = 1
945
		v.BrickColor = BrickColor.new("Really red")
946
		v.Material = "Neon"
947
	end
948
end
949
for i, v in pairs(extrawingmod1:GetChildren()) do
950
	if v:IsA("Part") then
951
		v.Transparency = 1
952
		v.BrickColor = BrickColor.new("White")
953
		v.Material = "Neon"
954
	end
955
end
956
for i, v in pairs(extrawingmod2:GetChildren()) do
957
	if v:IsA("Part") then
958
		v.Transparency = 1
959
		v.BrickColor = BrickColor.new("White")
960
		v.Material = "Neon"
961
	end
962
end
963
964
FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
965
Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
966
Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
967
FHead.CanCollide = false
968
969
970
971
local MAINRUINCOLOR = BrickColor.new("Really red")
972
function RemoveOutlines(part)
973
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
974
end
975
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
976
	local Part = Create("Part")({
977
		Parent = Parent,
978
		Reflectance = Reflectance,
979
		Transparency = Transparency,
980
		CanCollide = false,
981
		Locked = true,
982
		BrickColor = BrickColor.new(tostring(BColor)),
983
		Name = Name,
984
		Size = Size,
985
		Material = Material
986
	})
987
	Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
988
	RemoveOutlines(Part)
989
	return Part
990
end
991
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
992
	local Msh = Create(Mesh)({
993
		Parent = Part,
994
		Offset = OffSet,
995
		Scale = Scale
996
	})
997
	if Mesh == "SpecialMesh" then
998
		Msh.MeshType = MeshType
999
		Msh.MeshId = MeshId
1000
	end
1001
	return Msh
1002
end
1003
function CreateWeld(Parent, Part0, Part1, C0, C1)
1004
	local Weld = Create("Weld")({
1005
		Parent = Parent,
1006
		Part0 = Part0,
1007
		Part1 = Part1,
1008
		C0 = C0,
1009
		C1 = C1
1010
	})
1011
	return Weld
1012
end
1013
Player = game:GetService("Players").LocalPlayer
1014
Character = Player.Character
1015
PlayerGui = Player.PlayerGui
1016
Backpack = Player.Backpack
1017
Torso = Character.Torso
1018
Head = Character.Head
1019
Humanoid = Character.Humanoid
1020
m = Instance.new("Model", Character)
1021
LeftArm = Character["Left Arm"]
1022
LeftLeg = Character["Left Leg"]
1023
RightArm = Character["Right Arm"]
1024
RightLeg = Character["Right Leg"]
1025
LS = Torso["Left Shoulder"]
1026
LH = Torso["Left Hip"]
1027
RS = Torso["Right Shoulder"]
1028
RH = Torso["Right Hip"]
1029
Face = Head.face
1030
Neck = Torso.Neck
1031
it = Instance.new
1032
attacktype = 1
1033
vt = Vector3.new
1034
cf = CFrame.new
1035
euler = CFrame.fromEulerAnglesXYZ
1036
angles = CFrame.Angles
1037
cloaked = false
1038
necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
1039
necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
1040
LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
1041
LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
1042
RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
1043
RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
1044
RootPart = Character.HumanoidRootPart
1045
RootJoint = RootPart.RootJoint
1046
RootCF = euler(-1.57, 0, 3.14)
1047
attack = false
1048
attackdebounce = false
1049
deb = false
1050
equipped = true
1051
hand = false
1052
MMouse = nil
1053
combo = 0
1054
mana = 0
1055
trispeed = 0.2
1056
attackmode = "none"
1057
local idle = 0
1058
local Anim = "Idle"
1059
local Effects = {}
1060
local gun = false
1061
local shoot = false
1062
local sine = 0
1063
local change = 1
1064
player = nil
1065
local toggleTag = true
1066
local txt = Instance.new("BillboardGui", Head)
1067
txt.Adornee = nil
1068
txt.Name = "NameDetect"
1069
txt.Size = UDim2.new(4, 0, 1.2, 0)
1070
txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
1071
local text = Instance.new("TextLabel", txt)
1072
text.Size = UDim2.new(5, 0, 3.5, 0)
1073
text.FontSize = "Size8"
1074
text.TextScaled = true
1075
text.TextTransparency = 0
1076
text.BackgroundTransparency = 1
1077
text.TextTransparency = 0
1078
text.TextStrokeTransparency = 0
1079
text.Font = "Fantasy"
1080
text.TextStrokeColor3 = Color3.new(1, 0, 0)
1081
text.TextColor3 = Color3.new(0, 0, 0)
1082
text.Text = "Sweet Dreams"
1083
function RecolorTextAndRename(name, col1, col2)
1084
	text.TextStrokeColor3 = col2
1085
	text.TextColor3 = col1
1086
	text.Text = name
1087
end
1088
mouse = Player:GetMouse()
1089
RSH, LSH = nil, nil
1090
RW, LW = Instance.new("Weld"), Instance.new("Weld")
1091
RW.Name = "Right Shoulder"
1092
LW.Name = "Left Shoulder"
1093
LH = Torso["Left Hip"]
1094
RH = Torso["Right Hip"]
1095
TorsoColor = Torso.BrickColor
1096
function NoOutline(Part)
1097
	Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
1098
end
1099
player = Player
1100
ch = Character
1101
RSH = ch.Torso["Right Shoulder"]
1102
LSH = ch.Torso["Left Shoulder"]
1103
RSH.Parent = nil
1104
LSH.Parent = nil
1105
RW.Name = "Right Shoulder"
1106
RW.Part0 = ch.Torso
1107
RW.C0 = cf(1.5, 0.5, 0)
1108
RW.C1 = cf(0, 0.5, 0)
1109
RW.Part1 = ch["Right Arm"]
1110
RW.Parent = ch.Torso
1111
LW.Name = "Left Shoulder"
1112
LW.Part0 = ch.Torso
1113
LW.C0 = cf(-1.5, 0.5, 0)
1114
LW.C1 = cf(0, 0.5, 0)
1115
LW.Part1 = ch["Left Arm"]
1116
LW.Parent = ch.Torso
1117
local Stats = Instance.new("BoolValue")
1118
Stats.Name = "Stats"
1119
Stats.Parent = Character
1120
local Atk = Instance.new("NumberValue")
1121
Atk.Name = "Damage"
1122
Atk.Parent = Stats
1123
Atk.Value = 1
1124
local Def = Instance.new("NumberValue")
1125
Def.Name = "Defense"
1126
Def.Parent = Stats
1127
Def.Value = 1
1128
local Speed = Instance.new("NumberValue")
1129
Speed.Name = "Speed"
1130
Speed.Parent = Stats
1131
Speed.Value = 1
1132
local Mvmt = Instance.new("NumberValue")
1133
Mvmt.Name = "Movement"
1134
Mvmt.Parent = Stats
1135
Mvmt.Value = 1
1136
local donum = 0
1137
function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
1138
	local fp = it("Part")
1139
	fp.formFactor = formfactor
1140
	fp.Parent = parent
1141
	fp.Reflectance = reflectance
1142
	fp.Transparency = transparency
1143
	fp.CanCollide = false
1144
	fp.Locked = true
1145
	fp.BrickColor = brickcolor
1146
	fp.Name = name
1147
	fp.Size = size
1148
	fp.Position = Torso.Position
1149
	NoOutline(fp)
1150
	fp.Material = "SmoothPlastic"
1151
	fp:BreakJoints()
1152
	return fp
1153
end
1154
function mesh(Mesh, part, meshtype, meshid, offset, scale)
1155
	local mesh = it(Mesh)
1156
	mesh.Parent = part
1157
	if Mesh == "SpecialMesh" then
1158
		mesh.MeshType = meshtype
1159
		if meshid ~= "nil" then
1160
			mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
1161
		end
1162
	end
1163
	mesh.Offset = offset
1164
	mesh.Scale = scale
1165
	return mesh
1166
end
1167
function weld(parent, part0, part1, c0)
1168
	local weld = it("Weld")
1169
	weld.Parent = parent
1170
	weld.Part0 = part0
1171
	weld.Part1 = part1
1172
	weld.C0 = c0
1173
	return weld
1174
end
1175
local Color1 = Torso.BrickColor
1176
local bodvel = Instance.new("BodyVelocity")
1177
local bg = Instance.new("BodyGyro")
1178
function swait(num)
1179
	if num == 0 or num == nil then
1180
		game:service("RunService").Stepped:wait(0)
1181
	else
1182
		for i = 0, num do
1183
			game:service("RunService").Stepped:wait(0)
1184
		end
1185
	end
1186
end
1187
local r = 255
1188
local g = 0
1189
local b = 0
1190
coroutine.resume(coroutine.create(function()
1191
	while wait() do
1192
		for i = 0, 50.8 do
1193
			swait()
1194
			g = g + 5
1195
		end
1196
		for i = 0, 50.8 do
1197
			swait()
1198
			r = r - 5
1199
		end
1200
		for i = 0, 50.8 do
1201
			swait()
1202
			b = b + 5
1203
		end
1204
		for i = 0, 50.8 do
1205
			swait()
1206
			g = g - 5
1207
		end
1208
		for i = 0, 50.8 do
1209
			swait()
1210
			r = r + 5
1211
		end
1212
		for i = 0, 50.8 do
1213
			swait()
1214
			b = b - 5
1215
		end
1216
	end
1217
end))
1218
function so(id, par, vol, pit)
1219
	coroutine.resume(coroutine.create(function()
1220
		local sou = Instance.new("Sound", par or workspace)
1221
		sou.Volume = vol
1222
		sou.Pitch = pit or 1
1223
		sou.SoundId = id
1224
		swait()
1225
		sou:play()
1226
		game:GetService("Debris"):AddItem(sou, 6)
1227
	end))
1228
end
1229
function clerp(a, b, t)
1230
	local qa = {
1231
		QuaternionFromCFrame(a)
1232
	}
1233
	local qb = {
1234
		QuaternionFromCFrame(b)
1235
	}
1236
	local ax, ay, az = a.x, a.y, a.z
1237
	local bx, by, bz = b.x, b.y, b.z
1238
	local _t = 1 - t
1239
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
1240
end
1241
function QuaternionFromCFrame(cf)
1242
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
1243
	local trace = m00 + m11 + m22
1244
	if trace > 0 then
1245
		local s = math.sqrt(1 + trace)
1246
		local recip = 0.5 / s
1247
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
1248
	else
1249
		local i = 0
1250
		if m00 < m11 then
1251
			i = 1
1252
		end
1253
		if m22 > (i == 0 and m00 or m11) then
1254
			i = 2
1255
		end
1256
		if i == 0 then
1257
			local s = math.sqrt(m00 - m11 - m22 + 1)
1258
			local recip = 0.5 / s
1259
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
1260
		elseif i == 1 then
1261
			local s = math.sqrt(m11 - m22 - m00 + 1)
1262
			local recip = 0.5 / s
1263
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
1264
		elseif i == 2 then
1265
			local s = math.sqrt(m22 - m00 - m11 + 1)
1266
			local recip = 0.5 / s
1267
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
1268
		end
1269
	end
1270
end
1271
function QuaternionToCFrame(px, py, pz, x, y, z, w)
1272
	local xs, ys, zs = x + x, y + y, z + z
1273
	local wx, wy, wz = w * xs, w * ys, w * zs
1274
	local xx = x * xs
1275
	local xy = x * ys
1276
	local xz = x * zs
1277
	local yy = y * ys
1278
	local yz = y * zs
1279
	local zz = z * zs
1280
	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))
1281
end
1282
function QuaternionSlerp(a, b, t)
1283
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
1284
	local startInterp, finishInterp
1285
	if cosTheta >= 1.0E-4 then
1286
		if 1 - cosTheta > 1.0E-4 then
1287
			local theta = math.acos(cosTheta)
1288
			local invSinTheta = 1 / math.sin(theta)
1289
			startInterp = math.sin((1 - t) * theta) * invSinTheta
1290
			finishInterp = math.sin(t * theta) * invSinTheta
1291
		else
1292
			startInterp = 1 - t
1293
			finishInterp = t
1294
		end
1295
	elseif 1 + cosTheta > 1.0E-4 then
1296
		local theta = math.acos(-cosTheta)
1297
		local invSinTheta = 1 / math.sin(theta)
1298
		startInterp = math.sin((t - 1) * theta) * invSinTheta
1299
		finishInterp = math.sin(t * theta) * invSinTheta
1300
	else
1301
		startInterp = t - 1
1302
		finishInterp = t
1303
	end
1304
	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
1305
end
1306
local CFrameFromTopBack = function(at, top, back)
1307
	local right = top:Cross(back)
1308
	return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
1309
end
1310
function Triangle(a, b, c)
1311
	local edg1 = (c - a):Dot((b - a).unit)
1312
	local edg2 = (a - b):Dot((c - b).unit)
1313
	local edg3 = (b - c):Dot((a - c).unit)
1314
	if edg1 <= (b - a).magnitude and edg1 >= 0 then
1315
		a, b = a, b
1316
	elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
1317
		a, b, c = b, c, a
1318
	elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
1319
		a, b, c = c, a, b
1320
	else
1321
		assert(false, "unreachable")
1322
	end
1323
	local len1 = (c - a):Dot((b - a).unit)
1324
	local len2 = (b - a).magnitude - len1
1325
	local width = (a + (b - a).unit * len1 - c).magnitude
1326
	local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
1327
	local list = {}
1328
	if len1 > 0.01 then
1329
		local w1 = Instance.new("WedgePart", m)
1330
		game:GetService("Debris"):AddItem(w1, 5)
1331
		w1.Material = "SmoothPlastic"
1332
		w1.FormFactor = "Custom"
1333
		w1.BrickColor = BrickColor.new("Really red")
1334
		w1.Transparency = 0
1335
		w1.Reflectance = 0
1336
		w1.Material = "SmoothPlastic"
1337
		w1.CanCollide = false
1338
		local l1 = Instance.new("PointLight", w1)
1339
		l1.Color = Color3.new(170, 0, 0)
1340
		NoOutline(w1)
1341
		local sz = Vector3.new(0.2, width, len1)
1342
		w1.Size = sz
1343
		local sp = Instance.new("SpecialMesh", w1)
1344
		sp.MeshType = "Wedge"
1345
		sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
1346
		w1:BreakJoints()
1347
		w1.Anchored = true
1348
		w1.Parent = workspace
1349
		w1.Transparency = 0.7
1350
		table.insert(Effects, {
1351
			w1,
1352
			"Disappear",
1353
			0.01
1354
		})
1355
		w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
1356
		table.insert(list, w1)
1357
	end
1358
	if len2 > 0.01 then
1359
		local w2 = Instance.new("WedgePart", m)
1360
		game:GetService("Debris"):AddItem(w2, 5)
1361
		w2.Material = "SmoothPlastic"
1362
		w2.FormFactor = "Custom"
1363
		w2.BrickColor = BrickColor.new("Really red")
1364
		w2.Transparency = 0
1365
		w2.Reflectance = 0
1366
		w2.Material = "SmoothPlastic"
1367
		w2.CanCollide = false
1368
		local l2 = Instance.new("PointLight", w2)
1369
		l2.Color = Color3.new(170, 0, 0)
1370
		NoOutline(w2)
1371
		local sz = Vector3.new(0.2, width, len2)
1372
		w2.Size = sz
1373
		local sp = Instance.new("SpecialMesh", w2)
1374
		sp.MeshType = "Wedge"
1375
		sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
1376
		w2:BreakJoints()
1377
		w2.Anchored = true
1378
		w2.Parent = workspace
1379
		w2.Transparency = 0.7
1380
		table.insert(Effects, {
1381
			w2,
1382
			"Disappear",
1383
			0.01
1384
		})
1385
		w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
1386
		table.insert(list, w2)
1387
	end
1388
	return unpack(list)
1389
end
1390
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1391
	if hit.Parent == nil then
1392
		return
1393
	end
1394
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
1395
	for _, v in pairs(hit.Parent:children()) do
1396
		if v:IsA("Humanoid") then
1397
			h = v
1398
		end
1399
	end
1400
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
1401
		if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1402
			return
1403
		end
1404
		local c = Create("ObjectValue")({
1405
			Name = "creator",
1406
			Value = game:service("Players").LocalPlayer,
1407
			Parent = h
1408
		})
1409
		game:GetService("Debris"):AddItem(c, 0.5)
1410
		if HitSound ~= nil and HitPitch ~= nil then
1411
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
1412
		end
1413
		local Damage = math.random(minim, maxim)
1414
		local blocked = false
1415
		local block = hit.Parent:findFirstChild("Block")
1416
		if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1417
			blocked = true
1418
			block.Value = block.Value - 1
1419
			print(block.Value)
1420
		end
1421
		if blocked == false then
1422
			HitHealth = h.Health
1423
			h.Health = h.Health - Damage
1424
			if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
1425
				print("gained kill")
1426
			end
1427
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1428
		else
1429
			h.Health = h.Health - Damage / 2
1430
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1431
		end
1432
		if Type == "Knockdown" then
1433
			local hum = hit.Parent.Humanoid
1434
			hum.PlatformStand = true
1435
			coroutine.resume(coroutine.create(function(HHumanoid)
1436
				swait(1)
1437
				HHumanoid.PlatformStand = false
1438
			end), hum)
1439
			local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1440
			local bodvol = Create("BodyVelocity")({
1441
				velocity = angle * knockback,
1442
				P = 5000,
1443
				maxForce = Vector3.new(8000, 8000, 8000),
1444
				Parent = hit
1445
			})
1446
			local rl = Create("BodyAngularVelocity")({
1447
				P = 3000,
1448
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1449
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1450
				Parent = hit
1451
			})
1452
			game:GetService("Debris"):AddItem(bodvol, 0.5)
1453
			game:GetService("Debris"):AddItem(rl, 0.5)
1454
		elseif Type == "Normal" then
1455
			local vp = Create("BodyVelocity")({
1456
				P = 500,
1457
				maxForce = Vector3.new(math.huge, 0, math.huge),
1458
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
1459
			})
1460
			if knockback > 0 then
1461
				vp.Parent = hit.Parent.Head
1462
			end
1463
			game:GetService("Debris"):AddItem(vp, 0.5)
1464
		elseif Type == "Up" then
1465
			local bodyVelocity = Create("BodyVelocity")({
1466
				velocity = Vector3.new(0, 20, 0),
1467
				P = 5000,
1468
				maxForce = Vector3.new(8000, 8000, 8000),
1469
				Parent = hit
1470
			})
1471
			game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1472
			local bodyVelocity = Create("BodyVelocity")({
1473
				velocity = Vector3.new(0, 20, 0),
1474
				P = 5000,
1475
				maxForce = Vector3.new(8000, 8000, 8000),
1476
				Parent = hit
1477
			})
1478
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
1479
		elseif Type == "Leech" then
1480
			local hum = hit.Parent.Humanoid
1481
			if hum ~= nil then
1482
				for i = 0, 2 do
1483
					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)
1484
				end
1485
				Humanoid.Health = Humanoid.Health + 10
1486
			end
1487
		elseif Type == "UpKnock" then
1488
			local hum = hit.Parent.Humanoid
1489
			hum.PlatformStand = true
1490
			if hum ~= nil then
1491
				hitr = true
1492
			end
1493
			coroutine.resume(coroutine.create(function(HHumanoid)
1494
				swait(5)
1495
				HHumanoid.PlatformStand = false
1496
				hitr = false
1497
			end), hum)
1498
			local bodyVelocity = Create("BodyVelocity")({
1499
				velocity = Vector3.new(0, 20, 0),
1500
				P = 5000,
1501
				maxForce = Vector3.new(8000, 8000, 8000),
1502
				Parent = hit
1503
			})
1504
			game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1505
			local bodyVelocity = Create("BodyVelocity")({
1506
				velocity = Vector3.new(0, 20, 0),
1507
				P = 5000,
1508
				maxForce = Vector3.new(8000, 8000, 8000),
1509
				Parent = hit
1510
			})
1511
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
1512
		elseif Type == "Snare" then
1513
			local bp = Create("BodyPosition")({
1514
				P = 2000,
1515
				D = 100,
1516
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
1517
				position = hit.Parent.Torso.Position,
1518
				Parent = hit.Parent.Torso
1519
			})
1520
			game:GetService("Debris"):AddItem(bp, 1)
1521
		elseif Type == "Slashnare" then
1522
			Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
1523
			for i = 1, math.random(4, 5) do
1524
				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)
1525
			end
1526
			local bp = Create("BodyPosition")({
1527
				P = 2000,
1528
				D = 100,
1529
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
1530
				position = hit.Parent.Torso.Position,
1531
				Parent = hit.Parent.Torso
1532
			})
1533
			game:GetService("Debris"):AddItem(bp, 1)
1534
		elseif Type == "Spike" then
1535
			CreateBigIceSword(hit.Parent.Torso.CFrame)
1536
			local bp = Create("BodyPosition")({
1537
				P = 2000,
1538
				D = 100,
1539
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
1540
				position = hit.Parent.Torso.Position,
1541
				Parent = hit.Parent.Torso
1542
			})
1543
			game:GetService("Debris"):AddItem(bp, 1)
1544
		elseif Type == "Freeze" then
1545
			local BodPos = Create("BodyPosition")({
1546
				P = 50000,
1547
				D = 1000,
1548
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
1549
				position = hit.Parent.Torso.Position,
1550
				Parent = hit.Parent.Torso
1551
			})
1552
			local BodGy = Create("BodyGyro")({
1553
				maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
1554
				P = 20000,
1555
				Parent = hit.Parent.Torso,
1556
				cframe = hit.Parent.Torso.CFrame
1557
			})
1558
			hit.Parent.Torso.Anchored = true
1559
			coroutine.resume(coroutine.create(function(Part)
1560
				swait(1.5)
1561
				Part.Anchored = false
1562
			end), hit.Parent.Torso)
1563
			game:GetService("Debris"):AddItem(BodPos, 3)
1564
			game:GetService("Debris"):AddItem(BodGy, 3)
1565
		end
1566
		local debounce = Create("BoolValue")({
1567
			Name = "DebounceHit",
1568
			Parent = hit.Parent,
1569
			Value = true
1570
		})
1571
		game:GetService("Debris"):AddItem(debounce, Delay)
1572
		c = Instance.new("ObjectValue")
1573
		c.Name = "creator"
1574
		c.Value = Player
1575
		c.Parent = h
1576
		game:GetService("Debris"):AddItem(c, 0.5)
1577
	end
1578
end
1579
function ShowDamage(Pos, Text, Time, Color)
1580
	local Rate = 0.03333333333333333
1581
	local Pos = Pos or Vector3.new(0, 0, 0)
1582
	local Text = Text or ""
1583
	local Time = Time or 2
1584
	local Color = Color or Color3.new(1, 0, 1)
1585
	local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1586
	EffectPart.Anchored = true
1587
	local BillboardGui = Create("BillboardGui")({
1588
		Size = UDim2.new(3, 0, 3, 0),
1589
		Adornee = EffectPart,
1590
		Parent = EffectPart
1591
	})
1592
	local TextLabel = Create("TextLabel")({
1593
		BackgroundTransparency = 1,
1594
		Size = UDim2.new(1, 0, 1, 0),
1595
		Text = Text,
1596
		TextColor3 = Color,
1597
		TextScaled = true,
1598
		Font = Enum.Font.ArialBold,
1599
		Parent = BillboardGui
1600
	})
1601
	game.Debris:AddItem(EffectPart, Time + 0.1)
1602
	EffectPart.Parent = game:GetService("Workspace")
1603
	delay(0, function()
1604
		local Frames = Time / Rate
1605
		for Frame = 1, Frames do
1606
			wait(Rate)
1607
			local Percent = Frame / Frames
1608
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1609
			TextLabel.TextTransparency = Percent
1610
		end
1611
		if EffectPart and EffectPart.Parent then
1612
			EffectPart:Destroy()
1613
		end
1614
	end)
1615
end
1616
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
1617
	for _, c in pairs(workspace:children()) do
1618
		local hum = c:findFirstChildOfClass("Humanoid")
1619
		if hum ~= nil then
1620
			local head = c:findFirstChild("Head")
1621
			if head ~= nil then
1622
				local targ = head.Position - Part.Position
1623
				local mag = targ.magnitude
1624
				if magni >= mag and c.Name ~= Player.Name then
1625
					Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1626
				end
1627
			end
1628
		end
1629
	end
1630
end
1631
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
1632
	for _, c in pairs(workspace:children()) do
1633
		local hum = c:findFirstChild("Humanoid")
1634
		if hum ~= nil then
1635
			local head = c:findFirstChild("Torso")
1636
			if head ~= nil then
1637
				local targ = head.Position - Part.Position
1638
				local mag = targ.magnitude
1639
				if magni >= mag and c.Name ~= Player.Name then
1640
					MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
1641
					Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1642
				end
1643
			end
1644
		end
1645
	end
1646
end
1647
function rayCast(Pos, Dir, Max, Ignore)
1648
	return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
1649
end
1650
function SkullEffect(brickcolor, cframe, x1, y1, z1, delay)
1651
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1652
	prt.Anchored = true
1653
	prt.CFrame = cframe
1654
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
1655
	game:GetService("Debris"):AddItem(prt, 2)
1656
	CF = prt.CFrame
1657
	coroutine.resume(coroutine.create(function(Part, Mesh, TehCF)
1658
		for i = 0, 1, 0.2 do
1659
			wait()
1660
			Part.CFrame = CF * cf(0, 0, -0.4)
1661
		end
1662
		for i = 0, 1, delay do
1663
			wait()
1664
			Mesh.Scale = Mesh.Scale
1665
		end
1666
		for i = 0, 1, 0.1 do
1667
			wait()
1668
			Part.Transparency = i
1669
		end
1670
		Part.Parent = nil
1671
	end), prt, msh, CF)
1672
end
1673
function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1674
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1675
	prt.Anchored = true
1676
	prt.Material = "Neon"
1677
	prt.CFrame = cframe
1678
	prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1679
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1680
	game:GetService("Debris"):AddItem(prt, 5)
1681
	coroutine.resume(coroutine.create(function(Part, Mesh)
1682
		for i = 0, 1, delay do
1683
			swait()
1684
			Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1685
			Part.Transparency = i
1686
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1687
		end
1688
		Part.Parent = nil
1689
	end), prt, msh)
1690
end
1691
function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
1692
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1693
	prt.Anchored = true
1694
	prt.Material = "Neon"
1695
	prt.CFrame = cframe
1696
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1697
	game:GetService("Debris"):AddItem(prt, 5)
1698
	coroutine.resume(coroutine.create(function(Part, Mesh)
1699
		local rtype = rottype
1700
		for i = 0, 1, delay do
1701
			swait()
1702
			if rtype == 1 then
1703
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1704
			elseif rtype == 2 then
1705
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1706
			end
1707
			Part.Transparency = i
1708
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1709
		end
1710
		Part.Parent = nil
1711
	end), prt, msh)
1712
end
1713
function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1714
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1715
	prt.Anchored = true
1716
	prt.CFrame = cframe
1717
	prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1718
	msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1719
	game:GetService("Debris"):AddItem(prt, 5)
1720
	coroutine.resume(coroutine.create(function(Part, Mesh)
1721
		for i = 0, 1, delay do
1722
			wait()
1723
			Part.Transparency = i
1724
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1725
		end
1726
		Part.Parent = nil
1727
	end), prt, msh)
1728
end
1729
function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
1730
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1731
	prt.Anchored = true
1732
	prt.Material = "Neon"
1733
	prt.CFrame = cframe
1734
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1735
	game:GetService("Debris"):AddItem(prt, 5)
1736
	coroutine.resume(coroutine.create(function(Part, Mesh)
1737
		local rtype = rottype
1738
		for i = 0, 1, delay do
1739
			swait()
1740
			if rtype == 1 then
1741
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1742
			elseif rtype == 2 then
1743
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1744
			end
1745
			Part.Transparency = i
1746
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1747
		end
1748
		Part.Parent = nil
1749
	end), prt, msh)
1750
end
1751
function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
1752
	local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1753
	prt.Anchored = true
1754
	prt.Material = "Neon"
1755
	prt.CFrame = cframe
1756
	local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
1757
	local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
1758
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
1759
	game:GetService("Debris"):AddItem(prt, 5)
1760
	coroutine.resume(coroutine.create(function(Part, Mesh)
1761
		local rtype = rottype
1762
		for i = 0, 1, delay do
1763
			swait()
1764
			if rtype == 1 then
1765
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1766
			elseif rtype == 2 then
1767
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1768
			end
1769
			dec.Transparency = i
1770
			dec2.Transparency = i
1771
			Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
1772
		end
1773
		Part.Parent = nil
1774
	end), prt, msh)
1775
end
1776
function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
1777
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1778
	prt.Anchored = true
1779
	prt.Material = "Neon"
1780
	prt.CFrame = cframe
1781
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
1782
	game:GetService("Debris"):AddItem(prt, 5)
1783
	coroutine.resume(coroutine.create(function(Part, Mesh)
1784
		local rtype = rottype
1785
		for i = 0, 1, delay do
1786
			swait()
1787
			if rtype == 1 then
1788
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1789
			elseif rtype == 2 then
1790
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1791
			end
1792
			prt.Transparency = i
1793
			Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
1794
		end
1795
		Part.Parent = nil
1796
	end), prt, msh)
1797
end
1798
function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
1799
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1800
	prt.Anchored = true
1801
	prt.Material = "Neon"
1802
	prt.CFrame = cframe
1803
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
1804
	game:GetService("Debris"):AddItem(prt, 5)
1805
	coroutine.resume(coroutine.create(function(Part, Mesh)
1806
		local rtype = rottype
1807
		for i = 0, 1, delay do
1808
			swait()
1809
			if rtype == 1 then
1810
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
1811
			elseif rtype == 2 then
1812
				prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
1813
			end
1814
			prt.Transparency = i
1815
			Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
1816
		end
1817
		Part.Parent = nil
1818
	end), prt, msh)
1819
end
1820
function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
1821
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1822
	prt.Anchored = true
1823
	prt.Material = "Neon"
1824
	prt.CFrame = cframe
1825
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1826
	game:GetService("Debris"):AddItem(prt, 5)
1827
	coroutine.resume(coroutine.create(function(Part, Mesh)
1828
		local rtype = rottype
1829
		for i = 0, 1, delay do
1830
			swait()
1831
			if rtype == 1 then
1832
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1833
			elseif rtype == 2 then
1834
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1835
			end
1836
			prt.Transparency = i
1837
			Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
1838
		end
1839
		Part.Parent = nil
1840
	end), prt, msh)
1841
end
1842
function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
1843
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1844
	prt.Anchored = true
1845
	prt.Material = "Neon"
1846
	prt.CFrame = cframe
1847
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1848
	game:GetService("Debris"):AddItem(prt, 5)
1849
	coroutine.resume(coroutine.create(function(Part, Mesh)
1850
		local rtype = rottype
1851
		for i = 0, 1, delay do
1852
			swait()
1853
			if rtype == 1 then
1854
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1855
			elseif rtype == 2 then
1856
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1857
			end
1858
			prt.Transparency = i
1859
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1860
		end
1861
		Part.Parent = nil
1862
	end), prt, msh)
1863
end
1864
function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
1865
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1866
	prt.Anchored = false
1867
	prt.CFrame = cframe
1868
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1869
	local wld = weld(prt, prt, Parent, cframe)
1870
	game:GetService("Debris"):AddItem(prt, 5)
1871
	coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
1872
		for i = 0, 1, delay do
1873
			wait()
1874
			Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
1875
			Part.Transparency = i
1876
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1877
		end
1878
		Part.Parent = nil
1879
	end), prt, msh, wld)
1880
end
1881
function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
1882
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1883
	prt.Anchored = false
1884
	prt.CFrame = cframe
1885
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1886
	local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
1887
	game:GetService("Debris"):AddItem(prt, 5)
1888
	coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
1889
		for i = 0, 1, delay do
1890
			wait()
1891
			Weld.C0 = euler(i * 20, 0, 0)
1892
			Part.Transparency = i
1893
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1894
		end
1895
		Part.Parent = nil
1896
	end), prt, msh, wld)
1897
end
1898
function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1899
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1900
	prt.Anchored = true
1901
	prt.CFrame = cframe
1902
	local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1903
	game:GetService("Debris"):AddItem(prt, 2)
1904
	coroutine.resume(coroutine.create(function(Part, Mesh)
1905
		for i = 0, 1, delay do
1906
			wait()
1907
			Part.CFrame = Part.CFrame
1908
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1909
			local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1910
			prt2.Anchored = true
1911
			prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1912
			local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
1913
			game:GetService("Debris"):AddItem(prt2, 2)
1914
			coroutine.resume(coroutine.create(function(Part, Mesh)
1915
				for i = 0, 1, 0.1 do
1916
					wait()
1917
					Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
1918
				end
1919
				Part.Parent = nil
1920
			end), prt2, msh2)
1921
		end
1922
		for i = 0, 1, delay * 2 do
1923
			wait()
1924
			Part.CFrame = Part.CFrame
1925
			Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
1926
		end
1927
		Part.Parent = nil
1928
	end), prt, msh)
1929
end
1930
function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1931
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1932
	prt.Anchored = true
1933
	prt.CFrame = cframe
1934
	local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1935
	game:GetService("Debris"):AddItem(prt, 2)
1936
	coroutine.resume(coroutine.create(function(Part, Mesh)
1937
		for i = 0, 1, delay do
1938
			wait()
1939
			Part.CFrame = Part.CFrame
1940
			Part.Transparency = i
1941
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1942
		end
1943
		Part.Parent = nil
1944
	end), prt, msh)
1945
end
1946
function BreakEffect(brickcolor, cframe, x1, y1, z1)
1947
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1948
	prt.Anchored = true
1949
	prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1950
	local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1951
	game:GetService("Debris"):AddItem(prt, 2)
1952
	coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
1953
		CF = Part.CFrame
1954
		Numbb = 0
1955
		randnumb = math.random() / 10
1956
		rand1 = math.random() / 10
1957
		for i = 0, 1, rand1 do
1958
			wait()
1959
			CF = CF * cf(0, math.random() / 2, 0)
1960
			Part.CFrame = CF * euler(Numbb, 0, 0)
1961
			Part.Transparency = i
1962
			Numbb = Numbb + randnumb
1963
		end
1964
		Part.Parent = nil
1965
	end), prt, CF, Numbb, randnumb)
1966
end
1967
function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1968
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1969
	prt.Anchored = true
1970
	prt.CFrame = cframe
1971
	msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
1972
	game:GetService("Debris"):AddItem(prt, 5)
1973
	coroutine.resume(coroutine.create(function(Part, Mesh)
1974
		for i = 0, 1, delay do
1975
			wait()
1976
			Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
1977
			Part.Transparency = i
1978
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1979
		end
1980
		Part.Parent = nil
1981
	end), prt, msh)
1982
end
1983
function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1984
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1985
	prt.Anchored = true
1986
	prt.CFrame = cframe
1987
	msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
1988
	game:GetService("Debris"):AddItem(prt, 2)
1989
	coroutine.resume(coroutine.create(function(Part, Mesh)
1990
		for i = 0, 1, delay do
1991
			wait()
1992
			Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
1993
			Part.Transparency = i
1994
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1995
		end
1996
		Part.Parent = nil
1997
	end), prt, msh)
1998
end
1999
function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
2000
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
2001
	prt.Anchored = true
2002
	prt.CFrame = cframe * cf(x, y, z)
2003
	msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
2004
	game:GetService("Debris"):AddItem(prt, 5)
2005
	coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
2006
		local num = math.random()
2007
		local num2 = math.random(-3, 2) + math.random()
2008
		local numm = 0
2009
		for i = 0, 1, delay * 2 do
2010
			swait()
2011
			Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
2012
			Part.Transparency = i
2013
			numm = numm + 0.01
2014
		end
2015
		Part.Parent = nil
2016
		Mesh.Parent = nil
2017
	end), prt, msh, x, y, z)
2018
end
2019
function dmgstart(dmg, what)
2020
	hitcon = what.Touched:connect(function(hit)
2021
		local hum = hit.Parent:FindFirstChild("Humanoid")
2022
		if hum and not hum:IsDescendantOf(Character) then
2023
			hum:TakeDamage(dmg)
2024
		end
2025
	end)
2026
end
2027
function dmgstop()
2028
	hitcon:disconnect()
2029
end
2030
function Cloak()
2031
	Face.Parent = nil
2032
	cloaked = true
2033
	for _, v in pairs(Torso.Parent:children()) do
2034
		if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
2035
			coroutine.resume(coroutine.create(function()
2036
				for i = 0, 1, 0.2 do
2037
					wait()
2038
					v.Transparency = i
2039
				end
2040
				v.Transparency = 1
2041
			end))
2042
		end
2043
		if v.className == "Hat" then
2044
			hatp = v.Handle
2045
			coroutine.resume(coroutine.create(function(derp)
2046
				for i = 0, 1, 0.2 do
2047
					wait()
2048
					derp.Transparency = i
2049
				end
2050
				derp.Transparency = 1
2051
			end), hatp)
2052
		end
2053
	end
2054
	for _, v in pairs(m:children()) do
2055
		if v.className == "Part" then
2056
			coroutine.resume(coroutine.create(function()
2057
				for i = 0, 1, 0.2 do
2058
					wait()
2059
					v.Transparency = i
2060
				end
2061
				v.Transparency = 1
2062
			end))
2063
		end
2064
	end
2065
end
2066
function UnCloak()
2067
	so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
2068
	Face.Parent = Head
2069
	cloaked = false
2070
	for _, v in pairs(Torso.Parent:children()) do
2071
		if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
2072
			coroutine.resume(coroutine.create(function()
2073
				for i = 0, 1, 0.1 do
2074
					wait()
2075
					v.Transparency = v.Transparency - 0.1
2076
				end
2077
				v.Transparency = 0
2078
			end))
2079
		end
2080
		if v.className == "Hat" then
2081
			hatp = v.Handle
2082
			coroutine.resume(coroutine.create(function(derp)
2083
				for i = 0, 1, 0.1 do
2084
					wait()
2085
					derp.Transparency = derp.Transparency - 0.1
2086
				end
2087
				derp.Transparency = 0
2088
			end), hatp)
2089
		end
2090
	end
2091
	for _, v in pairs(m:children()) do
2092
		if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
2093
			coroutine.resume(coroutine.create(function()
2094
				for i = 0, 1, 0.1 do
2095
					wait()
2096
					v.Transparency = v.Transparency - 0.1
2097
				end
2098
				v.Transparency = 0
2099
			end))
2100
			v.Transparency = 0
2101
		end
2102
	end
2103
end
2104
local origcolor = BrickColor.new("Pastel light blue")
2105
function Explode(rad, par, pitch, vol, mindam, maxdam)
2106
	local expart = Instance.new("Part", char)
2107
	local expart2 = Instance.new("Part", char)
2108
	local rin = Instance.new("Part", char)
2109
	local rin2 = Instance.new("Part", char)
2110
	local partMesh = Instance.new("SpecialMesh", expart)
2111
	partMesh.MeshType = "Sphere"
2112
	local partMesh2 = Instance.new("SpecialMesh", expart2)
2113
	partMesh2.MeshType = "Sphere"
2114
	local partMesh3 = Instance.new("SpecialMesh", rin)
2115
	partMesh3.MeshType = "Brick"
2116
	local partMesh4 = Instance.new("SpecialMesh", rin2)
2117
	partMesh4.MeshType = "Brick"
2118
	CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
2119
	partMesh.Scale = vt(rad, rad, rad)
2120
	expart.Size = vt(1, 1, 1)
2121
	expart.Transparency = 0
2122
	expart.Anchored = true
2123
	expart.Material = "Neon"
2124
	expart.BrickColor = bc("White")
2125
	expart.CFrame = par.CFrame
2126
	partMesh2.Scale = vt(rad, rad, rad)
2127
	expart2.Size = vt(1.15, 1.15, 1.15)
2128
	expart2.Transparency = 0.5
2129
	expart2.Anchored = true
2130
	expart2.Material = "Neon"
2131
	expart2.BrickColor = par.BrickColor
2132
	expart2.CFrame = par.CFrame
2133
	rin.Size = vt(1.15, 1.15, 1.15)
2134
	rin.Transparency = 1
2135
	rin.Anchored = true
2136
	rin.Material = "Neon"
2137
	rin.BrickColor = par.BrickColor
2138
	rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
2139
	rin2.Size = vt(1.15, 1.15, 1.15)
2140
	rin2.Transparency = 1
2141
	rin2.Anchored = true
2142
	rin2.Material = "Neon"
2143
	rin2.BrickColor = par.BrickColor
2144
	rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
2145
	partMesh3.Scale = vt(0, 1, 0)
2146
	partMesh4.Scale = vt(0, 1, 0)
2147
	local dec2 = Instance.new("Decal", rin)
2148
	dec2.Face = "Top"
2149
	dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
2150
	dec2.Parent = rin
2151
	local dec2b = dec2:Clone()
2152
	dec2b.Face = "Bottom"
2153
	dec2b.Parent = rin
2154
	local dec2a = Instance.new("Decal", rin2)
2155
	dec2a.Face = "Top"
2156
	dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
2157
	dec2a.Parent = rin2
2158
	local dec2ab = dec2a:Clone()
2159
	dec2ab.Face = "Bottom"
2160
	dec2ab.Parent = rin2
2161
	expart.CanCollide = false
2162
	expart2.CanCollide = false
2163
	rin.CanCollide = false
2164
	rin2.CanCollide = false
2165
	MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
2166
	local value = 1 * rad / 6.5
2167
	for i = 0, 199 do
2168
		partMesh.Scale = partMesh.Scale + vt(value, value, value)
2169
		expart.CFrame = expart.CFrame
2170
		partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
2171
		expart2.CFrame = expart.CFrame
2172
		value = value - 0.035 * rad / 30
2173
		if value < 7.5 then
2174
			partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
2175
			rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
2176
			partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
2177
			rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
2178
		end
2179
		if value < 0 then
2180
			dec2.Transparency = dec2.Transparency + 0.025
2181
			dec2a.Transparency = dec2a.Transparency + 0.025
2182
			dec2b.Transparency = dec2b.Transparency + 0.025
2183
			dec2ab.Transparency = dec2ab.Transparency + 0.025
2184
			expart.Transparency = expart.Transparency + 0.025
2185
			expart2.Transparency = expart2.Transparency + 0.025
2186
			rin.Transparency = rin.Transparency + 0.025
2187
			rin2.Transparency = rin2.Transparency + 0.025
2188
		end
2189
		swait()
2190
	end
2191
	game:GetService("Debris"):AddItem(expart, 1)
2192
	game:GetService("Debris"):AddItem(expart2, 1)
2193
	game:GetService("Debris"):AddItem(rin, 1)
2194
	game:GetService("Debris"):AddItem(rin2, 1)
2195
end
2196
function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
2197
	local expart = Instance.new("Part", char)
2198
	local expart2 = Instance.new("Part", char)
2199
	local partMesh = Instance.new("SpecialMesh", expart)
2200
	partMesh.MeshType = "Sphere"
2201
	local partMesh2 = Instance.new("SpecialMesh", expart2)
2202
	partMesh2.MeshType = "Sphere"
2203
	CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
2204
	partMesh.Scale = vt(rad, rad, rad)
2205
	expart.Size = vt(1, 1, 1)
2206
	expart.Transparency = 0
2207
	expart.Anchored = true
2208
	expart.Material = "Neon"
2209
	expart.BrickColor = bc("White")
2210
	expart.CFrame = par.CFrame
2211
	partMesh2.Scale = vt(rad, rad, rad)
2212
	expart2.Size = vt(1.15, 1.15, 1.15)
2213
	expart2.Transparency = 0.5
2214
	expart2.Anchored = true
2215
	expart2.Material = "Neon"
2216
	expart2.BrickColor = par.BrickColor
2217
	expart2.CFrame = par.CFrame
2218
	expart.CanCollide = false
2219
	expart2.CanCollide = false
2220
	MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
2221
	local value = 1 * rad / 6.5
2222
	for i = 0, 75 do
2223
		partMesh.Scale = partMesh.Scale + vt(value, value, value)
2224
		expart.CFrame = expart.CFrame
2225
		partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
2226
		expart2.CFrame = expart.CFrame
2227
		value = value - 0.035 * rad / 5
2228
		if value < 0 then
2229
			value = 0
2230
			expart.Transparency = expart.Transparency + 0.05
2231
			expart2.Transparency = expart2.Transparency + 0.05
2232
		end
2233
		swait()
2234
	end
2235
	game:GetService("Debris"):AddItem(expart, 1)
2236
	game:GetService("Debris"):AddItem(expart2, 1)
2237
end
2238
function AreaDanger(rad, par, mindam, maxdam)
2239
	local expart = Instance.new("Part", char)
2240
	local partMesh = Instance.new("SpecialMesh", expart)
2241
	CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
2242
	partMesh.MeshType = "Sphere"
2243
	partMesh.Scale = vt(rad, rad, rad)
2244
	expart.Size = vt(1, 1, 1)
2245
	expart.Transparency = 0.5
2246
	expart.Anchored = true
2247
	expart.Material = "Neon"
2248
	expart.CanCollide = false
2249
	expart.BrickColor = par.BrickColor
2250
	expart.CFrame = par.CFrame
2251
	local value = 1 * rad / 5
2252
	MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
2253
	for i = 0, 14 do
2254
		wait()
2255
		partMesh.Scale = partMesh.Scale + vt(value, value, value)
2256
		expart.CFrame = expart.CFrame
2257
		value = value - 0.035 * rad
2258
		if value < 0 then
2259
			value = 0
2260
		end
2261
	end
2262
	wait(0.25)
2263
	CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
2264
	wait(0.5)
2265
	CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
2266
	CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
2267
	MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
2268
	MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
2269
	for i = 0, 14 do
2270
		wait()
2271
		partMesh.Scale = partMesh.Scale + vt(value, value, value)
2272
		expart.CFrame = expart.CFrame
2273
		value = value - 0.035 * rad / 2
2274
	end
2275
	expart.Transparency = 1
2276
	game:GetService("Debris"):AddItem(expart, 5)
2277
end
2278
function Swarmsplosions(negrad, rad, par, mindam, maxdam)
2279
	CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
2280
	CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
2281
	CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
2282
	CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
2283
	MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
2284
	MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
2285
	for i = 0, 24 do
2286
		MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 25, 0.005, math.random(1, 2))
2287
	end
2288
	for i = 0, 24 do
2289
		local expart = Instance.new("Part", char)
2290
		expart.Transparency = 1
2291
		expart.Anchored = true
2292
		expart.CanCollide = false
2293
		expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
2294
		CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
2295
		CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
2296
		MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
2297
		MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
2298
		for i = 0, 9 do
2299
			MagicShockTrailAlt2(origcolor, expart.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 5, 0.05, math.random(1, 2))
2300
		end
2301
		game:GetService("Debris"):AddItem(expart, 2)
2302
		wait(0.1)
2303
	end
2304
end
2305
function EXterPlosion(par)
2306
	CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
2307
	CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
2308
	CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
2309
	CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
2310
	MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
2311
	MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
2312
	MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
2313
	for i = 0, 24 do
2314
		MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.5, -0.5, 500, 0.1, math.random(1, 2))
2315
	end
2316
	for i = 0, 24 do
2317
		MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.25, -0.25, 50, 0.005, math.random(1, 2))
2318
	end
2319
end
2320
function ring(type, pos, scale, value)
2321
	local type = type
2322
	local rng = Instance.new("Part", char)
2323
	rng.Anchored = true
2324
	rng.BrickColor = origcolor
2325
	rng.CanCollide = false
2326
	rng.FormFactor = 3
2327
	rng.Name = "Ring"
2328
	rng.Size = Vector3.new(1, 1, 1)
2329
	rng.Transparency = 0
2330
	rng.TopSurface = 0
2331
	rng.BottomSurface = 0
2332
	rng.CFrame = pos
2333
	local rngm = Instance.new("SpecialMesh", rng)
2334
	rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2335
	rngm.Scale = scale
2336
	local scaler2 = 1
2337
	if type == "Add" then
2338
		scaler2 = 1 * value
2339
	elseif type == "Divide" then
2340
		scaler2 = 1 / value
2341
	end
2342
	coroutine.resume(coroutine.create(function()
2343
		for i = 0, 10, 0.1 do
2344
			swait()
2345
			if type == "Add" then
2346
				scaler2 = scaler2 - 0.01 * value
2347
			elseif type == "Divide" then
2348
				scaler2 = scaler2 - 0.01 / value
2349
			end
2350
			rng.Transparency = rng.Transparency + 0.01
2351
			rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2352
		end
2353
		rng:Destroy()
2354
	end))
2355
end
2356
function wave(type, pos, scale, value)
2357
	local type = type
2358
	local rng = Instance.new("Part", char)
2359
	rng.Anchored = true
2360
	rng.BrickColor = origcolor
2361
	rng.CanCollide = false
2362
	rng.FormFactor = 3
2363
	rng.Name = "Ring"
2364
	rng.Size = Vector3.new(1, 1, 1)
2365
	rng.Transparency = 0
2366
	rng.TopSurface = 0
2367
	rng.BottomSurface = 0
2368
	rng.CFrame = pos
2369
	local rngm = Instance.new("SpecialMesh", rng)
2370
	rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2371
	rngm.Scale = scale
2372
	local scaler2 = 1
2373
	if type == "Add" then
2374
		scaler2 = 1 * value
2375
	elseif type == "Divide" then
2376
		scaler2 = 1 / value
2377
	end
2378
	coroutine.resume(coroutine.create(function()
2379
		for i = 0, 10, 0.1 do
2380
			swait()
2381
			if type == "Add" then
2382
				scaler2 = scaler2 - 0.01 * value
2383
			elseif type == "Divide" then
2384
				scaler2 = scaler2 - 0.01 / value
2385
			end
2386
			rng.Transparency = rng.Transparency + 0.01
2387
			rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2388
		end
2389
		rng:Destroy()
2390
	end))
2391
end
2392
function wind(type, pos, scale, value, speed)
2393
	local type = type
2394
	local rng = Instance.new("Part", char)
2395
	rng.Anchored = true
2396
	rng.BrickColor = origcolor
2397
	rng.CanCollide = false
2398
	rng.FormFactor = 3
2399
	rng.Name = "Ring"
2400
	rng.Size = Vector3.new(1, 1, 1)
2401
	rng.Transparency = 0
2402
	rng.TopSurface = 0
2403
	rng.BottomSurface = 0
2404
	rng.CFrame = pos
2405
	local rngm = Instance.new("SpecialMesh", rng)
2406
	rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2407
	rngm.Scale = scale
2408
	local scaler2 = 1
2409
	if type == "Add" then
2410
		scaler2 = 1 * value
2411
	elseif type == "Divide" then
2412
		scaler2 = 1 / value
2413
	end
2414
	coroutine.resume(coroutine.create(function()
2415
		for i = 0, 10, 0.1 do
2416
			swait()
2417
			if type == "Add" then
2418
				scaler2 = scaler2 - 0.01 * value
2419
			elseif type == "Divide" then
2420
				scaler2 = scaler2 - 0.01 / value
2421
			end
2422
			rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
2423
			rng.Transparency = rng.Transparency + 0.01
2424
			rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2425
		end
2426
		rng:Destroy()
2427
	end))
2428
end
2429
function groundwind(type, pos, scale, value, speed)
2430
	local type = type
2431
	local rng = Instance.new("Part", char)
2432
	rng.Anchored = true
2433
	rng.BrickColor = origcolor
2434
	rng.CanCollide = false
2435
	rng.FormFactor = 3
2436
	rng.Name = "Ring"
2437
	rng.Size = Vector3.new(1, 1, 1)
2438
	rng.Transparency = 0
2439
	rng.TopSurface = 0
2440
	rng.BottomSurface = 0
2441
	rng.CFrame = pos
2442
	local rngm = Instance.new("SpecialMesh", rng)
2443
	rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2444
	rngm.Scale = scale
2445
	local scaler2 = 1
2446
	if type == "Add" then
2447
		scaler2 = 1 * value
2448
	elseif type == "Divide" then
2449
		scaler2 = 1 / value
2450
	end
2451
	coroutine.resume(coroutine.create(function()
2452
		for i = 0, 10, 0.1 do
2453
			swait()
2454
			if type == "Add" then
2455
				scaler2 = scaler2 - 0.01 * value
2456
			elseif type == "Divide" then
2457
				scaler2 = scaler2 - 0.01 / value
2458
			end
2459
			rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
2460
			rng.Transparency = rng.Transparency + 0.01
2461
			rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
2462
		end
2463
		rng:Destroy()
2464
	end))
2465
end
2466
function CameraManager()
2467
	if TwoD and not CamInterrupt then
2468
		if Humanoid.Health > 0 then
2469
			Camera.CameraSubject = Humanoid
2470
			Camera.CameraType = "Scriptable"
2471
			Humanoid.AutoRotate = false
2472
			if Booleans.GyroUse then
2473
				Directer.MaxTorque = Vec3(0, huge, 0)
2474
			else
2475
				Directer.MaxTorque = Vec3(0, 0, 0)
2476
			end
2477
			if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
2478
				if Booleans.CamFollow then
2479
					CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
2480
					Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
2481
				else
2482
					CPart.Position = RootPart.Position
2483
				end
2484
			else
2485
				local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
2486
				CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
2487
			end
2488
			Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
2489
		else
2490
			Camera.CameraSubject = Humanoid
2491
			Camera.CameraType = "Custom"
2492
			Controller.Disabled = false
2493
		end
2494
	end
2495
end
2496
function sphere(bonuspeed, type, pos, scale, value, color)
2497
	local type = type
2498
	local rng = Instance.new("Part", char)
2499
	rng.Anchored = true
2500
	rng.BrickColor = color
2501
	rng.CanCollide = false
2502
	rng.FormFactor = 3
2503
	rng.Name = "Ring"
2504
	rng.Material = "Neon"
2505
	rng.Size = Vector3.new(1, 1, 1)
2506
	rng.Transparency = 0
2507
	rng.TopSurface = 0
2508
	rng.BottomSurface = 0
2509
	rng.CFrame = pos
2510
	local rngm = Instance.new("SpecialMesh", rng)
2511
	rngm.MeshType = "Sphere"
2512
	rngm.Scale = scale
2513
	if rainbowmode == true then
2514
		rng.Color = Color3.new(r / 255, g / 255, b / 255)
2515
	end
2516
	local scaler2 = 1
2517
	if type == "Add" then
2518
		scaler2 = 1 * value
2519
	elseif type == "Divide" then
2520
		scaler2 = 1 / value
2521
	end
2522
	coroutine.resume(coroutine.create(function()
2523
		for i = 0, 10 / bonuspeed, 0.1 do
2524
			swait()
2525
			if rainbowmode == true then
2526
				rng.Color = Color3.new(r / 255, g / 255, b / 255)
2527
			end
2528
			if type == "Add" then
2529
				scaler2 = scaler2 - 0.01 * value / bonuspeed
2530
			elseif type == "Divide" then
2531
				scaler2 = scaler2 - 0.01 / value * bonuspeed
2532
			end
2533
			if chaosmode == true then
2534
				rng.BrickColor = BrickColor.random()
2535
			end
2536
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
2537
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
2538
		end
2539
		rng:Destroy()
2540
	end))
2541
end
2542
function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
2543
	local type = type
2544
	local rng = Instance.new("Part", char)
2545
	rng.Anchored = true
2546
	rng.BrickColor = color
2547
	rng.CanCollide = false
2548
	rng.FormFactor = 3
2549
	rng.Name = "Ring"
2550
	rng.Material = "Neon"
2551
	rng.Size = Vector3.new(1, 1, 1)
2552
	rng.Transparency = 0
2553
	rng.TopSurface = 0
2554
	rng.BottomSurface = 0
2555
	rng.CFrame = pos
2556
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
2557
	local rngm = Instance.new("SpecialMesh", rng)
2558
	rngm.MeshType = "Sphere"
2559
	rngm.Scale = vt(x1, y1, z1)
2560
	if rainbowmode == true then
2561
		rng.Color = Color3.new(r / 255, g / 255, b / 255)
2562
	end
2563
	local scaler2 = 1
2564
	local speeder = FastSpeed
2565
	if type == "Add" then
2566
		scaler2 = 1 * value
2567
	elseif type == "Divide" then
2568
		scaler2 = 1 / value
2569
	end
2570
	coroutine.resume(coroutine.create(function()
2571
		for i = 0, 10 / bonuspeed, 0.1 do
2572
			swait()
2573
			if rainbowmode == true then
2574
				rng.Color = Color3.new(r / 255, g / 255, b / 255)
2575
			end
2576
			if type == "Add" then
2577
				scaler2 = scaler2 - 0.01 * value / bonuspeed
2578
			elseif type == "Divide" then
2579
				scaler2 = scaler2 - 0.01 / value * bonuspeed
2580
			end
2581
			if chaosmode == true then
2582
				rng.BrickColor = BrickColor.random()
2583
			end
2584
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
2585
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
2586
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
2587
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
2588
		end
2589
		rng:Destroy()
2590
	end))
2591
end
2592
function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
2593
	local type = type
2594
	local rng = Instance.new("Part", char)
2595
	rng.Anchored = true
2596
	rng.BrickColor = color
2597
	rng.CanCollide = false
2598
	rng.FormFactor = 3
2599
	rng.Name = "Ring"
2600
	rng.Material = "Neon"
2601
	rng.Size = Vector3.new(1, 1, 1)
2602
	rng.Transparency = 1
2603
	rng.TopSurface = 0
2604
	rng.BottomSurface = 0
2605
	rng.CFrame = pos
2606
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
2607
	local rngm = Instance.new("SpecialMesh", rng)
2608
	rngm.MeshType = "Sphere"
2609
	rngm.Scale = vt(x1, y1, z1)
2610
	if rainbowmode == true then
2611
		rng.Color = Color3.new(r / 255, g / 255, b / 255)
2612
	end
2613
	local scaler2 = 1
2614
	local speeder = FastSpeed
2615
	if type == "Add" then
2616
		scaler2 = 1 * value
2617
	elseif type == "Divide" then
2618
		scaler2 = 1 / value
2619
	end
2620
	coroutine.resume(coroutine.create(function()
2621
		for i = 0, 10 / bonuspeed, 0.1 do
2622
			swait()
2623
			if rainbowmode == true then
2624
				rng.Color = Color3.new(r / 255, g / 255, b / 255)
2625
			end
2626
			if type == "Add" then
2627
				scaler2 = scaler2 - 0.01 * value / bonuspeed
2628
			elseif type == "Divide" then
2629
				scaler2 = scaler2 - 0.01 / value * bonuspeed
2630
			end
2631
			if chaosmode == true then
2632
				rng.BrickColor = BrickColor.random()
2633
			end
2634
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
2635
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
2636
			rng.Transparency = rng.Transparency - 0.01 * bonuspeed
2637
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
2638
		end
2639
		rng:Destroy()
2640
	end))
2641
end
2642
function dmg(dude)
2643
	if dude.Name ~= Character then
2644
		local bgf = Instance.new("BodyGyro", dude.Head)
2645
		bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
2646
		local val = Instance.new("BoolValue", dude)
2647
		val.Name = "IsHit"
2648
		local ds = coroutine.wrap(function()
2649
			dude:WaitForChild("Head"):BreakJoints()
2650
			wait(0.5)
2651
			targetted = nil
2652
			CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
2653
			coroutine.resume(coroutine.create(function()
2654
				for i, v in pairs(dude:GetChildren()) do
2655
					if v:IsA("Accessory") then
2656
						v:Destroy()
2657
					end
2658
					if v:IsA("Humanoid") then
2659
						v:Destroy()
2660
					end
2661
					if v:IsA("CharacterMesh") then
2662
						v:Destroy()
2663
					end
2664
					if v:IsA("Model") then
2665
						v:Destroy()
2666
					end
2667
					if v:IsA("Part") or v:IsA("MeshPart") then
2668
						for x, o in pairs(v:GetChildren()) do
2669
							if o:IsA("Decal") then
2670
								o:Destroy()
2671
							end
2672
						end
2673
						coroutine.resume(coroutine.create(function()
2674
							v.Material = "Neon"
2675
							v.CanCollide = false
2676
							local bld = Instance.new("ParticleEmitter", v)
2677
							bld.LightEmission = 1
2678
							bld.Texture = "rbxassetid://284205403"
2679
							bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
2680
							bld.Rate = 50
2681
							bld.Lifetime = NumberRange.new(1)
2682
							bld.Size = NumberSequence.new({
2683
								NumberSequenceKeypoint.new(0, 0.75, 0),
2684
								NumberSequenceKeypoint.new(1, 0, 0)
2685
							})
2686
							bld.Transparency = NumberSequence.new({
2687
								NumberSequenceKeypoint.new(0, 0, 0),
2688
								NumberSequenceKeypoint.new(1, 1, 0)
2689
							})
2690
							bld.Speed = NumberRange.new(0, 0)
2691
							bld.VelocitySpread = 50000
2692
							bld.Rotation = NumberRange.new(-500, 500)
2693
							bld.RotSpeed = NumberRange.new(-500, 500)
2694
							local sbs = Instance.new("BodyPosition", v)
2695
							sbs.P = 3000
2696
							sbs.D = 1000
2697
							sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
2698
							sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
2699
							v.Color = Color3.new(1, 1, 1)
2700
							coroutine.resume(coroutine.create(function()
2701
								for i = 0, 49 do
2702
									swait(1)
2703
									v.Transparency = v.Transparency + 0.02
2704
								end
2705
								CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
2706
								bld.Speed = NumberRange.new(1, 5)
2707
								bld.Acceleration = vt(0, 10, 0)
2708
								wait(0.5)
2709
								bld.Enabled = false
2710
								wait(3)
2711
								v:Destroy()
2712
								dude:Destroy()
2713
							end))
2714
						end))
2715
					end
2716
				end
2717
			end))
2718
		end)
2719
		ds()
2720
	end
2721
end
2722
function FindNearestHead(Position, Distance, SinglePlayer)
2723
	if SinglePlayer then
2724
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
2725
	end
2726
	local List = {}
2727
	for i, v in pairs(workspace:GetChildren()) do
2728
		if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
2729
			table.insert(List, v)
2730
		end
2731
	end
2732
	return List
2733
end
2734
function FaceMouse()
2735
	Cam = workspace.CurrentCamera
2736
	return {
2737
		CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
2738
		Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
2739
	}
2740
end
2741
function FaceMouse2()
2742
	Cam = workspace.CurrentCamera
2743
	return {
2744
		CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
2745
		Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
2746
	}
2747
end
2748
local ModeOfGlitch = 1
2749
local storehumanoidWS = 16
2750
function ExtinctiveHeartbreak()
2751
	local targetted
2752
	if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2753
		targetted = mouse.Target.Parent
2754
	end
2755
	if targetted ~= nil then
2756
		attack = true
2757
		CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
2758
		for i = 0, 9 do
2759
			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 black"), 0)
2760
		end
2761
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
2762
		local originalpos = root.CFrame
2763
		RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
2764
		for i = 0, 9 do
2765
			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 black"), 0)
2766
		end
2767
		hum.WalkSpeed = 0
2768
		targetted.Head.Anchored = true
2769
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
2770
		for i = 0, 2, 0.1 do
2771
			swait()
2772
			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)), 0.4)
2773
			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)), 0.4)
2774
			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)), 0.4)
2775
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
2776
			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)), 0.4)
2777
			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)), 0.4)
2778
		end
2779
		coroutine.resume(coroutine.create(function()
2780
			bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
2781
			bld.LightEmission = 0.1
2782
			bld.Texture = "rbxassetid://284205403"
2783
			bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
2784
			bld.Rate = 500
2785
			bld.Lifetime = NumberRange.new(1)
2786
			bld.Size = NumberSequence.new({
2787
				NumberSequenceKeypoint.new(0, 2, 0),
2788
				NumberSequenceKeypoint.new(1, 0, 0)
2789
			})
2790
			bld.Acceleration = vt(0, -25, 0)
2791
			bld.Transparency = NumberSequence.new({
2792
				NumberSequenceKeypoint.new(0, 0, 0),
2793
				NumberSequenceKeypoint.new(1, 0, 0)
2794
			})
2795
			bld.Speed = NumberRange.new(10, 50)
2796
			bld.EmissionDirection = "Front"
2797
			bld.VelocitySpread = 25
2798
			bld.Rotation = NumberRange.new(-500, 500)
2799
			bld.RotSpeed = NumberRange.new(-500, 500)
2800
		end))
2801
		coroutine.resume(coroutine.create(function()
2802
			bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
2803
			bld.LightEmission = 0.1
2804
			bld.Texture = "rbxassetid://284205403"
2805
			bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
2806
			bld.Rate = 500
2807
			bld.Lifetime = NumberRange.new(1)
2808
			bld.Size = NumberSequence.new({
2809
				NumberSequenceKeypoint.new(0, 2, 0),
2810
				NumberSequenceKeypoint.new(1, 0, 0)
2811
			})
2812
			bld.Acceleration = vt(0, -25, 0)
2813
			bld.Transparency = NumberSequence.new({
2814
				NumberSequenceKeypoint.new(0, 0, 0),
2815
				NumberSequenceKeypoint.new(1, 0, 0)
2816
			})
2817
			bld.Speed = NumberRange.new(10, 50)
2818
			bld.EmissionDirection = "Front"
2819
			bld.VelocitySpread = 25
2820
			bld.Rotation = NumberRange.new(-500, 500)
2821
			bld.RotSpeed = NumberRange.new(-500, 500)
2822
		end))
2823
		CameraEnshaking(5, 5)
2824
		game:GetService("Debris"):AddItem(bld, 3)
2825
		dmg(targetted)
2826
		CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
2827
		for i = 0, 1, 0.1 do
2828
			swait()
2829
			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)), 0.8)
2830
			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)), 0.8)
2831
			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)), 0.8)
2832
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
2833
			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)), 0.8)
2834
			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)), 0.8)
2835
		end
2836
		CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
2837
		for i = 0, 9 do
2838
			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 black"), 0)
2839
		end
2840
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
2841
		root.CFrame = originalpos
2842
		for i = 0, 9 do
2843
			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 black"), 0)
2844
		end
2845
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
2846
		bld.Enabled = false
2847
		attack = false
2848
		hum.WalkSpeed = storehumanoidWS
2849
	end
2850
end
2851
function PureBomb()
2852
	attack = true
2853
	local orb = Instance.new("Part", char)
2854
	orb.Anchored = true
2855
	orb.BrickColor = BrickColor.new("Toothpaste")
2856
	orb.CanCollide = false
2857
	orb.FormFactor = 3
2858
	orb.Name = "Ring"
2859
	orb.Material = "Neon"
2860
	orb.Size = Vector3.new(1, 1, 1)
2861
	orb.Transparency = 0
2862
	orb.TopSurface = 0
2863
	orb.BottomSurface = 0
2864
	local orbm = Instance.new("SpecialMesh", orb)
2865
	orbm.MeshType = "Sphere"
2866
	orbm.Name = "SizeMesh"
2867
	orbm.Scale = vt(0, 0, 0)
2868
	local scaled = 0.1
2869
	local posid = 0
2870
	CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
2871
	for i = 0, 5, 0.1 do
2872
		swait()
2873
		scaled = scaled - 0.001
2874
		posid = posid - scaled
2875
		orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
2876
		orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
2877
		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)
2878
		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))), 0.1)
2879
		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)), 0.1)
2880
		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)), 0.1)
2881
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
2882
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
2883
		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)), 0.1)
2884
	end
2885
	for i = 0, 2, 0.1 do
2886
		swait()
2887
		orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
2888
		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))), 0.4)
2889
		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)), 0.4)
2890
		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)), 0.4)
2891
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
2892
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
2893
		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)), 0.4)
2894
	end
2895
	coroutine.resume(coroutine.create(function()
2896
		orb.Anchored = false
2897
		CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
2898
		local a = Instance.new("Part", workspace)
2899
		a.Name = "Direction"
2900
		a.Anchored = true
2901
		a.BrickColor = bc("Bright red")
2902
		a.Material = "Neon"
2903
		a.Transparency = 1
2904
		a.CanCollide = false
2905
		local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
2906
		local ignore = orb
2907
		local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2908
		a.BottomSurface = 10
2909
		a.TopSurface = 10
2910
		local distance = (orb.CFrame.p - position).magnitude
2911
		a.Size = Vector3.new(0.1, 0.1, 0.1)
2912
		a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
2913
		orb.CFrame = a.CFrame
2914
		a:Destroy()
2915
		local bv = Instance.new("BodyVelocity")
2916
		bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
2917
		bv.velocity = orb.CFrame.lookVector * 125
2918
		bv.Parent = orb
2919
		local hitted = false
2920
		game:GetService("Debris"):AddItem(orb, 15)
2921
		wait()
2922
		local hit = orb.Touched:connect(function(hit)
2923
			if hitted == false then
2924
				hitted = true
2925
				CameraEnshaking(10, 2.5)
2926
				CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
2927
				MagniDamage(orb, 65, 65, 90, 0, "Normal")
2928
				sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
2929
				sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
2930
				for i = 0, 9 do
2931
					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)
2932
					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)
2933
				end
2934
				orb.Anchored = true
2935
				orb.Transparency = 1
2936
				wait(8)
2937
				orb:Destroy()
2938
			end
2939
		end)
2940
	end))
2941
	for i = 0, 1, 0.1 do
2942
		swait()
2943
		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))), 0.4)
2944
		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)), 0.4)
2945
		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)), 0.4)
2946
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
2947
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
2948
		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)), 0.4)
2949
	end
2950
	attack = false
2951
end
2952
function ChaosGroundStrike()
2953
	attack = true
2954
	for i = 0, 2, 0.1 do
2955
		swait()
2956
		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)), 0.2)
2957
		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)), 0.2)
2958
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
2959
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
2960
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
2961
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
2962
	end
2963
	CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
2964
	CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
2965
	CameraEnshaking(4, 12)
2966
	for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
2967
		if v:FindFirstChild("Head") then
2968
			dmg(v)
2969
		end
2970
	end
2971
	sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
2972
	sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
2973
	sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
2974
	for i = 0, 2, 0.1 do
2975
		swait()
2976
		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)
2977
		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)
2978
		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)), 0.4)
2979
		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)), 0.4)
2980
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
2981
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
2982
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
2983
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
2984
	end
2985
	attack = false
2986
end
2987
function ChaosBegone()
2988
	attack = true
2989
	chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
2990
	for i = 0, 10, 0.1 do
2991
		swait()
2992
		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)), 0.2)
2993
		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)), 0.2)
2994
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
2995
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
2996
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
2997
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
2998
	end
2999
	chatfunc("DIE!!", BrickColor.random().Color)
3000
	CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
3001
	CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
3002
	CameraEnshaking(5, 25)
3003
	for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
3004
		if v:FindFirstChild("Head") then
3005
			dmg(v)
3006
		end
3007
	end
3008
	sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
3009
	sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
3010
	sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
3011
	for i = 0, 3, 0.1 do
3012
		swait()
3013
		sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
3014
		sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
3015
		sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
3016
		sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
3017
		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)), 0.4)
3018
		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)), 0.4)
3019
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
3020
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
3021
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
3022
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
3023
	end
3024
	attack = false
3025
end
3026
function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
3027
	local orb = Instance.new("Part", char)
3028
	orb.Anchored = true
3029
	orb.BrickColor = color
3030
	orb.CanCollide = false
3031
	orb.FormFactor = 3
3032
	orb.Name = "Ring"
3033
	orb.Material = "Neon"
3034
	orb.Size = Vector3.new(1, 1, 1)
3035
	orb.Transparency = 0
3036
	orb.TopSurface = 0
3037
	orb.BottomSurface = 0
3038
	local orbm = Instance.new("SpecialMesh", orb)
3039
	orbm.MeshType = "Sphere"
3040
	orb.CFrame = positted
3041
	orbm.Name = "SizeMesh"
3042
	orbm.Scale = vt(1, 1, 1)
3043
	CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
3044
	sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
3045
	coroutine.resume(coroutine.create(function()
3046
		wait(timer)
3047
		CameraEnshaking(3, ShakePower)
3048
		orb.Transparency = 1
3049
		MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
3050
		sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
3051
		CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
3052
		wait(3)
3053
		orb:Destroy()
3054
	end))
3055
end
3056
function orb_spawn(positted, timer)
3057
	local randomcol = math.random(1, 2)
3058
	local orb = Instance.new("Part", char)
3059
	orb.Anchored = true
3060
	if randomcol == 1 then
3061
		orb.BrickColor = BrickColor.new("White")
3062
	elseif randomcol == 2 then
3063
		orb.BrickColor = BrickColor.new("Really black")
3064
	end
3065
	orb.CanCollide = false
3066
	orb.FormFactor = 3
3067
	orb.Name = "Ring"
3068
	orb.Material = "Neon"
3069
	orb.Size = Vector3.new(1, 1, 1)
3070
	orb.Transparency = 0
3071
	orb.TopSurface = 0
3072
	orb.BottomSurface = 0
3073
	local orbm = Instance.new("SpecialMesh", orb)
3074
	orbm.MeshType = "Sphere"
3075
	orb.CFrame = positted
3076
	orbm.Name = "SizeMesh"
3077
	orbm.Scale = vt(1, 1, 1)
3078
	CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
3079
	sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
3080
	for i = 0, 2 do
3081
		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)
3082
	end
3083
	coroutine.resume(coroutine.create(function()
3084
		wait(timer)
3085
		CameraEnshaking(3, 2)
3086
		orb.Transparency = 1
3087
		MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
3088
		sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
3089
		for i = 0, 4 do
3090
			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)
3091
		end
3092
		CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
3093
		wait(3)
3094
		orb:Destroy()
3095
	end))
3096
end
3097
function scattercorrupt()
3098
	attack = true
3099
	local rot = 0
3100
	local randomrotations = math.random(1, 2)
3101
	local lookv = 2.5
3102
	local power = 5
3103
	sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
3104
	sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
3105
	for i = 0, 9 do
3106
		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)
3107
	end
3108
	CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
3109
	CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
3110
	CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
3111
	CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
3112
	CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
3113
	local hite = Instance.new("Part", char)
3114
	hite.Anchored = true
3115
	hite.CanCollide = false
3116
	hite.FormFactor = 3
3117
	hite.Name = "Ring"
3118
	hite.Material = "Neon"
3119
	hite.Size = Vector3.new(1, 1, 1)
3120
	hite.Transparency = 1
3121
	hite.TopSurface = 0
3122
	hite.BottomSurface = 0
3123
	hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
3124
	local rem = Instance.new("Part", char)
3125
	rem.Anchored = true
3126
	rem.CanCollide = false
3127
	rem.FormFactor = 3
3128
	rem.Name = "Ring"
3129
	rem.Material = "Neon"
3130
	rem.Size = Vector3.new(1, 1, 1)
3131
	rem.Transparency = 1
3132
	rem.TopSurface = 0
3133
	rem.BottomSurface = 0
3134
	rem.CFrame = hite.CFrame
3135
	local rem2 = rem:Clone()
3136
	rem2.Parent = char
3137
	rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
3138
	local rem3 = rem:Clone()
3139
	rem3.Parent = char
3140
	rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
3141
	local rem4 = rem:Clone()
3142
	rem4.Parent = char
3143
	rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
3144
	hite:Destroy()
3145
	coroutine.resume(coroutine.create(function()
3146
		for i = 0, 24 do
3147
			swait(1)
3148
			if randomrotations == 1 then
3149
				rot = rot + 1
3150
			elseif randomrotations == 2 then
3151
				rot = rot - 1
3152
			end
3153
			power = power + 0.5
3154
			lookv = lookv + 7.5
3155
			rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
3156
			rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
3157
			rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
3158
			rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
3159
			orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
3160
			orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
3161
			orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
3162
			orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
3163
		end
3164
	end))
3165
	attack = false
3166
end
3167
function yinyangi()
3168
	attack = true
3169
	for i = 0, 2, 0.1 do
3170
		swait()
3171
		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)), 0.2)
3172
		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)), 0.2)
3173
		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)), 0.2)
3174
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
3175
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
3176
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
3177
	end
3178
	local bv = Instance.new("BodyVelocity")
3179
	bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
3180
	bv.velocity = root.CFrame.lookVector * 175
3181
	bv.Parent = root
3182
	for Rotations = 0, 9 do
3183
		for i = 0, 1, 0.5 do
3184
			swait()
3185
			bv.velocity = root.CFrame.lookVector * 175
3186
			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)), 0.5)
3187
			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)), 0.5)
3188
			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)), 0.5)
3189
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
3190
			RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3191
			LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3192
		end
3193
		orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
3194
		for i = 0, 1, 0.5 do
3195
			swait()
3196
			bv.velocity = root.CFrame.lookVector * 175
3197
			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)), 0.5)
3198
			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)), 0.5)
3199
			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)), 0.5)
3200
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
3201
			RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3202
			LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3203
		end
3204
		orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
3205
		for i = 0, 1, 0.5 do
3206
			swait()
3207
			bv.velocity = root.CFrame.lookVector * 175
3208
			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)), 0.5)
3209
			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)), 0.5)
3210
			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)), 0.5)
3211
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
3212
			RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3213
			LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3214
		end
3215
		orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
3216
		for i = 0, 1, 0.5 do
3217
			swait()
3218
			bv.velocity = root.CFrame.lookVector * 175
3219
			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)), 0.5)
3220
			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)), 0.5)
3221
			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)), 0.5)
3222
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
3223
			RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3224
			LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3225
		end
3226
		orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
3227
	end
3228
	bv:Destroy()
3229
	attack = false
3230
end
3231
function Wip()
3232
	attack = true
3233
	local rngb = Instance.new("Part", char)
3234
	rngb.Anchored = true
3235
	rngb.BrickColor = origcolor
3236
	rngb.CanCollide = false
3237
	rngb.FormFactor = 3
3238
	rngb.Name = "Ring"
3239
	rngb.Material = "Neon"
3240
	rngb.Size = Vector3.new(1, 0.05, 1)
3241
	rngb.Transparency = 1
3242
	rngb.TopSurface = 0
3243
	rngb.BottomSurface = 0
3244
	local rngmb = Instance.new("SpecialMesh", rngb)
3245
	rngmb.MeshType = "Brick"
3246
	rngmb.Name = "SizeMesh"
3247
	rngmb.Scale = vt(0, 1, 0)
3248
	local orb = rngb:Clone()
3249
	orb.Parent = char
3250
	orb.Transparency = 0
3251
	orb.BrickColor = BrickColor.new("White")
3252
	orb.Size = vt(1, 1, 1)
3253
	local orbmish = orb.SizeMesh
3254
	orbmish.Scale = vt(0, 0, 0)
3255
	orbmish.MeshType = "Sphere"
3256
	local orbe = rngb:Clone()
3257
	orbe.Parent = char
3258
	orbe.Transparency = 0.5
3259
	orbe.BrickColor = BrickColor.new("New Yeller")
3260
	orbe.Size = vt(1, 1, 1)
3261
	local orbmish2 = orbe.SizeMesh
3262
	orbmish2.Scale = vt(0, 0, 0)
3263
	orbmish2.MeshType = "Sphere"
3264
	orbe.Color = Color3.new(r / 255, g / 255, b / 255)
3265
	rngb:Destroy()
3266
	for i = 0, 5, 0.1 do
3267
		swait()
3268
		if rainbowmode == true then
3269
			orbe.Color = Color3.new(r / 255, g / 255, b / 255)
3270
		end
3271
		orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
3272
		orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
3273
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
3274
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
3275
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
3276
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
3277
		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)), 0.3)
3278
		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)), 0.3)
3279
		RootPart.CFrame = FaceMouse()[1]
3280
	end
3281
	orbe.Transparency = 1
3282
	orb.Transparency = 1
3283
	orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
3284
	CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
3285
	local a = Instance.new("Part", Character)
3286
	a.Name = "Direction"
3287
	a.Anchored = true
3288
	a.BrickColor = bc("White")
3289
	a.Material = "Neon"
3290
	a.Transparency = 0
3291
	a.Shape = "Cylinder"
3292
	a.CanCollide = false
3293
	local a2 = Instance.new("Part", Character)
3294
	a2.Name = "Direction"
3295
	a2.Anchored = true
3296
	a2.BrickColor = bc("New Yeller")
3297
	a2.Color = Color3.new(r / 255, g / 255, b / 255)
3298
	a2.Material = "Neon"
3299
	a2.Transparency = 0.5
3300
	a2.Shape = "Cylinder"
3301
	a2.CanCollide = false
3302
	local ba = Instance.new("Part", Character)
3303
	ba.Name = "HitDirect"
3304
	ba.Anchored = true
3305
	ba.BrickColor = bc("Really black")
3306
	ba.Material = "Neon"
3307
	ba.Transparency = 1
3308
	ba.CanCollide = false
3309
	local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3310
	local ignore = Character
3311
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3312
	a.BottomSurface = 10
3313
	a.TopSurface = 10
3314
	a2.BottomSurface = 10
3315
	a2.TopSurface = 10
3316
	local distance = (orb.CFrame.p - position).magnitude
3317
	a.Size = Vector3.new(distance, 1, 1)
3318
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3319
	a2.Size = Vector3.new(distance, 1, 1)
3320
	a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3321
	ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3322
	a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3323
	a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3324
	game:GetService("Debris"):AddItem(a, 20)
3325
	game:GetService("Debris"):AddItem(a2, 20)
3326
	game:GetService("Debris"):AddItem(ba, 20)
3327
	local msh = Instance.new("SpecialMesh", a)
3328
	msh.MeshType = "Cylinder"
3329
	msh.Scale = vt(1, 25, 25)
3330
	local msh2 = Instance.new("SpecialMesh", a2)
3331
	msh2.MeshType = "Cylinder"
3332
	msh2.Scale = vt(1, 30, 30)
3333
	for i = 0, 10, 0.1 do
3334
		swait()
3335
		CameraEnshaking(1, 5)
3336
		a2.Color = Color3.new(r / 255, g / 255, b / 255)
3337
		orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3338
		orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3339
		ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3340
		hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3341
		distance = (orb.CFrame.p - position).magnitude
3342
		if typrot == 1 then
3343
			rotation = rotation + 2.5
3344
		elseif typrot == 2 then
3345
			rotation = rotation - 2.5
3346
		end
3347
		RootPart.CFrame = FaceMouse()[1]
3348
		a.Size = Vector3.new(distance, 1, 1)
3349
		a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3350
		a2.Size = Vector3.new(distance, 1, 1)
3351
		a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3352
		ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3353
		a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3354
		a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3355
		msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
3356
		msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
3357
		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)
3358
		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)
3359
		MagniDamage(ba, 30, 500, 60000, 0, "Normal")
3360
	end
3361
	a:Destroy()
3362
	a2:Destroy()
3363
	ba:Destroy()
3364
	orb:Destroy()
3365
	orbe:Destroy()
3366
	attack = false
3367
end
3368
function UniversalSpark()
3369
	attack = true
3370
	local rngb = Instance.new("Part", char)
3371
	rngb.Anchored = true
3372
	rngb.BrickColor = origcolor
3373
	rngb.CanCollide = false
3374
	rngb.FormFactor = 3
3375
	rngb.Name = "Ring"
3376
	rngb.Material = "Neon"
3377
	rngb.Size = Vector3.new(1, 0.05, 1)
3378
	rngb.Transparency = 1
3379
	rngb.TopSurface = 0
3380
	rngb.BottomSurface = 0
3381
	local rngmb = Instance.new("SpecialMesh", rngb)
3382
	rngmb.MeshType = "Brick"
3383
	rngmb.Name = "SizeMesh"
3384
	rngmb.Scale = vt(0, 1, 0)
3385
	local orb = rngb:Clone()
3386
	orb.Parent = char
3387
	orb.Transparency = 0
3388
	orb.BrickColor = BrickColor.new("White")
3389
	orb.Size = vt(1, 1, 1)
3390
	local orbmish = orb.SizeMesh
3391
	orbmish.Scale = vt(0, 0, 0)
3392
	orbmish.MeshType = "Sphere"
3393
	local orbe = rngb:Clone()
3394
	orbe.Parent = char
3395
	orbe.Transparency = 0.5
3396
	orbe.BrickColor = BrickColor.new("New Yeller")
3397
	orbe.Size = vt(1, 1, 1)
3398
	local orbmish2 = orbe.SizeMesh
3399
	orbmish2.Scale = vt(0, 0, 0)
3400
	orbmish2.MeshType = "Sphere"
3401
	orbe.Color = Color3.new(r / 255, g / 255, b / 255)
3402
	rngb:Destroy()
3403
	for i = 0, 5, 0.1 do
3404
		swait()
3405
		if rainbowmode == true then
3406
			orbe.Color = Color3.new(r / 255, g / 255, b / 255)
3407
		end
3408
		orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
3409
		orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
3410
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
3411
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
3412
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
3413
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
3414
		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)), 0.3)
3415
		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)), 0.3)
3416
		RootPart.CFrame = FaceMouse()[1]
3417
	end
3418
	orbe.Transparency = 1
3419
	orb.Transparency = 1
3420
	orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
3421
	CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
3422
	CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
3423
	CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
3424
	CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
3425
	CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
3426
	CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
3427
	CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
3428
	local xd = Instance.new("Sound", char)
3429
	xd.SoundId = "rbxassetid://445796828"
3430
	xd.Pitch = 0.75
3431
	xd.Looped = true
3432
	xd.Volume = 1.25
3433
	xd:Play()
3434
	local a = Instance.new("Part", Character)
3435
	a.Name = "Direction"
3436
	a.Anchored = true
3437
	a.BrickColor = bc("Alder")
3438
	a.Color = MAINRUINCOLOR.Color
3439
	a.Material = "Neon"
3440
	a.Transparency = 0.5
3441
	a.Shape = "Cylinder"
3442
	a.CanCollide = false
3443
	local a2 = Instance.new("Part", Character)
3444
	a2.Name = "Direction"
3445
	a2.Anchored = true
3446
	a2.BrickColor = bc("New Yeller")
3447
	a2.Color = MAINRUINCOLOR.Color
3448
	a2.Material = "Neon"
3449
	a2.Transparency = 0.5
3450
	a2.Shape = "Cylinder"
3451
	a2.CanCollide = false
3452
	local ba = Instance.new("Part", Character)
3453
	ba.Name = "HitDirect"
3454
	ba.Anchored = true
3455
	ba.BrickColor = bc("Really black")
3456
	ba.Material = "Neon"
3457
	ba.Transparency = 1
3458
	ba.CanCollide = false
3459
	local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3460
	local ignore = Character
3461
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3462
	a.BottomSurface = 10
3463
	a.TopSurface = 10
3464
	a2.BottomSurface = 10
3465
	a2.TopSurface = 10
3466
	local distance = (orb.CFrame.p - position).magnitude
3467
	a.Size = Vector3.new(distance, 1, 1)
3468
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3469
	a2.Size = Vector3.new(distance, 1, 1)
3470
	a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3471
	ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3472
	a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3473
	a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3474
	game:GetService("Debris"):AddItem(a, 60)
3475
	game:GetService("Debris"):AddItem(a2, 60)
3476
	game:GetService("Debris"):AddItem(ba, 60)
3477
	local outerscale = 0
3478
	local msh = Instance.new("SpecialMesh", a)
3479
	msh.MeshType = "Cylinder"
3480
	msh.Scale = vt(1, 0, 0)
3481
	local msh2 = Instance.new("SpecialMesh", a2)
3482
	msh2.MeshType = "Cylinder"
3483
	msh2.Scale = vt(1, 0, 0)
3484
	for i = 0, 2, 0.1 do
3485
		swait()
3486
		CameraEnshaking(1, 1)
3487
		msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
3488
		msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
3489
		outerscale = outerscale - 0.015
3490
		orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3491
		orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3492
		ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3493
		hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3494
		distance = (orb.CFrame.p - position).magnitude
3495
		if typrot == 1 then
3496
			rotation = rotation + 2.5
3497
		elseif typrot == 2 then
3498
			rotation = rotation - 2.5
3499
		end
3500
		RootPart.CFrame = FaceMouse()[1]
3501
		a.Size = Vector3.new(distance, 1, 1)
3502
		a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3503
		a2.Size = Vector3.new(distance, 1, 1)
3504
		a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3505
		ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3506
		a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3507
		a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3508
		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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
3509
		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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
3510
		MagniDamage(ba, 100, 500, 60000, 0, "Normal")
3511
	end
3512
	for z = 0, 2 do
3513
		for i = 0, 4, 0.1 do
3514
			swait()
3515
			CameraEnshaking(1, 1)
3516
			msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
3517
			msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
3518
			outerscale = outerscale + 0.015
3519
			orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3520
			orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3521
			ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3522
			hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3523
			distance = (orb.CFrame.p - position).magnitude
3524
			if typrot == 1 then
3525
				rotation = rotation + 2.5
3526
			elseif typrot == 2 then
3527
				rotation = rotation - 2.5
3528
			end
3529
			RootPart.CFrame = FaceMouse()[1]
3530
			a.Size = Vector3.new(distance, 1, 1)
3531
			a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3532
			a2.Size = Vector3.new(distance, 1, 1)
3533
			a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3534
			ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3535
			a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3536
			a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3537
			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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
3538
			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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
3539
			MagniDamage(ba, 100, 500, 60000, 0, "Normal")
3540
		end
3541
		for i = 0, 4, 0.1 do
3542
			swait()
3543
			CameraEnshaking(1, 1)
3544
			msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
3545
			msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
3546
			outerscale = outerscale - 0.015
3547
			orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3548
			orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3549
			ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3550
			hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3551
			distance = (orb.CFrame.p - position).magnitude
3552
			if typrot == 1 then
3553
				rotation = rotation + 2.5
3554
			elseif typrot == 2 then
3555
				rotation = rotation - 2.5
3556
			end
3557
			RootPart.CFrame = FaceMouse()[1]
3558
			a.Size = Vector3.new(distance, 1, 1)
3559
			a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3560
			a2.Size = Vector3.new(distance, 1, 1)
3561
			a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3562
			ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3563
			a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3564
			a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3565
			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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
3566
			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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
3567
			MagniDamage(ba, 100, 500, 60000, 0, "Normal")
3568
		end
3569
	end
3570
	for i = 0, 4, 0.1 do
3571
		swait()
3572
		CameraEnshaking(1, 1)
3573
		msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
3574
		msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
3575
		xd.Volume = xd.Volume - 0.025
3576
		a.Transparency = a.Transparency + 0.025
3577
		a2.Transparency = a2.Transparency + 0.025
3578
		outerscale = outerscale - 0.015
3579
		orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3580
		orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3581
		ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3582
		hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3583
		distance = (orb.CFrame.p - position).magnitude
3584
		if typrot == 1 then
3585
			rotation = rotation + 2.5
3586
		elseif typrot == 2 then
3587
			rotation = rotation - 2.5
3588
		end
3589
		RootPart.CFrame = FaceMouse()[1]
3590
		a.Size = Vector3.new(distance, 1, 1)
3591
		a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3592
		a2.Size = Vector3.new(distance, 1, 1)
3593
		a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3594
		ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3595
		a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3596
		a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3597
		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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
3598
		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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
3599
		MagniDamage(ba, 100, 500, 60000, 0, "Normal")
3600
	end
3601
	xd:Destroy()
3602
	a:Destroy()
3603
	a2:Destroy()
3604
	ba:Destroy()
3605
	orb:Destroy()
3606
	orbe:Destroy()
3607
	attack = false
3608
end
3609
function resetmode()
3610
	rainbowmode = false
3611
	chaosmode = false
3612
	RecolorTextAndRename("Singularity", Color3.new(0, 0, 0), Color3.new(1, 0, 0))
3613
	ModeOfGlitch = 1
3614
	storehumanoidWS = 16
3615
	for i, v in pairs(mw2:GetChildren()) do
3616
		if v:IsA("Part") then
3617
			v.BrickColor = BrickColor.new("Really red")
3618
			v.Material = "Neon"
3619
		end
3620
	end
3621
	for i, v in pairs(mw1:GetChildren()) do
3622
		if v:IsA("Part") then
3623
			v.Transparency = 1
3624
			v.BrickColor = BrickColor.new("Really red")
3625
			v.Material = "Neon"
3626
		end
3627
	end
3628
	MAINRUINCOLOR = BrickColor.new("Really red")
3629
	hum.WalkSpeed = 16
3630
	newTheme("rbxassetid://415898123", 0, 1, 10)
3631
	for i, v in pairs(m:GetChildren()) do
3632
		if v:IsA("Part") then
3633
			v.BrickColor = BrickColor.new("Really black")
3634
			v.Material = "Glass"
3635
		end
3636
	end
3637
	for i, v in pairs(m2:GetChildren()) do
3638
		if v:IsA("Part") then
3639
			v.BrickColor = BrickColor.new("Crimson")
3640
			v.Material = "Granite"
3641
		end
3642
	end
3643
	for i, v in pairs(m3:GetChildren()) do
3644
		if v:IsA("Part") then
3645
			v.BrickColor = BrickColor.new("Really red")
3646
			v.Material = "Neon"
3647
		end
3648
	end
3649
	for i, v in pairs(extrawingmod1:GetChildren()) do
3650
		if v:IsA("Part") then
3651
			v.Transparency = 1
3652
			v.BrickColor = BrickColor.new("White")
3653
			v.Material = "Neon"
3654
		end
3655
	end
3656
	for i, v in pairs(extrawingmod2:GetChildren()) do
3657
		if v:IsA("Part") then
3658
			v.Transparency = 1
3659
			v.BrickColor = BrickColor.new("White")
3660
			v.Material = "Neon"
3661
		end
3662
	end
3663
end
3664
function attackone()
3665
	attack = true
3666
	for i = 0, 1, 0.1 do
3667
		swait()
3668
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
3669
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
3670
		RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
3671
		LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
3672
		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)), 0.2)
3673
		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)), 0.2)
3674
	end
3675
	CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
3676
	local hitb = Instance.new("Part", char)
3677
	hitb.Anchored = true
3678
	hitb.CanCollide = false
3679
	hitb.FormFactor = 3
3680
	hitb.Name = "Ring"
3681
	hitb.Material = "Neon"
3682
	hitb.Size = Vector3.new(1, 1, 1)
3683
	hitb.Transparency = 1
3684
	hitb.TopSurface = 0
3685
	hitb.BottomSurface = 0
3686
	hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
3687
	MagniDamage(hitb, 3, 10, 30, 0, "Normal")
3688
	hitb:Destroy()
3689
	for i = 0, 1, 0.1 do
3690
		swait()
3691
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
3692
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
3693
		RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
3694
		LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
3695
		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)), 0.4)
3696
		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)), 0.4)
3697
	end
3698
	attack = false
3699
end
3700
function attacktwo()
3701
	attack = true
3702
	for i = 0, 1, 0.1 do
3703
		swait()
3704
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
3705
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
3706
		RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
3707
		LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
3708
		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)), 0.2)
3709
		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)), 0.2)
3710
	end
3711
	CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
3712
	local hitb = Instance.new("Part", char)
3713
	hitb.Anchored = true
3714
	hitb.CanCollide = false
3715
	hitb.FormFactor = 3
3716
	hitb.Name = "Ring"
3717
	hitb.Material = "Neon"
3718
	hitb.Size = Vector3.new(1, 1, 1)
3719
	hitb.Transparency = 1
3720
	hitb.TopSurface = 0
3721
	hitb.BottomSurface = 0
3722
	hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
3723
	MagniDamage(hitb, 3, 10, 30, 0, "Normal")
3724
	hitb:Destroy()
3725
	for i = 0, 1, 0.1 do
3726
		swait()
3727
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
3728
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
3729
		RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
3730
		LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
3731
		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)), 0.4)
3732
		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)), 0.4)
3733
	end
3734
	attack = false
3735
end
3736
function attackthree()
3737
	attack = true
3738
	for i = 0, 1, 0.1 do
3739
		swait()
3740
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
3741
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
3742
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
3743
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
3744
		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)), 0.3)
3745
		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)), 0.3)
3746
	end
3747
	local distlook = 5
3748
	for i = 0, 4 do
3749
		swait(2)
3750
		CameraEnshaking(2, 3)
3751
		local hite = Instance.new("Part", char)
3752
		hite.Anchored = true
3753
		hite.CanCollide = false
3754
		hite.FormFactor = 3
3755
		hite.Name = "Ring"
3756
		hite.Material = "Neon"
3757
		hite.Size = Vector3.new(1, 1, 1)
3758
		hite.Transparency = 1
3759
		hite.TopSurface = 0
3760
		hite.BottomSurface = 0
3761
		hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
3762
		sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
3763
		sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
3764
		MagniDamage(hite, 10, 15, 35, 0, "Normal")
3765
		for i = 0, 2 do
3766
			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)
3767
			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)
3768
			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)
3769
		end
3770
		CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
3771
		CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
3772
		game:GetService("Debris"):AddItem(hite, 5)
3773
		distlook = distlook + 10
3774
	end
3775
	attack = false
3776
end
3777
local attacktype = 1
3778
mouse.Button1Down:connect(function()
3779
	if attack == false and attacktype == 1 then
3780
		attacktype = 2
3781
		attackone()
3782
	elseif attack == false and attacktype == 2 then
3783
		attacktype = 3
3784
		attacktwo()
3785
	elseif attack == false and attacktype == 3 then
3786
		attacktype = 1
3787
		attackthree()
3788
	elseif attack == false and attacktype == 4 then
3789
		attacktype = 1
3790
	end
3791
end)
3792
mouse.KeyDown:connect(function(k)
3793
	if k == "q" and attack == false and ModeOfGlitch ~= 2 then
3794
		ModeOfGlitch = 2
3795
		storehumanoidWS = 16
3796
		hum.WalkSpeed = 16
3797
		rainbowmode = false
3798
		chaosmode = false
3799
		RecolorTextAndRename("Purity", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
3800
		newTheme("rbxassetid://1119453744", 20.25, 1, 1)
3801
		MAINRUINCOLOR = BrickColor.new("Toothpaste")
3802
		for i, v in pairs(mw2:GetChildren()) do
3803
			if v:IsA("Part") then
3804
				v.BrickColor = MAINRUINCOLOR
3805
				v.Material = "Neon"
3806
			end
3807
		end
3808
		for i, v in pairs(mw1:GetChildren()) do
3809
			if v:IsA("Part") then
3810
				v.Transparency = 1
3811
				v.BrickColor = MAINRUINCOLOR
3812
				v.Material = "Neon"
3813
			end
3814
		end
3815
		for i, v in pairs(m:GetChildren()) do
3816
			if v:IsA("Part") then
3817
				v.BrickColor = BrickColor.new("White")
3818
				v.Material = "Ice"
3819
			end
3820
		end
3821
		for i, v in pairs(m2:GetChildren()) do
3822
			if v:IsA("Part") then
3823
				v.BrickColor = BrickColor.new("Pastel light blue")
3824
				v.Material = "Glass"
3825
			end
3826
		end
3827
		for i, v in pairs(m3:GetChildren()) do
3828
			if v:IsA("Part") then
3829
				v.BrickColor = BrickColor.new("Toothpaste")
3830
				v.Material = "Neon"
3831
			end
3832
		end
3833
		for i, v in pairs(extrawingmod1:GetChildren()) do
3834
			if v:IsA("Part") then
3835
				v.Transparency = 1
3836
				v.BrickColor = BrickColor.new("White")
3837
				v.Material = "Neon"
3838
			end
3839
		end
3840
		for i, v in pairs(extrawingmod2:GetChildren()) do
3841
			if v:IsA("Part") then
3842
				v.Transparency = 1
3843
				v.BrickColor = BrickColor.new("White")
3844
				v.Material = "Neon"
3845
			end
3846
		end
3847
	elseif k == "q" and attack == false and ModeOfGlitch == 2 then
3848
		resetmode()
3849
	end
3850
	if k == "e" and attack == false and ModeOfGlitch ~= 3 then
3851
		ModeOfGlitch = 3
3852
		storehumanoidWS = 16
3853
		hum.WalkSpeed = 16
3854
		rainbowmode = false
3855
		chaosmode = false
3856
		RecolorTextAndRename("Corruption", Color3.new(0, 0, 0), Color3.new(0.35, 0, 1))
3857
		newTheme("rbxassetid://1509634377", 58.15, 1,2)
3858
		MAINRUINCOLOR = BrickColor.new("Royal purple")
3859
		for i, v in pairs(mw2:GetChildren()) do
3860
			if v:IsA("Part") then
3861
				v.BrickColor = MAINRUINCOLOR
3862
				v.Material = "Neon"
3863
			end
3864
		end
3865
		for i, v in pairs(mw1:GetChildren()) do
3866
			if v:IsA("Part") then
3867
				v.Transparency = 1
3868
				v.BrickColor = MAINRUINCOLOR
3869
				v.Material = "Neon"
3870
			end
3871
		end
3872
		for i, v in pairs(m:GetChildren()) do
3873
			if v:IsA("Part") then
3874
				v.BrickColor = BrickColor.new("Black")
3875
				v.Material = "Ice"
3876
			end
3877
		end
3878
		for i, v in pairs(m2:GetChildren()) do
3879
			if v:IsA("Part") then
3880
				v.BrickColor = BrickColor.new("Dark indigo")
3881
				v.Material = "Glass"
3882
			end
3883
		end
3884
		for i, v in pairs(m3:GetChildren()) do
3885
			if v:IsA("Part") then
3886
				v.BrickColor = BrickColor.new("Royal purple")
3887
				v.Material = "Neon"
3888
			end
3889
		end
3890
		for i, v in pairs(extrawingmod1:GetChildren()) do
3891
			if v:IsA("Part") then
3892
				v.Transparency = 1
3893
				v.BrickColor = BrickColor.new("White")
3894
				v.Material = "Neon"
3895
			end
3896
		end
3897
		for i, v in pairs(extrawingmod2:GetChildren()) do
3898
			if v:IsA("Part") then
3899
				v.Transparency = 1
3900
				v.BrickColor = BrickColor.new("White")
3901
				v.Material = "Neon"
3902
			end
3903
		end
3904
	elseif k == "e" and attack == false and ModeOfGlitch == 3 then
3905
		resetmode()
3906
	end
3907
	if k == "r" and attack == false and ModeOfGlitch ~= 4 then
3908
		ModeOfGlitch = 4
3909
		storehumanoidWS = 16
3910
		hum.WalkSpeed = 16
3911
		rainbowmode = false
3912
		chaosmode = true
3913
		RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
3914
		newTheme("rbxassetid://415898123", 0, 1, 10)
3915
		MAINRUINCOLOR = BrickColor.new("Black")
3916
		for i, v in pairs(mw2:GetChildren()) do
3917
			if v:IsA("Part") then
3918
				v.BrickColor = MAINRUINCOLOR
3919
				v.Material = "Neon"
3920
			end
3921
		end
3922
		for i, v in pairs(mw1:GetChildren()) do
3923
			if v:IsA("Part") then
3924
				v.Transparency = 0.75
3925
				v.BrickColor = BrickColor.random()
3926
				v.Material = "Neon"
3927
			end
3928
		end
3929
		for i, v in pairs(m:GetChildren()) do
3930
			if v:IsA("Part") then
3931
				v.BrickColor = BrickColor.new("Black")
3932
				v.Material = "Neon"
3933
			end
3934
		end
3935
		for i, v in pairs(m2:GetChildren()) do
3936
			if v:IsA("Part") then
3937
				v.BrickColor = BrickColor.random()
3938
				v.Material = "Neon"
3939
			end
3940
		end
3941
		for i, v in pairs(m3:GetChildren()) do
3942
			if v:IsA("Part") then
3943
				v.BrickColor = BrickColor.new("Black")
3944
				v.Material = "Neon"
3945
			end
3946
		end
3947
		for i, v in pairs(extrawingmod1:GetChildren()) do
3948
			if v:IsA("Part") then
3949
				v.Transparency = 1
3950
				v.BrickColor = BrickColor.new("White")
3951
				v.Material = "Neon"
3952
			end
3953
		end
3954
		for i, v in pairs(extrawingmod2:GetChildren()) do
3955
			if v:IsA("Part") then
3956
				v.Transparency = 1
3957
				v.BrickColor = BrickColor.new("White")
3958
				v.Material = "Neon"
3959
			end
3960
		end
3961
	elseif k == "r" and attack == false and ModeOfGlitch == 4 then
3962
		resetmode()
3963
	end
3964
	if k == "t" and attack == false and ModeOfGlitch ~= 5 then
3965
		ModeOfGlitch = 5
3966
		
3967
		storehumanoidWS = 16
3968
		hum.WalkSpeed = 16
3969
		rainbowmode = false
3970
		chaosmode = false
3971
		RecolorTextAndRename("Solitude", Color3.new(0, 0, 0), Color3.new(255, 255, 255))
3972
		newTheme("rbxassetid://723652641", 10, 1, 3.2)
3973
   ModeOfGlitch = 1		
3974
		MAINRUINCOLOR = BrickColor.new("Really black")
3975
		for i, v in pairs(mw2:GetChildren()) do
3976
			if v:IsA("Part") then
3977
				v.BrickColor = MAINRUINCOLOR
3978
				v.Material = "Neon"
3979
			end
3980
		end
3981
		for i, v in pairs(mw1:GetChildren()) do
3982
			if v:IsA("Part") then
3983
				v.Transparency = 0
3984
				v.BrickColor = MAINRUINCOLOR
3985
				v.Material = "Neon"
3986
			end
3987
		end
3988
		for i, v in pairs(m:GetChildren()) do
3989
			if v:IsA("Part") then
3990
				v.BrickColor = BrickColor.new("Really black")
3991
				v.Material = "Ice"
3992
			end
3993
		end
3994
		for i, v in pairs(m2:GetChildren()) do
3995
			if v:IsA("Part") then
3996
				v.BrickColor = BrickColor.new("Really black")
3997
				v.Material = "Ice"
3998
			end
3999
		end
4000
		for i, v in pairs(m3:GetChildren()) do
4001
			if v:IsA("Part") then
4002
				v.BrickColor = BrickColor.new("Really black")
4003
				v.Material = "Neon"
4004
			end
4005
		end
4006
		for i, v in pairs(extrawingmod1:GetChildren()) do
4007
			if v:IsA("Part") then
4008
				v.Transparency = 1
4009
				v.BrickColor = BrickColor.new("White")
4010
				v.Material = "Neon"
4011
			end
4012
		end
4013
		for i, v in pairs(extrawingmod2:GetChildren()) do
4014
			if v:IsA("Part") then
4015
				v.Transparency = 1
4016
				v.BrickColor = BrickColor.new("White")
4017
				v.Material = "Neon"
4018
			end
4019
		end
4020
	elseif k == "t" and attack == false and ModeOfGlitch == 5 then
4021
		resetmode()
4022
	end
4023
	if k == "y" and attack == false and ModeOfGlitch ~= 6 then
4024
		ModeOfGlitch = 6
4025
		storehumanoidWS = 75
4026
		hum.WalkSpeed = 75
4027
		rainbowmode = false
4028
		chaosmode = false
4029
		RecolorTextAndRename("Equality", Color3.new(0, 0, 0), Color3.new(1, 1, 1))
4030
		newTheme("rbxassetid://519067542", 0, 1, 1)
4031
		MAINRUINCOLOR = BrickColor.new("Really black")
4032
		for i, v in pairs(mw2:GetChildren()) do
4033
			if v:IsA("Part") then
4034
				v.BrickColor = BrickColor.new("White")
4035
				v.Material = "Neon"
4036
			end
4037
		end
4038
		for i, v in pairs(mw1:GetChildren()) do
4039
			if v:IsA("Part") then
4040
				v.Transparency = 0
4041
				v.BrickColor = BrickColor.new("Really black")
4042
				v.Material = "Neon"
4043
			end
4044
		end
4045
		for i, v in pairs(m:GetChildren()) do
4046
			if v:IsA("Part") then
4047
				v.BrickColor = BrickColor.new("White")
4048
				v.Material = "Ice"
4049
			end
4050
		end
4051
		for i, v in pairs(m2:GetChildren()) do
4052
			if v:IsA("Part") then
4053
				v.BrickColor = BrickColor.new("Really black")
4054
				v.Material = "Ice"
4055
			end
4056
		end
4057
		for i, v in pairs(m3:GetChildren()) do
4058
			if v:IsA("Part") then
4059
				v.BrickColor = BrickColor.new("White")
4060
				v.Material = "Neon"
4061
			end
4062
		end
4063
		for i, v in pairs(extrawingmod1:GetChildren()) do
4064
			if v:IsA("Part") then
4065
				v.Transparency = 1
4066
				v.BrickColor = BrickColor.new("White")
4067
				v.Material = "Neon"
4068
			end
4069
		end
4070
		for i, v in pairs(extrawingmod2:GetChildren()) do
4071
			if v:IsA("Part") then
4072
				v.Transparency = 1
4073
				v.BrickColor = BrickColor.new("White")
4074
				v.Material = "Neon"
4075
			end
4076
		end
4077
		
4078
		
4079
	elseif k == "y" and attack == false and ModeOfGlitch == 6 then
4080
		resetmode()
4081
	end
4082
	if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
4083
		ModeOfGlitch = 6127843
4084
		storehumanoidWS = 50
4085
		hum.WalkSpeed = 50
4086
		rainbowmode = true
4087
		chaosmode = false
4088
		RecolorTextAndRename("StarLight", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
4089
		newTheme("rbxassetid://152539141", 0, 1, 1)
4090
		MAINRUINCOLOR = BrickColor.new("White")
4091
		for i, v in pairs(mw2:GetChildren()) do
4092
			if v:IsA("Part") then
4093
				v.BrickColor = MAINRUINCOLOR
4094
				v.Material = "Neon"
4095
			end
4096
		end
4097
		for i, v in pairs(mw1:GetChildren()) do
4098
			if v:IsA("Part") then
4099
				v.Transparency = 0
4100
				v.BrickColor = MAINRUINCOLOR
4101
				v.Material = "Neon"
4102
			end
4103
		end
4104
		for i, v in pairs(m:GetChildren()) do
4105
			if v:IsA("Part") then
4106
				v.BrickColor = BrickColor.new("White")
4107
				v.Material = "Neon"
4108
			end
4109
		end
4110
		for i, v in pairs(m2:GetChildren()) do
4111
			if v:IsA("Part") then
4112
				v.BrickColor = BrickColor.new("White")
4113
				v.Material = "Neon"
4114
			end
4115
		end
4116
		for i, v in pairs(m3:GetChildren()) do
4117
			if v:IsA("Part") then
4118
				v.BrickColor = BrickColor.new("White")
4119
				v.Material = "Neon"
4120
			end
4121
		end
4122
		for i, v in pairs(extrawingmod1:GetChildren()) do
4123
			if v:IsA("Part") then
4124
				v.Transparency = 1
4125
				v.BrickColor = BrickColor.new("White")
4126
				v.Material = "Neon"
4127
			end
4128
		end
4129
		for i, v in pairs(extrawingmod2:GetChildren()) do
4130
			if v:IsA("Part") then
4131
				v.Transparency = 1
4132
				v.BrickColor = BrickColor.new("White")
4133
				v.Material = "Neon"
4134
			end
4135
		end
4136
	elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
4137
		resetmode()
4138
	end
4139
	if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
4140
		ModeOfGlitch = 1000000
4141
		storehumanoidWS = 100
4142
		hum.WalkSpeed = 100
4143
		rainbowmode = false
4144
		chaosmode = false
4145
		RecolorTextAndRename("True Starlight", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
4146
		newTheme("rbxassetid://614032233", 0, 1, 1)
4147
		MAINRUINCOLOR = BrickColor.new("Bright violet")
4148
		for i, v in pairs(mw2:GetChildren()) do
4149
			if v:IsA("Part") then
4150
				v.BrickColor = MAINRUINCOLOR
4151
				v.Material = "Neon"
4152
			end
4153
		end
4154
		for i, v in pairs(mw1:GetChildren()) do
4155
			if v:IsA("Part") then
4156
				v.Transparency = 0
4157
				v.BrickColor = MAINRUINCOLOR
4158
				v.Material = "Neon"
4159
			end
4160
		end
4161
		for i, v in pairs(m:GetChildren()) do
4162
			if v:IsA("Part") then
4163
				v.Color = Color3.new(0.5, 0, 1)
4164
				v.Material = "Neon"
4165
			end
4166
		end
4167
		for i, v in pairs(m2:GetChildren()) do
4168
			if v:IsA("Part") then
4169
				v.Color = Color3.new(0.25, 0, 1)
4170
				v.Material = "Neon"
4171
			end
4172
		end
4173
		for i, v in pairs(m3:GetChildren()) do
4174
			if v:IsA("Part") then
4175
				v.Color = Color3.new(0.45, 0, 1)
4176
				v.Material = "Neon"
4177
			end
4178
		end
4179
		for i, v in pairs(extrawingmod1:GetChildren()) do
4180
			if v:IsA("Part") then
4181
				v.Transparency = 0
4182
				v.Color = Color3.new(0.25, 0, 1)
4183
				v.Material = "Neon"
4184
			end
4185
		end
4186
		for i, v in pairs(extrawingmod2:GetChildren()) do
4187
			if v:IsA("Part") then
4188
				v.Transparency = 0
4189
				v.Color = Color3.new(0.5, 0, 1)
4190
				v.Material = "Neon"
4191
			end
4192
		end
4193
	elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
4194
		resetmode()
4195
	end
4196
	if k == "l" and toggleTag == false then
4197
		toggleTag = true
4198
		text.TextTransparency = 0
4199
		text.TextStrokeTransparency = 0
4200
	elseif k == "l" and toggleTag == true then
4201
		toggleTag = false
4202
		text.TextTransparency = 1
4203
		text.TextStrokeTransparency = 1
4204
	end
4205
	if k == "z" and attack == false and ModeOfGlitch == 1 then
4206
		ExtinctiveHeartbreak()
4207
	elseif k == "z" and attack == false and ModeOfGlitch == 2 then
4208
		PureBomb()
4209
	elseif k == "z" and attack == false and ModeOfGlitch == 3 then
4210
		scattercorrupt()
4211
	elseif k == "z" and attack == false and ModeOfGlitch == 4 then
4212
		ChaosGroundStrike()
4213
	elseif k == "z" and attack == false and ModeOfGlitch == 5 then
4214
	elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
4215
		UniversalSpark()
4216
    elseif k == "l" and attack == false and ModeOfGlitch == 1000000 then
4217
        scattercorrupt()
4218
        wait(1)
4219
        yinyangi()
4220
    elseif k == "l" and attack == false and ModeOfGlitch == 5 then
4221
        scattercorrupt()
4222
        scattercorrupt()
4223
	elseif k == "z" and attack == false and ModeOfGlitch == 6 then
4224
		yinyangi()
4225
	elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
4226
		Wip()
4227
	end
4228
	if k == "l" and attack == false and ModeOfGlitch == 4 then
4229
		ChaosBegone()
4230
	end
4231
end)
4232
coroutine.resume(coroutine.create(function()
4233
	while true do
4234
		swait(2)
4235
		if rainbowmode == true or ModeOfGlitch == 6 then
4236
			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)
4237
		end
4238
	end
4239
end))
4240
coroutine.resume(coroutine.create(function()
4241
	while true do
4242
		swait(0.5)
4243
		if ModeOfGlitch == 1000000 then
4244
			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)
4245
		end
4246
	end
4247
end))
4248
coroutine.resume(coroutine.create(function()
4249
	while true do
4250
		swait(2)
4251
		if chaosmode == true then
4252
			RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
4253
			for i, v in pairs(mw1:GetChildren()) do
4254
				if v:IsA("Part") then
4255
					v.Transparency = 0.75
4256
					v.BrickColor = BrickColor.random()
4257
					v.Material = "Neon"
4258
				end
4259
			end
4260
			for i, v in pairs(m2:GetChildren()) do
4261
				if v:IsA("Part") then
4262
					v.BrickColor = BrickColor.random()
4263
					v.Material = "Neon"
4264
				end
4265
			end
4266
		end
4267
	end
4268
end))
4269
Humanoid.Name = "STARGLITCHER"
4270
Humanoid.MaxHealth = math.huge
4271
Humanoid.Health = math.huge
4272
Instance.new("ForceField", char).Visible = false
4273
Humanoid.Animator.Parent = nil
4274
idleanim = 0.4
4275
while true do
4276
	if rainbowmode == true then
4277
		RecolorTextAndRename("StarLight", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
4278
		MAINRUINCOLOR = BrickColor.new("White")
4279
		for i, v in pairs(m:GetChildren()) do
4280
			if v:IsA("Part") then
4281
				v.Color = Color3.new(r / 255, g / 255, b / 255)
4282
			end
4283
		end
4284
		for i, v in pairs(m2:GetChildren()) do
4285
			if v:IsA("Part") then
4286
				v.Color = Color3.new(r / 255, g / 255, b / 255)
4287
			end
4288
		end
4289
		for i, v in pairs(m3:GetChildren()) do
4290
			if v:IsA("Part") then
4291
				v.Color = Color3.new(r / 255, g / 255, b / 255)
4292
			end
4293
		end
4294
		for i, v in pairs(mw1:GetChildren()) do
4295
			if v:IsA("Part") then
4296
				v.Color = Color3.new(r / 255, g / 255, b / 255)
4297
				v.Material = "Neon"
4298
			end
4299
		end
4300
		for i, v in pairs(mw2:GetChildren()) do
4301
			if v:IsA("Part") then
4302
				v.Color = Color3.new(r / 255, g / 255, b / 255)
4303
				v.Material = "Neon"
4304
			end
4305
		end
4306
	end
4307
	CameraManager()
4308
	swait()
4309
	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))), 0.3)
4310
	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))), 0.3)
4311
	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))), 0.3)
4312
	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))), 0.3)
4313
	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))), 0.3)
4314
	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))), 0.3)
4315
	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))), 0.3)
4316
	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))), 0.3)
4317
	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))), 0.3)
4318
	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))), 0.3)
4319
	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))), 0.3)
4320
	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))), 0.3)
4321
	sine = sine + change
4322
	local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
4323
	local velderp = RootPart.Velocity.y
4324
	hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
4325
	if equipped == true or equipped == false then
4326
		if attack == false then
4327
			idle = idle + 1
4328
		else
4329
			idle = 0
4330
		end
4331
		if not (idle >= 500) or attack == false then
4332
		end
4333
		if RootPart.Velocity.y > 1 and hitfloor == nil then
4334
			Anim = "Jump"
4335
			if attack == false then
4336
				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)), 0.1)
4337
				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)), 0.1)
4338
				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)), 0.1)
4339
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
4340
				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)), 0.1)
4341
				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)), 0.1)
4342
			end
4343
		elseif RootPart.Velocity.y < -1 and hitfloor == nil then
4344
			Anim = "Fall"
4345
			if attack == false then
4346
				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)), 0.1)
4347
				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)), 0.1)
4348
				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)), 0.1)
4349
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
4350
				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)), 0.1)
4351
				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)), 0.1)
4352
			end
4353
		elseif torvel < 1 and hitfloor ~= nil then
4354
			Anim = "Idle"
4355
			if attack == false then
4356
				if ModeOfGlitch == 1 then
4357
					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)), 0.1)
4358
					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))), 0.1)
4359
					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)), 0.1)
4360
					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))), 0.1)
4361
					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))), 0.1)
4362
					LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
4363
				elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
4364
					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))), 0.1)
4365
					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))), 0.1)
4366
					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)), 0.1)
4367
					Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
4368
					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))), 0.1)
4369
					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))), 0.1)
4370
				elseif ModeOfGlitch == 3 then
4371
					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))), 0.1)
4372
					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))), 0.1)
4373
					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)), 0.1)
4374
					Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(20)), 0.1)
4375
					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))), 0.1)
4376
					LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1)
4377
				elseif ModeOfGlitch == 4 then
4378
					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)), 0.1)
4379
					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)), 0.1)
4380
					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)), 0.1)
4381
					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))), 0.1)
4382
					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))), 0.1)
4383
					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))), 0.1)
4384
				elseif ModeOfGlitch == 5 then
4385
					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))), 0.1)
4386
					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))), 0.1)
4387
					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)), 0.1)
4388
					Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
4389
					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)), 0.1)
4390
					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)), 0.1)
4391
				elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
4392
					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)), 0.1)
4393
					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)), 0.1)
4394
					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)), 0.1)
4395
					Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
4396
					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))), 0.1)
4397
					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))), 0.1)
4398
				end
4399
			end
4400
		elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
4401
			Anim = "Walk"
4402
			if attack == false then
4403
				if ModeOfGlitch == 1 then
4404
					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))), 0.1)
4405
					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))), 0.1)
4406
					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))), 0.1)
4407
					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))), 0.1)
4408
					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))), 0.1)
4409
					LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
4410
				elseif ModeOfGlitch == 4 then
4411
					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))), 0.1)
4412
					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))), 0.1)
4413
					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))), 0.1)
4414
					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))), 0.1)
4415
					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))), 0.1)
4416
					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))), 0.1)
4417
				elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then
4418
					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))), 0.1)
4419
					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))), 0.1)
4420
					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))), 0.1)
4421
					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))), 0.1)
4422
					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))), 0.1)
4423
					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))), 0.1)
4424
				end
4425
			end
4426
		elseif torvel >= 22 and hitfloor ~= nil then
4427
			Anim = "Run"
4428
			if attack == false then
4429
				if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then
4430
					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))), 0.1)
4431
					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))), 0.1)
4432
					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))), 0.1)
4433
					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))), 0.1)
4434
					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))), 0.1)
4435
					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))), 0.1)
4436
				elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
4437
					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)), 0.2)
4438
					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)), 0.2)
4439
					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)), 0.2)
4440
					Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
4441
					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))), 0.2)
4442
					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))), 0.2)
4443
				end
4444
			end
4445
		end
4446
	end
4447
end