View difference between Paste ID: XfdTWCc3 and 9ajvMHEw
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-
--||			   CREATED BY SHACKLUSTER
2+
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3-
--\\====================================================//--
3+
do
4
    print("FE Compatibility by timlikekezenit")
5
    script.Parent = Player.Character
6
 
7-
Player = game:GetService("Players").LocalPlayer
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-
Mouse = Player:GetMouse()
13+
        local t = {_fakeEvent=true,Connect=function(Enum,f)Enum.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(Enum,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-
sick.SoundId = "rbxassetid://170282324"
28+
    local function te(Enum,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
wait(0.2)
85
86
PlayerGui = Player.PlayerGui
87
Cam = workspace.CurrentCamera
88
Backpack = Player.Backpack
89
Character = Player.Character
90
Humanoid = Character.Humanoid
91
92
RootPart = Character["HumanoidRootPart"]
93
Torso = Character["Torso"]
94
Head = Character["Head"]
95
RightArm = Character["Right Arm"]
96
LeftArm = Character["Left Arm"]
97
RightLeg = Character["Right Leg"]
98
LeftLeg = Character["Left Leg"]
99
RootJoint = RootPart["RootJoint"]
100
Neck = Torso["Neck"]
101
RightShoulder = Torso["Right Shoulder"]
102
LeftShoulder = Torso["Left Shoulder"]
103
RightHip = Torso["Right Hip"]
104
LeftHip = Torso["Left Hip"]
105
local sick = Instance.new("Sound",Character)
106
sick.SoundId = "rbxassetid://2205999994"
107
sick.Looped = true
108
sick.Volume = 1
109
110
IT = Instance.new
111
CF = CFrame.new
112
VT = Vector3.new
113
RAD = math.rad
114
C3 = Color3.new
115
UD2 = UDim2.new
116
BRICKC = BrickColor.new
117
ANGLES = CFrame.Angles
118
EULER = CFrame.fromEulerAnglesXYZ
119
COS = math.cos
120
ACOS = math.acos
121
SIN = math.sin
122
ASIN = math.asin
123
ABS = math.abs
124
MRANDOM = math.random
125
FLOOR = math.floor
126
127
--//=================================\\
128
--|| 	      USEFUL VALUES
129
--\\=================================//
130
131
Animation_Speed = 3
132
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
133
local Speed = 45
134
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
135
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
136
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
137
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
138
local DAMAGEMULTIPLIER = 1
139
local ANIM = "Idle"
140
local ATTACK = false
141
local EQUIPPED = false
142
local HOLD = false
143
local COMBO = 1
144
local Rooted = false
145
local SINE = 0
146
local KEYHOLD = false
147
local CHANGE = 2 / Animation_Speed
148
local WALKINGANIM = false
149
local VALUE1 = false
150
local VALUE2 = false
151
local ROBLOXIDLEANIMATION = IT("Animation")
152
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
153
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
154
--ROBLOXIDLEANIMATION.Parent = Humanoid
155
local WEAPONGUI = IT("ScreenGui", PlayerGui)
156
WEAPONGUI.Name = "Weapon GUI"
157
local Effects = IT("Folder", Character)
158
Effects.Name = "Effects"
159
local ANIMATOR = Humanoid.Animator
160
local ANIMATE = Character.Animate
161
local UNANCHOR = true
162
local HITPOS = nil
163
local HITFLOOR = nil
164
local LEFTWINGS = {}
165
local RIGHTWINGS = {}
166
local BODY = {}
167
168
--//=================================\\
169
--\\=================================//
170
171
172
--//=================================\\
173
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
174
--\\=================================//
175
176
ArtificialHB = Instance.new("BindableEvent", script)
177
ArtificialHB.Name = "ArtificialHB"
178
179
script:WaitForChild("ArtificialHB")
180
181
frame = Frame_Speed
182
tf = 0
183
allowframeloss = false
184
tossremainder = false
185
lastframe = tick()
186
script.ArtificialHB:Fire()
187
188
game:GetService("RunService").Heartbeat:connect(function(s, p)
189
	tf = tf + s
190
	if tf >= frame then
191
		if allowframeloss then
192
			script.ArtificialHB:Fire()
193
			lastframe = tick()
194
		else
195
			for i = 1, math.floor(tf / frame) do
196
				script.ArtificialHB:Fire()
197
			end
198
		lastframe = tick()
199
		end
200
		if tossremainder then
201
			tf = 0
202
		else
203
			tf = tf - frame * math.floor(tf / frame)
204
		end
205
	end
206
end)
207
208
--//=================================\\
209
--\\=================================//
210
211
--//=================================\\
212
--|| 	      SOME FUNCTIONS
213
--\\=================================//
214
215
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
216
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
217
end
218
219
function PositiveAngle(NUMBER)
220
	if NUMBER >= 0 then
221
		NUMBER = 0
222
	end
223
	return NUMBER
224
end
225
226
function NegativeAngle(NUMBER)
227
	if NUMBER <= 0 then
228
		NUMBER = 0
229
	end
230
	return NUMBER
231
end
232
233
function Swait(NUMBER)
234
	if NUMBER == 0 or NUMBER == nil then
235
		ArtificialHB.Event:wait()
236
	else
237
		for i = 1, NUMBER do
238
			ArtificialHB.Event:wait()
239
		end
240
	end
241
end
242
243
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
244
	local NEWMESH = IT(MESH)
245
	if MESH == "SpecialMesh" then
246
		NEWMESH.MeshType = MESHTYPE
247
		if MESHID ~= "nil" and MESHID ~= "" then
248
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
249
		end
250
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
251
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
252
		end
253
	end
254
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
255
	NEWMESH.Scale = SCALE
256
	NEWMESH.Parent = PARENT
257
	return NEWMESH
258
end
259
260
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
261
	local NEWPART = IT("Part")
262
	NEWPART.formFactor = FORMFACTOR
263
	NEWPART.Reflectance = REFLECTANCE
264
	NEWPART.Transparency = TRANSPARENCY
265
	NEWPART.CanCollide = false
266
	NEWPART.Locked = true
267
	NEWPART.Anchored = true
268
	if ANCHOR == false then
269
		NEWPART.Anchored = false
270
	end
271
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
272
	NEWPART.Name = NAME
273
	NEWPART.Size = SIZE
274
	NEWPART.Position = Torso.Position
275
	NEWPART.Material = MATERIAL
276
	NEWPART:BreakJoints()
277
	NEWPART.Parent = PARENT
278
	return NEWPART
279
end
280
281
	local function weldBetween(a, b)
282
	    local weldd = Instance.new("ManualWeld")
283
	    weldd.Part0 = a
284
	    weldd.Part1 = b
285
	    weldd.C0 = CFrame.new()
286
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
287
	    weldd.Parent = a
288
	    return weldd
289
	end
290
291
292
function QuaternionFromCFrame(cf)
293
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
294
	local trace = m00 + m11 + m22
295
	if trace > 0 then 
296
		local s = math.sqrt(1 + trace)
297
		local recip = 0.5 / s
298
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
299
	else
300
		local i = 0
301
		if m11 > m00 then
302
			i = 1
303
		end
304
		if m22 > (i == 0 and m00 or m11) then
305
			i = 2
306
		end
307
		if i == 0 then
308
			local s = math.sqrt(m00 - m11 - m22 + 1)
309
			local recip = 0.5 / s
310
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
311-
	label.TextStrokeColor3 = BRICKC"Really red".Color
311+
312
			local s = math.sqrt(m11 - m22 - m00 + 1)
313
			local recip = 0.5 / s
314
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
315
		elseif i == 2 then
316
			local s = math.sqrt(m22 - m00 - m11 + 1)
317
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
318
		end
319
	end
320
end
321
 
322
function QuaternionToCFrame(px, py, pz, x, y, z, w)
323
	local xs, ys, zs = x + x, y + y, z + z
324
	local wx, wy, wz = w * xs, w * ys, w * zs
325
	local xx = x * xs
326
	local xy = x * ys
327
	local xz = x * zs
328
	local yy = y * ys
329
	local yz = y * zs
330
	local zz = z * zs
331
	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))
332
end
333
 
334
function QuaternionSlerp(a, b, t)
335
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
336
	local startInterp, finishInterp;
337
	if cosTheta >= 0.0001 then
338
		if (1 - cosTheta) > 0.0001 then
339
			local theta = ACOS(cosTheta)
340
			local invSinTheta = 1 / SIN(theta)
341
			startInterp = SIN((1 - t) * theta) * invSinTheta
342
			finishInterp = SIN(t * theta) * invSinTheta
343
		else
344
			startInterp = 1 - t
345
			finishInterp = t
346
		end
347
	else
348
		if (1 + cosTheta) > 0.0001 then
349
			local theta = ACOS(-cosTheta)
350
			local invSinTheta = 1 / SIN(theta)
351
			startInterp = SIN((t - 1) * theta) * invSinTheta
352
			finishInterp = SIN(t * theta) * invSinTheta
353
		else
354
			startInterp = t - 1
355
			finishInterp = t
356
		end
357
	end
358
	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
359
end
360
361
function Clerp(a, b, t)
362
	local qa = {QuaternionFromCFrame(a)}
363
	local qb = {QuaternionFromCFrame(b)}
364
	local ax, ay, az = a.x, a.y, a.z
365
	local bx, by, bz = b.x, b.y, b.z
366
	local _t = 1 - t
367
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
368
end
369
370
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
371
	local frame = IT("Frame")
372
	frame.BackgroundTransparency = TRANSPARENCY
373
	frame.BorderSizePixel = BORDERSIZEPIXEL
374
	frame.Position = POSITION
375
	frame.Size = SIZE
376
	frame.BackgroundColor3 = COLOR
377
	frame.BorderColor3 = BORDERCOLOR
378
	frame.Name = NAME
379
	frame.Parent = PARENT
380
	return frame
381
end
382
383
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
384
	local label = IT("TextLabel")
385
	label.BackgroundTransparency = 1
386
	label.Size = UD2(1, 0, 1, 0)
387
	label.Position = UD2(0, 0, 0, 0)
388
	label.TextColor3 = TEXTCOLOR
389
	label.TextStrokeColor3 = BRICKC"White".Color
390
	label.TextStrokeTransparency = STROKETRANSPARENCY
391
	label.TextTransparency = TRANSPARENCY
392
	label.FontSize = TEXTFONTSIZE
393
	label.Font = TEXTFONT
394
	label.BorderSizePixel = BORDERSIZEPIXEL
395
	label.TextScaled = false
396
	label.Text = TEXT
397
	label.Name = NAME
398
	label.Parent = PARENT
399
	return label
400
end
401
402
function NoOutlines(PART)
403
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
404
end
405
406
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
407
	local NEWWELD = IT(TYPE)
408
	NEWWELD.Part0 = PART0
409
	NEWWELD.Part1 = PART1
410
	NEWWELD.C0 = C0
411
	NEWWELD.C1 = C1
412
	NEWWELD.Parent = PARENT
413
	return NEWWELD
414
end
415
416
local S = IT("Sound")
417
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
418
	local NEWSOUND = nil
419
	coroutine.resume(coroutine.create(function()
420
		NEWSOUND = S:Clone()
421
		NEWSOUND.Parent = PARENT
422
		NEWSOUND.Volume = VOLUME
423
		NEWSOUND.Pitch = PITCH
424
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
425
		NEWSOUND:play()
426
		NEWSOUND.Name = "Audio"
427
		if DOESLOOP == true then
428
			NEWSOUND.Looped = true
429
		else
430
			repeat Swait() until NEWSOUND.Playing == false
431
			NEWSOUND:remove()
432
		end
433
	end))
434
	return NEWSOUND
435
end
436
437
function CFrameFromTopBack(at, top, back)
438
	local right = top:Cross(back)
439
	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)
