View difference between Paste ID: Kc8uBSKj and XXLtHFCF
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2-
--||			   CREATED BY SHACKLUSTER
2+
3-
--\\====================================================//--
3+
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7-
Player = game:GetService("Players").LocalPlayer
7+
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13-
Mouse = Player:GetMouse()
13+
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").blazeredheat15791
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
wait(0.2)
88
89
Player = game:GetService("Players").blazeredheat15791
90
PlayerGui = Player.PlayerGui
91
Cam = workspace.CurrentCamera
92
Backpack = Player.Backpack
93
Character = Player.Character
94
Humanoid = Character:FindFirstChildOfClass("Humanoid")
95
RootPart = Character["HumanoidRootPart"]
96
Torso = Character["Torso"]
97
Head = Character["Head"]
98
RightArm = Character["Right Arm"]
99
LeftArm = Character["Left Arm"]
100
RightLeg = Character["Right Leg"]
101
LeftLeg = Character["Left Leg"]
102
RootJoint = RootPart["RootJoint"]
103
Neck = Torso["Neck"]
104
RightShoulder = Torso["Right Shoulder"]
105
LeftShoulder = Torso["Left Shoulder"]
106
RightHip = Torso["Right Hip"]
107
LeftHip = Torso["Left Hip"]
108
local sick = Instance.new("Sound",Character)
109
110
IT = Instance.new
111
CF = CFrame.new
112
VT = Vector3.new
113
RAD = math.rad
114
C3 = Color3.new
115
UD2 = UDim2.new
116
BRICKC = BrickColor.new
117
ANGLES = CFrame.Angles
118
EULER = CFrame.fromEulerAnglesXYZ
119
COS = math.cos
120
ACOS = math.acos
121
SIN = math.sin
122
ASIN = math.asin
123
ABS = math.abs
124
MRANDOM = math.random
125
FLOOR = math.floor
126
127
--//=================================\\
128
--|| 	      USEFUL VALUES
129
--\\=================================//
130
131
Animation_Speed = 3
132
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
133
local Speed = 45
134
local SIZE = 1.3
135
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
136
local NECKC0 = CF(0, 1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
137
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
138
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
139
local ANIM = "Idle"
140
local ATTACK = false
141
local COMBO = 1
142
local Rooted = false
143
local SINE = 0
144
local CHANGE = 2 / Animation_Speed
145
local ROBLOXIDLEANIMATION = IT("Animation")
146
local WEAPONGUI = IT("ScreenGui", PlayerGui)
147
WEAPONGUI.Name = "Big Boie Squad"
148
local ANIMATOR = Humanoid.Animator
149
local ANIMATE = Character.Animate
150
local UNANCHOR = true
151
local KILLCOUNT = 0
152
153
--//=================================\\
154
--\\=================================//
155
156
157
--//=================================\\
158
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
159
--\\=================================//
160
161
ArtificialHB = Instance.new("BindableEvent", script)
162
ArtificialHB.Name = "ArtificialHB"
163
164
script:WaitForChild("ArtificialHB")
165
166
frame = Frame_Speed
167
tf = 0
168
allowframeloss = false
169
tossremainder = false
170
lastframe = tick()
171
script.ArtificialHB:Fire()
172
173
game:GetService("RunService").Heartbeat:connect(function(s, p)
174
	tf = tf + s
175
	if tf >= frame then
176
		if allowframeloss then
177
			script.ArtificialHB:Fire()
178
			lastframe = tick()
179
		else
180
			for i = 1, math.floor(tf / frame) do
181
				script.ArtificialHB:Fire()
182
			end
183
		lastframe = tick()
184
		end
185
		if tossremainder then
186
			tf = 0
187
		else
188
			tf = tf - frame * math.floor(tf / frame)
189
		end
190
	end
191
end)
192
193
--//=================================\\
194
--\\=================================//
195
196
--//=================================\\
197
--|| 	      SOME FUNCTIONS
198
--\\=================================//
199
200
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
201
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
202
end
203
204
function PositiveAngle(NUMBER)
205
	if NUMBER >= 0 then
206
		NUMBER = 0
207
	end
208
	return NUMBER
209
end
210
211
function NegativeAngle(NUMBER)
212
	if NUMBER <= 0 then
213
		NUMBER = 0
214
	end
215
	return NUMBER
216
end
217
218
function Swait(NUMBER)
219
	if NUMBER == 0 or NUMBER == nil then
220
		ArtificialHB.Event:wait()
221
	else
222
		for i = 1, NUMBER do
223
			ArtificialHB.Event:wait()
224
		end
225
	end
226
end
227
228
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
229
	local NEWMESH = IT(MESH)
230
	if MESH == "SpecialMesh" then
231
		NEWMESH.MeshType = MESHTYPE
232
		if MESHID ~= "nil" and MESHID ~= "" then
233
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
234
		end
235
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
236
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
237
		end
238
	end
239
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
240
	NEWMESH.Scale = SCALE
241
	NEWMESH.Parent = PARENT
242
	return NEWMESH
243
end
244
245
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
246
	local NEWPART = IT("Part")
247
	NEWPART.formFactor = FORMFACTOR
248
	NEWPART.Reflectance = REFLECTANCE
249
	NEWPART.Transparency = TRANSPARENCY
250
	NEWPART.CanCollide = false
251
	NEWPART.Locked = true
252
	NEWPART.Anchored = true
253
	if ANCHOR == false then
254
		NEWPART.Anchored = false
255
	end
256
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
257
	NEWPART.Name = NAME
258
	NEWPART.Size = SIZE
259
	NEWPART.Position = Torso.Position
260
	NEWPART.Material = MATERIAL
261
	NEWPART:BreakJoints()
262
	NEWPART.Parent = PARENT
263
	return NEWPART
264
end
265
266
	local function weldBetween(a, b)
267
	    local weldd = Instance.new("ManualWeld")
268
	    weldd.Part0 = a
269
	    weldd.Part1 = b
270
	    weldd.C0 = CFrame.new()
271
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
272
	    weldd.Parent = a
273
	    return weldd
274
	end
275
276
277
function QuaternionFromCFrame(cf)
278
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
279
	local trace = m00 + m11 + m22
280
	if trace > 0 then 
281
		local s = math.sqrt(1 + trace)
282
		local recip = 0.5 / s
283
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
284
	else
285
		local i = 0
286
		if m11 > m00 then
287
			i = 1
288
		end
289
		if m22 > (i == 0 and m00 or m11) then
290
			i = 2
291
		end
292
		if i == 0 then
293
			local s = math.sqrt(m00 - m11 - m22 + 1)
294
			local recip = 0.5 / s
295
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
296
		elseif i == 1 then
297
			local s = math.sqrt(m11 - m22 - m00 + 1)
298
			local recip = 0.5 / s
299
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
300
		elseif i == 2 then
301
			local s = math.sqrt(m22 - m00 - m11 + 1)
302
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
303
		end
304
	end
305
end
306
 
307
function QuaternionToCFrame(px, py, pz, x, y, z, w)
308
	local xs, ys, zs = x + x, y + y, z + z
309
	local wx, wy, wz = w * xs, w * ys, w * zs
310
	local xx = x * xs
311
	local xy = x * ys
312
	local xz = x * zs
313
	local yy = y * ys
314
	local yz = y * zs
315
	local zz = z * zs
316
	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))
