View difference between Paste ID: X3Q7Ckms and iddMqQnC
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
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
	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
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-
Player = game:GetService("Players").LocalPlayer
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-
Mouse = Player:GetMouse()
49+
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").LocalPlayer
63-
plr = game.Players.LocalPlayer
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
function sandbox(var,func)
88
	local env = getfenv(func)
89
	local newenv = setmetatable({},{
90
		__index = function(self,k)
91
			if k=="script" then
92
				return var
93
			else
94
				return env[k]
95
			end
96
		end,
97
	})
98
	setfenv(func,newenv)
99
	return func
100
end
101
cors = {}
102
mas = Instance.new("Model",game:GetService("Lighting"))
103
Sky0 = Instance.new("Sky")
104
Sky0.Parent = mas
105
Sky0.CelestialBodiesShown = false
106
Sky0.SkyboxBk = "rbxassetid://218955819"
107
Sky0.SkyboxDn = "rbxassetid://218953419"
108
Sky0.SkyboxFt = "rbxassetid://218954524"
109
Sky0.SkyboxLf = "rbxassetid://218958493"
110
Sky0.SkyboxRt = "rbxassetid://218957134"
111
Sky0.SkyboxUp = "rbxassetid://218950090"
112
for i,v in pairs(mas:GetChildren()) do
113
	v.Parent = game:GetService("Lighting")
114
	pcall(function() v:MakeJoints() end)
115
end
116
mas:Destroy()
117
for i,v in pairs(cors) do
118
	spawn(function()
119
		pcall(v)
120
	end)
121
end
122
123
--lollllll
124
125
wait(0.2)
126
127
local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
128
129
Player = game:GetService("Players").von12222222
130
PlayerGui = Player.PlayerGui
131
Cam = workspace.CurrentCamera
132
Backpack = Player.Backpack
133
Character = Player.Character
134
Humanoid = Character.Humanoid
135
RootPart = Character["HumanoidRootPart"]
136
Torso = Character["Torso"]
137
Head = Character["Head"]
138
RightArm = Character["Right Arm"]
139
LeftArm = Character["Left Arm"]
140
RightLeg = Character["Right Leg"]
141
LeftLeg = Character["Left Leg"]
142
RootJoint = RootPart["RootJoint"]
143
Neck = Torso["Neck"]
144
RightShoulder = Torso["Right Shoulder"]
145
LeftShoulder = Torso["Left Shoulder"]
146
RightHip = Torso["Right Hip"]
147
LeftHip = Torso["Left Hip"]
148
plr = game.Players.von12222222
149
char = plr.Character
150
for i,v in pairs(char:GetChildren()) do
151-
local plr = S.Players.LocalPlayer
151+
152
        v:Destroy()
153
    end
154
end
155
156
IT = Instance.new
157
CF = CFrame.new
158
VT = Vector3.new
159
RAD = math.rad
160
C3 = Color3.new
161
UD2 = UDim2.new
162
BRICKC = BrickColor.new
163
ANGLES = CFrame.Angles
164
EULER = CFrame.fromEulerAnglesXYZ
165
COS = math.cos
166
ACOS = math.acos
167
SIN = math.sin
168
ASIN = math.asin
169
ABS = math.abs
170
MRANDOM = math.random
171
FLOOR = math.floor
172
local LAUGHS = {834001699,834001752,834001828}
173
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
174
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
175
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
176
local PaintBody = 'Black'
177
local runService = S.RunService
178
local sine = 0;
179
local change = 1;
180
local GlitchTime = 0;
181
182
--//=================================\\
183
--|| 	      USEFUL VALUES
184
--\\=================================//
185
186
Animation_Speed = 3
187
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
188
local Speed = 20
189
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
190
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
191
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
192
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
193
local DAMAGEMULTIPLIER = 1
194
local ANIM = "Idle"
195
local ATTACK = false
196
local EQUIPPED = false
197
local HOLD = false
198
local COMBO = 1
199
local Rooted = false
200
local SINE = 0
201
local KEYHOLD = false
202
local CHANGE = 2 / Animation_Speed
203
local WALKINGANIM = false
204
local VALUE1 = false
205
local VALUE2 = false
206
local ROBLOXIDLEANIMATION = IT("Animation")
207
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
208
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
209
--ROBLOXIDLEANIMATION.Parent = Humanoid
210
local WEAPONGUI = IT("ScreenGui", PlayerGui)
211
WEAPONGUI.Name = "PIXELGUI"
212
local Effects = IT("Folder", Character)
213
Effects.Name = "Effects"
214
local ANIMATOR = Humanoid.Animator
215
local ANIMATE = Character.Animate
216
local UNANCHOR = true
217
local SONG = 383837680
218
local DEAD = false
219
local WALKINGANIM = false
220
local WALK = 0
221
Player_Size = 1 --Size of the player.
222
PlayerSize = 1 --Size of the player.
223
Animation_Speed = 3
224
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
225
226
local Speed = 16
227
local Effects2 = {}
228
local KILLINSTINCT = 0
229
local WEAPONGUI = IT("ScreenGui", PlayerGui)
230
WEAPONGUI.Name = "Weapon GUI"
231
local Weapon = IT("Model")
232
Weapon.Name = "Adds"
233
local Effects = IT("Folder", Weapon)
234
Effects.Name = "Effects"
235
236
local plr = S.Players.von12222222
237
local char = plr.Character
238
local hum = char:FindFirstChildOfClass'Humanoid'
239
local rarm = char["Right Arm"]
240
local larm= char["Left Arm"]
241
local rleg= char["Right Leg"]
242
local lleg = char["Left Leg"]	
243
local root = char:FindFirstChild'HumanoidRootPart'
244
local torso = char.Torso
245
local head = char.Head
246
247
--//=================================\\
248
--\\=================================//
249
250
251
--//=================================\\
252
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
253
--\\=================================//
254
255
ArtificialHB = Instance.new("BindableEvent", script)
256
ArtificialHB.Name = "ArtificialHB"
257
258
script:WaitForChild("ArtificialHB")
259
260
frame = Frame_Speed
261
tf = 0
262
allowframeloss = false
263
tossremainder = false
264
lastframe = tick()
265
script.ArtificialHB:Fire()
266
267
game:GetService("RunService").Heartbeat:connect(function(s, p)
268
	tf = tf + s
269
	if tf >= frame then
270
		if allowframeloss then
271
			script.ArtificialHB:Fire()
272
			lastframe = tick()
273
		else
274
			for i = 1, math.floor(tf / frame) do
275
				script.ArtificialHB:Fire()
276
			end
277
		lastframe = tick()
278
		end
279
		if tossremainder then
280
			tf = 0
281
		else
282
			tf = tf - frame * math.floor(tf / frame)
283
		end
284
	end
285
end)
286
287
--//=================================\\
288
--\\=================================//
289
290
--//=================================\\
291
--|| 	      SOME FUNCTIONS
292
--\\=================================//
293
294
local FT,RA,LA,RL,LL = Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh")
295
FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
296
RA.MeshId,RA.Scale = "rbxasset://fonts/rightarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
297
LA.MeshId,LA.Scale = "rbxasset://fonts/leftarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
298
RL.MeshId,RL.Scale = "rbxasset://fonts/rightleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
299
LL.MeshId,LL.Scale = "rbxasset://fonts/leftleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
300
301
local Effects,Sounds = {},{};
302
303
-- Sounds
304
Sounds['Astronaut13'] = {Id=247896174,Loop=true,Pitch=1,Volume=10}
305
306
function ClearChildrenWithClass(where,class,recursive)
307
	local children = (recursive and where:GetDescendants() or where:GetChildren())
