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