View difference between Paste ID: UsCdqLna and RX2a0EC7
SHOW: | | - or go back to the newest paste.
1
--//====================================================\\--
2
--||			   CREATED BY SHACKLUSTER
3
--\\====================================================//--
4
5
6
7
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
8
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
9
local Mouse,mouse,UserInputService,ContextActionService = owner
10
do
11-
Player = game:GetService("Players").LocalPlayer
11+
    print("FE Compatibility code by Mokiros Edited by basstracker1970")
12
    script.Parent = Player.Character
13
 
14
    --RemoteEvent for communicating
15
    local Event = Instance.new("RemoteEvent")
16
    Event.Name = "UserInput_Event"
17-
Mouse = Player:GetMouse()
17+
18
    --Fake event to make stuff like Mouse.KeyDown work
19
    local function fakeEvent()
20
        local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
21
        t.connect = t.Connect
22
        return t
23
    end
24
 
25
    --Creating fake input objects with fake variables
26
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
27
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
28
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
29
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
30
    end}
31
    --Merged 2 functions into one by checking amount of arguments
32
    CAS.UnbindAction = CAS.BindAction
33
 
34
    --This function will trigger the events that have been :Connect()'ed
35
    local function te(self,ev,...)
36
        local t = m[ev]
37
        if t and t._fakeEvent and t.Function then
38
            t.Function(...)
39
        end
40
    end
41
    m.TrigEvent = te
42
    UIS.TrigEvent = te
43
 
44
   Event.OnServerEvent:Connect(function(plr,io)
45
        if plr~=Player then return end
46
        if io.isMouse then
47
            m.Target = io.Target
48
            m.Hit = io.Hit
49
        elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
50
            if io.UserInputState == Enum.UserInputState.Begin then
51
                m:TrigEvent("Button1Down")
52
            else
53
                m:TrigEvent("Button1Up")
54
            end
55
        else
56
            for n,t in pairs(CAS.Actions) do
57
                for _,k in pairs(t.Keys) do
58
                    if k==io.KeyCode then
59
                        t.Function(t.Name,io.UserInputState,io)
60
                    end
61
                end
62
            end
63
            if io.UserInputState == Enum.UserInputState.Begin then
64
                m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
65
                UIS:TrigEvent("InputBegan",io,false)
66
            else
67
                m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
68
                UIS:TrigEvent("InputEnded",io,false)
69
            end
70
        end
71
    end)
72
    Event.Parent = NLS([==[
73
    local Player = game:GetService("Players").LocalPlayer
74
    local Event = script:WaitForChild("UserInput_Event")
75
 
76
    local UIS = game:GetService("UserInputService")
77
    local input = function(io,a)
78
        if a then return end
79
        --Since InputObject is a client-side instance, we create and pass table instead
80
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
81
    end
82
    UIS.InputBegan:Connect(input)
83
    UIS.InputEnded:Connect(input)
84
 
85
    local Mouse = Player:GetMouse()
86
    local h,t
87
    --Give the server mouse data 30 times every second, but only if the values changed
88
    --If player is not moving their mouse, client won't fire events
89
    while wait(1/30) do
90
        if h~=Mouse.Hit or t~=Mouse.Target then
91
            h,t=Mouse.Hit,Mouse.Target
92
            Event:FireServer({isMouse=true,Target=t,Hit=h})
93
        end
94
    end]==],Player.Character)
95
    Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
96
 