440
end
441
442
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
443
function WACKYEFFECT(Table)
444
	local TYPE = (Table.EffectType or "Sphere")
445
	local SIZE = (Table.Size or VT(1,1,1))
446
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
447
	local TRANSPARENCY = (Table.Transparency or 0)
448
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
449
	local CFRAME = (Table.CFrame or Torso.CFrame)
450
	local MOVEDIRECTION = (Table.MoveToPos or nil)
451
	local ROTATION1 = (Table.RotationX or 0)
452
	local ROTATION2 = (Table.RotationY or 0)
453
	local ROTATION3 = (Table.RotationZ or 0)
454
	local MATERIAL = (Table.Material or "Neon")
455
	local COLOR = (Table.Color or C3(1,1,1))
456
	local TIME = (Table.Time or 45)
457
	local SOUNDID = (Table.SoundID or nil)
458
	local SOUNDPITCH = (Table.SoundPitch or nil)
459
	local SOUNDVOLUME = (Table.SoundVolume or nil)
460
	coroutine.resume(coroutine.create(function()
461
		local PLAYSSOUND = false
462
		local SOUND = nil
463
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
464
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
465
			PLAYSSOUND = true
466
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
467
		end
468
		EFFECT.Color = COLOR
469
		local MSH = nil
470
		if TYPE == "Sphere" then
471
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
472
		elseif TYPE == "Block" then
473
			MSH = IT("BlockMesh",EFFECT)
474
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
475
		elseif TYPE == "Box" then
476
			MSH = IT("BlockMesh",EFFECT)
477
			MSH.Scale = SIZE
478
		elseif TYPE == "Wave" then
479
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
480
		elseif TYPE == "Ring" then
481
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
482
		elseif TYPE == "Slash" then
483
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
484
		elseif TYPE == "Round Slash" then
485
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
486
		elseif TYPE == "Swirl" then
487
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
488
		elseif TYPE == "Skull" then
489
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
490
		elseif TYPE == "Crystal" then
491
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
492
		end
493
		if MSH ~= nil then
494
			local MOVESPEED = nil
495
			if MOVEDIRECTION ~= nil then
496
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
497
			end
498
			local GROWTH = SIZE - ENDSIZE
499
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
500
			if TYPE == "Block" then
501
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
502
			else
503
				EFFECT.CFrame = CFRAME
504
			end
505
			for LOOP = 1, TIME do
506
				Swait()
507
				MSH.Scale = MSH.Scale - GROWTH/TIME
508
				if TYPE == "Wave" then
509
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
510
				end
511
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
512
				if TYPE == "Block" then
513
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
514-
local Back = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(1,1,0.35),false)
514+
515
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
516
				end
517
				if MOVEDIRECTION ~= nil then
518
					local ORI = EFFECT.Orientation
519-
	local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false)