317
end
318
 
319
function QuaternionSlerp(a, b, t)
320
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
321
	local startInterp, finishInterp;
322
	if cosTheta >= 0.0001 then
323
		if (1 - cosTheta) > 0.0001 then
324
			local theta = ACOS(cosTheta)
325
			local invSinTheta = 1 / SIN(theta)
326
			startInterp = SIN((1 - t) * theta) * invSinTheta
327
			finishInterp = SIN(t * theta) * invSinTheta
328
		else
329
			startInterp = 1 - t
330
			finishInterp = t
331
		end
332
	else
333
		if (1 + cosTheta) > 0.0001 then
334
			local theta = ACOS(-cosTheta)
335
			local invSinTheta = 1 / SIN(theta)
336
			startInterp = SIN((t - 1) * theta) * invSinTheta
337
			finishInterp = SIN(t * theta) * invSinTheta
338
		else
339
			startInterp = t - 1
340
			finishInterp = t
341
		end
342
	end
343
	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
344
end
345
346
function Clerp(a, b, t)
347
	local qa = {QuaternionFromCFrame(a)}
348
	local qb = {QuaternionFromCFrame(b)}
349
	local ax, ay, az = a.x, a.y, a.z
350
	local bx, by, bz = b.x, b.y, b.z
351
	local _t = 1 - t
