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