308
	for _,v in next, children do
309
		if(v:IsA(class))then
310
			v:destroy()
311
		end
312
	end
313
end
314
local NewInstance = function(instance,parent,properties)
315
	local inst = Instance.new(instance,parent)
316
	if(properties)then
317
		for i,v in next, properties do
318
			pcall(function() inst[i] = v end)
319
		end
320
	end
321
	return inst;
322
end
323
324
325
ArtificialHB = NewInstance("BindableEvent", script,{
326
	Parent = script,
327
	Name = "Heartbeat",
328
})
329
330
script:WaitForChild("Heartbeat")
331
332
frame = 1 / 60
333
tf = 0
334
allowframeloss = false
335
tossremainder = false
336
lastframe = tick()
337
script.Heartbeat:Fire()
338
339
game:GetService("RunService").Heartbeat:connect(function(s, p)
340
	tf = tf + s
341
	if tf >= frame then
342
		if allowframeloss then
343
			script.Heartbeat:Fire()
344
			lastframe = tick()
345
		else
346
			for i = 1, math.floor(tf / frame) do
347
				script.Heartbeat:Fire()
348
			end
349
			lastframe = tick()
350
		end
351
		if tossremainder then
352
			tf = 0
353
		else
354
			tf = tf - frame * math.floor(tf / frame)
355
		end
356
	end
357
end)
358
359
local sndFromData = function(data,parent)
360
	assert(typeof(data) == 'table',"sndFromData's first argument must be a table!")
361
	local snd = NewInstance("Sound",parent or char,{SoundId = "rbxassetid://"..data.Id,Looped=data.Loop or false,Pitch = data.Pitch or 1,Volume = data.Volume or 1})
362
	if(not snd.Looped)then
363
		snd.Ended:connect(function()
364
			snd:Stop()
365
			snd:destroy()
366
		end)
367
	end
368
	return snd;
369
end
370
371
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
372
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
373
end
374
375
function PositiveAngle(NUMBER)
376
	if NUMBER >= 0 then
377
		NUMBER = 0
378
	end
379
	return NUMBER
380
end
381
382
function NegativeAngle(NUMBER)
383
	if NUMBER <= 0 then
384
		NUMBER = 0
385
	end
386
	return NUMBER
387
end
388
389
function Swait(NUMBER)
390
	if NUMBER == 0 or NUMBER == nil then
391
		ArtificialHB.Event:wait()
392
	else
393
		for i = 1, NUMBER do
394
			ArtificialHB.Event:wait()
395
		end
396
	end
397
end
398
399
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
400
	local NEWMESH = IT(MESH)
401
	if MESH == "SpecialMesh" then
402
		NEWMESH.MeshType = MESHTYPE
403
		if MESHID ~= "nil" and MESHID ~= "" then
404
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
405
		end
406
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
407
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
408
		end
409
	end
410
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
411
	NEWMESH.Scale = SCALE
412
	NEWMESH.Parent = PARENT
413
	return NEWMESH
414
end
415
416
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
417
	local NEWPART = IT("Part")
418
	NEWPART.formFactor = FORMFACTOR
419
	NEWPART.Reflectance = REFLECTANCE
420
	NEWPART.Transparency = TRANSPARENCY
421
	NEWPART.CanCollide = false
422
	NEWPART.Locked = true
423
	NEWPART.Anchored = true
424
	if ANCHOR == false then
425
		NEWPART.Anchored = false
426
	end
427
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
428
	NEWPART.Name = NAME
429
	NEWPART.Size = SIZE
430
	NEWPART.Position = Torso.Position
431
	NEWPART.Material = MATERIAL
432
	NEWPART:BreakJoints()
433
	NEWPART.Parent = PARENT
434
	return NEWPART
435
end
436
437
	local function weldBetween(a, b)
438
	    local weldd = Instance.new("ManualWeld")
439
	    weldd.Part0 = a
440
	    weldd.Part1 = b
441
	    weldd.C0 = CFrame.new()
442
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
443
	    weldd.Parent = a
444
	    return weldd
445
	end
446
447
448
function QuaternionFromCFrame(cf)
449
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
450
	local trace = m00 + m11 + m22
451
	if trace > 0 then 
452
		local s = math.sqrt(1 + trace)
453
		local recip = 0.5 / s
454
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
455
	else
456
		local i = 0
457
		if m11 > m00 then
458
			i = 1
459
		end
460
		if m22 > (i == 0 and m00 or m11) then
461
			i = 2
462
		end
463
		if i == 0 then
464
			local s = math.sqrt(m00 - m11 - m22 + 1)
465
			local recip = 0.5 / s
466
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
467
		elseif i == 1 then
468
			local s = math.sqrt(m11 - m22 - m00 + 1)
469
			local recip = 0.5 / s
470
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
471
		elseif i == 2 then
472
			local s = math.sqrt(m22 - m00 - m11 + 1)
473
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
474
		end
475
	end
476
end
477
 
478
function QuaternionToCFrame(px, py, pz, x, y, z, w)
479
	local xs, ys, zs = x + x, y + y, z + z
480
	local wx, wy, wz = w * xs, w * ys, w * zs
481
	local xx = x * xs
482
	local xy = x * ys
483
	local xz = x * zs
484
	local yy = y * ys
485
	local yz = y * zs
486
	local zz = z * zs
487
	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))
488
end
489
 
490
function QuaternionSlerp(a, b, t)
491
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
492
	local startInterp, finishInterp;
493
	if cosTheta >= 0.0001 then
494
		if (1 - cosTheta) > 0.0001 then
495
			local theta = ACOS(cosTheta)
496
			local invSinTheta = 1 / SIN(theta)
497
			startInterp = SIN((1 - t) * theta) * invSinTheta
498
			finishInterp = SIN(t * theta) * invSinTheta
499
		else
500
			startInterp = 1 - t
501
			finishInterp = t
502
		end
503
	else
504
		if (1 + cosTheta) > 0.0001 then
505
			local theta = ACOS(-cosTheta)
506
			local invSinTheta = 1 / SIN(theta)
507
			startInterp = SIN((t - 1) * theta) * invSinTheta
508
			finishInterp = SIN(t * theta) * invSinTheta
509
		else
510
			startInterp = t - 1
511
			finishInterp = t
512
		end
513
	end
514
	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
515
end
516
function look(to)
517
	RootJoint.CFrame = CFrame.new(RootJoint.CFrame.p,Vector3.new(to.x,RootJoint.CFrame.y,to.z))
518
end
519
function Clerp(a, b, t)
520
	local qa = {QuaternionFromCFrame(a)}
521
	local qb = {QuaternionFromCFrame(b)}
522
	local ax, ay, az = a.x, a.y, a.z
523
	local bx, by, bz = b.x, b.y, b.z
524
	local _t = 1 - t