352
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
353
end
354
355
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
356
	local frame = IT("Frame")
357
	frame.BackgroundTransparency = TRANSPARENCY
358
	frame.BorderSizePixel = BORDERSIZEPIXEL
359
	frame.Position = POSITION
360
	frame.Size = SIZE
361
	frame.BackgroundColor3 = COLOR
362
	frame.BorderColor3 = BORDERCOLOR
363
	frame.Name = NAME
364
	frame.Parent = PARENT
365
	return frame
366
end
367
368
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
369
	local label = IT("TextLabel")
370
	label.BackgroundTransparency = 1
371
	label.Size = UD2(1, 0, 1, 0)
372
	label.Position = UD2(0, 0, 0, 0)
373
	label.TextColor3 = TEXTCOLOR
374
	label.TextStrokeTransparency = STROKETRANSPARENCY
375
	label.TextTransparency = TRANSPARENCY
376
	label.FontSize = TEXTFONTSIZE
377
	label.Font = TEXTFONT
378
	label.BorderSizePixel = BORDERSIZEPIXEL
379
	label.TextScaled = false
380
	label.Text = TEXT
381
	label.Name = NAME
382
	label.Parent = PARENT
383
	return label
384
end
385
386
function NoOutlines(PART)
387
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
388
end
389
390
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
391
	local NEWWELD = IT(TYPE)
392
	NEWWELD.Part0 = PART0
393
	NEWWELD.Part1 = PART1
394
	NEWWELD.C0 = C0
395
	NEWWELD.C1 = C1
396
	NEWWELD.Parent = PARENT
397
	return NEWWELD
398
end
399
400
local S = IT("Sound")
401
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
402
	local NEWSOUND = nil
403
	coroutine.resume(coroutine.create(function()
404
		NEWSOUND = S:Clone()
405
		NEWSOUND.Parent = PARENT
406
		NEWSOUND.Volume = VOLUME
407
		NEWSOUND.Pitch = PITCH
408
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
409
		NEWSOUND:play()
410
		if DOESLOOP == true then
411
			NEWSOUND.Looped = false
412
		else
413
			repeat wait(1) until NEWSOUND.Playing == false
414
			NEWSOUND:remove()
415
		end
416
	end))
417
	return NEWSOUND
418
end
419
420
function CFrameFromTopBack(at, top, back)
421
	local right = top:Cross(back)
422
	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)
423
end
424
425
function MakeForm(PART,TYPE)
426
	if TYPE == "Cyl" then
427
		local MSH = IT("CylinderMesh",PART)
428
	elseif TYPE == "Ball" then
429
		local MSH = IT("SpecialMesh",PART)
430
		MSH.MeshType = "Sphere"
431
	elseif TYPE == "Wedge" then
432
		local MSH = IT("SpecialMesh",PART)
433
		MSH.MeshType = "Wedge"
434
	end
435
end
436
437
Debris = game:GetService("Debris")
438
439
function CastProperRay(StartPos, EndPos, Distance, Ignore)
440
	local DIRECTION = CF(StartPos,EndPos).lookVector
