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