525
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
526
end
527
528
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
529
	local frame = IT("Frame")
530
	frame.BackgroundTransparency = TRANSPARENCY
531
	frame.BorderSizePixel = BORDERSIZEPIXEL
532
	frame.Position = POSITION
533
	frame.Size = SIZE
534
	frame.BackgroundColor3 = COLOR
535
	frame.BorderColor3 = BORDERCOLOR
536
	frame.Name = NAME
537
	frame.Parent = PARENT
538
	return frame
539
end
540
541
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
542
	local label = IT("TextLabel")
543
	label.BackgroundTransparency = 1
544
	label.Size = UD2(1, 0, 1, 0)
545
	label.Position = UD2(0, 0, 0, 0)
546
	label.TextColor3 = TEXTCOLOR
547
	label.TextStrokeTransparency = STROKETRANSPARENCY
548
	label.TextTransparency = TRANSPARENCY
549
	label.FontSize = TEXTFONTSIZE
550
	label.Font = TEXTFONT
551
	label.BorderSizePixel = BORDERSIZEPIXEL
552
	label.TextScaled = false
553
	label.Text = TEXT
554
	label.Name = NAME
555
	label.Parent = PARENT
556
	return label
557
end
558
559
function NoOutlines(PART)
560
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
561
end
562
563
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
564
	local NEWWELD = IT(TYPE)
565
	NEWWELD.Part0 = PART0
566
	NEWWELD.Part1 = PART1
567
	NEWWELD.C0 = C0
568
	NEWWELD.C1 = C1
569
	NEWWELD.Parent = PARENT
570
	return NEWWELD
571
end
572
573
local S = IT("Sound")
574
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
575
	local NEWSOUND = nil
576
	coroutine.resume(coroutine.create(function()
577
		NEWSOUND = S:Clone()
578
		NEWSOUND.Parent = PARENT
579
		NEWSOUND.Volume = VOLUME
580
		NEWSOUND.Pitch = PITCH
581
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
582
		NEWSOUND:play()
583
		if DOESLOOP == true then
584
			NEWSOUND.Looped = true
585
		else
586
			repeat wait(1) until NEWSOUND.Playing == false
587
			NEWSOUND:remove()
588
		end
589
	end))
590
	return NEWSOUND
591
end
592
593
function CFrameFromTopBack(at, top, back)
594
	local right = top:Cross(back)
595
	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)
596
end
597
598
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
599
function WACKYEFFECT(Table)
600
	local TYPE = (Table.EffectType or "Sphere")
601
	local SIZE = (Table.Size or VT(1,1,1))
602
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
603
	local TRANSPARENCY = (Table.Transparency or 0)
604
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
605
	local CFRAME = (Table.CFrame or Torso.CFrame)
606
	local MOVEDIRECTION = (Table.MoveToPos or nil)
607
	local ROTATION1 = (Table.RotationX or 0)
608
	local ROTATION2 = (Table.RotationY or 0)
609
	local ROTATION3 = (Table.RotationZ or 0)
610
	local MATERIAL = (Table.Material or "Neon")
611
	local COLOR = (Table.Color or C3(1,1,1))
612
	local TIME = (Table.Time or 45)
613
	local SOUNDID = (Table.SoundID or nil)
614
	local SOUNDPITCH = (Table.SoundPitch or nil)
615
	local SOUNDVOLUME = (Table.SoundVolume or nil)
616
	coroutine.resume(coroutine.create(function()
617
		local PLAYSSOUND = false
618
		local SOUND = nil
619
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
620
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
621
			PLAYSSOUND = true
622
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
623
		end
624
		EFFECT.Color = COLOR
625
		local MSH = nil
626
		if TYPE == "Sphere" then
627
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
628
		elseif TYPE == "Block" or TYPE == "Box" then
629
			MSH = IT("BlockMesh",EFFECT)
630
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
631
		elseif TYPE == "Wave" then
632
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
633
		elseif TYPE == "Ring" then
634
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
635
		elseif TYPE == "Slash" then
636
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
637
		elseif TYPE == "Round Slash" then
638
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
639
		elseif TYPE == "Swirl" then
640
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
641
		elseif TYPE == "Skull" then
642
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
643
		elseif TYPE == "Crystal" then
644
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
645
		end
646
		if MSH ~= nil then
647
			local MOVESPEED = nil
648
			if MOVEDIRECTION ~= nil then
649
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
650
			end
651
			local GROWTH = SIZE - ENDSIZE
652
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
653
			if TYPE == "Block" then
654
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
655
			else
656
				EFFECT.CFrame = CFRAME
657
			end
658
			for LOOP = 1, TIME+1 do
659
				Swait()
660
				MSH.Scale = MSH.Scale - GROWTH/TIME
661
				if TYPE == "Wave" then
662
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
663
				end
664
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
665
				if TYPE == "Block" then
666
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
667
				else
668
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
669
				end
670
				if MOVEDIRECTION ~= nil then
671
					local ORI = EFFECT.Orientation
672
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
673
					EFFECT.Orientation = ORI
674
				end
675
			end
676
			if PLAYSSOUND == false then
677
				EFFECT:remove()
678
			else
679
				repeat Swait() until SOUND.Playing == false
680
				EFFECT:remove()
681
			end
682
		else
683
			if PLAYSSOUND == false then
684
				EFFECT:remove()
685
			else
686
				repeat Swait() until SOUND.Playing == false
687
				EFFECT:remove()
688
			end
689
		end
690
	end))
691
end
692
693
function MakeForm(PART,TYPE)
694
	if TYPE == "Cyl" then
695
		local MSH = IT("CylinderMesh",PART)
696
	elseif TYPE == "Ball" then
697
		local MSH = IT("SpecialMesh",PART)
698
		MSH.MeshType = "Sphere"
699
	elseif TYPE == "Wedge" then
700
		local MSH = IT("SpecialMesh",PART)
701
		MSH.MeshType = "Wedge"
702
	end
703
end
704
705
Debris = game:GetService("Debris")
706
707
function CastProperRay(StartPos, EndPos, Distance, Ignore)
708
	local DIRECTION = CF(StartPos,EndPos).lookVector
709
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
710
end
711
712
function turnto(position)
713
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
714
end
715
Humanoid.Died:connect(function()
716
	Humanoid.Parent = nil
717
	Humanoid.MaxHealth = "inf"
718
	Humanoid.Health = "inf"
719
	refit()
720
	Humanoid.Parent = Character
721
	CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8)
722
	for i = 1, 5 do
723
	end
724
	killnearest(Torso.Position, 25, 180)
725
end)
726
function killnearest(position, range, maxstrength)
727
	for i, v in ipairs(workspace:GetChildren()) do
728
		local body = v:GetChildren()
729
		for part = 1, #body do
730
			if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then
731
				if v.ClassName == "Model" then
732
					v:BreakJoints()
733
				end
734
				local bv = Instance.new("BodyVelocity")
735
				bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
736
				bv.velocity = CF(position, body[part].Position).lookVector * maxstrength
737
				bv.Parent = body[part]
738
				Debris:AddItem(bv, 0.2)
739
			end
740
		end
741
		if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then
742
			v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength
743
		end
744
	end