441
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
442
end
443
444
--//=================================\\
445
--||	     WEAPON CREATION
446
--\\=================================//
447
448
Humanoid.Parent = nil
449
RootPart.Size = RootPart.Size*SIZE
450
Torso.Size = Torso.Size*SIZE
451
RightArm.Size = RightArm.Size*SIZE
452
RightLeg.Size = RightLeg.Size*SIZE
453
LeftArm.Size = LeftArm.Size*SIZE
454
LeftLeg.Size = LeftLeg.Size*SIZE
455
RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
456
RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
457
Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
458
Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
459
RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
460
LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
461
RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
462
LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
463
RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
464
LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
465
Head.Size = Head.Size*SIZE
466
RootJoint.Parent = RootPart
467
Neck.Parent = Torso
468
RightShoulder.Parent = Torso
469
LeftShoulder.Parent = Torso
470
RightHip.Parent = Torso
471
LeftHip.Parent = Torso
472
473
local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1.4,1,0.2),false)
474
MakeForm(PART,"Ball")
475
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.45*SIZE,0.6*SIZE,-0.45*SIZE), CF(0, 0, 0))
476
local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1.4,1,0.2),false)
477
MakeForm(PART,"Ball")
478
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.45*SIZE,0.6*SIZE,-0.45*SIZE), CF(0, 0, 0))
479
local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1,0.7,0.2),false)
480
MakeForm(PART,"Ball")
481
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.35*SIZE,0.15*SIZE,-0.45*SIZE), CF(0, 0, 0))
482
local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1,0.7,0.2),false)
483
MakeForm(PART,"Ball")
484
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.35*SIZE,0.15*SIZE,-0.45*SIZE), CF(0, 0, 0))
485
local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(0.75,0.5,0.2),false)
486
MakeForm(PART,"Ball")
487
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.3*SIZE,-0.13*SIZE,-0.45*SIZE), CF(0, 0, 0))
488
local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(0.75,0.5,0.2),false)
489
MakeForm(PART,"Ball")
490
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.3*SIZE,-0.13*SIZE,-0.45*SIZE), CF(0, 0, 0))
491
492
Humanoid.Parent = Character
493
494
Humanoid.Died:connect(function()
495
	ATTACK = true
496
end)
497
498
local TRACKFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Yeet")
499
500
local TEXT = CreateLabel(TRACKFRAME, KILLCOUNT, C3(1,0,0), 8, "SourceSans", 0, 2, 1, "Text")
501
502
--//=================================\\
503
--||			DAMAGING
504
--\\=================================//
505
506
local EXPLOSION = IT("Explosion",nil)
507
EXPLOSION.BlastPressure = 0
508
function PUNCH(Fist)
509
	TOUCH = Fist.Touched:Connect(function(hit)
510
		if hit.Parent:FindFirstChildOfClass("Humanoid") then
511
			local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
512
			local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
513
			if TORSO and HUM.Health > 0 then
514
				CreateSound(296102734,Fist,6,1,false)
515
				CreateSound(12222242,TORSO,7,MRANDOM(8,14)/10,false)
516
				TORSO.Parent:BreakJoints()
517
				for _, c in pairs(TORSO.Parent:GetChildren()) do
518
					if c:IsA("BasePart") then
519
						local bv = Instance.new("BodyVelocity",c) 
520
						bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
521
						bv.velocity = CF(TORSO.Position,c.Position+VT(0,0.1,0)).lookVector*MRANDOM(70,100)
522
						Debris:AddItem(bv,0.05)
523
					end
524
				end
525
				local BOOM = EXPLOSION:Clone()
526
				BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p
527
				BOOM.Parent = Character
528
				TOUCH:Disconnect()
529
				KILLCOUNT = KILLCOUNT + 1
530
			end
531
		elseif hit.Material == Enum.Material.Glass or hit.Transparency > 0.2 then
532
			hit:remove()
533
			CreateSound(296102734,Fist,6,1,false)
534
			local BOOM = EXPLOSION:Clone()
535
			BOOM.BlastPressure = 15
536
			BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p
537
			BOOM.Parent = Character
538
		elseif hit.Anchored == false then
539
			CreateSound(296102734,Fist,6,1,false)
540
			local BOOM = EXPLOSION:Clone()
541
			BOOM.BlastPressure = 70
542
			BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p
543
			BOOM.Parent = Character
544
			TOUCH:Disconnect()
545
		end
546
	end)