97
end
98
wait(0.2)
99
--Paste This Above Any Script
100
101
102
103
Player = owner
104
PlayerGui = Player.PlayerGui
105
Cam = workspace.CurrentCamera
106
Backpack = Player.Backpack
107
Character = Player.Character
108
Humanoid = Character.Humanoid
109
110
RootPart = Character["HumanoidRootPart"]
111
Torso = Character["Torso"]
112
Head = Character["Head"]
113
RightArm = Character["Right Arm"]
114
LeftArm = Character["Left Arm"]
115
RightLeg = Character["Right Leg"]
116
LeftLeg = Character["Left Leg"]
117
RootJoint = RootPart["RootJoint"]
118
Neck = Torso["Neck"]
119
RightShoulder = Torso["Right Shoulder"]
120
LeftShoulder = Torso["Left Shoulder"]
121
RightHip = Torso["Right Hip"]
122
LeftHip = Torso["Left Hip"]
123
124
IT = Instance.new
125
CF = CFrame.new
126
VT = Vector3.new
127
RAD = math.rad
128
C3 = Color3.new
129
UD2 = UDim2.new
130
BRICKC = BrickColor.new
131
ANGLES = CFrame.Angles
132
EULER = CFrame.fromEulerAnglesXYZ
133
COS = math.cos
134
ACOS = math.acos
135
SIN = math.sin
136
ASIN = math.asin
137
ABS = math.abs
138
MRANDOM = math.random
139
FLOOR = math.floor
140
141
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
142
	local NEWMESH = IT(MESH)
143
	if MESH == "SpecialMesh" then
144
		NEWMESH.MeshType = MESHTYPE
145
		if MESHID ~= "nil" and MESHID ~= "" then
146
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
147
		end
148
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
149
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
150
		end
151
	end
152
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
153
	NEWMESH.Scale = SCALE
154
	NEWMESH.Parent = PARENT
155
	return NEWMESH
156
end
157
158
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
159
	local NEWPART = IT("Part")
160
	NEWPART.formFactor = FORMFACTOR
161
	NEWPART.Reflectance = REFLECTANCE
162
	NEWPART.Transparency = TRANSPARENCY
163
	NEWPART.CanCollide = false
164
	NEWPART.Locked = true
165
	NEWPART.Anchored = true
166
	if ANCHOR == false then
167
		NEWPART.Anchored = false
168
	end
169
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
170
	NEWPART.Name = NAME
171
	NEWPART.Size = SIZE
172
	NEWPART.Position = Torso.Position
173
	NEWPART.Material = MATERIAL
174
	NEWPART:BreakJoints()
175
	NEWPART.Parent = PARENT
176
	return NEWPART
177
end
178
179
--//=================================\\
180
--||		  CUSTOMIZATION
181
--\\=================================//
182
183
Player_Size = 1 --Size of the player.
184
Animation_Speed = 3
185
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
186
187
local Speed = 16
188
local Effects2 = {}
189
190
--//=================================\\
191
--|| 	  END OF CUSTOMIZATION
192
--\\=================================//
193
194
	local function weldBetween(a, b)
195
	    local weldd = Instance.new("ManualWeld")
196
	    weldd.Part0 = a
197
	    weldd.Part1 = b
198
	    weldd.C0 = CFrame.new()
199
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
200
	    weldd.Parent = a
201
	    return weldd
202
	end