745
end
746
local asd = Instance.new("ParticleEmitter")
747
asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.1, 0, 0))
748
asd.LightEmission = .1
749
asd.Size = NumberSequence.new(0.2)
750
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
751
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
752
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
753
asd.Transparency = bbb
754
asd.Size = aaa
755
asd.ZOffset = .9
756
asd.Acceleration = Vector3.new(0, -5, 0)
757
asd.LockedToPart = false
758
asd.EmissionDirection = "Back"
759
asd.Lifetime = NumberRange.new(1, 2)
760
asd.Rotation = NumberRange.new(-100, 100)
761
asd.RotSpeed = NumberRange.new(-100, 100)
762
asd.Speed = NumberRange.new(2)
763
asd.Enabled = false
764
asd.VelocitySpread = 10000
765
766
function getbloody(victim,amount)
767
	local prtcl = asd:Clone()
768
	prtcl.Parent = victim
769
	prtcl:Emit(amount)
770
end
771
772
local TORSOVELOCITY = 0
773
function Ragdoll(Character2,CharTorso)
774
	local svch = Character2
775
	local hum = Character2:findFirstChild("Humanoid")
776
	local q = Character2:GetChildren()
777
	local CLONE = IT("Model",Effects)
778
	local DummyHead = nil
779
	for i = 1,#q do
780
		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
781
			q[i].Parent = CLONE
782
			if q[i].Name == "Head" then
783
				DummyHead = CLONE.Head:Clone()
784
				q[i]:ClearAllChildren()
785
				q[i].Transparency = 1
786
			end
787
		else
788
			if q[i].ClassName ~= "Humanoid" then
789
				q[i]:remove()
790
			end
791
		end
792
	end
793
	local chrclone = CLONE
794
795
	for _, c in pairs(Character2:GetChildren()) do
796
		if c.ClassName == "Accessory" then
797
			c:remove()
798
		end
799
	end
800
801
	local ch = chrclone:GetChildren()
802
	local i
803
	for i = 1,#ch do
804
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
805
			ch[i]:remove()
806
		end
807
	end
808
	local function Scan(ch)
809
		local e
810
		for e = 1,#ch do
811
			Scan(ch[e]:GetChildren())
812
			if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
813
				ch[e]:remove()
814
			end
815
		end
816
	end
817
	Scan(chrclone:GetChildren())
818
819
	local ch = Character2:GetChildren()
820
	local i
821
	for i = 1,#ch do
822
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
823
			ch[i]:remove()
824
		end
825
	end
826
827
	local ch = Character2:GetChildren()
828
	local i
829
	for i = 1,#ch do
830
		if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
831
			ch[i]:remove()
832
		end
833
	end
834
	Character2 = chrclone
835
	local Torso2 = Character2.Torso
836
	local movevector = Vector3.new()
837
838
	if Torso2 then
839
		movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
840
		local Head = Character2:FindFirstChild("Head")
841
		if Head then
842
			local Neck = Instance.new("Weld")
843
			Neck.Name = "Neck"
844
			Neck.Part0 = Torso2
845
			Neck.Part1 = Head
846
			Neck.C0 = CFrame.new(0, 1.5, 0)
847
			Neck.C1 = CFrame.new()
848
			Neck.Parent = Torso2
849
			Head:ClearAllChildren()
850
			Head.Transparency = 1
851
852
		end
853
		local Limb = Character2:FindFirstChild("Right Arm")
854
		if Limb then
855
856
			Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
857
			local Joint = Instance.new("Glue")
858
			Joint.Name = "RightShoulder"
859
			Joint.Part0 = Torso2
860
			Joint.Part1 = Limb
861
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
862
			Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
863
			Joint.Parent = Torso2
864
865
			local B = Instance.new("Part")
866
			B.TopSurface = 0
867
			B.BottomSurface = 0
868
			B.formFactor = "Symmetric"
869
			B.Size = Vector3.new(1, 1, 1)
870
			B.Transparency = 1
871
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
872
			B.Parent = Character2
873
			local W = Instance.new("Weld")
874
			W.Part0 = Limb
875
			W.Part1 = B
876
			W.C0 = CFrame.new(0, -0.5, 0)
877
			W.Parent = Limb
878
879
		end
880
		local Limb = Character2:FindFirstChild("Left Arm")
881
		if Limb then
882
883
			Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
884
			local Joint = Instance.new("Glue")
885
			Joint.Name = "LeftShoulder"
886
			Joint.Part0 = Torso2
887
			Joint.Part1 = Limb
888
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
889
			Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
890
			Joint.Parent = Torso2
891
892
			local B = Instance.new("Part")
893
			B.TopSurface = 0
894
			B.BottomSurface = 0
895
			B.formFactor = "Symmetric"
896
			B.Size = Vector3.new(1, 1, 1)
897
			B.Transparency = 1
898
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
899
			B.Parent = Character2
900
			local W = Instance.new("Weld")
901
			W.Part0 = Limb
902
			W.Part1 = B
903
			W.C0 = CFrame.new(0, -0.5, 0)
904
			W.Parent = Limb
905
906
		end
907
		local Limb = Character2:FindFirstChild("Right Leg")
908
		if Limb then
909
910
			Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
911
			local Joint = Instance.new("Glue")
912
			Joint.Name = "RightHip"
913
			Joint.Part0 = Torso2
914
			Joint.Part1 = Limb
915
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
916
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
917
			Joint.Parent = Torso2
918
919
			local B = Instance.new("Part")
920
			B.TopSurface = 0
921
			B.BottomSurface = 0
922
			B.formFactor = "Symmetric"
923
			B.Size = Vector3.new(1, 1, 1)
924
			B.Transparency = 1
925
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
926
			B.Parent = Character2
927
			local W = Instance.new("Weld")
928
			W.Part0 = Limb
929
			W.Part1 = B
930
			W.C0 = CFrame.new(0, -0.5, 0)
931
			W.Parent = Limb
932
933
		end
934
		local Limb = Character2:FindFirstChild("Left Leg")
935
		if Limb then
936
937
			Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
938
			local Joint = Instance.new("Glue")
939
			Joint.Name = "LeftHip"
940
			Joint.Part0 = Torso2
941
			Joint.Part1 = Limb
942
			Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
943
			Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
944
			Joint.Parent = Torso2
945
946
			local B = Instance.new("Part")
947
			B.TopSurface = 0
948
			B.BottomSurface = 0
949
			B.formFactor = "Symmetric"
950
			B.Size = Vector3.new(1, 1, 1)
951
			B.Transparency = 1
952
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
953
			B.Parent = Character2
954
			local W = Instance.new("Weld")
955
			W.Part0 = Limb
956
			W.Part1 = B
957
			W.C0 = CFrame.new(0, -0.5, 0)
958
			W.Parent = Limb
959
960
		end
961
		--[
962
		local Bar = Instance.new("Part")
963
		Bar.TopSurface = 0
964
		Bar.BottomSurface = 0
965
		Bar.formFactor = "Symmetric"
966
		Bar.Size = Vector3.new(1, 1, 1)
967
		Bar.Transparency = 1
968
		Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
969
		Bar.Parent = Character2
970
		local Weld = Instance.new("Weld")
971
		Weld.Part0 = Torso2
972
		Weld.Part1 = Bar
973
		Weld.C0 = CFrame.new(0, 0.5, 0)
974
		Weld.Parent = Torso2
975
		--]]
