View difference between Paste ID: HzfrN7RM and t7G0AFeV
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
do
4
	print("FE Compatibility code by Mokiros")
5
	script.Parent = Player.Character
6
7
	--RemoteEvent for communicating
8
	local Event = Instance.new("RemoteEvent")
9
	Event.Name = "UserInput_Event"
10
11
	--Fake event to make stuff like Mouse.KeyDown work
12
	local function fakeEvent()
13
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14
		t.connect = t.Connect
15
		return t
16
	end
17
18
	--Creating fake input objects with fake variables
19
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23
	end}
24
	--Merged 2 functions into one by checking amount of arguments
25
	CAS.UnbindAction = CAS.BindAction
26
27
	--This function will trigger the events that have been :Connect()'ed
28
	local function te(self,ev,...)
29
		local t = m[ev]
30
		if t and t._fakeEvent and t.Function then
31
			t.Function(...)
32
		end
33
	end
34
	m.TrigEvent = te
35
	UIS.TrigEvent = te
36
37
	Event.OnServerEvent:Connect(function(plr,io)
38
	    if plr~=Player then return end
39
		if io.isMouse then
40
			m.Target = io.Target
41
			m.Hit = io.Hit
42
		else
43
			local b = io.UserInputState == Enum.UserInputState.Begin
44
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46
			end
47
			for _,t in pairs(CAS.Actions) do
48
				for _,k in pairs(t.Keys) do
49
					if k==io.KeyCode then
50
						t.Function(t.Name,io.UserInputState,io)
51
					end
52
				end
53
			end
54
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
55
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
56
	    end
57
	end)
58
	Event.Parent = NLS([==[
59
	local Player = game:GetService("Players").LocalPlayer
60
	local Event = script:WaitForChild("UserInput_Event")
61
62
	local UIS = game:GetService("UserInputService")
63
	local input = function(io,a)
64
		if a then return end
65
		--Since InputObject is a client-side instance, we create and pass table instead
66
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
67
	end
68
	UIS.InputBegan:Connect(input)
69
	UIS.InputEnded:Connect(input)
70
71
	local Mouse = Player:GetMouse()
72
	local h,t
73
	--Give the server mouse data 30 times every second, but only if the values changed
74
	--If player is not moving their mouse, client won't fire events
75
	while wait(1/30) do
76
		if h~=Mouse.Hit or t~=Mouse.Target then
77
			h,t=Mouse.Hit,Mouse.Target
78
			Event:FireServer({isMouse=true,Target=t,Hit=h})
79
		end
80
	end]==],Player.Character)
81
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
82
end
83
--//====================================================\\--
84
--||			   CREATED BY SHACKLUSTER
85
--\\====================================================//--
86
local LIGHTHITSOUNDS = {"1177780949","1177781153","1177784554"}
87
function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
88
	if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
89
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
90
		local dmg = math.random(min,max)
91
		if humanoid.Health > 0 then
92
			if beserk == true then
93
				humanoid.Health = 0
94
			else
95
				CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
96
				hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
97
				if math.random(1,100) < critrate+ 1 then
98
					humanoid.Health = humanoid.Health - dmg*critmultiplier
99
					StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
100
				else
101
					humanoid.Health = humanoid.Health - dmg
102
					StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
103
				end
104
				local defence = Instance.new("BoolValue",hit.Parent)
105
				defence.Name = ("HitBy"..Player.Name)
106
				game:GetService("Debris"):AddItem(defence, 0.5)
107
			end
108
		end
109
	end
110
end
111
function turnto(position)
112
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
113
end
114
Player = owner
115
PlayerGui = Player.PlayerGui
116
Cam = workspace.CurrentCamera
117
Backpack = Player.Backpack
118
Character = Player.Character
119
Humanoid = Character.Humanoid
120
Humanoid.Name = "Hi :):"
121
RootPart = Character["HumanoidRootPart"]
122
Torso = Character["Torso"]
123
Head = Character["Head"]
124
RightArm = Character["Right Arm"]
125
LeftArm = Character["Left Arm"]
126
RightLeg = Character["Right Leg"]
127
LeftLeg = Character["Left Leg"]
128
RootJoint = RootPart["RootJoint"]
129
Neck = Torso["Neck"]
130
RightShoulder = Torso["Right Shoulder"]
131
LeftShoulder = Torso["Left Shoulder"]
132
RightHip = Torso["Right Hip"]
133
LeftHip = Torso["Left Hip"]
134
local sick = Instance.new("Sound",Character)
135
sick.SoundId = "rbxassetid://1140435341"
136
sick.Looped = true
137
sick.Pitch = 1
138
sick.Volume = 50
139
sick:Play()
140
local SIZE = 1
141
142
IT = Instance.new
143
CF = CFrame.new
144
VT = Vector3.new
145
RAD = math.rad
146
C3 = Color3.new
147
UD2 = UDim2.new
148
BRICKC = BrickColor.new
149
ANGLES = CFrame.Angles
150
EULER = CFrame.fromEulerAnglesXYZ
151
COS = math.cos
152
ACOS = math.acos
153
SIN = math.sin
154
ASIN = math.asin
155
ABS = math.abs
156
MRANDOM = math.random
157
FLOOR = math.floor
158
159
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
160
	local NEWMESH = IT(MESH)
161
	if MESH == "SpecialMesh" then
162
		NEWMESH.MeshType = MESHTYPE
163
		if MESHID ~= "nil" and MESHID ~= "" then
164
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
165
		end
166
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
167
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
168
		end
169
	end
170
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
171
	NEWMESH.Scale = SCALE
172
	NEWMESH.Parent = PARENT
173
	return NEWMESH
174
end
175
176
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
177
	local NEWPART = IT("Part")
178
	NEWPART.formFactor = FORMFACTOR
179
	NEWPART.Reflectance = REFLECTANCE
180
	NEWPART.Transparency = TRANSPARENCY
181
	NEWPART.CanCollide = false
182
	NEWPART.Locked = true
183
	NEWPART.Anchored = true
184
	if ANCHOR == false then
185
		NEWPART.Anchored = false
186
	end
187
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
188
	NEWPART.Name = NAME
189
	NEWPART.Size = SIZE
190
	NEWPART.Position = Torso.Position
191
	NEWPART.Material = MATERIAL
192
	NEWPART:BreakJoints()
193
	NEWPART.Parent = PARENT
194
	return NEWPART
195
end
196
						
197
198
--//=================================\\
199
--||		  CUSTOMIZATION
200
--\\=================================//
201
202
Player_Size = 1 --Size of the player.
203
Animation_Speed = 3
204
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
205
206
local Speed = 16
207
local Effects2 = {}
208
209
--//=================================\\
210
--|| 	  END OF CUSTOMIZATION
211
--\\=================================//
212
213
	local function weldBetween(a, b)
214
	    local weldd = Instance.new("ManualWeld")
215
	    weldd.Part0 = a
216
	    weldd.Part1 = b
217
	    weldd.C0 = CFrame.new()
218
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
219
	    weldd.Parent = a
220
	    return weldd
221
	end
222
223
function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
224
local acs = Instance.new("Part")
225
acs.CanCollide = false
226
acs.Anchored = false
227
acs.Size = Vector3.new(0,0,0)
228
acs.CFrame = attachmentpart.CFrame
229
acs.Parent = Character
230
acs.BrickColor = color
231
    local meshs = Instance.new("SpecialMesh")
232
    meshs.MeshId = mesh
233
    meshs.TextureId = texture
234
    meshs.Parent = acs
235
    meshs.Scale = scale
236
    meshs.Offset = offset
237
weldBetween(attachmentpart,acs)
238
end
239
240-
function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
240+
241-
if TYPE == "Gem" then
241+
242-
	local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
242+
243-
	acs.Anchored = false
243+
244-
    acs.CanCollide = false
244+
245-
	acs.CFrame = PART.CFrame
245+
246-
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
246+
247-
weldBetween(PART,acs)
247+
248-
elseif TYPE == "Skull" then
248+
249-
	local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
249+
250-
	acs.Anchored = false
250+
251-
    acs.CanCollide = false
251+
252-
	acs.CFrame = PART.CFrame
252+
253-
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
253+
254-
weldBetween(PART,acs)
254+
255-
elseif TYPE == "Eye" then
255+
256-
	local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
256+
257-
	acs.Anchored = false
257+
258-
    acs.CanCollide = false
258+
259-
	acs.CFrame = PART.CFrame
259+
260-
	local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
260+
261-
weldBetween(PART,acs)
261+
262
local WALK = 0
263
local VALUE1 = false
264
local VALUE2 = false
265
266
local ROBLOXIDLEANIMATION = IT("Animation")
267
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
268
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
269
--ROBLOXIDLEANIMATION.Parent = Humanoid
270
local WEAPONGUI = IT("ScreenGui", PlayerGui)
271
WEAPONGUI.Name = "Weapon GUI"
272
local Weapon = IT("Model")
273
Weapon.Name = "Adds"
274
local Effects = IT("Folder", Weapon)
275
Effects.Name = "Effects"
276
local ANIMATOR = Humanoid.Animator
277
local ANIMATE = Character.Animate
278
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
279
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
280
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
281
local HITBLOCKSOUNDS = {"199148933", "199148947"}
282
local UNANCHOR = true
283
284
local SKILLTEXTCOLOR = C3(0,0,0)
285
local CHOSENBRICK = "Royal purple"
286
287
--//=================================\\
288
--\\=================================//
289
290
291
--//=================================\\
292
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
293
--\\=================================//
294
295
ArtificialHB = Instance.new("BindableEvent", script)
296
ArtificialHB.Name = "ArtificialHB"
297
298
script:WaitForChild("ArtificialHB")
299
300
frame = Frame_Speed
301
tf = 0
302
allowframeloss = false
303
tossremainder = false
304
lastframe = tick()
305
script.ArtificialHB:Fire()
306
307
game:GetService("RunService").Heartbeat:connect(function(s, p)
308
	tf = tf + s
309
	if tf >= frame then
310
		if allowframeloss then
311
			script.ArtificialHB:Fire()
312
			lastframe = tick()
313
		else
314
			for i = 1, math.floor(tf / frame) do
315
				script.ArtificialHB:Fire()
316
			end
317
		lastframe = tick()
318
		end
319
		if tossremainder then
320
			tf = 0
321
		else
322
			tf = tf - frame * math.floor(tf / frame)
323
		end
324
	end
325
end)
326
327
--//=================================\\
328
--\\=================================//
329
330
331
332
333
334
--//=================================\\
335
--|| 	      SOME FUNCTIONS
336
--\\=================================//
337
338
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
339
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
340
end
341
342
function PositiveAngle(NUMBER)
343
	if NUMBER >= 0 then