203
204
--//=================================\\
205
--|| 	      USEFUL VALUES
206
--\\=================================//
207
208
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
209
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
210
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
211
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
212
local CHANGEDEFENSE = 0
213
local CHANGEDAMAGE = 0
214
local CHANGEMOVEMENT = 0
215
local ANIM = "Idle"
216
local ATTACK = false
217
local EQUIPPED = false
218
local HOLD = false
219
local COMBO = 1
220
local Rooted = false
221
local SINE = 0
222
local KEYHOLD = false
223
local CHANGE = 2 / Animation_Speed
224
local WALKINGANIM = false
225
local WALK = false
226
local VALUE1 = false
227
local VALUE2 = false
228
local ROBLOXIDLEANIMATION = IT("Animation")
229
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
230
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
231
--ROBLOXIDLEANIMATION.Parent = Humanoid
232
local WEAPONGUI = IT("ScreenGui", PlayerGui)
233
WEAPONGUI.Name = "Weapon GUI"
234
local Weapon = IT("Model")
235
Weapon.Name = "Adds"
236
local Effects = IT("Folder", Weapon)
237
Effects.Name = "Effects"
238
local ANIMATOR = Humanoid.Animator
239
local ANIMATE = Character.Animate
240
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
241
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
242
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
243
local HITBLOCKSOUNDS = {"199148933", "199148947"}
244
local UNANCHOR = true
245
246
local SKILLTEXTCOLOR = C3(1,1,1)
247
248
--//=================================\\
249
--\\=================================//
250
251
252
--//=================================\\
253
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
254
--\\=================================//
255
256
ArtificialHB = Instance.new("BindableEvent", script)
257
ArtificialHB.Name = "ArtificialHB"
258
259
script:WaitForChild("ArtificialHB")
260
261
frame = Frame_Speed
262
tf = 0
263
allowframeloss = false
264
tossremainder = false
265
lastframe = tick()
266
script.ArtificialHB:Fire()
267
268
game:GetService("RunService").Heartbeat:connect(function(s, p)
269
	tf = tf + s
270
	if tf >= frame then
271
		if allowframeloss then
272
			script.ArtificialHB:Fire()
273
			lastframe = tick()
274
		else
275
			for i = 1, math.floor(tf / frame) do
276
				script.ArtificialHB:Fire()
277
			end
278
		lastframe = tick()
279
		end
280
		if tossremainder then
281
			tf = 0
282
		else
283
			tf = tf - frame * math.floor(tf / frame)
284
		end
285
	end
286
end)
287
288
--//=================================\\
289
--\\=================================//
290
291
292
293
294
295
--//=================================\\
296
--|| 	      SOME FUNCTIONS
297
--\\=================================//
298
299
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
300
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
301
end
302
303
function PositiveAngle(NUMBER)
304
	if NUMBER >= 0 then
305
		NUMBER = 0
306
	end
307
	return NUMBER
308
end
309
310
function NegativeAngle(NUMBER)
311
	if NUMBER <= 0 then
312
		NUMBER = 0
313
	end
314
	return NUMBER
315
end
316
317
function Swait(NUMBER)
318
	if NUMBER == 0 or NUMBER == nil then
319
		ArtificialHB.Event:wait()
320
	else
321
		for i = 1, NUMBER do
322
			ArtificialHB.Event:wait()
323
		end
324
	end
325
end
326
327
function QuaternionFromCFrame(cf)
328
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
329
	local trace = m00 + m11 + m22
330
	if trace > 0 then 
331
		local s = math.sqrt(1 + trace)
332
		local recip = 0.5 / s
333
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
334
	else
335
		local i = 0
336
		if m11 > m00 then
337
			i = 1
338
		end
339
		if m22 > (i == 0 and m00 or m11) then
340
			i = 2
341
		end
342
		if i == 0 then
343
			local s = math.sqrt(m00 - m11 - m22 + 1)
344
			local recip = 0.5 / s
345
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
346
		elseif i == 1 then
347
			local s = math.sqrt(m11 - m22 - m00 + 1)
348
			local recip = 0.5 / s
349
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
350
		elseif i == 2 then
351
			local s = math.sqrt(m22 - m00 - m11 + 1)
352
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
353
		end
354
	end
355
end
356
 
357
function QuaternionToCFrame(px, py, pz, x, y, z, w)
358
	local xs, ys, zs = x + x, y + y, z + z
359
	local wx, wy, wz = w * xs, w * ys, w * zs
360
	local xx = x * xs
361
	local xy = x * ys
362
	local xz = x * zs
363
	local yy = y * ys
364
	local yz = y * zs
365
	local zz = z * zs
366
	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))
367
end
368
 
369
function QuaternionSlerp(a, b, t)
370
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
371
	local startInterp, finishInterp;
372
	if cosTheta >= 0.0001 then
373
		if (1 - cosTheta) > 0.0001 then
374
			local theta = ACOS(cosTheta)
375
			local invSinTheta = 1 / SIN(theta)
376
			startInterp = SIN((1 - t) * theta) * invSinTheta
377
			finishInterp = SIN(t * theta) * invSinTheta
378
		else
379
			startInterp = 1 - t
380
			finishInterp = t
381
		end
382
	else