976
	end
977
	Character2.Parent = Weapon
978
	if movevector ~= Vector3.new() then
979
		for i = 1,10 do
980
			Torso2.Velocity = movevector * 30
981
		end
982
	end
983
	DummyHead.Name = "FakeHead"
984
	DummyHead.Parent = CLONE
985
	local BLOOD = CreatePart(3, DummyHead, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.25,0.65),false)
986
	BLOOD.CFrame = DummyHead.CFrame*CF(0,-DummyHead.Size.Y/2,0)
987
	MakeForm(BLOOD,"Cyl")
988
	weldBetween(DummyHead,BLOOD)
989
	local BLOOD = CreatePart(3, Torso2, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.2,0.65),false)
990
	BLOOD.CFrame = Torso2.CFrame*CF(0,Torso2.Size.Y/2,0)
991
	MakeForm(BLOOD,"Cyl")
992
	weldBetween(Torso2,BLOOD)
993
	Character2.Name = "Corpse"
994
	local hum2 = svch:findFirstChild("Humanoid")
995
996
	return Character2,Torso2,DummyHead
997
	end
998
	
999
function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
1000
	local HITFLOOR, HITPOS = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
1001
	if HITFLOOR ~= nil then
1002
		if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
1003
			if HITFLOOR.Name == "BloodPuddle" then
1004
				local DIST = (Position - HITFLOOR.Position).Magnitude
1005
				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
1006
					HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
1007
				end
1008
			else
1009
				if HITFLOOR.Anchored == true then
1010
					local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1,0,1))
1011
					BLOOD.CFrame = CF(HITPOS)
1012
					MakeForm(BLOOD,"Cyl")
1013
					coroutine.resume(coroutine.create(function()
1014
						Swait(75)
1015
						while true do
1016
							Swait()
1017
							BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
1018
							if BLOOD.Size.Z < 0.051 then
1019
								BLOOD:remove()
1020
								break
1021
							end
1022
						end
1023
					end))
1024
				end
1025
			end
1026
		end
1027
	end
1028-
p = game.Players.LocalPlayer
1028+
1029
1030
function SprayBlood(POSITION,DIRECTION,BloodSize)
1031
	local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.5,0.5,0.5),false)
1032
	BLOOD.CFrame = CF(POSITION)
1033
	MakeForm(BLOOD,"Ball")
1034
	local bv = Instance.new("BodyVelocity",BLOOD) 
1035
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1036
	bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*15
1037
	bv.Name = "MOVE"
1038
	Debris:AddItem(bv,0.05)
1039
	coroutine.resume(coroutine.create(function()
1040
		local HASTOUCHEDGROUND = false
1041
		local HIT = BLOOD.Touched:Connect(function(hit)
1042
			if hit.Anchored == true then
1043
				HASTOUCHEDGROUND = true
1044
				PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
1045
			end
1046
		end)
1047
		for i = 1, 50 do
1048
			Swait()
1049
			if HASTOUCHEDGROUND == true then
1050
				break
1051
			end
1052
			BLOOD.Size = BLOOD.Size * 0.9
1053
		end
1054
		BLOOD:remove()
1055
	end))
1056
end
1057
1058
function Kill(Target)
1059
	if Target.Parent ~= Weapon and Target:FindFirstChildOfClass("Humanoid") then
1060
		Target:BreakJoints()
1061
		local CFRAME = Target:FindFirstChild("Torso").CFrame or Target:FindFirstChild("UpperTorso")
1062
		local CLONE,TORS2,DummyHead = Ragdoll(Target,Torso)
1063
		getbloody(DummyHead,45)
1064
		if TORS2 ~= nil then
1065
			CreateSound("185688060", TORS2, 10, (math.random(8,12)/10))
1066-
p = game.Players.LocalPlayer
1066+
1067
			local HUM = IT("Humanoid")
1068
			HUM.MaxHealth = 0
1069
			HUM.Health = 0
1070
			HUM.Name = "CorpseHumanoid"
1071
			HUM.PlatformStand = true
1072
			HUM.Parent = CLONE
1073
			KILLINSTINCT = KILLINSTINCT + 20
1074
			TORS2.CFrame = CFRAME
1075
			coroutine.resume(coroutine.create(function()
1076
				for i = 1, 450 do
1077
					wait()
1078
					SprayBlood(DummyHead.CFrame*CF(0,-0.25,0).p,DummyHead.CFrame*CF(0,-0.7,0).p,5)
1079
					SprayBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,TORS2.CFrame*CF(0,TORS2.Size.Y,0).p,10)
1080
					--PuddleOfBlood(DummyHead.CFrame*CF(0,-0.25,0).p,4,CLONE,3)
1081
					--PuddleOfBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,8,CLONE,6)
1082
				end
1083
				CLONE:Remove()
1084
			end))
1085
		end
1086
	end
1087
end
1088
1089
local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(1, 1, 1),false)
1090
local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "121944778", "144012208", VT(1,1,1), VT(0, 0, 0))
1091
local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1092
1093
local DECAL = IT("Decal",HandlePart)
1094
DECAL.Texture = "http://www.roblox.com/asset/?id=116830967"
1095
1096
for _, c in pairs(Weapon:GetChildren()) do
1097
	if c.ClassName == "Part" then
1098
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1099
	end
1100
end
1101
1102
local A = IT("Attachment",HandlePart)
1103
A.Position = VT(0, -1.5, 0)
1104
local B = IT("Attachment",HandlePart)
1105
B.Position = VT(0, 2.2, 0.2)
1106
local Trail = IT("Trail",HandlePart)
1107
Trail.Attachment0 = A
1108
Trail.Attachment1 = B
1109
Trail.Lifetime = 0.1
1110-
	mouse = game.Players.LocalPlayer:GetMouse()
1110+
1111-
for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
1111+
1112
---hat
1113
p = game.Players.
1114
char = p.Character
1115
torso = char.Torso
1116
hed = char.Head
1117
neck = char.Torso.Neck
1118
hum = char.Humanoid
1119-
p = game.Players.LocalPlayer
1119+
1120
ypcall(function()
1121
end)
1122
function sbchat(msg,displayname)
1123
        if not displayname then
1124
            displayname = '<Bitch Smoke>'
1125
        end
1126
        for i,v in pairs(game:GetService('Players'):GetChildren()) do
1127
            local st = Instance.new('StringValue')
1128
            st.Name = 'SB_Chat'
1129
            st.Value = displayname..'/'..msg
1130
            delay(0.2,function() st.Parent = v end)
1131
        end
1132
    end