344
		NUMBER = 0
345
	end
346
	return NUMBER
347
end
348
349
function NegativeAngle(NUMBER)
350
	if NUMBER <= 0 then
351
		NUMBER = 0
352
	end
353
	return NUMBER
354
end
355
356
function Swait(NUMBER)
357
	if NUMBER == 0 or NUMBER == nil then
358
		ArtificialHB.Event:wait()
359
	else
360
		for i = 1, NUMBER do
361
			ArtificialHB.Event:wait()
362
		end
363
	end
364
end
365
366
function QuaternionFromCFrame(cf)
367
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
368
	local trace = m00 + m11 + m22
369
	if trace > 0 then 
370
		local s = math.sqrt(1 + trace)
371
		local recip = 0.5 / s
372
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
373
	else
374
		local i = 0
375
		if m11 > m00 then
376
			i = 1
377
		end
378
		if m22 > (i == 0 and m00 or m11) then
379
			i = 2
380
		end
381
		if i == 0 then
382
			local s = math.sqrt(m00 - m11 - m22 + 1)
383
			local recip = 0.5 / s
384
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
385
		elseif i == 1 then
386
			local s = math.sqrt(m11 - m22 - m00 + 1)
387
			local recip = 0.5 / s
388
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
389
		elseif i == 2 then
390
			local s = math.sqrt(m22 - m00 - m11 + 1)
391
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
392
		end
393
	end
394
end
395
 
396
function QuaternionToCFrame(px, py, pz, x, y, z, w)
397
	local xs, ys, zs = x + x, y + y, z + z
398
	local wx, wy, wz = w * xs, w * ys, w * zs
399
	local xx = x * xs
400
	local xy = x * ys
401
	local xz = x * zs
402
	local yy = y * ys
403
	local yz = y * zs
404
	local zz = z * zs
405
	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))
406
end
407
 
408
function QuaternionSlerp(a, b, t)
409
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
410
	local startInterp, finishInterp;
411
	if cosTheta >= 0.0001 then
412
		if (1 - cosTheta) > 0.0001 then
413
			local theta = ACOS(cosTheta)
414
			local invSinTheta = 1 / SIN(theta)
415
			startInterp = SIN((1 - t) * theta) * invSinTheta
416
			finishInterp = SIN(t * theta) * invSinTheta
417
		else
418
			startInterp = 1 - t
419
			finishInterp = t
420
		end
421
	else
422
		if (1 + cosTheta) > 0.0001 then
423
			local theta = ACOS(-cosTheta)
424
			local invSinTheta = 1 / SIN(theta)
425
			startInterp = SIN((t - 1) * theta) * invSinTheta
426
			finishInterp = SIN(t * theta) * invSinTheta
427
		else
428
			startInterp = t - 1
429
			finishInterp = t
430
		end
431
	end
432
	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
433
end
434
435
function Clerp(a, b, t)
436
	local qa = {QuaternionFromCFrame(a)}
437
	local qb = {QuaternionFromCFrame(b)}
438
	local ax, ay, az = a.x, a.y, a.z
439
	local bx, by, bz = b.x, b.y, b.z
440
	local _t = 1 - t
441
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
442
end
443
444
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
445
	local frame = IT("Frame")
446
	frame.BackgroundTransparency = TRANSPARENCY
447
	frame.BorderSizePixel = BORDERSIZEPIXEL
448
	frame.Position = POSITION
449
	frame.Size = SIZE
450
	frame.BackgroundColor3 = COLOR
451
	frame.BorderColor3 = BORDERCOLOR
452
	frame.Name = NAME
453
	frame.Parent = PARENT
454
	return frame
455
end
456
457
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
458
	local label = IT("TextLabel")
459
	label.BackgroundTransparency = 1
460
	label.Size = UD2(1, 0, 1, 0)
461
	label.Position = UD2(0, 0, 0, 0)
462
	label.TextColor3 = TEXTCOLOR
463
	label.TextStrokeTransparency = STROKETRANSPARENCY
464
	label.TextTransparency = TRANSPARENCY
465
	label.FontSize = TEXTFONTSIZE
466
	label.Font = TEXTFONT
467
	label.BorderSizePixel = BORDERSIZEPIXEL
468
	label.TextScaled = false
469
	label.Text = TEXT
470
	label.Name = NAME
471
	label.Parent = PARENT
472
	return label
473
end
474
475
function NoOutlines(PART)
476
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
477
end
478
479
480
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
481
	local NEWWELD = IT(TYPE)
482
	NEWWELD.Part0 = PART0
483
	NEWWELD.Part1 = PART1
484
	NEWWELD.C0 = C0
485
	NEWWELD.C1 = C1
486
	NEWWELD.Parent = PARENT
487
	return NEWWELD
488
end
489
490
491
function CreateSound(ID, PARENT, VOLUME, PITCH)
492
	local NEWSOUND = nil
493
	coroutine.resume(coroutine.create(function()
494
		NEWSOUND = IT("Sound", PARENT)
495
		NEWSOUND.Volume = VOLUME
496
		NEWSOUND.Pitch = PITCH
497
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
498
		Swait()
499
		NEWSOUND:play()
500
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
501
	end))
502
	return NEWSOUND
503
end
504
505
function CFrameFromTopBack(at, top, back)
506
	local right = top:Cross(back)
507
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
508
end
509
510
function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
511
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
512
	local mesh = IT("SpecialMesh",wave)
513
	mesh.MeshType = "FileMesh"
514
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
515
	mesh.Scale = SIZE
516
	mesh.Offset = VT(0,0,-SIZE.X/8)
517
	wave.CFrame = CFRAME
518
	coroutine.resume(coroutine.create(function(PART)
519
		for i = 1, WAIT do
520
			Swait()
521
			mesh.Scale = mesh.Scale + GROW
522
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
523
			if DOESROT == true then
524
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
525
			end
526
			wave.Transparency = wave.Transparency + (0.5/WAIT)
527
			if wave.Transparency > 0.99 then
528
				wave:remove()
529
			end
530
		end
531
	end))
532
end
533
534
function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
535
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
536
	local mesh = IT("SpecialMesh",wave)
537
	mesh.MeshType = "FileMesh"
538
	mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
539
	mesh.Scale = SIZE
540
	mesh.Offset = VT(0,0,-SIZE.X/8)
541
	wave.CFrame = CFRAME
542
	coroutine.resume(coroutine.create(function(PART)
543
		for i = 1, WAIT do
544
			Swait()
545
			mesh.Scale = mesh.Scale + GROW
546
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
547
			if DOESROT == true then
548
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
549
			end
550
			wave.Transparency = wave.Transparency + (0.5/WAIT)
551
			if wave.Transparency > 0.99 then
552
				wave:remove()
553
			end
554
		end
555
	end))
556
end
557
558
function clerp(a, b, t)
559
  return a:lerp(b, t)
560
end
561
562
function newBezier(startpos, pos2, pos3, endpos, t)
563
  local A = clerp(startpos, pos2, t)
564
  local B = clerp(pos2, pos3, t)
565
  local C = clerp(pos3, endpos, t)
566
  local lerp1 = clerp(A, B, t)
567
  local lerp2 = clerp(B, C, t)
568
  local cubic = clerp(lerp1, lerp2, t)
569
  return cubic
570
end
571
572
function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
573
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
574
	local mesh = IT("SpecialMesh",wave)
575
	mesh.MeshType = "FileMesh"
576
	mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
577
	mesh.Scale = SIZE
578
	mesh.Offset = VT(0,0,-SIZE.X/8)
579
	wave.CFrame = CFRAME
580
	coroutine.resume(coroutine.create(function(PART)
581
		for i = 1, WAIT do
582
			Swait()
583
			mesh.Scale = mesh.Scale + GROW
584
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
585
			if DOESROT == true then
586
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
587
			end
588
			wave.Transparency = wave.Transparency + (0.5/WAIT)
589
			if wave.Transparency > 0.99 then
590
				wave:remove()
591
			end
592
		end
593
	end))
594
end
595
596
function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
597
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
598
	local mesh = IT("SpecialMesh",wave)
599
	mesh.MeshType = "FileMesh"
600
	mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
601
	mesh.Scale = SIZE
602
	mesh.Offset = VT(0,0,-SIZE.X/8)
603
	wave.CFrame = CFRAME
604
	coroutine.resume(coroutine.create(function(PART)
605
		for i = 1, WAIT do
606
			Swait()
607
			mesh.Scale = mesh.Scale + GROW
608
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
609
			if DOESROT == true then
610
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
611
			end
612
			wave.Transparency = wave.Transparency + (0.5/WAIT)
613
			if wave.Transparency > 0.99 then
614
				wave:remove()
615
			end
616
		end
617
	end))
618
end
619
620
function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
621
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
622
	local mesh = IT("SpecialMesh",wave)
623
	mesh.MeshType = "FileMesh"
624
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
625
	mesh.Scale = SIZE
626
	wave.CFrame = CFRAME
627
	coroutine.resume(coroutine.create(function(PART)
628
		for i = 1, WAIT do
629
			Swait()
630
			mesh.Scale = mesh.Scale + GROW
631
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
632
			if DOESROT == true then
633
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
634
			end
635
			wave.Transparency = wave.Transparency + (0.5/WAIT)
636
			if wave.Transparency > 0.99 then
637
				wave:remove()
638
			end
639
		end
640
	end))
641
end
642
643
function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
644
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
645
	local mesh = IT("SpecialMesh",wave)
646
	mesh.MeshType = "FileMesh"
647
	mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
648
	mesh.Scale = SIZE
649
	wave.CFrame = CFRAME
650
	coroutine.resume(coroutine.create(function(PART)
651
		for i = 1, WAIT do
652
			Swait()
653
			mesh.Scale = mesh.Scale + GROW
654
			if DOESROT == true then
655
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
656
			end
657
			wave.Transparency = wave.Transparency + (0.5/WAIT)
658
			if wave.Transparency > 0.99 then
659
				wave:remove()
660
			end
661
		end
662
	end))
663
end
664
665
function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
666
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
667
	local mesh = IT("SpecialMesh",wave)
668
	mesh.MeshType = "FileMesh"
669
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
670
	mesh.Scale = SIZE
671
	mesh.Offset = VT(0,0,0)
672
	wave.CFrame = CFRAME
673
	coroutine.resume(coroutine.create(function(PART)
674
		for i = 1, WAIT do
675
			Swait()
676
			mesh.Scale = mesh.Scale + GROW
677
			if DOESROT == true then
678
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
679
			end
680
			wave.Transparency = wave.Transparency + (0.5/WAIT)
681
			if wave.Transparency > 0.99 then
682
				wave:remove()
683
			end
684
		end
685
	end))