383
		if (1 + cosTheta) > 0.0001 then
384
			local theta = ACOS(-cosTheta)
385
			local invSinTheta = 1 / SIN(theta)
386
			startInterp = SIN((t - 1) * theta) * invSinTheta
387
			finishInterp = SIN(t * theta) * invSinTheta
388
		else
389
			startInterp = t - 1
390
			finishInterp = t
391
		end
392
	end
393
	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
394
end
395
396
function Clerp(a, b, t)
397
	local qa = {QuaternionFromCFrame(a)}
398
	local qb = {QuaternionFromCFrame(b)}
399
	local ax, ay, az = a.x, a.y, a.z
400
	local bx, by, bz = b.x, b.y, b.z
401
	local _t = 1 - t
402
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
403
end
404
405
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
406
	local frame = IT("Frame")
407
	frame.BackgroundTransparency = TRANSPARENCY
408
	frame.BorderSizePixel = BORDERSIZEPIXEL
409
	frame.Position = POSITION
410
	frame.Size = SIZE
411
	frame.BackgroundColor3 = COLOR
412
	frame.BorderColor3 = BORDERCOLOR
413
	frame.Name = NAME
414
	frame.Parent = PARENT
415
	return frame
416
end
417
418
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
419
	local label = IT("TextLabel")
420
	label.BackgroundTransparency = 1
421
	label.Size = UD2(1, 0, 1, 0)
422
	label.Position = UD2(0, 0, 0, 0)
423
	label.TextColor3 = TEXTCOLOR
424
	label.TextStrokeTransparency = STROKETRANSPARENCY
425
	label.TextTransparency = TRANSPARENCY
426
	label.FontSize = TEXTFONTSIZE
427
	label.Font = TEXTFONT
428
	label.BorderSizePixel = BORDERSIZEPIXEL
429
	label.TextScaled = false
430
	label.Text = TEXT
431
	label.Name = NAME
432
	label.Parent = PARENT
433
	return label
434
end
435
436
function NoOutlines(PART)
437
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
438
end
439
440
441
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
442
	local NEWWELD = IT(TYPE)
443
	NEWWELD.Part0 = PART0
444
	NEWWELD.Part1 = PART1
445
	NEWWELD.C0 = C0
446
	NEWWELD.C1 = C1
447
	NEWWELD.Parent = PARENT
448
	return NEWWELD
449
end
450
451
local SOUND = IT("Sound")
452
453
function CreateSound(ID, PARENT, VOLUME, PITCH)
454
	local NEWSOUND = nil
455
	coroutine.resume(coroutine.create(function()
456
		NEWSOUND = SOUND:Clone()
457
		NEWSOUND.Parent = PARENT
458
		NEWSOUND.Volume = VOLUME
459
		NEWSOUND.Pitch = PITCH
460
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
461
		Swait()
462
		NEWSOUND:play()
463
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
464
	end))
465
	return NEWSOUND
466
end
467
468
function CFrameFromTopBack(at, top, back)
469
	local right = top:Cross(back)
470
	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)
471
end
472
473
function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
474
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
475
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
476
	wave.CFrame = CFRAME
477
	coroutine.resume(coroutine.create(function(PART)
478
		for i = 1, WAIT do
479
			Swait()
480
			mesh.Scale = mesh.Scale + GROW
481
			if DOESROT == true then
482
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
483
			end
484
			wave.Transparency = wave.Transparency + (0.5/WAIT)
485
			if wave.Transparency > 0.99 then
486
				wave:remove()
487
			end
488
		end
489
	end))
490
end
491
492
function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
493
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
494
	local mesh = nil
495
	if KIND == "Base" then
496
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
497
	elseif KIND == "Thin" then
498
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
499
	elseif KIND == "Round" then
500
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
501
	end
502
	wave.CFrame = CFRAME