519+
520
					EFFECT.Orientation = ORI
521-
	local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
521+
522
			end
523
			if PLAYSSOUND == false then
524
				EFFECT:remove()
525
			else
526
				repeat Swait() until SOUND.Playing == false
527
				EFFECT:remove()
528-
	local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false)
528+
529
		else
530-
	local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
530+
531
				EFFECT:remove()
532
			else
533
				repeat Swait() until SOUND.Playing == false
534
				EFFECT:remove()
535-
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3,0.3,0.3),false)
535+
536
		end
537-
local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Really red", "Eye", VT(0.5,0.5,0.29),false)
537+
538
end
539
540-
local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,0.1,0.31),false)
540+
541
	if Part.Transparency == 0 then
542
		local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
543-
local SKILLTEXTCOLOR = BRICKC"Really red".Color
543+
544
		CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false)
545
		local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
546
		local SIZESET = SIZE/4
547
		local XOffset = Part.Size.X*1.5/SIZESET
548
		local YOffset = Part.Size.Y*1.5/SIZESET
549
		local ZOffset = Part.Size.Z*1.5/SIZESET
550
		for x = 1, math.ceil(XOffset) do
551
			for y = 1, math.ceil(YOffset) do
552
				for z = 1, math.ceil(ZOffset) do
553
					local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