686
end
687
688
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
689
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
690
	local mesh = IT("SpecialMesh",wave)
691
	mesh.MeshType = "Sphere"
692
	mesh.Scale = SIZE
693
	mesh.Offset = VT(0,0,0)
694
	wave.CFrame = CFRAME
695
	coroutine.resume(coroutine.create(function(PART)
696
		for i = 1, WAIT do
697
			Swait()
698
			mesh.Scale = mesh.Scale + GROW
699
			wave.Transparency = wave.Transparency + (1/WAIT)
700
			if wave.Transparency > 0.99 then
701
				wave:remove()
702
			end
703
		end
704
	end))
705
end
706
707
function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
708
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
709
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
710
	wave.CFrame = CFRAME
711
	coroutine.resume(coroutine.create(function(PART)
712
		for i = 1, WAIT do
713
			Swait()
714
			mesh.Scale = mesh.Scale * GROW
715
			wave.Transparency = wave.Transparency + (0.5/WAIT)
716
			if wave.Transparency > 0.99 then
717
				wave:remove()
718
			end
719
		end
720
	end))
721
end
722
723
function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
724
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
725
	local mesh = IT("BlockMesh",wave)
726
	wave.CFrame = CFRAME
727
	coroutine.resume(coroutine.create(function(PART)
728
		for i = 1, WAIT do
729
			Swait()
730
			mesh.Scale = mesh.Scale + GROW
731
			wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
732
			wave.Transparency = wave.Transparency + (1/WAIT)
733
			if wave.Transparency > 0.99 then
734
				wave:remove()
735
			end
736
		end
737
	end))
738
end
739
740
function MakeForm(PART,TYPE)
741
	if TYPE == "Cyl" then
742
		local MSH = IT("CylinderMesh",PART)
743
	elseif TYPE == "Ball" then
744
		local MSH = IT("SpecialMesh",PART)
745
		MSH.MeshType = "Sphere"
746
	elseif TYPE == "Wedge" then
747
		local MSH = IT("SpecialMesh",PART)
748
		MSH.MeshType = "Wedge"
749
	end
750
end
751
752
function CheckTableForString(Table, String)
753
	for i, v in pairs(Table) do
754
		if string.find(string.lower(String), string.lower(v)) then
755
			return true
756
		end
757
	end
758
	return false
759
end
760
761
function CheckIntangible(Hit)
762
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
763
	if Hit and Hit.Parent then
764
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
765
			return true
766
		end
767
	end
768
	return false
769
end
770
771
Debris = game:GetService("Debris")
772
773
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
774
	local Direction = CFrame.new(StartPos, Vec).lookVector
775
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
776
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
777
	if RayHit and CheckIntangible(RayHit) then
778
		if DelayIfHit then
779
			wait()
780
		end
781
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
782
	end
783
	return RayHit, RayPos, RayNormal
784
end
785
786
function turnto(position)
787
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
788
end
789
790
--//=================================\\
791
--||	     WEAPON CREATION
792
--\\=================================//
793
794
for i = 1, 35 do
795
    local FACE = CreatePart(3, FaceGradient, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
796
    FACE.Color = C3(0,0,0)
797
    Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
798
    CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
799
end
800
801
local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false)
802
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(-0.7, 0.7, 0.5) * ANGLES(RAD(50), RAD(0), RAD(15)), CF(0, 0, 0))
803
local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.7,1.4,0.7),false)
804
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
805
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Flame", VT(0.65,1.4,0.65),false)
806
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
807
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false)
808
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
809
810
local DECAL = IT("Decal",Part)
811
DECAL.Texture = "http://www.roblox.com/asset/?id=1260793696"
812
DECAL.Face = "Top"
813
814
local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.6,0.5,0.6),false)
815
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(-0.6, 0, 0.5) * ANGLES(RAD(80), RAD(0), RAD(15)), CF(0, 0, 0))
816
local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.5,1.4,0.5),false)
817
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
818
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Earth green", "Radioactive", VT(0.45,1.4,0.45),false)
819
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
820
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.6,0.5,0.6),false)
821
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
822
823
local DECAL = IT("Decal",Part)
824
DECAL.Texture = "http://www.roblox.com/asset/?id=1172964487"
825
DECAL.Face = "Top"
826
827
local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.5,0.5,0.5),false)
828
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(-0.5, -0.5, 0.45) * ANGLES(RAD(110), RAD(0), RAD(15)), CF(0, 0, 0))
829
local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.4,1.4,0.4),false)
830
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
831
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Crimson", "Light", VT(0.35,1.4,0.35),false)
832
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
833
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.5,0.5,0.5),false)
834
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
835
836
local DECAL = IT("Decal",Part)
837
DECAL.Texture = "http://www.roblox.com/asset/?id=68854060"
838
DECAL.Face = "Top"
839
840
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,0.7,1.1),false)
841
CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
842
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.55,0.7,1.1),false)
843
CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0.25, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
844
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,0.7,0.525),false)
845
CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(-0.28, 0, 0) * ANGLES(RAD(180), RAD(90), RAD(0)), CF(0, 0, 0))
846
MakeForm(Part,"Wedge")
847
848
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false)
849
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
850
MakeForm(Part,"Wedge")
851
852
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false)
853
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
854
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
855
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0))
856
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
857
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0))
858
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false)
859
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
860
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Eon", VT(0.5,0.5,1.25),false)
861
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
862
863
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Eon", VT(0.1,0.2,0.1),false)
864
CreateWeldOrSnapOrMotor("Weld", Head, Head, Part, CF(-0.2, 0.2, -0.55) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
865
MakeForm(Part,"Ball")
866
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Eon", VT(0.1,0.2,0.1),false)
867
CreateWeldOrSnapOrMotor("Weld", Head, Head, Part, CF(0.2, 0.2, -0.55) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
868
MakeForm(Part,"Ball")
869
870
local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false)
871
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(0.7, 0.7, 0.5) * ANGLES(RAD(50), RAD(0), RAD(-15)), CF(0, 0, 0))
872
local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.7,1.4,0.7),false)
873
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
874
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Carnation pink", "Love", VT(0.65,1.4,0.65),false)
875
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
876
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false)
877
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
878
879
			local FAKECHARACTER = IT("Model",Effects)
880
			FAKECHARACTER.Name = "NeonDoll"
881
			local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.3,0.3,0.15),false)
882
			CreateWeldOrSnapOrMotor("Weld", Part, Part, TORS, CF(0,0.5,0), CF(0,0,0))
883
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
884
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(-90), RAD(0), RAD(15)), CF(0,0.15,0))
885
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
886
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(-90), RAD(0), RAD(-15)), CF(0,0.15,0))
887
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
888
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(30)), CF(0,0.15,0))
889
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
890
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-30)), CF(0,0.15,0))
891
			local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.15,0.15),false)
892
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
893
894
local DECAL = IT("Decal",Part)
895
DECAL.Texture = "http://www.roblox.com/asset/?id=301069998"
896
DECAL.Face = "Top"
897
898
local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.6,0.5,0.6),false)
899
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(0.6, 0, 0.5) * ANGLES(RAD(80), RAD(0), RAD(-15)), CF(0, 0, 0))
900
local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.5,1.4,0.5),false)
901
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
902
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Dark Matter", VT(0.10,1.4,0.10),false)
903
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
904
			local FAKECHARACTER = IT("Model",Effects)
905
			FAKECHARACTER.Name = "NeonDoll"
906
907
			local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.3,0.3,0.15),false)
908
			CreateWeldOrSnapOrMotor("Weld", Part, Part, TORS, CF(0,0,0), CF(0,0,0))
909
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.15,0.3,0.15),false)
910
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
911
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.15,0.3,0.15),false)
912
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
913
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.15,0.3,0.15),false)
914
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(10)), CF(0,0.15,0))
915
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.15,0.3,0.15),false)
916
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-10)), CF(0,0.15,0))
917
			local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.15,0.15,0.15),false)
918
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
919
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.6,0.5,0.6),false)
920
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
921
922
local DECAL = IT("Decal",Part)
923
DECAL.Texture = "http://www.roblox.com/asset/?id=332392312"
924
DECAL.Face = "Top"
925
926
local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.5,0.5,0.5),false)
927
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(0.5, -0.5, 0.45) * ANGLES(RAD(110), RAD(0), RAD(-15)), CF(0, 0, 0))
928
local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.4,1.4,0.4),false)
929
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
930
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "White", "Light", VT(0.35,1.4,0.35),false)
931
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
932
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.5,0.5,0.5),false)
933
CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
934
935
local DECAL = IT("Decal",Part)
936
DECAL.Texture = "http://www.roblox.com/asset/?id=50184258"
937
DECAL.Face = "Top"
938
939
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,0.7,1.1),false)
940
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
941
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.55,0.7,1.1),false)
942
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(-0.25, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
943
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,0.7,0.525),false)
944
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0.28, 0, 0) * ANGLES(RAD(-180), RAD(-90), RAD(0)), CF(0, 0, 0))
945
MakeForm(Part,"Wedge")
946
947
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false)
948
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0.75, 0.51, 0) * ANGLES(RAD(-180), RAD(90), RAD(0)), CF(0, 0, 0))
949
MakeForm(Part,"Wedge")
950
951
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false)
952
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
953
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
954
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0))
955
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
956
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0))
957
local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false)
958
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
959
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Eon", VT(0.5,0.5,1.25),false)
960
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
961
962
for _, c in pairs(Weapon:GetChildren()) do
963
	if c.ClassName == "Part" then
964
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
965
	end
966
end
967
968
969
Weapon.Parent = Character
970
971
Humanoid.Died:connect(function()
972
	ATTACK = true
973
end)
974
975
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
976
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
977
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
978
979
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ability 1", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
980
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
981
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Toggle tanks", C3(0,0,0), 8, "SciFi", 0, 2, 1, "Text 3")
982
--//=================================\\
983
--||	     DAMAGE FUNCTIONS
984
--\\=================================//
985
986
function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
987
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
988
	STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
989
	local BODYGYRO = IT("BodyGyro", STATPART)
990
	local BODYPOSITION = IT("BodyPosition", STATPART)
991
	BODYPOSITION.P = 2000
992
	BODYPOSITION.D = 100
993
	BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
994
	BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
995
	game:GetService("Debris"):AddItem(STATPART ,5)
996
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
997
	BILLBOARDGUI.Adornee = STATPART
998
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
999
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
1000
	BILLBOARDGUI.AlwaysOnTop = false
1001
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
1002
	TEXTLABEL.BackgroundTransparency = 1
1003
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
1004
	TEXTLABEL.Text = TEXT
1005
	TEXTLABEL.Font = "SciFi"
1006
	TEXTLABEL.FontSize="Size42"