503
	coroutine.resume(coroutine.create(function(PART)
504
		for i = 1, WAIT do
505
			Swait()
506
			mesh.Scale = mesh.Scale + GROW/10
507
			wave.Transparency = wave.Transparency + (0.5/WAIT)
508
			if wave.Transparency > 0.99 then
509
				wave:remove()
510
			end
511
		end
512
	end))
513
end
514
515
function MakeForm(PART,TYPE)
516
	if TYPE == "Cyl" then
517
		local MSH = IT("CylinderMesh",PART)
518
	elseif TYPE == "Ball" then
519
		local MSH = IT("SpecialMesh",PART)
520
		MSH.MeshType = "Sphere"
521
	elseif TYPE == "Wedge" then
522
		local MSH = IT("SpecialMesh",PART)
523
		MSH.MeshType = "Wedge"
524
	end
525
end
526
527
function CheckTableForString(Table, String)
528
	for i, v in pairs(Table) do
529
		if string.find(string.lower(String), string.lower(v)) then
530
			return true
531
		end
532
	end
533
	return false
534
end
535
536
function CheckIntangible(Hit)
537
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
538
	if Hit and Hit.Parent then
539
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
540
			return true
541
		end
542
	end
543
	return false
544
end
545
546
Debris = game:GetService("Debris")
547
548
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
549
	local Direction = CFrame.new(StartPos, Vec).lookVector
550
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
551
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
552
	if RayHit and CheckIntangible(RayHit) then
553
		if DelayIfHit then
554
			wait()
555
		end
556
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
557
	end
558
	return RayHit, RayPos, RayNormal
559
end
560
561
function turnto(position)
562
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
563
end
564
565
--//=================================\\
566
--||	     WEAPON CREATION
567
--\\=================================//
568
569
local WHEEL1 = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Wheelie", VT(0.5,0,0.5),false)
570
MakeForm(WHEEL1,"Cyl")
571
WHEEL1.CFrame = LeftLeg.CFrame*CF(0,-1,0)*ANGLES(RAD(0),RAD(0),RAD(90))
572
weldBetween(LeftLeg,WHEEL1)
573
574
local WHEEL1 = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Wheelie", VT(0.5,0,0.5),false)
575
MakeForm(WHEEL1,"Cyl")
576
WHEEL1.CFrame = RightLeg.CFrame*CF(0,-1,0)*ANGLES(RAD(0),RAD(0),RAD(90))
577
weldBetween(RightLeg,WHEEL1)
578
579
local WHEEL1 = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Wheelie", VT(0.15,0.2,0.15),false)
580
MakeForm(WHEEL1,"Cyl")
581
WHEEL1.CFrame = LeftLeg.CFrame*CF(0,-1,0)*ANGLES(RAD(0),RAD(0),RAD(90))
582
weldBetween(LeftLeg,WHEEL1)
583
584
local WHEEL1 = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Wheelie", VT(0.15,0.2,0.15),false)
585
MakeForm(WHEEL1,"Cyl")
586
WHEEL1.CFrame = RightLeg.CFrame*CF(0,-1,0)*ANGLES(RAD(0),RAD(0),RAD(90))
587
weldBetween(RightLeg,WHEEL1)
588
589
for _, c in pairs(Weapon:GetChildren()) do
590
	if c.ClassName == "Part" then
591
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
592
	end
593
end
594
595
Weapon.Parent = Character
596
597
Humanoid.Died:connect(function()
598
	ATTACK = true
599
end)
600
601
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
602
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
603
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
604
605
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Kicks", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
606
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Strafe", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
607
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Blade formation", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3")
608
609
--//=================================\\
610
--||	     DAMAGE FUNCTIONS
611
--\\=================================//
612
613
function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
614
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
615
	STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
616
	local BODYGYRO = IT("BodyGyro", STATPART)
617
	local BODYPOSITION = IT("BodyPosition", STATPART)
618
	BODYPOSITION.P = 2000
619
	BODYPOSITION.D = 100
620
	BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
621
	BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
622
	game:GetService("Debris"):AddItem(STATPART ,5)
623
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
624
	BILLBOARDGUI.Adornee = STATPART
