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