1007
	TEXTLABEL.TextColor3 = COLOR
1008
	TEXTLABEL.TextStrokeTransparency = 1
1009
	TEXTLABEL.TextScaled = true
1010
	TEXTLABEL.TextWrapped = true
1011
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
1012
		if LABELTYPE == "Normal" then
1013
			for i = 1, 30 do
1014
				Swait()
1015
				STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
1016
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
1017
			end
1018
		elseif LABELTYPE == "Debuff" then
1019
			for i = 1, 30 do
1020
				Swait()
1021
				STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
1022
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
1023
			end
1024
		elseif LABELTYPE == "Shock" then
1025
			local ORIGIN = STATPART.Position
1026
			for i = 1, 30 do
1027
				Swait()
1028
				STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
1029
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
1030
			end
1031
		end
1032
		THEPART.Parent = nil
1033
	end),STATPART, BODYPOSITION, TEXTLABEL)
1034
end
1035
1036
--//=================================\\
1037
--||			DAMAGING
1038
--\\=================================//
1039
1040
function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
1041
	local defence = Instance.new("BoolValue",Humanoid.Parent)
1042
	defence.Name = ("HitBy"..Player.Name)
1043
	game:GetService("Debris"):AddItem(defence, 0.5)
1044
		Humanoid.Health = Humanoid.Health - Damage
1045
		if Humanoid.Parent:FindFirstChild("Head") then
1046
				StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
1047
			end
1048
		end
1049
	
1050
1051
function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
1052
	local dmg = math.random(min,max)
1053
	for i,v in ipairs(workspace:GetChildren()) do
1054
	if v:FindFirstChild("HitBy"..Player.Name) == nil then
1055
		local body = v:GetChildren()
1056
			for part = 1, #body do
1057
				if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1058
					if(body[part].Position - position).Magnitude < radius then
1059
						if v.ClassName == "Model" then
1060
							if v:FindFirstChildOfClass("Humanoid") then
1061
								if CanBeDodgedByJumping == true then
1062
									if body[part].Position.Y < position.Y+5 then
1063
										ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
1064
									end
1065
								else
1066
									ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
1067
								end
1068
								local bv = Instance.new("BodyVelocity") 
1069
								bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1070
								bv.velocity = RootPart.CFrame.lookVector*maxstrength
1071
								bv.Parent = body[part]
1072
								Debris:AddItem(bv,0.2)
1073
							end
1074
						end
1075
					end
1076
				end
1077
			end
1078
		end
1079
		if v:FindFirstChild("HitBy"..Player.Name) then
1080
			v:FindFirstChild("HitBy"..Player.Name):remove()
1081
		end
1082
	end
1083
end
1084
1085
function AoEStun(POS,RANGE,LAST)
1086
	for i,v in ipairs(workspace:GetChildren()) do
1087
	if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
1088
		local body = v:GetChildren()
1089
			for part = 1, #body do
1090
				if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1091
					if(body[part].Position - POS).Magnitude < RANGE then
1092
						if v.ClassName == "Model" then
1093
							if v:FindFirstChild("Humanoid") then
1094
								if v.Humanoid.Health ~= 0 then
1095
									Stun(v.Humanoid,LAST)
1096
									local defence = Instance.new("BoolValue",v)
1097
									defence.Name = ("StunnedBy"..Player.Name)
1098
									game:GetService("Debris"):AddItem(defence, 0.1)
1099
								end
1100
							end
1101
						end
1102
					end
1103
				end
1104
			end
1105
		end
1106
	end
1107
end
1108
1109
function Stun(HUMANOID,LAST)
1110
	if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
1111
		HUMANOID.PlatformStand = true
1112
		local defence = Instance.new("BoolValue",HUMANOID.Parent)
1113
		defence.Name = ("StunnedBy"..Player.Name)
1114
		game:GetService("Debris"):AddItem(defence, LAST)
1115
		if HUMANOID.Parent:FindFirstChild("Head") then
1116
			StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3))
1117
		end
1118
		coroutine.resume(coroutine.create(function()
1119
			Swait(LAST*100)
1120
			HUMANOID.PlatformStand = false
1121
		end))
1122
	end
1123
end
1124
1125
function Poison(HUMANOID,LAST,DAMAGE)
1126
	if HUMANOID.Parent:FindFirstChild("PoisonedBy"..Player.Name) == nil then
1127
		local defence = Instance.new("BoolValue",HUMANOID.Parent)
1128
		defence.Name = ("PoisonedBy"..Player.Name)
1129
		game:GetService("Debris"):AddItem(defence, LAST)
1130
		coroutine.resume(coroutine.create(function()
1131
			for i = 1, LAST/2 do
1132
				if HUMANOID.Parent:FindFirstChild("Head") then
1133
					StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "POISON/"..DAMAGE, C3(0,1,0))
1134
				end
1135
				Swait(2)
1136
				HUMANOID.Health = HUMANOID.Health - DAMAGE
1137
			end
1138
		end))
1139
	end
1140
end
1141
1142
function killnearest(position,range,maxstrength)
1143
	for i,v in ipairs(workspace:GetChildren()) do
1144
	local body = v:GetChildren()
1145
		for part = 1, #body do
1146
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1147
				if(body[part].Position - position).Magnitude < range then
1148
					if v.ClassName == "Model" then
1149
						v:BreakJoints()
1150
					end
1151
					--table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
1152
					body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
1153
				end
1154
			end
1155
		end
1156
		if v.ClassName == "Part" then
1157
			if v.Anchored == false and (v.Position - position).Magnitude < range then
1158
				--table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
1159
				v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
1160
			end
1161
		end
1162
	end
1163
end
1164
1165
--//=================================\\
1166
--||	ATTACK FUNCTIONS AND STUFF
1167
--\\=================================//
1168
1169
function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
1170
	if DoesCourontine == false then
1171
		local Direction = CF(Part.Position,ToLocation)
1172
		local Distance = (Part.Position - ToLocation).magnitude
1173
		for i = 1, AmountOfTime do
1174
			Swait()
1175
			Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
1176
			Direction = Part.CFrame
1177
		end
1178
	elseif DoesCourontine == true then
1179
		coroutine.resume(coroutine.create(function()
1180
			local Direction = CF(Part.Position,ToLocation)
1181
			local Distance = (Part.Position - ToLocation).magnitude
1182
			for i = 1, AmountOfTime do
1183
				Swait()
1184
				Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
1185
				Direction = Part.CFrame
1186
			end
1187
		end))
1188
	end
1189
end
1190
1191
function impale(chain,hit)
1192
	if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then
1193
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
1194
		if humanoid.Health ~= 0 then
1195
			hit.Parent:BreakJoints()
1196
			getbloody(hit,15)
1197
			local prtcl = asd:Clone()
1198
			prtcl.Parent = chain
1199
			prtcl.Enabled = true
1200
			prtcl.Speed = NumberRange.new(0)
1201
			prtcl.Size = NumberSequence.new(0.2)
1202
		end
1203
	end
1204
end
1205
1206
function CreateMagicCircle()
1207
	local sinkhole = IT("Part")
1208
	sinkhole.Size = VT(0,0,0)
1209
	sinkhole.Parent = Effects
1210
	sinkhole.Material = "Neon"
1211
	sinkhole.Color = C3(0,0,0)
1212
	sinkhole.Anchored = true
1213
	sinkhole.CanCollide = false
1214
	sinkhole.Transparency = 1
1215
	local decal = IT("Decal",sinkhole)
1216
	decal.Face = "Top"
1217
	decal.Texture = "http://www.roblox.com/asset/?id=1260793696"
1218
	local decal2 = IT("Decal",sinkhole)
1219
	decal2.Face = "Bottom"
1220
	decal2.Texture = "http://www.roblox.com/asset/?id=1260793696"
1221
	return sinkhole
1222
end
1223
1224
function Chain()
1225
		ATTACK = true
1226
	Rooted = false
1227
	for i=0, 2, 0.1 / Animation_Speed do
1228
		turnto(Mouse.Hit.p)
1229
		Swait()
1230
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.25 / Animation_Speed)
1231
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.25 / Animation_Speed)
1232
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
1233
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
1234
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1235
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1236
	end
1237
	CreateSound("1208650519", RightArm, 10, 2)
1238
	local RING = CreateMagicCircle()
1239
	RING.CFrame = RightArm.CFrame * CF(0,-1.1,0)
1240
	for i = 1, 5 do
1241
		turnto(Mouse.Hit.p)
1242
		Swait()
1243
		local FRAME = CF(RightArm.CFrame * CF(MRANDOM(-5,5),MRANDOM(0,7.5),MRANDOM(-5,5)).p,RightArm.Position)
1244
		MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
1245
		MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
1246
		RING.CFrame = RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(0),RAD(i*2),RAD(0))
1247
		RING.Size = RING.Size + VT(1,0,1)
1248
	end
1249
	coroutine.resume(coroutine.create(function()
1250
		local POS = Mouse.Hit.p
1251
		local A = IT("Attachment",RING)
1252
		for i = 1, 15 do
1253
			Swait(MRANDOM(0,5))
1254
			coroutine.resume(coroutine.create(function()
1255
				local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
1256
				--print("Chain start")
1257
				Front.CFrame = RING.CFrame*CF(MRANDOM(-3,3),0,MRANDOM(-3,3))
1258
				Front.CanCollide = true
1259
				CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1)
1260
				local B = IT("Attachment",Front)
1261
				local ChainLink = IT("Beam",RING)
1262
				ChainLink.Texture = "rbxassetid://1262544869"
1263
				ChainLink.TextureSpeed = 0
1264
				ChainLink.FaceCamera = true
1265
				ChainLink.Width0 = 3
1266
				ChainLink.Attachment0 = A
1267
				ChainLink.Attachment1 = B
1268
				ChainLink.CurveSize0 = MRANDOM(-5,5)
1269
				ChainLink.CurveSize1 = MRANDOM(-5,5)
1270
				ChainLink.TextureMode = "Static"
1271
				local bv = Instance.new("BodyVelocity") 
1272
				bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1273
				bv.velocity = CF(Front.Position,VT(POS.X+MRANDOM(-3,3),POS.Y+MRANDOM(-3,3),POS.Z+MRANDOM(-3,3))).lookVector*500
1274
				bv.Parent = Front
1275
				bv.Name = "MOVE"
1276
				--print("Chain made")
1277
				coroutine.resume(coroutine.create(function()
1278
					Swait(50)
1279
					bv:remove()
1280
					local POS = Front.Position
1281
					Front.CanCollide = false
1282
					local onefourth = POS:Lerp(RING.Position, 0.25) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
1283
					local threefourths = POS:Lerp(RING.Position, 0.75) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
1284
			  		for i = 0, 1, 0.07 do
1285
			    	  	Swait()
1286
			    	  	Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, RING.Position, i))
1287
			    	end
1288
					Front:remove()
1289
					ChainLink:remove()
1290
				end))
1291
				local harm = Front.Touched:Connect(function(hit)
1292
					impale(Front,hit)
1293
				end)
1294
			end))