625
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
626
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
627
	BILLBOARDGUI.AlwaysOnTop = false
628
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
629
	TEXTLABEL.BackgroundTransparency = 1
630
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
631
	TEXTLABEL.Text = TEXT
632
	TEXTLABEL.Font = "SciFi"
633
	TEXTLABEL.FontSize="Size42"
634
	TEXTLABEL.TextColor3 = COLOR
635
	TEXTLABEL.TextStrokeTransparency = 1
636
	TEXTLABEL.TextScaled = true
637
	TEXTLABEL.TextWrapped = true
638
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
639
		if LABELTYPE == "Normal" then
640
			for i = 1, 30 do
641
				Swait()
642
				STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
643
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
644
			end
645
		elseif LABELTYPE == "Debuff" then
646
			for i = 1, 30 do
647
				Swait()
648
				STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
649
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
650
			end
651
		elseif LABELTYPE == "Shock" then
652
			local ORIGIN = STATPART.Position
653
			for i = 1, 30 do
654
				Swait()
655
				STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
656
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
657
			end
658
		end
659
		THEPART.Parent = nil
660
	end),STATPART, BODYPOSITION, TEXTLABEL)
661
end
662
663
--//=================================\\
664
--||			DAMAGING
665
--\\=================================//
666
667
function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
668
	local defence = Instance.new("BoolValue",Humanoid.Parent)
669
	defence.Name = ("HitBy"..Player.Name)
670
	game:GetService("Debris"):AddItem(defence, 0.001)
671
	if Humanoid.Health ~= 0 then
672
		local CritChance = MRANDOM(1,100)
673
		if CritChance < CritRate + 1 then
674
			Damage = Damage*CritMultiplier
675
		end
676
		if Damage > Humanoid.Health then
677
			Damage = math.ceil(Humanoid.Health)
678
			if Damage == 0 then
679
				Damage = 0.1
680
			end
681
		end
682
		Humanoid.Health = Humanoid.Health - Damage
683
		if Humanoid.Parent:FindFirstChild("Head") then
684
			if CritChance < CritRate + 1 then
685
				StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
686
			else
687
				StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
688
			end
689
		end
690
	end
691
end
692
693
function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
694
	local dmg = math.random(min,max)
695
	for i,v in ipairs(workspace:GetChildren()) do
696
	if v:FindFirstChild("HitBy"..Player.Name) == nil then
697
		local body = v:GetChildren()
698
			for part = 1, #body do
699
				if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
700
					if(body[part].Position - position).Magnitude < radius then
701
						if v.ClassName == "Model" then
702
							if v:FindFirstChildOfClass("Humanoid") then
703
								if CanBeDodgedByJumping == true then
704
									if body[part].Position.Y < position.Y+5 then
705
										ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
706
									end
707
								else
708
									ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
709
								end
710
								local bv = Instance.new("BodyVelocity") 
711
								bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
712
								bv.velocity = RootPart.CFrame.lookVector*maxstrength
713
								bv.Parent = body[part]
714
								Debris:AddItem(bv,0.2)
715
							end
716
						end
717
					end
718
				end
719
			end
720
		end
721
		if v:FindFirstChild("HitBy"..Player.Name) then
722
			v:FindFirstChild("HitBy"..Player.Name):remove()
723
		end
724
	end
725
end
726
727
--//=================================\\
728
--||	ATTACK FUNCTIONS AND STUFF
729
--\\=================================//
730
731
function Transparency(TRANS)
732
	for _, c in pairs(Character:GetChildren()) do
733
		if c.ClassName == "Part" and c ~= RootPart then
734
			c.Transparency = TRANS
735
			if c:FindFirstChildOfClass("Decal") then
736
				c:FindFirstChildOfClass("Decal").Transparency = TRANS
737
			end
738
		elseif c.ClassName == "Accessory" then
739
			c.Handle.Transparency = TRANS
740
		elseif c.ClassName == "Model" then
741
			for _, q in pairs(c:GetChildren()) do
742
				if q.ClassName == "Part" then