1133
p1 = Instance.new("Part",char)
1134
p1.FormFactor = Enum.FormFactor.Custom
1135
p1.Size = Vector3.new(1.8,0.8,1.8)
1136
p1.CanCollide = false
1137
p1.Locked = true
1138
p1.BottomSurface = Enum.SurfaceType.Smooth
1139
p1.TopSurface = Enum.SurfaceType.Smooth
1140
SMesh = Instance.new("SpecialMesh", p1)
1141
SMesh.MeshId = "http://www.roblox.com/asset/?id=0"
1142
SMesh.MeshType = Enum.MeshType.FileMesh
1143
SMesh.Name = "Mesh"
1144
SMesh.TextureId = "http://www.roblox.com/asset/?id=0"
1145
w1 = Instance.new("Weld", hed)
1146-
Player = game:GetService("Players").LocalPlayer
1146+
1147
w1.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,1.5,0)
1148
w1.Part1 = p1
1149
w1.C1 = CFrame.new(0, -0.9, 0)
1150
--Hair
1151
p = game.Players.von12222222
1152-
Mouse = Player:GetMouse()
1152+
1153
torso = char.Torso
1154
hed = char.Head
1155
neck = char.Torso.Neck
1156
hum = char.Humanoid
1157
hum.MaxHealth = math.huge
1158
ypcall(function()
1159
shirt = Instance.new("Shirt", char)
1160
shirt.Name = "Shirt"
1161
pants = Instance.new("Pants", char)
1162
pants.Name = "Pants"
1163
end)
1164
function sbchat(msg,displayname)
1165
        if not displayname then
1166
            displayname = '<Bitch Smoke>'
1167
        end
1168
        for i,v in pairs(game:GetService('Players'):GetChildren()) do
1169
            local st = Instance.new('StringValue')
1170
            st.Name = 'SB_Chat'
1171
            st.Value = displayname..'/'..msg
1172
            delay(0.2,function() st.Parent = v end)
1173
        end
1174
    end
1175
p1 = Instance.new("Part",char)
1176
p1.FormFactor = Enum.FormFactor.Custom
1177
p1.Size = Vector3.new(1.8,0.8,1.8)
1178
p1.CanCollide = false
1179
p1.Locked = true
1180
p1.BottomSurface = Enum.SurfaceType.Smooth
1181
p1.TopSurface = Enum.SurfaceType.Smooth
1182
SMesh = Instance.new("SpecialMesh", p1)
1183
SMesh.MeshId = "http://www.roblox.com/asset/?id=1079902"
1184
SMesh.MeshType = Enum.MeshType.FileMesh
1185
SMesh.Name = "Mesh"
1186
SMesh.TextureId = "http://www.roblox.com/asset/?id=1079903"
1187
w1 = Instance.new("Weld", hed)
1188
w1.Part0 = hed
1189
w1.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
1190
w1.Part1 = p1
1191
w1.C1 = CFrame.new(0, -0.4, 0)
1192
-----
1193
	if Head:FindFirstChild("face") then
1194
		Head.face.Texture = "http://www.roblox.com/asset/?id=31117192"
1195
for i,v in pairs(game.Players.von12222222.Character:GetChildren()) do
1196
	if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" or v.ClassName == "Accessory" then
1197
		v:Remove()
1198
	end
1199
end
1200
	dft = {} 
1201
--lollllll
1202
wait(0.2)
1203
p = game.Players.von12222222
1204
char = p.Character
1205
torso = char.Torso
1206
hed = char.Head
1207
neck = char.Torso.Neck
1208
hum = char.Humanoid
1209
hum.MaxHealth = math.huge
1210
ypcall(function()
1211
shirt = Instance.new("Shirt", char)
1212
shirt.Name = "Shirt"
1213
pants = Instance.new("Pants", char)
1214
pants.Name = "Pants"
1215
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=58950350"
1216
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=61848751"
1217
end)
1218
function sbchat(msg,displayname)
1219
        if not displayname then
1220
            displayname = '<Bitch Smoke>'
1221
        end
1222
        for i,v in pairs(game:GetService('Players'):GetChildren()) do
1223
            local st = Instance.new('StringValue')
1224
            st.Name = 'SB_Chat'
1225
            st.Value = displayname..'/'..msg
1226
            delay(0.2,function() st.Parent = v end)
1227
        end
1228
    end
1229
1230
Player = game:GetService("Players").von12222222
1231
PlayerGui = Player.PlayerGui
1232
Cam = workspace.CurrentCamera
1233
Backpack = Player.Backpack
1234
Character = Player.Character
1235
Humanoid = Character.Humanoid
1236
RootPart = Character["HumanoidRootPart"]
1237
Torso = Character["Torso"]
1238
Head = Character["Head"]
1239
RightArm = Character["Right Arm"]
1240
LeftArm = Character["Left Arm"]
1241
RightLeg = Character["Right Leg"]
1242
LeftLeg = Character["Left Leg"]
1243
RootJoint = RootPart["RootJoint"]
1244
Neck = Torso["Neck"]
1245
RightShoulder = Torso["Right Shoulder"]
1246
LeftShoulder = Torso["Left Shoulder"]
1247
RightHip = Torso["Right Hip"]
1248
LeftHip = Torso["Left Hip"]
1249
1250
local ff = Instance.new('ForceField', Character)
1251
ff.Visible = false
1252
1253
local sick = Instance.new("Sound",Character)
1254
sick.SoundId = "rbxassetid://184266396"
1255
sick.Looped = true
1256
sick.Pitch = 1
1257
sick.Volume = 10
1258
sick:Play()
1259
1260
function unanchor()
1261
	if UNANCHOR == true then
1262
		for _, c in pairs(Character:GetChildren()) do
1263
			if c:IsA("BasePart") then
1264
				c.Anchored = false
1265
			end
1266
		end
1267
	else
1268
		for _, c in pairs(Character:GetChildren()) do
1269
			if c:IsA("BasePart") then
1270
				c.Anchored = true
1271
			end
1272
		end
1273
	end
1274
end
1275
1276
function Taunt()
1277
	ATTACK = true
1278
	Rooted = false
1279
	TAUNT = true
1280
	for i=0, 0.1, 0.1 / Animation_Speed do
1281
		Swait()
1282
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1283
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1284
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1285
	end
1286
	for i=0, 3, 0.1 / Animation_Speed do
1287
		Swait()
1288
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1289
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1290
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1291
	end
1292
	CreateSound(363808674, Torso, 10, 1.3)
1293
	for i=0, 1, 0.1 / Animation_Speed do
1294
		Swait()
1295
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(120)), 3 / Animation_Speed)
1296
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 3/ Animation_Speed)
1297
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(230), RAD(0), RAD(35)) * LEFTSHOULDERC0, 3 / Animation_Speed)
1298
	end