554
					SHARD.CanCollide = true
555
					SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4))
556
					SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
557
					Debris:AddItem(SHARD,MRANDOM(10,25)/3)
558
				end
559
			end
560
		end
561
	end
562
	Part:remove()
563-
tecks2.TextStrokeColor3 = BRICKC"Really red".Color
563+
564
565
function MakeForm(PART,TYPE)
566
	if TYPE == "Cyl" then
567
		local MSH = IT("CylinderMesh",PART)
568
	elseif TYPE == "Ball" then
569
		local MSH = IT("SpecialMesh",PART)
570
		MSH.MeshType = "Sphere"
571
	elseif TYPE == "Wedge" then
572
		local MSH = IT("SpecialMesh",PART)
573
		MSH.MeshType = "Wedge"
574
	end
575
end
576
577
Debris = game:GetService("Debris")
578
579
function CastProperRay(StartPos, EndPos, Distance, Ignore)
580
	local DIRECTION = CF(StartPos,EndPos).lookVector
581
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
582
end
583
584
function turnto(position)
585
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
586
end
587
588
--//=================================\\
589
--||	     WEAPON CREATION
590
--\\=================================//
591
592
local Back = CreatePart(3, Character, "Neon", 0, 0, "White", "Wing", VT(1,1,0.35),false)
593
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
594
595
local ANGLE = 35
596
for i = 1, 5 do
597
	local Wing = CreatePart(3, Character, "Neon", 0, 0, "White", "Wing", VT(0.15,2+(i/2),0.15),false)
598
	local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
599
	local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "White", "Wing", VT(0.25,1,0.25),false)
600
	CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
601
	ANGLE = ANGLE - 15