743
					q.Transparency = TRANS
744
					if q:FindFirstChildOfClass("Decal") then
745
						q:FindFirstChildOfClass("Decal").Transparency = TRANS
746
					end
747
				end
748
			end
749
		end
750
	end
751
end
752
753
function Kicks(STRAFE)
754
	ATTACK = true
755
	Rooted = false
756
	if COMBO == 1 then
757
		COMBO = 2
758
		CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
759
		if STRAFE == true then
760
			AoEDamage(Torso.CFrame*CF(0,-1,-2).p,5,15,17,0,2,2,false)
761
		else
762
			AoEDamage(Torso.CFrame*CF(0,-1,-2).p,5,5,7,0,2,2,false)
763
		end
764
		for i=0, 0.5, 0.1 / Animation_Speed do
765
			Swait()
766
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(45)), 2 / Animation_Speed)
767
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-45)), 2 / Animation_Speed)
768
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
769
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
770
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(135), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed)
771
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
772
		end
773
	elseif COMBO == 2 then
774
		COMBO = 1
775
		CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
776
		if STRAFE == true then
777
			AoEDamage(Torso.CFrame*CF(0,-1,-2).p,5,15,17,0,2,2,false)
778
		else
779
			AoEDamage(Torso.CFrame*CF(0,-1,-2).p,5,5,7,0,2,2,false)
780
		end
781
		for i=0, 0.5, 0.1 / Animation_Speed do
782
			Swait()
783
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-45)), 2 / Animation_Speed)
784
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 2 / Animation_Speed)
785
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
786
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
787
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
788
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-135), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed)
789
		end
790
	end
791
	ATTACK = false
792
	Rooted = false
793
end
794
795
function Strafe()
796
	ATTACK = true
797
	Rooted = true
798
	for i=0, 1, 0.1 / Animation_Speed do
799
		Swait()
800
		RootPart.CFrame = RootPart.CFrame*CF(0,0,-1)
801
		local HIT = Raycast(RootPart.Position, RootPart.CFrame.lookVector, 2, Character)
802
		if HIT ~= nil then
803
			break
804
		end
805
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
806
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
807
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
808
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
809
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(-12), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
810
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(-12), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
811
	end
812
	Kicks(true)
813
	ATTACK = false
814
	Rooted = false
815
end
816
817
function BladeFormation()
818
	ATTACK = true
819
	Rooted = true
820
	for i=0, 1, 0.1 / Animation_Speed do
821
		Swait()
822
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 2 / Animation_Speed)
823
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
824
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
825
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
826
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(-12), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
827
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(-12), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
828
	end
829
	Transparency(1)
830
	for i = 1, 25 do
831
		Swait()
832
		CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
833
		RootPart.CFrame = RootPart.CFrame * CF(0,0,-3)
834
		AoEDamage(Torso.Position,15,2,4,0,2,2,false)
835
		Slice("Round",1,15,RootPart.CFrame * CF(MRANDOM(-10,10),MRANDOM(-10,10),MRANDOM(-10,10)) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),SKILLTEXTCOLOR,VT(-0.2,0,-0.2))
836
		Slice("Round",2,15,RootPart.CFrame * CF(MRANDOM(-10,10),MRANDOM(-10,10),MRANDOM(-10,10)) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),SKILLTEXTCOLOR,VT(-0.2,0,-0.2))
837
	end
838
	Transparency(0)
839
	ATTACK = false
840
	Rooted = false
841
end
842
843
--//=================================\\
844
--||	  ASSIGN THINGS TO KEYS
845
--\\=================================//
846
847
function MouseDown(Mouse)
848
	if ATTACK == false then
849
	end
850
end
851
852
function MouseUp(Mouse)
853
HOLD = false
854
end
855
856
function KeyDown(Key)
857
	KEYHOLD = true
858
	if Key == "z" and ATTACK == false then
859
		Kicks()
860
	end
861
862
	if Key == "b" and ATTACK == false then
863
		Strafe()
864
	end