1299
	WACKYEFFECT({EffectType = "Block", Size = VT(6,6,6), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Really black").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5})
1300
	CreateSound(649634100, Torso, 10, 0.8)
1301
	for i=0, 0.01, 0.1 / Animation_Speed do
1302
		Swait()
1303
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
1304
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
1305
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed)
1306
	end
1307
	ATTACK = false
1308
	Rooted = false
1309
	TAUNT = false
1310
	sick:Stop()
1311
game:service'Lighting'.FogEnd = 100
1312
game:service'Lighting'.FogStart = 0
1313
game:service'Lighting'.FogColor = BrickColor.new'Black'.Color
1314
game:service'Lighting'.ClockTime = 22
1315
1316
local Sky = Instance.new("Sky",game:service'Lighting')
1317
Sky.MoonAngularSize = 30
1318
Sky.MoonTextureId = "http://www.roblox.com/asset/?id=156679858"
1319
local Music = sndFromData(Sounds.Astronaut13,torso) -- incase u want music
1320
Music.MaxDistance = 500
1321
Music:Play()
1322
local Distorted = NewInstance("EqualizerSoundEffect",Music,{MidGain=0,HighGain=0,LowGain=0})
1323
ClearChildrenWithClass(char,"Decal",true)
1324
ClearChildrenWithClass(char,"Clothing",true)
1325
if(PaintBody)then
1326
	char['Body Colors'].LeftArmColor = BrickColor.new(PaintBody)
1327
	char['Body Colors'].RightArmColor = BrickColor.new(PaintBody)
1328
	char['Body Colors'].LeftLegColor = BrickColor.new(PaintBody)
1329
	char['Body Colors'].RightLegColor = BrickColor.new(PaintBody)
1330
	char['Body Colors'].TorsoColor = BrickColor.new(PaintBody)
1331
	char['Body Colors'].HeadColor = BrickColor.new(PaintBody)
1332
end
1333
local naeeym2 = Instance.new("BillboardGui", Character)
1334
naeeym2.AlwaysOnTop = true
1335
naeeym2.Size = UDim2.new(15, 35, 2, 15)
1336
naeeym2.StudsOffset = Vector3.new(0, 3, 0)
1337
naeeym2.Adornee = Character.Head
1338
naeeym2.Name = "Name"
1339
local tecks2 = Instance.new("TextLabel", naeeym2)
1340
tecks2.BackgroundTransparency = 1
1341
tecks2.TextScaled = true
1342
tecks2.BorderSizePixel = 0
1343
tecks2.Text = "Astronaut"
1344
tecks2.Font = "Antique"
1345
tecks2.TextSize = 30
1346
tecks2.TextStrokeTransparency = 0
1347
tecks2.TextColor3 = Color3.new(1, 1, 1)
1348
tecks2.TextStrokeColor3 = BrickColor.new("Really black").Color
1349
tecks2.Size = UDim2.new(1, 0, 0.5, 0)
1350
tecks2.Parent = naeeym2
1351
	local MATHS = {"0","1"}
1352
	Humanoid.Name = MATHS[MRANDOM(1,#MATHS)].."A"..MATHS[MRANDOM(1,#MATHS)].."S"..MATHS[MRANDOM(1,#MATHS)].."T"..MATHS[MRANDOM(1,#MATHS)].."R"..MATHS[MRANDOM(1,#MATHS)].."O"..MATHS[MRANDOM(1,#MATHS)].."N"..MATHS[MRANDOM(1,#MATHS)].."A"..MATHS[MRANDOM(1,#MATHS)].."U"..MATHS[MRANDOM(1,#MATHS)].."T"..MATHS[MRANDOM(1,#MATHS)]
1353
	Humanoid.PlatformStand = false
1354
	script.Name = Humanoid.Name
1355
1356
Weapon.Parent = Character
1357
runService:BindToRenderStep("N_Animations",Enum.RenderPriority.Character.Value + 1,function()
1358
	sine=sine+change
1359
	local GlitchEffect = math.random(1,500)
1360
	hum.WalkSpeed = 8
1361
	if(Music.TimePosition > 2.7 and Music.TimePosition < 2.75 or Music.TimePosition > 6.8 and Music.TimePosition < 6.9)then GlitchTime = time()+.45 elseif(Music.TimePosition > 7.6)then
1362
		if(GlitchEffect == 1 and time()-GlitchTime >= .5)then
1363
			GlitchTime = time()
1364
		end		
1365
	end
1366
	if(time()-GlitchTime < .5)then
1367
		Distorted.MidGain = -25
1368
		Distorted.LowGain = 10
1369
		Distorted.HighGain = -25
1370
		FT.Parent = torso
1371
		RA.Parent = rarm
1372
		LA.Parent = larm
1373
		RL.Parent = rleg
1374
		LL.Parent = lleg
1375
		for _,v in next, char:GetDescendants() do
1376
			if(v:IsA'DataModelMesh')then
1377
				v.Offset = Vector3.new(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
1378
			end
1379
		end
1380
	else
1381
		Distorted.MidGain = 0
1382
		Distorted.LowGain = 0
1383
		Distorted.HighGain = 0
1384
		FT.Parent = nil
1385
		RA.Parent = nil
1386
		LA.Parent = nil
1387
		RL.Parent = nil
1388
		LL.Parent = nil
1389
		for _,v in next, char:GetDescendants() do
1390
			if(v:IsA'DataModelMesh')then
1391
				v.Offset = Vector3.new(0,0,0)
1392
			end
1393
		end
1394
	end
1395
	Swait()
1396
	ANIMATE.Parent = nil
1397
	local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1398
	IDLEANIMATION:Play()
1399
	SINE = SINE + CHANGE
1400
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1401
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1402
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1403
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
1404
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1405
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1406
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1407
		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(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1408
		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) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1409
		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) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1410
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1411
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1412
		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)
1413
		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)
1414
		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)
1415
	end
1416
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1417
		ANIM = "Jump"
1418
		if ATTACK == false then
1419
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1420
			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)
1421
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1422
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1423
			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)
1424
			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)
1425
			HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(155), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1426
	       end
1427
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1428
		ANIM = "Fall"
1429
		if ATTACK == false then
1430
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1431
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1432
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1433
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1434
			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)
1435
			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)
1436
			HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(75), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1437
		end
1438
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1439
		ANIM = "Idle"
1440
		if ATTACK == false then
1441
			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)
1442
			if VALUE1 == false then
1443
				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)
1444
			end
1445
			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)
1446
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1447
			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)
1448
			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)
1449
			HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(115), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1450
			if VALUE1 == false and MRANDOM(1,200) == 1 then
1451
				coroutine.resume(coroutine.create(function()
1452
					VALUE1 = true
1453
					for i = 1, 25 do
1454
						Swait()
1455
						Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed)
1456
					end
1457
					VALUE1 = false
1458
				end))
1459
			end
1460
		end
1461
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1462
		ANIM = "Walk"
1463
		WALK = WALK + 1 / Animation_Speed
1464
		if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
1465
			WALK = 0
1466
			if WALKINGANIM == true then
1467
				WALKINGANIM = false
1468
			elseif WALKINGANIM == false then
1469
				WALKINGANIM = true
1470
			end
1471
		end
1472
		--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)
1473
		--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)
1474
		if ATTACK == false then
1475
			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)
1476
			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)
1477
			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)
1478
			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)
1479
			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)
1480
			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)
1481
			HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.75 + 0.3 * COS(SINE / (WALKSPEEDVALUE/2)), 0) * ANGLES(RAD(125), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1482
		end
1483
		end
1484
	end
1485
)end
1486
	
1487
function TAUNT1()
1488
        ATTACK = true
1489
	Humanoid.WalkSpeed = 0
1490
	CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8)
1491
wait(2.5)
1492
	for i = 0,12.5,0.08 do
1493
		Swait()
1494
		RootJoint.C0 = Clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * COS(SINE / 2)) * ANGLES(RAD(-30), RAD(0), RAD(0)), 0.15)
1495
		Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(RAD(-30 - 2.5 * SIN(SINE / 2)), RAD(0), RAD(0)), 0.3)