602
	table.insert(LEFTWINGS,WingWeld)
603
end
604
ANGLE = 35
605
for i = 1, 5 do
606
	local Wing = CreatePart(3, Character, "Neon", 0, 0, "White", "Wing", VT(0.15,2+(i/2),0.15),false)
607
	local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
608
	local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "White", "Wing", VT(0.25,1,0.25),false)
609
	CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
610
	ANGLE = ANGLE - 15
611
	table.insert(RIGHTWINGS,WingWeld)
612
end
613
local Eye = CreatePart(3, Character, "Neon", 0, 0, "White", "Eye", VT(0.3,0.3,0.3),false)
614
local EyeWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
615
local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "White", "Eye", VT(0.5,0.5,0.29),false)
616
local EyeWeld2 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye2, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
617
618
local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "White", "Eye", VT(0.1,0.1,0.31),false)
619
local EyeWeld3 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye3, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(-25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
620
621
local SKILLTEXTCOLOR = BRICKC"White".Color
622
local SKILLFONT = "SciFi"
623
local SKILLTEXTSIZE = 6
624
625
local naeeym2 = Instance.new("BillboardGui",Character)
626
naeeym2.AlwaysOnTop = true
627
naeeym2.Size = UDim2.new(5,35,2,15)
628
naeeym2.StudsOffset = Vector3.new(0,1.2,0)
629
naeeym2.Adornee = Character.Head
630
naeeym2.Name = "Name"
631
naeeym2.PlayerToHideFrom = Player
632
local tecks2 = Instance.new("TextLabel",naeeym2)
633
tecks2.BackgroundTransparency = 1
634
tecks2.TextScaled = true
635
tecks2.BorderSizePixel = 0
636
tecks2.Text = "Cyber Monarch"
637
tecks2.Font = SKILLFONT
638
tecks2.TextSize = 30
639
tecks2.TextStrokeTransparency = 0
640
tecks2.TextColor3 = C3(0,0,0)
641
tecks2.TextStrokeColor3 = BRICKC"White".Color
642
tecks2.Size = UDim2.new(1,0,0.5,0)
643
tecks2.Parent = naeeym2
644
645
for _, c in pairs(Character:GetChildren()) do
646
	if c.ClassName == "Part" then
647
		table.insert(BODY,{c,Character})
648
		for _, q in pairs(c:GetChildren()) do
649
			if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then
650
				table.insert(BODY,{q,c})
651
			end
652
		end
653
	end
654
end
655
656
function refit()
657
	Character.Parent = workspace
658
	for e = 1, #BODY do
659
		if BODY[e] ~= nil then
660
			local STUFF = BODY[e]
661
			local PART = STUFF[1]
662
			local PARENT = STUFF[2]
663
			PART.Parent = PARENT
664
		end
665
	end
666
end
667
668
Humanoid.HealthChanged:connect(function()
669
	Humanoid.Parent = nil
670
	Humanoid.MaxHealth = "inf"
671
	Humanoid.Health = "inf"
672
	refit()
673
	Humanoid.Parent = Character
674
end)
675
676
Humanoid.Died:connect(function()
677
	Humanoid.Parent = nil
678
	Humanoid.MaxHealth = "inf"
679
	Humanoid.Health = "inf"
680
	refit()
681
	Humanoid.Parent = Character
682
end)
683
684
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
685
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
686
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
687
local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
688
689
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Cyber Out-Burst", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
690
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Techno Beam", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
691
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Techno Warp", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
692
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Cyber Smash", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
693
694
--//=================================\\
695
--||			DAMAGING
696
--\\=================================//
697
698
function killnearest(position,range,EFFECT)
699
	for i,v in ipairs(workspace:GetChildren()) do
700
	local body = v:GetChildren()
701
		for part = 1, #body do
702
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
703
				local SIZE = body[part].Size.Magnitude
704
				if(body[part].Position - position).Magnitude < range + SIZE/2 then
705
					if v.ClassName == "Model" then
706
						if v:FindFirstChildOfClass("Humanoid") ~= nil then
707
							if v:FindFirstChildOfClass("Humanoid").Health > 0 then
708
								v:BreakJoints()
709
								if EFFECT == "Glitch" then
710
									coroutine.resume(coroutine.create(function()
711
										local ORIGINPOS = body[part].CFrame
712
										local SIZE = body[part].Size
713
										for i = 1, 100 do
714
											Swait()
715
											local PART = body[part]
716
											PART.Anchored = true
717
											PART.Size = SIZE*MRANDOM(5,15)/10
718
											PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15)
719
										end
720
										body[part]:remove()
721
									end))