1295
		end
1296
		Swait(60)
1297
		for i = 1, 5 do
1298
			Swait()
1299
			RING.Size = RING.Size - VT(1,0,1)
1300
		end
1301
		RING:remove()
1302
	end))
1303
	ATTACK = false
1304
	Rooted = false
1305
end
1306
1307
function MegaChain()
1308
	ATTACK = true
1309
	Rooted = true
1310
	for i=0, 1, 0.1 / Animation_Speed do
1311
		Swait()
1312
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1313
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1314
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -1) * ANGLES(RAD(60), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1315
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 , 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed/8)
1316
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 * Player_Size, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.5 / Animation_Speed/8)
1317
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, 0) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.5 / Animation_Speed/8)
1318
	end
1319
	local RING = CreateMagicCircle()
1320
	CreateSound("1208650519", RING, 10, 1.5)
1321
	RING.CFrame = RootPart.CFrame * CF(0,-2.8,0)
1322
	local FRAME = RootPart.CFrame * CF(0,-2.8,0)
1323
	for i = 1, 75 do
1324
		Swait()
1325
		local FRAME = CF(RightArm.CFrame * CF(MRANDOM(-5,5),MRANDOM(0,7.5),MRANDOM(-5,5)).p,RightArm.Position)
1326
		MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
1327
		MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
1328
		RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(i/5),RAD(0))
1329
		RING.Size = RING.Size + VT(1,0,1)
1330
	end
1331
	coroutine.resume(coroutine.create(function()
1332
		for i = 1, 450 do
1333
			Swait(2)
1334
			local FRAME = CF(RING.CFrame * CF(MRANDOM(-25,25),MRANDOM(0,35),MRANDOM(-25,25)).p,RING.Position)
1335
			MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
1336
			MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
1337
			MagicSphere(VT(0,0,0),10,RING.CFrame,"Royal purple",VT(2,4,2))
1338
			MagicSphere(VT(0,0,0),10,RING.CFrame,"Really black",VT(1.8,3.8,1.8))
1339
			local A = IT("Attachment",RING)
1340
			local POS = RING.CFrame * CF(MRANDOM(-150,150),MRANDOM(5,50),MRANDOM(-150,150)).p
1341
			coroutine.resume(coroutine.create(function()
1342
				local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
1343
				--print("Chain start")
1344
				Front.CFrame = RING.CFrame*CF(MRANDOM(-3,3),0,MRANDOM(-3,3))
1345
				Front.CanCollide = false
1346
				CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 2, 1)
1347
				local B = IT("Attachment",Front)
1348
				local ChainLink = IT("Beam",RING)
1349
				ChainLink.Texture = "rbxassetid://1262544869"
1350
				ChainLink.TextureSpeed = 0
1351
				ChainLink.FaceCamera = true
1352
				ChainLink.Width0 = 3
1353
				ChainLink.Attachment0 = A
1354
				ChainLink.Attachment1 = B
1355
				ChainLink.CurveSize0 = MRANDOM(-5,5)
1356
				ChainLink.CurveSize1 = MRANDOM(-5,5)
1357
				ChainLink.TextureMode = "Static"
1358
				local bv = Instance.new("BodyVelocity") 
1359
				bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1360
				bv.velocity = CF(Front.Position,VT(POS.X+MRANDOM(-3,3),POS.Y+MRANDOM(-3,3),POS.Z+MRANDOM(-3,3))).lookVector*500
1361
				bv.Parent = Front
1362
				bv.Name = "MOVE"
1363
				--print("Chain made")
1364
				coroutine.resume(coroutine.create(function()
1365
					Swait(50)
1366
					bv:remove()
1367
					local POS = Front.Position
1368
					Front.CanCollide = false
1369
					local onefourth = POS:Lerp(RING.Position, 0.25) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
1370
					local threefourths = POS:Lerp(RING.Position, 0.75) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
1371
			  		for i = 0, 1, 0.07 do
1372
			    	  	Swait()
1373
			    	  	Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, RING.Position, i))
1374
			    	end
1375
					Front:remove()
1376
					ChainLink:remove()
1377
				end))
1378
				local harm = Front.Touched:Connect(function(hit)
1379
					impale(Front,hit)
1380
				end)
1381
			end))
1382
			AoEDamage(RING.Position,75,0,0,0,0,0,0,0,0,0,true)
1383
			RING.CFrame = RING.CFrame* ANGLES(RAD(0),RAD(5),RAD(0))
1384
		end
1385
		Swait(65)
1386
		for i = 1, 75 do
1387
			Swait()
1388
			RING.CFrame = RING.CFrame* ANGLES(RAD(0),RAD(-i/5),RAD(0))
1389
			RING.Size = RING.Size - VT(1,0,1)
1390
		end
1391
		RING:remove()
1392
	end))
1393
	ATTACK = false
1394
	Rooted = false
1395
end
1396
1397
function PowerOutburst()
1398
	ATTACK = true
1399
	Rooted = false
1400
	for i=0, 1, 0.1 / Animation_Speed do
1401
		Swait()
1402
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1403
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1404
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1405
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1406
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1407
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1408
	end
1409
	Head.face.Texture = "rbxassetid://1297068763"
1410
	for i=0, 0.2, 0.1 / Animation_Speed do
1411
		Swait()
1412
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
1413
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-90 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
1414
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1415
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1416
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
1417
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
1418
	end
1419
	for i=0, 3, 0.1 / Animation_Speed do
1420
		local COLORS = {"Earth green","Lime green","New Yeller"}