1496
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 2), 0.025 * COS(SINE / 2)) * RHCF * ANGLES(RAD(-4.5 - 7.5 * SIN(SINE / 2)), RAD(0), RAD(-30)), 0.15)
1497
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 2), 0.025 * COS(SINE / 2)) * LHCF * ANGLES(RAD(-6.5 - 7.5 * SIN(SINE / 2)), RAD(0), RAD(30)), 0.15)
1498
	end
1499
	ATTACK = false
1500
	Humanoid.WalkSpeed = 20
1501
end
1502
1503
function Swing()
1504
	ATTACK = true
1505
	Rooted = false
1506
	for i=0, 1, 0.1 / Animation_Speed do
1507
		Swait()
1508
		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)
1509
		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)
1510
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1511
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1512
		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)
1513
		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)
1514
		HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(180)), 0.5 / Animation_Speed)
1515
	end
1516
	Trail.Enabled = true
1517
	HandlePart.CanCollide = true
1518
	CreateSound("185687991", HandlePart, 1, (math.random(8,12)/10))
1519
	local HIT = HandlePart.Touched:Connect(function(hit)
1520
		Kill(hit.Parent)
1521
	end)
1522
	for i=0, 0.8, 0.1 / Animation_Speed do
1523
		Swait()
1524
		if Speed == 25 and TORSOVELOCITY > 0.3 then
1525
			RootPart.CFrame = RootPart.CFrame * CF(0,0,-1)
1526
		end
1527
		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)
1528
		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)
1529
		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)
1530
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1531
		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)
1532
		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)
1533
		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)
1534
	end
1535
	Trail.Enabled = false
1536
	HandlePart.CanCollide = false
1537
	HIT:disconnect()
1538
	ATTACK = false
1539
	Rooted = false
1540
end
1541
	
1542
--//=================================\\
1543
--||	  ASSIGN THINGS TO KEYS
1544
--\\=================================//
1545
1546
FORM=false
1547
function KeyDown(Key)		
1548
	if Key == "m" and FORM == true and ATTACK == false then
1549
		TAUNT1()
1550
end
1551
	
1552
	if Key == "n" and FORM == true and ATTACK == false then
1553
		Swing()
1554
	end
1555
1556
    if Key == "t" and FORM == false and ATTACK ==false then
1557
		Taunt()
1558
		warn("Evil Mode Activated")
1559
FORM = true
1560
ATTACK = false
1561
	end
1562
end
1563
1564
function KeyUp(Key)
1565
	KEYHOLD = false
1566
end
1567
1568
	Mouse.KeyDown:connect(function(NEWKEY)
1569
		KeyDown(NEWKEY)
1570
	end)
1571
	Mouse.KeyUp:connect(function(NEWKEY)
1572
		KeyUp(NEWKEY)
1573
	end)
1574
	
1575
--//=================================\\
1576
--||	WRAP THE WHOLE SCRIPT UP
1577
--\\=================================//
1578
1579
local JUMPED = false
1580
1581
Humanoid.Changed:connect(function(Jump)
1582
	if Jump == "Jump" and (Disable_Jump == true) then
1583
		Humanoid.Jump = false
1584
	elseif Jump == "Jump" and Disable_Jump == false and JUMPED == false then
1585
		JUMPED = true
1586
		CreateSound(158309736, Torso, 10, 1, false)
1587
	end
1588
end)
1589
1590
while true do
1591
	Swait()
1592
	ANIMATE.Parent = nil
1593
	local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1594
	IDLEANIMATION:Play()
1595
	SINE = SINE + CHANGE
1596
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1597
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1598
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1599
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
1600
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1601
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1602
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1603
		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(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1604
		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) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1605
		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) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1606
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1607
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1608
		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)
1609
		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)
1610
		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)
1611
	end
1612
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1613
		ANIM = "Jump"
1614
		if ATTACK == false then
1615
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1616
			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)
1617
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1618
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1619
			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)
1620
			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)
1621
	       end
1622
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1623
		ANIM = "Fall"
1624
		if ATTACK == false then
1625
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1626
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1627
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1628
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1629
			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)
1630
			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)
1631
		end
1632
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1633
		ANIM = "Idle"
1634
		if ATTACK == false then
1635
			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)
1636
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1637
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1638
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1639
			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)
1640
			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)
1641
		end
1642
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1643
		ANIM = "Walk"
1644
		WALK = WALK + 1 / Animation_Speed
1645
		if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
1646
			WALK = 0
1647
			if WALKINGANIM == true then
1648
				WALKINGANIM = false
1649
			elseif WALKINGANIM == false then
1650
				WALKINGANIM = true
1651
			end
1652
		end
1653
		--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)
1654
		--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)
1655
		if ATTACK == false then
1656
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1657
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1658
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1659
			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)
1660
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1661
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1662
		end
1663
	end
1664
	unanchor()
1665
	Humanoid.MaxHealth = "inf"
1666
	Humanoid.Health = "inf"
1667
	if Rooted == false then
1668
		Disable_Jump = false
1669
		Humanoid.WalkSpeed = Speed
1670
	elseif Rooted == true then
1671
		Disable_Jump = true
1672
		Humanoid.WalkSpeed = 0
1673
	end
1674
end
1675
	local FF = IT("ForceField", Character)
1676
FF.Visible = false
1677
function refit()
1678
	RootJoint.Parent = RootPart
1679
	Neck.Parent = Torso
1680
	RightShoulder.Parent = Torso
1681
	LeftShoulder.Parent = Torso
1682
	RightHip.Parent = Torso
1683
	LeftHip.Parent = Torso
1684
	RootPart.Parent = Character
1685
	LeftArm.Parent = Character
1686
	RightArm.Parent = Character
1687
	RightLeg.Parent = Character
1688
	LeftLeg.Parent = Character
1689
	Torso.Parent = Character
1690
	Head.Parent = Character
1691
FF.Parent = Character
1692
end
1693
1694
	local COLOR = C3((0+sick.PlaybackLoudness/200)/510,(115+sick.PlaybackLoudness/25)/510,(150+sick.PlaybackLoudness*1.5)/610)
1695
	for _, c in pairs(Character:GetChildren()) do
1696
		if c:IsA("BasePart") and c.Name ~= "Detail" then
1697
			c.Material = "Neon"
1698
			if c:FindFirstChildOfClass("ParticleEmitter") then
1699
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1700
			end
1701
			if c == Head then
1702
				if c:FindFirstChild("face") then
1703
					c.face:remove()
1704
				end
1705
			end
1706
		elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
1707
			c:remove()
1708
		elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
1709
			c:remove()
1710
		elseif c.Name == "Detail" then
1711
			c.Material = "Neon"
1712
			c.Color = COLOR
1713
		end
1714
	end
1715
	if DEAD == false then
1716
		sick.SoundId = "rbxassetid://"..SONG
1717
		sick.Looped = true
1718
		sick.Pitch = 1
1719
		sick.Volume = 2
1720
		sick.Playing = true
1721
		sick.Parent = Torso
1722
	else
1723
		sick:remove()
1724
	end
1725
1726
--//=================================\\
1727
--\\=================================//
1728
1729
1730
1731
1732
1733
--//====================================================\\--
1734
--||			  		 END OF SCRIPT
1735
--\\====================================================//--
1736
end