547
	return TOUCH
548
end
549
550
--//=================================\\
551
--||	ATTACK FUNCTIONS AND STUFF
552
--\\=================================//
553
554
function Yeet()
555
	ATTACK = true
556
	Rooted = false
557
	if COMBO == 1 then
558
		COMBO = 2
559
		for i=0, 0.1, 0.1 / Animation_Speed do
560
			Swait()
561
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed)
562
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed)
563
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
564
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
565
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
566
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
567
		end
568
		local FIST = PUNCH(LeftArm)
569
		for i=0, 0.15, 0.1 / Animation_Speed do
570
			Swait()
571
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(-45)), 1 / Animation_Speed)
572
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(45)), 1 / Animation_Speed)
573
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
574
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1*SIZE, 0.45*SIZE, -1*SIZE) * ANGLES(RAD(110), RAD(0), RAD(25)) * LEFTSHOULDERC0, 2 / Animation_Speed)
575
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
576
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
577
		end
578
		FIST:Disconnect()
579
	else
580
		COMBO = 1
581
		for i=0, 0.1, 0.1 / Animation_Speed do
582
			Swait()
583
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed)
584
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
585
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
586
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
587
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
588
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
589
		end
590
		local FIST = PUNCH(RightArm)
591
		for i=0, 0.15, 0.1 / Animation_Speed do
592
			Swait()
593
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(45)), 1 / Animation_Speed)
594
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
595
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1*SIZE, 0.45*SIZE, -1*SIZE) * ANGLES(RAD(110), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
596
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
597
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
598
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
599
		end
600
		FIST:Disconnect()
601
	end
602
	ATTACK = false
603
	Rooted = false
604
end
605
606
function YesPlease()
607
	ATTACK = true
608
	Rooted = true
609
	CreateSound(291394633,Head,6,1,false)
610
	for i=0, 2, 0.1 / Animation_Speed do
611
		Swait()
612
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.3*SIZE) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
613
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
614
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2+(MRANDOM(-5,5)/100)*SIZE, (0.45+(MRANDOM(-5,5)/100))*SIZE, -0.5*SIZE) * ANGLES(RAD(75), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
615
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2+(MRANDOM(-5,5)/100)*SIZE, (0.65+(MRANDOM(-5,5)/100))*SIZE, -0.5*SIZE) * ANGLES(RAD(65), RAD(0), RAD(65)) * LEFTSHOULDERC0, 2 / Animation_Speed)
616
		RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.85*SIZE, -0.6*SIZE) * ANGLES(RAD(25), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
617
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.85*SIZE, -0.6*SIZE) * ANGLES(RAD(25), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
618
	end
619
	ATTACK = false
620
	Rooted = false
621
end
622
623
--//=================================\\
624
--||	  ASSIGN THINGS TO KEYS
625
--\\=================================//
626
627
Mouse.Button1Down:connect(function(NEWKEY)
628
	if ATTACK == false then
629
		Yeet()
630
	end
631
end)
632
Mouse.KeyDown:connect(function(NEWKEY)
633
	if NEWKEY == "t" and ATTACK == false then
634
		YesPlease()
635
	end
636
end)
637
638
--//=================================\\
639
--\\=================================//
640
641
function unanchor()
642
	if UNANCHOR == true then
643
		g = Character:GetChildren()
644
		for i = 1, #g do
645
			if g[i].ClassName == "Part" then
646
				g[i].Anchored = false
647
			end
648
		end
649
	end
650
end
651
652
--//=================================\\
653
--||	WRAP THE WHOLE SCRIPT UP
654
--\\=================================//
655
656
Humanoid.Changed:connect(function(Jump)
657
	if Jump == "Jump" and (Disable_Jump == true) then
658
		Humanoid.Jump = false
659
	end
660
end)
661
662
local FF = IT("ForceField",Character)
663
FF.Visible = false
664
665
while true do
666
	Swait()
667
	script.Parent = WEAPONGUI
668
	ANIMATE.Parent = nil
669
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
670
	    v:Stop();
671
	end
672
	SINE = SINE + CHANGE
673
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
674
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
675
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
676
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
677
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
678
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 / Animation_Speed)
679
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
680
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.5- 0.5 * COS(SINE / WALKSPEEDVALUE)) * 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)
681
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.5+ 0.5 * COS(SINE / WALKSPEEDVALUE)) * 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)
682
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
683
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
684
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
685
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
686
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
687
	end