722
								elseif EFFECT == "Shatter" then
723
									for _, c in pairs(v:GetChildren()) do
724
										if c.ClassName == "Part" or c.ClassName == "MeshPart" then
725
											Shatter(c)
726
										end
727-
	local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0))
727+
728
								end
729
							end
730
						end
731
					end
732
				end
733
			end
734
		end
735
	end
736
end
737
738
--//=================================\\
739
--||	ATTACK FUNCTIONS AND STUFF
740
--\\=================================//
741
742
function CyberOutburst()
743
	if HITFLOOR ~= nil then
744
		ATTACK = true
745
		Rooted = true
746
		for i=0, 2, 0.1 / Animation_Speed do
747
			Swait()
748
			WACKYEFFECT({EffectType = "Box", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0), MoveToPos = Torso.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
749
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
750
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
751
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
752
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
753
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
754
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
755
		end
756
		for i=0, 2, 0.1 / Animation_Speed do
757
			Swait()
758
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
759
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
760
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
761
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
762
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
763
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
764
		end
765
		WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(25,25,25), Transparency = 0.25, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 0.6, SoundVolume = 6})
766
		WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(35,35,35), Transparency = 0.5, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 0.8, SoundVolume = 4})
767
		WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(40,40,40), Transparency = 0.75, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 2})
768
		for i=0, 0.4, 0.1 / Animation_Speed do
769
			Swait()
770
			killnearest(Torso.Position,45,"Glitch")
771-
		WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})	
771+
772
			WACKYEFFECT({Time = 45, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))*CF(0,0,55).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
773
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
774
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
775-
		WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})	
775+
776
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
777
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
778
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
779
		end
780
		ATTACK = false
781
		Rooted = false
782
	end
783
end
784
785
function Technobeam()
786
	ATTACK = true
787-
	local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25))
787+
788
	local GYRO = IT("BodyGyro",RootPart)
789
	GYRO.D = 100
790
	GYRO.P = 2000
791
	GYRO.MaxTorque = VT(0,4000000,0)
792-
	EF.Color = BrickColor.new("Really red")
792+
793
	CreateSound("93724183", RightArm, 5, 1, false)
794
	for i=1, 35 do
795
		Swait()
796
		WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
797
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
798
		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(45)), 1 / Animation_Speed)
799
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
800
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
801
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
802
		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)
803
		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)
804
	end
805
	local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "White", "Lazer", VT(0,0,0))
806
	local LOOP = CreateSound("415700134", RightArm, 5, 1, false)
807
	local TOCH = BEAM.Touched:Connect(function(hit)
808
		if hit.Anchored == false and hit.Parent ~= Head and  hit.Parent ~= Character and hit.Parent ~= Effects then
809
			Shatter(hit)
810
		end
811
	end)
812
	local I = 0
813
	repeat
814
		Swait()
815
		I = I + 1
816
		if I <= 10 then
817
			BEAM.Transparency = BEAM.Transparency - 0.1
818
		end
819
		local STARTPOS = RightArm.CFrame*CF(0,-4,0).p
820
		local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
821
		local DISTANCE = (STARTPOS - ENDPOS).Magnitude
822
		BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5))
823
		BEAM.Size = VT(2,2,DISTANCE)
824
		WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = CF(ENDPOS)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
825
		WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-4,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
826
		WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
827
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
828
		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(45)), 1 / Animation_Speed)
829
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
830
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
831
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
832
		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)
833
		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)
834
		if ENDHIT ~= nil then
835
			if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
836
				Shatter(ENDHIT)
837
			end
838
		end
839
	until LOOP.Playing == false
840
	GYRO:remove()
841
	BEAM:remove()
842
	ATTACK = false
843
	Rooted = false
844
end
845
846
function Technowarp()
847
	local FRAME = RootPart.Position
848
	for i = 1, 6 do
849
		WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"White".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})	
850
	end
851
	RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z))
852
	for i = 1, 6 do
853
		WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"White".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})	
854
	end
855
end
856
857
function CyberSmash()
858
	ATTACK = true
859
	Rooted = false
860
	local GYRO = IT("BodyGyro",RootPart)
861
	GYRO.D = 100
862
	GYRO.P = 2000
863
	GYRO.MaxTorque = VT(0,4000000,0)
864
	GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