865
866
	if Key == "c" and ATTACK == false then
867
		BladeFormation()
868
	end
869
end
870
871
function KeyUp(Key)
872
	KEYHOLD = false
873
end
874
875
	Mouse.Button1Down:connect(function(NEWKEY)
876
		MouseDown(NEWKEY)
877
	end)
878
	Mouse.Button1Up:connect(function(NEWKEY)
879
		MouseUp(NEWKEY)
880
	end)
881
	Mouse.KeyDown:connect(function(NEWKEY)
882
		KeyDown(NEWKEY)
883
	end)
884
	Mouse.KeyUp:connect(function(NEWKEY)
885
		KeyUp(NEWKEY)
886
	end)
887
888
--//=================================\\
889
--\\=================================//
890
891
892
function unanchor()
893
	if UNANCHOR == true then
894
		g = Character:GetChildren()
895
		for i = 1, #g do
896
			if g[i].ClassName == "Part" then
897
				g[i].Anchored = false
898
			end
899
		end
900
	end
901
end
902
903
904
--//=================================\\
905
--||	WRAP THE WHOLE SCRIPT UP
906
--\\=================================//
907
908
Humanoid.Changed:connect(function(Jump)
909
	if Jump == "Jump" and (Disable_Jump == true) then
910
		Humanoid.Jump = false
911
	end
912
end)
913
914
Humanoid.HipHeight = 0.3
915
916
while true do
917
	Swait()
918
	ANIMATE.Parent = nil
919
	local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
920
	IDLEANIMATION:Play()
921
	SINE = SINE + CHANGE
922
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
923
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
924
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
925
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
926
	local WALKSPEEDVALUE = 6
927
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
928
		ANIM = "Jump"
929
		if ATTACK == false then
930
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
931
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
932
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
933
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
934
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
935
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
936
	    end
937
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
938
		ANIM = "Fall"
939
		if ATTACK == false then
940
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
941
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
942
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
943
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
944
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
945
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
946
		end
947
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
948
		ANIM = "Idle"
949
		if ATTACK == false then
950
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
951
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
952
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
953
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
954
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
955
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
956
		end
957
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
958
		if WALK == false then
959
			coroutine.resume(coroutine.create(function()
960
				WALK = true
961
					if ATTACK == false then
962
					--CreateSound("199150686", Torso, 1, MRANDOM(15,17)/10)
963
					for i=0, 1, 0.1 / Animation_Speed do
964
						Swait()
965
						if ATTACK == true or ANIM ~= "Walk" then
966
							break
967
						end
968
						RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
969
						Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
970
						RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
971
						LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
972
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(75), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
973
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-75), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
974
					end
975
					if ATTACK == false and ANIM == "Walk" then
976
						--CreateSound("199150686", Torso, 1, MRANDOM(15,17)/10)
977
						for i=0, 1, 0.1 / Animation_Speed do
978
							Swait()
979
							if ATTACK == true or ANIM ~= "Walk" then
980
								break
981
							end
982
							RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
983
							Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
984
							RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
985
							LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
986
							RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-75), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
987
							LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(75), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
988
						end
989
					end
990
				end
991
				WALK = false
992
			end))
993
		end
994
		ANIM = "Walk"
995
	end
996
	if ANIM == "Walk" then
997
		if Speed < 75 then
998
			Speed = Speed + 0.2
999
		end
1000
	else
1001
		Speed = 14
1002
	end
1003
	unanchor()
1004
	Humanoid.MaxHealth = "inf"
1005
	Humanoid.Health = "inf"
1006
	if Rooted == false then
1007
		Disable_Jump = false
1008
		Humanoid.WalkSpeed = Speed
1009
	elseif Rooted == true then
1010
		Disable_Jump = true
1011
		Humanoid.WalkSpeed = 0
1012
	end
1013
end
1014
1015
--//=================================\\
1016
--\\=================================//
1017
1018
1019
1020
1021
1022
--//====================================================\\--
1023
--||			  		 END OF SCRIPT
1024
--\\====================================================//--