1421
		coroutine.resume(coroutine.create(function()
1422
			local FIRE = CreatePart(3, Effects, "Neon", 0, 0.8, COLORS[MRANDOM(1,#COLORS)], "FirePart", VT(0,0,0))
1423
			FIRE.CFrame = Head.CFrame*CF(0,-0.25,-0.5)
1424
			MakeForm(FIRE,"Ball")
1425
			for i = 1, 25 do
1426
				Swait()
1427
				FIRE.CFrame = FIRE.CFrame*CF(0,0,-0.1)
1428
				FIRE.Transparency = FIRE.Transparency + (0.2/25)
1429
				FIRE.Size = FIRE.Size * 1.35
1430
			end
1431
			AoEDamage(FIRE.Position,FIRE.Size.Y/2.5,2,3,0,6,1.5,false)
1432
			FIRE:remove()
1433
		end))
1434
		Slice(0.6,15,Head.CFrame*CF(0,-0.25,-1.5)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS[MRANDOM(1,#COLORS)],1.15)
1435
		Swait()
1436
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
1437
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-90 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
1438
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1439
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1440
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
1441
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
1442
	end
1443
	ATTACK = false
1444
	Rooted = false
1445
end
1446
1447
function RadioactiveSludge()
1448
	ATTACK = true
1449
	Rooted = false
1450
	local COLORS = {"Earth green","Slime green"}
1451
	local COLOR = COLORS[MRANDOM(1,#COLORS)]
1452
	local FIRE = CreatePart(3, Effects, "Neon", 0, 0, "Earth green", "FirePart", VT(0,0,0))
1453
	MakeForm(FIRE,"Ball")
1454
	FIRE.CFrame = RootPart.CFrame*CF(0,-0.25,-3)
1455
	local LIGHT = IT("PointLight",FIRE)
1456
	LIGHT.Range = 0.05
1457
	LIGHT.Brightness = 100
1458
	LIGHT.Color = C3(0,1,0)
1459
	for i=0, 1.5, 0.1 / Animation_Speed do
1460
		Swait()
1461
		turnto(Mouse.Hit.p)
1462
		FIRE.Size = FIRE.Size * 1.1
1463
		FIRE.CFrame = RootPart.CFrame*CF(0,-0.25,-3)
1464
		LIGHT.Range = LIGHT.Range * 1.1
1465
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 3 / Animation_Speed)
1466
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
1467
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.8) * ANGLES(RAD(125), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1468
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.8) * ANGLES(RAD(125), RAD(0), RAD(12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1469
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
1470
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
1471
	end
1472
	Rooted = true
1473
	coroutine.resume(coroutine.create(function()
1474
		local COLORS2 = {"Earth green","Lime green","New Yeller"}
1475
		FireArc(FIRE,Mouse.Hit.p,30,7,false)
1476
		local FLOOR = CreatePart(3, Effects, "Neon", 0, 0, "Earth green", "FirePart", VT(0,0,0))
1477
		local HIT, POS = Raycast(FIRE.Position, CF(FIRE.Position,FIRE.Position+VT(0,-1,0)).lookVector, 2, Character)
1478
		MakeForm(FLOOR,"Cyl")
1479
		FLOOR.CFrame = CF(POS)
1480
		LIGHT.Parent = FLOOR
1481
		for i = 1, 50 do
1482
			Swait()
1483
			LIGHT.Range = LIGHT.Range + 0.3
1484
			AoEDamage(FLOOR.Position,FLOOR.Size.Z,0,2,3,0,6,1.5,false)
1485
			Slice(FLOOR.Size.Z/20,15,FLOOR.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS2[MRANDOM(1,#COLORS2)],1.15)
1486
			FIRE.CFrame = FIRE.CFrame * CF(0,-0.1,0)
1487
			FLOOR.Size = FLOOR.Size + VT(0.7,0,0.7)
1488
		end
1489
		FIRE:remove()
1490
		for i = 1, 300 do
1491
			Swait()
1492
			AoEDamage(FLOOR.Position,FLOOR.Size.Z,0,2,3,0,6,1.5,false)
1493
			Slice(FLOOR.Size.Z/20,15,FLOOR.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS2[MRANDOM(1,#COLORS2)],1.15)
1494
		end
1495
		for i = 1, 25 do
1496
			Swait()
1497
			LIGHT.Range = LIGHT.Range - 0.8
1498
			AoEDamage(FLOOR.Position,FLOOR.Size.Z,0,2,3,0,6,1.5,false)
1499
			Slice(FLOOR.Size.Z/20,15,FLOOR.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS2[MRANDOM(1,#COLORS2)],1.15)
1500
			FIRE.CFrame = FIRE.CFrame * CF(0,-0.1,0)
1501
			FLOOR.Size = FLOOR.Size - VT(1.4,0,1.4)
1502
		end
1503
		FLOOR:remove()
1504
	end))
1505
	for i=0, 0.5, 0.1 / Animation_Speed do
1506
		Swait()
1507
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 3 / Animation_Speed)
1508
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
1509
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.8) * ANGLES(RAD(160), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1510
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.8) * ANGLES(RAD(160), RAD(0), RAD(12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1511
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed)
1512
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed)
1513
	end
1514
	ATTACK = false
1515
	Rooted = false
1516
end
1517
1518
function CastProperRay(StartPos, Vec, Length, Ignore)
1519
	local Direction = CFrame.new(StartPos, Vec).lookVector
1520
	local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
1521
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
1522
	return RayHit, RayPos, RayNormal
1523
end
1524
1525
function BanishBullet()
1526
	ATTACK = true
1527
	Rooted = false
1528
	for i = 0, 0.4, 0.1 / Animation_Speed do
1529
		Swait()
1530
		turnto(Mouse.Hit.p)
1531
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1532
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1533
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1534
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1535
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1536
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1537
	end
1538
	repeat
1539
		for i = 0, 0.2, 0.1 / Animation_Speed do
1540
			Swait()
1541
			turnto(Mouse.Hit.p)
1542
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1543
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1544
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1545
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1546
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1547
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1548
		end
1549
		CreateSound("238353911", RightArm, 10, MRANDOM(9, 11) / 10)
1550
		MagicSphere(VT(0.1, 0.1, 0.1), 45, RightArm.CFrame, "Crimson", VT(0.1, 0.1, 0.1))
1551
		MagicSphere(VT(0.1, 0.1, 0.1), 45, RightArm.CFrame, "Crimson", VT(0.05, 0.05, 0.05))
1552
		local RayHit, Way = CastProperRay(RightArm.Position, Mouse.Hit.p, 1500, Character)
1553
                local distance = (RightArm.Position - Way).magnitude
1554
		for i = 1, 5 do
1555
			local laser = Instance.new("Part", Effects)
1556
			laser.Transparency = 0
1557
			laser.CanCollide = false
1558
			laser.Anchored = true
1559
			laser.Color = C3(1, 0, 0)
1560
			laser.Material = "Neon"
1561
			laser.formFactor = Enum.FormFactor.Custom
1562
			laser.Size = Vector3.new(0.15, 0.15, distance)
1563
			laser.CFrame = CFrame.new(RightArm.Position, Way) * CFrame.new(0, 0, -distance / 2)
1564
			MagicSphere(VT(0.1, 0.1, 0.1), 45, CF(Way), "Crimson", VT(0.05, 0.05, 0.05))
1565
			for i = 1, 5 do
1566
				MagicSphere(VT(0.2, 0.2, 1), 65, CF(CF(Way) * CF(MRANDOM(-1, 1), MRANDOM(-1, 1), MRANDOM(-1, 1)).p, Way), "Crimson", VT(0.001, 0.001, 0), 0.5)
1567
			end
1568
			table.insert(Effects2, {
1569
				laser,
1570
				"Disappear",
1571
				0.1,
1572
				1,
1573
				1,
1574
				1,
1575
				2
1576
			})
1577
			if RayHit ~= nil then
1578
				local v = RayHit.Parent
1579
				if v ~= nil and v.ClassName == "Model" then
1580
					CastWarpOutlines(v)
1581
					v.Parent = nil
1582
					if game.Players:FindFirstChild(v.Name) then
1583
						local Value = IT("BoolValue", Delete)
1584
						Value.Name = v.Name
1585
					end
1586
				end
1587
			end
1588
		end
1589
		for i = 0, 0.3, 0.1 / Animation_Speed do
1590
			Swait()
1591
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1592
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
1593
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1594
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1595
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1596
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1597
		end
1598
	until KEYHOLD == false
1599
	ATTACK = false
1600
	Rooted = false
1601
end
1602
function Dark_blade()
1603
    local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
1604
    if HITFLOOR ~= nil then
1605
        ATTACK = true
1606
        Rooted = true
1607
        local GYRO = IT("BodyGyro",RootPart)
1608
        GYRO.D = 100
1609
        GYRO.P = 2000
1610
        GYRO.MaxTorque = VT(0,4000000,0)
1611
        GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1612
        CreateSound("429459101", RightArm, 10, 0.8)
1613
        for i=0, 3.5, 0.1 / Animation_Speed do
1614
            Swait()
1615
            GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1616
            Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Royal purple",VT(-0.01,0,-0.01))
1617
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
1618
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
1619
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1620
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1621
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1622
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1623
        end
1624
        GYRO:remove()
1625
        for i=0, 0.15, 0.1 / Animation_Speed do
1626
            Swait()
1627
            GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1628
            Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Royal purple",VT(-0.01,0,-0.01))
1629
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
1630
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
1631
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1632
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1633
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1634
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1635
        end
1636
        local BOMBSPOTS = {}
1637
        for i = 1, 25 do
1638
            local SPOT = CreatePart(3, Effects, "Neon", 0, 0, "Relly blue", "Blade", VT(8,1,8))
1639
            SPOT.Color = SKILLTEXTCOLOR
1640
            SPOT.CFrame = RootPart.CFrame*CF((MRANDOM(-15,15)/40)*i,-5,-i*5)
1641
            table.insert(BOMBSPOTS,SPOT)
1642
            MakeForm(SPOT,"Cyl")
1643
        end
1644
        for i=0, 0.2, 0.1 / Animation_Speed do
1645
            Swait()
1646
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
1647
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
1648
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1649
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1650
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1651
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1652
        end
1653
        ATTACK = false
1654
        Rooted = false
1655
        coroutine.resume(coroutine.create(function()
1656
            Swait(3)
1657
            for i = 1, #BOMBSPOTS do
1658
                if BOMBSPOTS[i] ~= nil then
1659
                    local E = BOMBSPOTS[i]
1660
                    coroutine.resume(coroutine.create(function()
1661
                        local BLADE = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Relly blue", "Blade", VT(0,0,0))
1662
                        BLADE.Color = SKILLTEXTCOLOR
1663
                        CreateMesh("SpecialMesh", BLADE, "FileMesh", "93108071", "", VT(0.6,1,0.4)*3, VT(0,0,0))
1664
                        CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE, 4, 0.6)
1665
                        BLADE.CFrame = E.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-15,15)),RAD(90),RAD(MRANDOM(-15,15)))
1666
                        for i = 1, 10 do
1667
                            Swait()
1668
                            MagicSphere(VT(1,1,1)/5,65,CF(E.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),C3(1,1,1),VT(0,0,0))
1669
                            killnearest(BLADE.Position,6,80)
1670
                            BLADE.CFrame = BLADE.CFrame*CF(0,0.3,0)
1671
                            BLADE.Transparency = BLADE.Transparency - 0.1
1672
                        end
1673
                        Swait(45)
1674
                        for i = 1, 100 do
1675
                            Swait()
1676
                            BLADE.Transparency = BLADE.Transparency + 0.01
1677
                            E.Transparency = E.Transparency + 0.01
1678
                        end
1679
                        BLADE:remove()
1680
                        E:remove()
1681
                    end))
1682
                end
1683
            end
1684
        end))
1685
    end
1686
end
1687
1688
function CreateGUICircle(TARGET)
1689
	local GUI = Instance.new("BillboardGui",Character)
1690
	GUI.Size = UDim2.new(0,0,0,0)
1691
	GUI.Adornee = TARGET
1692
	local GUI2 = IT("ImageLabel",GUI)
1693
	GUI2.BackgroundTransparency = 1
1694
	GUI2.BorderSizePixel = 0
1695
	GUI2.Size = UDim2.new(1,0,1,0)
1696
	GUI2.SizeConstraint = "RelativeYY"
1697
	GUI.AlwaysOnTop = true
1698
	GUI2.Image = "http://www.roblox.com/asset/?id=1260793696"
1699
	return GUI,GUI2
1700
end
1701
1702
function CastWarpOutlines(TARGET)
1703
	coroutine.resume(coroutine.create(function()
1704
		local T = TARGET:GetChildren()
1705
		for i = 1, # T do
1706
			local child = T[i]
1707
			if child.ClassName == "Part" or child.ClassName == "MeshPart" then
1708
				local clone = child:Clone()
1709
				clone.Parent = Effects
1710
				clone.Anchored = true
1711
				clone.CanCollide = false
1712
				clone:ClearAllChildren()
1713
				clone.CFrame = child.CFrame
1714
				if clone.Name == "Head" then
1715
					clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y)
1716
				end
1717
				if clone.ClassName == "MeshPart" then
1718
					clone.TextureID = ""
1719
				end
1720
				clone.BrickColor = BRICKC"Black"
1721
				clone.Material = "Neon"
1722
				coroutine.resume(coroutine.create(function()
1723
					for i = 1, 200 do
1724
						Swait()
1725
						clone.Transparency = clone.Transparency + 0.005
1726
						clone.Size = clone.Size + VT(0.001,0.001,0.001)
1727
					end
1728
					clone:remove()
1729
				end))
1730
			end
1731
		end
1732
	end))
1733
end
1734
 
1735
function Sink(position,radius)
1736
	for i,v in ipairs(workspace:GetChildren()) do
1737
	if v:FindFirstChild("Hit2By"..Player.Name) == nil then
1738
		local body = v:GetChildren()
1739
			for part = 1, #body do
1740
				if(v:FindFirstChild("Hit2By"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1741
					if(body[part].Position - position).Magnitude < radius then
1742
						if v.ClassName == "Model" then
1743
							if v:FindFirstChild("Humanoid") then
1744
								local defence = Instance.new("BoolValue",v)
1745
								defence.Name = ("Hit2By"..Player.Name)
1746
								if v.Humanoid.Health ~= 0 then
1747
									local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
1748
									if TORS ~= nil then
1749
										local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + VT(0, -1, 0))).lookVector, 5 * TORS.Size.Y/2, v)
1750
										coroutine.resume(coroutine.create(function()
1751
											if HITFLOOR2 ~= nil then
1752
												TORS.Anchored = true
1753
												table.insert(Effects2,{v})
1754
												repeat
1755
													Swait()
1756
													TORS.CFrame = TORS.CFrame * CF(0,-1,0)
1757
												until TORS.Position.Y<position.Y-4
1758
												v:remove()
1759
											end
1760
										end))
1761
									end
1762
								end
1763
							end
1764
						end
1765
						--body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
1766
					end
1767
				end
1768
			end
1769
		end	
1770
	end
1771
end
1772
1773
function Shadowpuddle()
1774
ATTACK = true
1775
	Rooted = true
1776
 	CreateSound(ALONE, Head, 10, 1)
1777
	for i=0, 2, 0.1 / Animation_Speed do
1778
		Swait()
1779
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1780
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1781
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1782
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1783
		RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1784
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1785
	end
1786
	CreateSound("1075001850", RootPart, 10, 3)
1787
	UNANCHOR = false
1788
	RootPart.Anchored = true
1789
	local GATE = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really black", "Heart", VT(1,0.2,1))
1790
	MakeForm(GATE,"Cyl")
1791
	GATE.Color = C3(0,0,0)
1792
	GATE.CFrame = CF(RootPart.Position)*CF(0,-3,0)
1793
	for i=1, 250 do
1794
		Swait()
1795
		UNANCHOR = false
1796
		GATE.Size = GATE.Size + VT(1,0,1)
1797
		--AURA.Size = GATE.Size + VT(0.1,0.1,0.1)
1798
		RootPart.Anchored = true
1799
		Sink(GATE.Position,GATE.Size.Z/2.2)
1800
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -20) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.005 / Animation_Speed)
1801
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1802
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1803
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1804
		RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1805
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1806
	end
1807
	repeat Swait() until #Effects2 == 0
1808
	for i=1, 25 do
1809
		Swait()
1810
		GATE.Size = GATE.Size - VT(10,0,10)
1811
		--AURA.Size = GATE.Size + VT(0.1,0.1,0.1)
1812
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.4 / Animation_Speed)
1813
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1814
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1815
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1816
		RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1817
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1818
	end
1819
	GATE:remove()
1820
	RootPart.Anchored = false
1821
	UNANCHOR = true
1822
	ATTACK = false
1823
	Rooted = false
1824
end
1825
1826
function Mortar(Target)
1827
	local newball = Instance.new("Part", workspace)
1828
	newball.Anchored = true
1829
	newball.Shape = "Ball"
1830
	newball.Material = "Neon"
1831
	newball.Size = Vector3.new(0,0,0)
1832
	newball.CanCollide = false
1833
	newball.CFrame = CF(Target)
1834
	newball.Color = C3(1,1,1)
1835
	newball.Transparency = 1
1836
	local POS = Mouse.Hit.p
1837
	local onefourth = Target:Lerp(POS, 0.25) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
1838
	local threefourths = Target:Lerp(POS, 0.75) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
1839
	 local A1 = IT("Attachment",newball)
1840
	    A1.Position = Vector3.new(0, 2.5, 0)
1841
	  local A2 = IT("Attachment",newball)
1842
	    A2.Position = Vector3.new(0, -2.5, 0)
1843
	  local Trail = IT("Trail",newball)
1844
	    Trail.LightEmission = 1
1845
	    Trail.FaceCamera = true
1846
	    Trail.Texture = "rbxassetid://945758042"
1847
	    Trail.Attachment0 = A1
1848
	    Trail.Attachment1 = A2
1849
	    Trail.Lifetime = 1
1850
	    Trail.MinLength = 0
1851
	    Trail.Transparency = NumberSequence.new(0, 1)
1852
	    Trail.Color = ColorSequence.new(newball.Color)
1853
  	coroutine.resume(coroutine.create(function()
1854
   		for i = 0, 1, 0.07 do
1855
    	  	Swait()
1856
			MagicSphere(VT(2,2,2),50,newball.CFrame,"Pearl",VT(-0.01,-0.01,-0.01))
1857
    	  	newball.CFrame = CFrame.new(newBezier(Target, onefourth, threefourths, POS, i))
1858
    	end
1859
		AoEDamage(newball.Position,5,5,8,0,false,2,2,false,true)
1860
		CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], newball, 10, 1)
1861
		MagicSphere(VT(0,0,0),55,newball.CFrame,"Pearl",VT(0.06,0.5,0.06))
1862
		for i = 1, 10 do
1863
			MagicSphere(VT(0.5,0.5,3),50,CF(newball.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,newball.Position),"Pearl",VT(-0.005,-0.005,0.03),0)
1864
		end
1865
  		game:GetService("Debris"):AddItem(newball, 5)
1866
	end))
1867
end
1868
1869
1870
function LightArray()
1871
	ATTACK = true
1872
	Rooted = false
1873
	for i=0, 1, 0.1 / Animation_Speed do
1874
		Swait()
1875
		turnto(Mouse.Hit.p)
1876
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.5 / Animation_Speed)
1877
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.25 / Animation_Speed)
1878
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1879
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1880
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1881
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1882
	end
1883
	local LOOP = 0
1884
	for i = 1, 30 do
1885
		Swait()
1886
		turnto(Mouse.Hit.p)
1887
		LOOP = LOOP + 1
1888
		if LOOP == 10 then
1889
			LOOP = 0
1890
			Mortar(LeftArm.CFrame*CF(0,-1,0).p)
1891
		end
1892
	end
1893
ATTACK = false
1894
	Rooted = false
1895
end
1896
1897
function Oblivion()
1898
	ATTACK = true
1899
	Rooted = true
1900
	for i=0, 2, 0.1 / Animation_Speed do
1901
		Swait()
1902
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1903
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1904
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1905
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1906
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1907
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1908
	end
1909
	for i=0, 0.5, 0.1 / Animation_Speed do
1910
		Swait()
1911
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1912
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1913
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1914
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1915
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
1916
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
1917
	end
1918
	for i = 1, 75 do
1919
		Swait()
1920
		MagicSphere(VT(0.5,0.5,5),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Pearl",VT(-0.005,-0.005,0.03),0)
1921
	end
1922
	CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5)
1923
	CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5)
1924
	AoEDamage(Torso.Position,45,45,58,0,false,2,2,false,true)
1925
	MagicSphere(VT(0,0,0),25,Torso.CFrame,"Pearl",VT(5,5,5))
1926
	MagicSphere(VT(0,0,0),50,Torso.CFrame,"Pearl",VT(2.5,2.5,2.5))
1927
	MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Pearl",VT(6,0,6))
1928
	MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Pearl",VT(6,0,6))
1929
	ATTACK = false
1930
	Rooted = false
1931
end
1932
1933
function kiss()
1934
	ATTACK = true
1935
	Rooted = false
1936
	local HASGRABBED = false
1937
	local GRABTARGET = nil
1938
	local TORS = nil
1939
	local WELD = nil
1940
	for i=0, 1, 0.1 / Animation_Speed do
1941
		Swait()
1942
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1943
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1944
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1945
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1946
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1947
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1948
	end
1949
	local GRAB1 = RightArm.Touched:Connect(function(hit)
1950
		if hit.Parent:FindFirstChild("Humanoid") then
1951
			if hit.Parent.Humanoid.Health ~= 0 then
1952
				UNANCHOR = false
1953
				RootPart.Anchored = true
1954
				TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
1955
				TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0))