865
	local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "White", "Block", VT(25,25,25))
866
	SMASH.CanCollide = true
867
	SMASH.Color = C3(0,0,0)
868
	local EF = Instance.new("SelectionBox",SMASH)
869
	EF.Adornee = SMASH
870
	EF.Color = BrickColor.new("White")
871
	EF.LineThickness = 0.2
872
	EF.Transparency = 1
873
	coroutine.resume(coroutine.create(function()
874
		for i = 1, 20 do
875
			Swait()
876
			SMASH.Transparency = SMASH.Transparency - 0.05
877
			EF.Transparency = SMASH.Transparency
878
		end
879
	end))
880
	repeat
881
		SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0)
882
		Swait()
883
		GYRO.cframe = CF(RootPart.Position,SMASH.Position)
884
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
885
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
886
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(130), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
887
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
888
		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)
889
		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)
890
	until HOLD == true and SMASH.Transparency < 0.99
891
	for i = 1, 25 do
892
		Swait()
893
		SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0)
894
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
895
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
896
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(160), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
897
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
898
		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)
899
		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)
900
	end
901
	local TOCH = SMASH.Touched:Connect(function(hit)
902
		if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
903
			Shatter(hit)
904
		end
905
	end)
906
	local n0 = nil
907
	local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character)
908
	if HITFLOOR ~= nil then
909
		if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then
910
			if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
911
				if HITFLOOR.Parent.ClassName == "Model" then
912
					HITFLOOR.Parent:BreakJoints()
913
				elseif HITFLOOR.Parent.Parent.ClassName == "Model" then
914
					HITFLOOR.Parent.Parent:BreakJoints()
915
				end
916
			end
917
			local POS = HITPOS
918
			n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent)
919
		end
920
	end
921
	killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter")
922
	SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0))
923
	WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
924
	for i = 1, 25 do
925
		Swait()
926
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
927
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
928
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(30), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
929
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
930
		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)
931
		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)
932
	end
933
	coroutine.resume(coroutine.create(function()
934
		wait(0.2)
935
		TOCH:disconnect()
936
		wait(1.8)
937
		for i = 1, 100 do
938
			Swait()
939
			SMASH.Transparency = i/100
940
		end
941
		for i = 1, 10 do
942
			Swait()
943
			EF.Transparency = EF.Transparency + 0.1
944
		end
945
		SMASH:remove()
946
	end))
947
	GYRO:remove()
948
	ATTACK = false
949
	Rooted = false
950
end
951
952
--//=================================\\
953
--||	  ASSIGN THINGS TO KEYS
954
--\\=================================//
955
956
function MouseDown(Mouse)
957
	HOLD = true
958
	if ATTACK == false then
959
	end
960
end
961
962
function MouseUp(Mouse)
963
HOLD = false
964
end
965
966
function KeyDown(Key)
967
	if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
968
		KEYHOLD = true
969
		if Key == "z" and ATTACK == false then
970
			CyberOutburst()
971
		end
972
	
973
		if Key == "b" and ATTACK == false then
974
			Technobeam()
975
		end
976
	
977
		if Key == "c" and ATTACK == false then
978
			Technowarp()
979
		end
980
	
981
		if Key == "v" and ATTACK == false then
982
			CyberSmash()
983
		end
984
985
		if Key == "t" then
986
			local TAUNT = CreateSound("132392118", Head, 10, 0.8)
987
			TAUNT.TimePosition = 1.1
988
		end
989
	end
990
end
991
992
function KeyUp(Key)
993
	if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
994
		KEYHOLD = false
995
	end
996
end
997
998
	Mouse.Button1Down:connect(function(NEWKEY)
999
		MouseDown(NEWKEY)
1000
	end)
1001
	Mouse.Button1Up:connect(function(NEWKEY)
1002
		MouseUp(NEWKEY)
1003
	end)
1004
	Mouse.KeyDown:connect(function(NEWKEY)
1005
		KeyDown(NEWKEY)
1006
	end)
1007
	Mouse.KeyUp:connect(function(NEWKEY)
1008
		KeyUp(NEWKEY)
1009
	end)
1010
1011
--//=================================\\
1012
--\\=================================//
1013-
				EF.Color = BrickColor.new("Really red")
1013+
1014
1015
function unanchor()
1016
	if UNANCHOR == true then
1017
		g = Character:GetChildren()
1018
		for i = 1, #g do
1019
			if g[i].ClassName == "Part" then