688
	if HITFLOOR == nil then
689
		ANIM = "Midair"
690
		if ATTACK == false then
691
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
692
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
693
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(145), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
694
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.45*SIZE, 0.3*SIZE) * ANGLES(RAD(35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
695
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.2*SIZE, -0.7*SIZE) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
696
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
697
		end
698
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
699
		ANIM = "Idle"
700
		if ATTACK == false then
701
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
702
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
703
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(15), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
704
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(15), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
705
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
706
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
707
		end
708
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
709
		ANIM = "Walk"
710
		if ATTACK == false then
711
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
712
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1/ Animation_Speed)
713
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, (0.35+0.15 * COS(SINE / WALKSPEEDVALUE))*SIZE, 0*SIZE) * ANGLES(RAD(25+70 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
714
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, (0.35-0.15 * COS(SINE / WALKSPEEDVALUE))*SIZE, 0*SIZE) * ANGLES(RAD(25-70 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
715
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
716
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
717
		end
718
	end
719
	unanchor()
720
	Humanoid.MaxHealth = 5e7
721
	Humanoid.Health = 5e7
722
	Humanoid.Name = "BigBoie"
723
	if Rooted == false then
724
		Disable_Jump = false
725
		Humanoid.WalkSpeed = Speed
726
	elseif Rooted == true then
727
		Disable_Jump = true
728
		Humanoid.WalkSpeed = 0
729
	end
730
	for _, c in pairs(Character:GetChildren()) do
731
		if c.ClassName == "Part" then
732
			c.Material = "SmoothPlastic"
733
			if c:FindFirstChildOfClass("ParticleEmitter") then
734
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
735
			end
736
			if c == Torso or c.Name == "Muscle" then
737
				c.BrickColor = BRICKC"Bright blue"
738
			elseif c == RightLeg or c == LeftLeg then
739
				c.BrickColor = BRICKC"Br. yellowish green"
740
			else
741
				c.BrickColor = BRICKC"Bright yellow"
742
			end
743
			if c == Head then
744
				if c:FindFirstChild("face") then
745
					c.face.Texture = "http://www.roblox.com/asset/?id=145914523"
746
				end
747
			end
748
		elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
749
			c:remove()
750
		elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
751
			c:remove()
752
		end
753
	end
754
	sick.SoundId = "rbxassetid://1383666704"
755
	sick.Looped = false
756
	sick.Pitch = (MRANDOM(95,115)/100)+0.2
757
	sick.Volume = 0
758
	sick:Resume()
759
	sick.Parent = Torso
760
	Humanoid.JumpPower = 150
761
	TEXT.Text = KILLCOUNT
762
end
763
764
--//=================================\\
765
--\\=================================//
766
767
768
769
770
771
--//====================================================\\--
772
--||			  		 END OF SCRIPT
773
--\\====================================================//--