1956
           		WELD = weldBetween(RootPart,TORS)
1957
				HASGRABBED = true
1958
				Rooted = true
1959
			end
1960
		end
1961
	end)
1962
	local GRAB2 = LeftArm.Touched:Connect(function(hit)
1963
		if hit.Parent:FindFirstChild("Humanoid") then
1964
			if hit.Parent.Humanoid.Health ~= 0 then
1965
				UNANCHOR = false
1966
				RootPart.Anchored = true
1967
				TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
1968
				TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0))
1969
           		WELD = weldBetween(RootPart,TORS)
1970
				HASGRABBED = true
1971
				Rooted = true
1972
			end
1973
		end
1974
	end)
1975
	for i=0, 1, 0.1 / Animation_Speed do
1976
		Swait()
1977
		if HASGRABBED == true then
1978
			break
1979
		end
1980
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1981
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1982
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1983
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1984
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1985
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1986
	end
1987
	GRAB1:disconnect()
1988
	GRAB2:disconnect()
1989
	if HASGRABBED == true then
1990
		TORS.Anchored = false
1991
		GRABTARGET = TORS.Parent
1992
                HED = GRABTARGET:FindFirstChild("Head")
1993
		for i=0, 2, 0.1 / Animation_Speed do
1994
			Swait()
1995
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1996
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1997
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1998
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1999
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2000
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2001
		end
2002
						local heart = CreatePart(1, HED, "SmoothPlastic", 0, 0, "Carnation pink", "Heart", VT(1,1,1), false)
2003
                                                local msh = CreateMesh("SpecialMesh", heart, "FileMesh", "431221914", "", VT(0.3, 0.3, 0.3), VT(0,0,0))
2004
                                                CreateWeldOrSnapOrMotor("Weld", HED, heart, HED,CF(0, -2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
2005
		local ECH = 0
2006
		CreateSound("247269322", Head, 10, 0.8)
2007
		Head.face.Texture = "rbxassetid://47425887"
2008
		for i=0, 8, 0.1 / Animation_Speed do
2009
			Swait()
2010
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2011
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(25 * SIN(SINE / 3)), RAD(0)), 0.5 / Animation_Speed)
2012
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2013
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2014
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2015
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2016
		end
2017
		WELD:remove()
2018
	end
2019
	UNANCHOR = true
2020
	ATTACK = false
2021
	Rooted = false
2022
end
2023
2024
function friend()
2025
	if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2026
		local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
2027
		local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
2028
		local ARM = HUM.Parent:FindFirstChild("Right Arm") or HUM.Parent:FindFirstChild("RightUpperArm")
2029
		if TORSO and ARM then
2030
              ATTACK = true
2031
			local FAKECHARACTER = IT("Model",Effects)
2032
			FAKECHARACTER.Name = "NeonDoll"
2033
			local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.3,0.3,0.15),false)
2034
			CreateWeldOrSnapOrMotor("Weld", HUM, ARM, TORS, CF(0,1.2,0), CF(0,0,0))
2035
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
2036
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(90), RAD(0), RAD(15)), CF(0,0.15,0))
2037
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
2038
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(90), RAD(0), RAD(-15)), CF(0,0.15,0))
2039
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
2040
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(30)), CF(0,0.15,0))
2041
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
2042
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-30)), CF(0,0.15,0))
2043
			local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.15,0.15),false)
2044
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
2045
                 ATTACK = false
2046
                        repeat
2047
                        wait(1)
2048
                        ApplyDamage(HUM,5,5,2,5)
2049
                      until HUM.health == 0
2050
                   end
2051
               end
2052
           end