1020
				g[i].Anchored = false
1021
			end
1022
		end
1023
	end
1024
end
1025
1026
1027
--//=================================\\
1028
--||	WRAP THE WHOLE SCRIPT UP
1029
--\\=================================//
1030
1031
Humanoid.Changed:connect(function(Jump)
1032
	if Jump == "Jump" and (Disable_Jump == true) then
1033
		Humanoid.Jump = false
1034
	end
1035
end)
1036-
			WACKYEFFECT({EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,15,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(BOXPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1036+
1037
Humanoid.HipHeight = 2
1038
1039
while true do
1040
	Swait()
1041
	refit()
1042
	Character.Parent = workspace
1043
	Humanoid.Parent = Character
1044
	ANIMATE.Parent = nil
1045
	local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1046
	IDLEANIMATION:Play()
1047
	SINE = SINE + CHANGE
1048
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1049
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1050
	HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character)
1051
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1052
	EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed)
1053
	EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed)
1054
	EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed)
1055
	for LW = 1, #LEFTWINGS do
1056
		if LEFTWINGS[LW] ~= nil then
1057
			LEFTWINGS[LW].C1 = Clerp(LEFTWINGS[LW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(-3 + 3 * SIN(SINE / 12))), 1 / Animation_Speed)
1058
		end
1059
	end
1060
	for RW = 1, #RIGHTWINGS do
1061
		if RIGHTWINGS[RW] ~= nil then
1062
			RIGHTWINGS[RW].C1 = Clerp(RIGHTWINGS[RW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(3 - 3 * SIN(SINE / 12))), 1 / Animation_Speed)
1063
		end
1064
	end
1065
	if ATTACK == false then
1066
		if TORSOVELOCITY < 1 then
1067
			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(0)), 1 / Animation_Speed)
1068
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
1069
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1070
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1071
			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)
1072
			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)
1073
		elseif TORSOVELOCITY > 1 then
1074
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
1075
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-2.5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
1076
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1077
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1078
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1079
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1080
		end
1081
	end
1082
	for _, c in pairs(Character:GetChildren()) do
1083
		if c.ClassName == "Part" and c.Name ~= "Eye" then
1084
			c.Material = "Neon"
1085
			if c:FindFirstChildOfClass("ParticleEmitter") then
1086
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1087
			end
1088
			if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then
1089
				local EF = Instance.new("SelectionBox",c)
1090
				EF.Adornee = c
1091
				EF.Color = BrickColor.new("White")
1092
				EF.LineThickness = 0.01
1093
				EF.Transparency = 0
1094
				EF.Name = "BoxEffect"
1095
			end
1096
			c.Color = C3(0,0,0)
1097
			if c == Head then
1098
				--[[if c:FindFirstChild("Dominus") == nil then
1099
					local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0))
1100
					M.Name = "Dominus"
1101
				end]]--
1102
				if c:FindFirstChild("face") then
1103
					c.face:remove()
1104
				end
1105
			end
1106
		elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
1107
			c:remove()
1108
		end
1109
	end
1110
	if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then
1111
		local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p
1112
		local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character)
1113
		if BOXFLOOR ~= nil then
1114
			WACKYEFFECT({EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,15,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(BOXPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"White".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1115
		end
1116
	end
1117
	unanchor()
1118
	Humanoid.MaxHealth = "inf"
1119
	Humanoid.Health = "inf"
1120
	if Rooted == false then
1121
		Disable_Jump = false
1122
		Humanoid.WalkSpeed = Speed
1123
	elseif Rooted == true then
1124
		Disable_Jump = true
1125
		Humanoid.WalkSpeed = 0
1126
	end
1127
	for _, c in pairs(workspace:GetChildren()) do
1128
		if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then
1129
		end
1130
	end
1131
	script.Parent = WEAPONGUI
1132
	Humanoid.Name = "Monarch"
1133
	sick.Parent = Effects
1134
	sick.Pitch = 0.85
1135
	sick.Playing = true
1136
	for _, q in pairs(Head:GetChildren()) do
1137
		if q.ClassName == "Sound" and q.Name ~= "Audio" then
1138
			q:remove()
1139
		end
1140
	end
1141
	Humanoid.DisplayDistanceType = "None"
1142
end
1143
1144
--//=================================\\
1145
--\\=================================//
1146
1147
1148
1149
1150
1151
--//====================================================\\--
1152
--||			  		 END OF SCRIPT
1153
--\\====================================================//--