2053
2054
function Debree(POS, SWAIT)
2055
	coroutine.resume(coroutine.create(function()
2056
		local HOLDER = IT("Model", Effects)
2057
		HOLDER.Name = "Debree"
2058
		local HITFLOOR = Raycast(POS, CF(POS, POS + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
2059
		MagicSphere(VT(15, 1, 15), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
2060
		MagicSphere(VT(13, 1, 13), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
2061
		MagicSphere(VT(12, 1, 12), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
2062
		repeat
2063
			Swait()
2064
		until HITFLOOR ~= nil
2065
		local O = 0
2066
		for i = 1, 18 do
2067
			do
2068
				local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
2069
				Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
2070
				O = O - 2.25 + i / 4
2071
				coroutine.resume(coroutine.create(function()
2072
					Swait(SWAIT)
2073
					for i = 1, 60 do
2074
						Swait()
2075
						local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
2076
						Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
2077
					end
2078
					for i = 1, 50 do
2079
						Swait()
2080
						Part.Size = Part.Size * 0.9
2081
					end
2082
				end))
2083
			end
2084
		end
2085
		local O = 0
2086
		for i = 1, 18 do
2087
			do
2088
				local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
2089
				Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
2090
				O = O + 2.25 - i / 4
2091
				coroutine.resume(coroutine.create(function()
2092
					Swait(SWAIT)
2093
					for i = 1, 60 do
2094
						Swait()
2095
						local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
2096
						Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
2097
					end
2098
					for i = 1, 50 do
2099
						Swait()
2100
						Part.Size = Part.Size * 0.9
2101
					end
2102
				end))
2103
			end
2104
		end
2105
		Swait(SWAIT + 110)
2106
		HOLDER:remove()
2107
	end))
2108
end
2109
2110
function Banishtele()
2111
	ATTACK = true
2112
	Rooted = true
2113
	for i = 0, 1, 0.1 / Animation_Speed do
2114
		Swait()
2115
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2116
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2117
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2118
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2119
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2120
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2121
	end
2122
	Debree(CF(RootPart.Position) * CF(0, -2.8, 0).p, 75)
2123
	UNANCHOR = false
2124
	RootPart.Anchored = true
2125
	for i = 0, 2, 0.1 / Animation_Speed do
2126
		Swait()
2127
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2128
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2129
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2130
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2131
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2132
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2133
	end
2134
	local POS = RootPart.Position
2135
	RootPart.CFrame = CF(CF(Mouse.Hit.p) * CF(0, 2.8, 0).p, POS)
2136
	Debree(CF(RootPart.Position) * CF(0, -2.5, 0).p, 150)
2137
	for i = 0, 2, 0.1 / Animation_Speed do
2138
		Swait()
2139
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2140
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2141
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2142
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2143
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2144
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2145
	end
2146
	ATTACK = false
2147
	Rooted = false
2148
end
2149
--//=================================\\
2150
--||	  ASSIGN THINGS TO KEYS
2151
--\\=================================//
2152
2153
function MouseDown(Mouse)
2154
	if ATTACK == false then
2155
	end
2156
end
2157
2158
function MouseUp(Mouse)
2159
HOLD = false
2160
end
2161
2162
2163
2164
2165
function KeyDown(Key)
2166
	KEYHOLD = true
2167
	if Key == "z" and ATTACK == false then
2168
		if CHOSENBRICK == "Royal purple" then
2169
			Chain()
2170
		elseif CHOSENBRICK == "Earth green" then
2171
			PowerOutburst()
2172
		elseif CHOSENBRICK == "Crimson" then
2173
			BanishBullet()
2174
		elseif CHOSENBRICK == "Carnation pink" then
2175
			kiss()
2176
		elseif CHOSENBRICK == "Really black" then
2177
			Dark_blade()
2178
                elseif CHOSENBRICK == "White" then
2179
                        LightArray()
2180
		end
2181
	end
2182
2183
	if Key == "v" and ATTACK == false then
2184
		if CHOSENBRICK == "Royal purple" then
2185
			MegaChain()
2186
		elseif CHOSENBRICK == "Earth green" then
2187
			RadioactiveSludge()
2188
		elseif CHOSENBRICK == "Crimson" then
2189
			Banishtele()
2190
		elseif CHOSENBRICK == "Carnation pink" then
2191
			friend()
2192
		elseif CHOSENBRICK == "Really black" then
2193
             Shadowpuddle()
2194
                elseif CHOSENBRICK == "White" then
2195
            Oblivion()
2196
			return
2197
		end
2198
	end
2199
2200
	if Key == "x" and ATTACK == false then
2201
		if CHOSENBRICK == "Crimson" then
2202
		Delete:ClearAllChildren()
2203
    end
2204
	end
2205
                if Key == "c" and ATTACK == false then
2206
		if CHOSENBRICK == "Royal purple" then
2207
			CHOSENBRICK = "Earth green"
2208
		elseif CHOSENBRICK == "Earth green" then
2209
			CHOSENBRICK = "Crimson"
2210
		elseif CHOSENBRICK == "Crimson" then
2211
			CHOSENBRICK = "Carnation pink"
2212
		elseif CHOSENBRICK == "Carnation pink" then
2213
			CHOSENBRICK = "Really black"
2214
                 elseif CHOSENBRICK == "Really black" then
2215
                         CHOSENBRICK = "White"
2216
                elseif CHOSENBRICK == "White" then
2217
			CHOSENBRICK = "Royal purple"
2218
		end
2219
	end
2220
2221
	if Key == "t" and ATTACK == false then
2222
		Taunt()
2223
	end
2224
	if Key == "q" and ATTACK == false then
2225
		Dark_blade()
2226
	end
2227
end
2228
2229
function KeyUp(Key)
2230
	KEYHOLD = false
2231
end
2232
2233
	Mouse.Button1Down:connect(function(NEWKEY)
2234
		MouseDown(NEWKEY)
2235
	end)
2236
	Mouse.Button1Up:connect(function(NEWKEY)
2237
		MouseUp(NEWKEY)
2238
	end)
2239
	Mouse.KeyDown:connect(function(NEWKEY)
2240
		KeyDown(NEWKEY)
2241
	end)
2242
	Mouse.KeyUp:connect(function(NEWKEY)
2243
		KeyUp(NEWKEY)
2244
	end)
2245
2246
--//=================================\\
2247
--\\=================================//
2248
2249
2250
function unanchor()
2251
	if UNANCHOR == true then
2252
		g = Character:GetChildren()
2253
		for i = 1, #g do
2254
			if g[i].ClassName == "Part" then
2255
				g[i].Anchored = false
2256
			end
2257
		end
2258
	end
2259
end
2260
2261
2262
--//=================================\\
2263
--||	WRAP THE WHOLE SCRIPT UP
2264
--\\=================================//
2265
Humanoid.Changed:connect(function(Jump)
2266
	if Jump == "Jump" and (Disable_Jump == true) then
2267
		Humanoid.Jump = false
2268
	end
2269
end)
2270
2271
while true do
2272
	Swait()
2273
	ANIMATE.Parent = nil
2274
	local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
2275
	IDLEANIMATION:Play()
2276
	SINE = SINE + CHANGE
2277
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2278
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2279
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
2280
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
2281
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
2282
	 if ANIM == "Walk" and TORSOVELOCITY > 1 then
2283
        RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2284
        Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2285
        RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2286
        LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2287
    elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2288
        RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2289
        Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2290
        RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2291
        LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2292
    end
2293
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2294
		ANIM = "Jump"
2295
		if ATTACK == false then
2296
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2297
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2298
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2299-
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
2299+
2300-
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2300+
2301-
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2301+
2302-
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2302+
2303-
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2303+
2304-
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2304+
2305-
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2305+
2306-
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2306+
2307-
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2307+
2308-
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2308+
2309
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2310
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2311
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
2312
		end
2313
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2314
		ANIM = "Idle"
2315
		if ATTACK == false then
2316
			 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
2317
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2318
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2319
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2320
            RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2321
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2322
		end
2323
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2324
		ANIM = "Walk"
2325
		WALK = WALK + 1 / Animation_Speed
2326
		if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
2327
			WALK = 0
2328
			if WALKINGANIM == true then
2329
				WALKINGANIM = false
2330
			elseif WALKINGANIM == false then
2331
				WALKINGANIM = true
2332
			end
2333-
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2333+
2334-
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2334+
2335-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2335+
2336-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2336+
2337-
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2337+
			 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
2338-
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2338+
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed)
2339
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2340
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2341
            RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
2342
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
2343
        end
2344
    end
2345
	unanchor()
2346
	Humanoid.MaxHealth = "inf"
2347
	Humanoid.Health = "inf"
2348
	if Rooted == false then
2349
		Disable_Jump = false
2350
		Humanoid.WalkSpeed = Speed
2351
	elseif Rooted == true then
2352
		Disable_Jump = true
2353
		Humanoid.WalkSpeed = 0
2354-
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2354+
2355-
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2355+
2356-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(22.5), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2356+
2357-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(22.5), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2357+
2358-
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2358+
		Head.face.Texture = "rbxassetid://403870689"
2359-
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2359+
2360
	for _, c in pairs(Weapon:GetChildren()) do
2361
		if c.Name == "Eon" then
2362
			c.BrickColor = BRICKC(CHOSENBRICK)
2363
		end
2364
	end
2365
	SKILL1TEXT.TextColor3 = BRICKC(CHOSENBRICK).Color
2366
	SKILL2TEXT.TextColor3 = BRICKC(CHOSENBRICK).Color
2367
	if CHOSENBRICK == "Royal purple" then
2368
		SKILL1TEXT.Text = "[Z] Void Chain"
2369
		SKILL2TEXT.Text = "[V] Mega Chain"
2370
                 sick.SoundId = "rbxassetid://1369353534"
2371
	elseif CHOSENBRICK == "Earth green" then
2372
		SKILL1TEXT.Text = "[Z] Power Outburst"
2373
		SKILL2TEXT.Text = "[V] Radioactive Sludge"
2374
                 sick.SoundId = "rbxassetid://968287483"
2375-
		Head.face.Texture = "rbxassetid://1297067294"
2375+
2376
		SKILL1TEXT.Text = "[Z] Limited Banish"
2377
		SKILL2TEXT.Text = "[V] Banish Teleport"
2378
                sick.SoundId = "rbxassetid://1140442110"
2379
	elseif CHOSENBRICK == "Carnation pink" then
2380
		SKILL1TEXT.Text = "[Z] Loving Kizzu"
2381
		SKILL2TEXT.Text = "[V] Heart Friend"
2382
                 sick.SoundId = "rbxassetid://1131624146"
2383
	elseif CHOSENBRICK == "Really black" then
2384
		SKILL1TEXT.Text = "[Z] Dark Blades"
2385
		SKILL2TEXT.Text = "[V] Black Hole Puddle"
2386
                 sick.SoundId = "rbxassetid://342929664"
2387
        elseif CHOSENBRICK == "White" then
2388
		SKILL1TEXT.Text = "[Z] Light Array"
2389
		SKILL2TEXT.Text = "[V] Oblivion"
2390
                sick.SoundId = "rbxassetid://395351949"
2391
	end
2392
end
2393
2394
--//=================================\\
2395
--\\=================================//
2396
2397
2398
2399
2400
2401
--//====================================================\\--
2402
--||			  		 END OF SCRIPT
2403
--\\====================================================//--