View difference between Paste ID: xGxgZVYn and cTb58mAf
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end local Player,game,owner = owner,game local RealPlayer = Player do     local rp = RealPlayer    script.Parent = rp.Character      local Event = Instance.new("RemoteEvent")  Event.Name = "UserInput_Event"    local function fakeEvent()        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}        t.connect = t.Connect       return t    end   local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}   local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}   local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)       CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil   end}    CAS.UnbindAction = CAS.BindAction    local function te(self,ev,...)      local t = m[ev]       if t and t._fakeEvent then           for _,f in pairs(t.Functions) do               f(...)           end       end    end    m.TrigEvent = te    UIS.TrigEvent = te    Event.OnServerEvent:Connect(function(plr,io)        if plr~=rp then return end        m.Target = io.Target        m.Hit = io.Hit        if not io.isMouse then            local b = io.UserInputState == Enum.UserInputState.Begin            if io.UserInputType == Enum.UserInputType.MouseButton1 then                return m:TrigEvent(b and "Button1Down" or "Button1Up")            end            for _,t in pairs(CAS.Actions) do                for _,k in pairs(t.Keys) do                    if k==io.KeyCode then                       t.Function(t.Name,io.UserInputState,io)                   end                end            end           m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)        end    end)    Event.Parent = NLS([==[    local Player = game:GetService("Players").LocalPlayer    local Event = script:WaitForChild("UserInput_Event")     local Mouse = Player:GetMouse()    local UIS = game:GetService("UserInputService")    local input = function(io,a)        if a then return end Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})    end    UIS.InputBegan:Connect(input)    UIS.InputEnded:Connect(input)    local h,t    while wait(1/30) do        if h~=Mouse.Hit or t~=Mouse.Target then            h,t=Mouse.Hit,Mouse.Target           Event:FireServer({isMouse=true,Target=t,Hit=h})        end    end]==],Player.Character)    local _rg = game    local fsmt = {       __index = function(self,k)            local s = rawget(self,"_RealService")            if s then return s[k] end        end,        __newindex = function(self,k,v)            local s = rawget(self,"_RealService")            if s then s[k]=v end        end,        __call = function(self,...)            local s = rawget(self,"_RealService")            if s then return s(...) end        end    }    local function FakeService(t,RealService)        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService        return setmetatable(t,fsmt)    end    local g = {        GetService = function(self,s)            return self[s]        end,        Players = FakeService({            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)        },"Players"),        UserInputService = FakeService(UIS,"UserInputService"),        ContextActionService = FakeService(CAS,"ContextActionService"),    }    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)    g.service = g.GetService       g.RunService = FakeService({        RenderStepped = _rg:GetService("RunService").Heartbeat,        BindToRenderStep = function(self,name,_,fun)            self._btrs[name] = self.Heartbeat:Connect(fun)        end,        UnbindFromRenderStep = function(self,name)            self._btrs[name]:Disconnect()        end,    },"RunService")     setmetatable(g,{        __index=function(self,s)            return _rg:GetService(s) or typeof(_rg[s])=="function"            and function(_,...)return _rg[s](_rg,...)end or _rg[s]        end,        __newindex = fsmt.__newindex,        __call = fsmt.__call    })    game,owner = g,g.Players.LocalPlayer end
2
3
--//====================================================\\--
4
--||			   CREATED BY SHACKLUSTER
5
--\\====================================================//--
6
7
wait(0.2)
8
9
Player = game:GetService("Players").LocalPlayer
10
PlayerGui = Player.PlayerGui
11
Cam = workspace.CurrentCamera
12
Backpack = Player.Backpack
13
Character = Player.Character
14
Humanoid = Character.Humanoid
15
Mouse = Player:GetMouse()
16
RootPart = Character["HumanoidRootPart"]
17
Torso = Character["Torso"]
18
Head = Character["Head"]
19
RightArm = Character["Right Arm"]
20
LeftArm = Character["Left Arm"]
21
RightLeg = Character["Right Leg"]
22
LeftLeg = Character["Left Leg"]
23
RootJoint = RootPart["RootJoint"]
24
Neck = Torso["Neck"]
25
RightShoulder = Torso["Right Shoulder"]
26
LeftShoulder = Torso["Left Shoulder"]
27
RightHip = Torso["Right Hip"]
28
LeftHip = Torso["Left Hip"]
29
30
IT = Instance.new
31
CF = CFrame.new
32
VT = Vector3.new
33
RAD = math.rad
34
C3 = Color3.new
35
UD2 = UDim2.new
36
BRICKC = BrickColor.new
37
ANGLES = CFrame.Angles
38
EULER = CFrame.fromEulerAnglesXYZ
39
COS = math.cos
40
ACOS = math.acos
41
SIN = math.sin
42
ASIN = math.asin
43
ABS = math.abs
44
MRANDOM = math.random
45
FLOOR = math.floor
46
47
--//=================================\\
48
--|| 	      USEFUL VALUES
49
--\\=================================//
50
51
Animation_Speed = 3
52
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
53
local Speed = 20
54
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
55
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
56
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
57
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
58
local DAMAGEMULTIPLIER = 1
59
local ANIM = "Idle"
60
local ATTACK = false
61
local EQUIPPED = false
62
local HOLD = false
63
local COMBO = 1
64
local Rooted = false
65
local SINE = 0
66
local KEYHOLD = false
67
local CHANGE = 2 / Animation_Speed
68
local WALKINGANIM = false
69
local VALUE1 = false
70
local VALUE2 = false
71
local ROBLOXIDLEANIMATION = IT("Animation")
72
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
73
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
74
--ROBLOXIDLEANIMATION.Parent = Humanoid
75
local WEAPONGUI = IT("ScreenGui", PlayerGui)
76
WEAPONGUI.Name = "PIXELGUI"
77
local Effects = IT("Folder", Character)
78
Effects.Name = "Effects"
79
local ANIMATOR = Humanoid.Animator
80
local ANIMATE = Character.Animate
81
local UNANCHOR = true
82
local SONG = 853518668
83
local DEAD = false
84
85
--//=================================\\
86
--\\=================================//
87
88
89
--//=================================\\
90
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
91
--\\=================================//
92
93
ArtificialHB = Instance.new("BindableEvent", script)
94
ArtificialHB.Name = "ArtificialHB"
95
96
script:WaitForChild("ArtificialHB")
97
98
frame = Frame_Speed
99
tf = 0
100
allowframeloss = false
101
tossremainder = false
102
lastframe = tick()
103
script.ArtificialHB:Fire()
104
105
game:GetService("RunService").Heartbeat:connect(function(s, p)
106
	tf = tf + s
107
	if tf >= frame then
108
		if allowframeloss then
109
			script.ArtificialHB:Fire()
110
			lastframe = tick()
111
		else
112
			for i = 1, math.floor(tf / frame) do
113
				script.ArtificialHB:Fire()
114
			end
115
		lastframe = tick()
116
		end
117
		if tossremainder then
118
			tf = 0
119
		else
120
			tf = tf - frame * math.floor(tf / frame)
121
		end
122
	end
123
end)
124
125
--//=================================\\
126
--\\=================================//
127
128
--//=================================\\
129
--|| 	      SOME FUNCTIONS
130
--\\=================================//
131
132
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
133
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
134
end
135
136
function PositiveAngle(NUMBER)
137
	if NUMBER >= 0 then
138
		NUMBER = 0
139
	end
140
	return NUMBER
141
end
142
143
function NegativeAngle(NUMBER)
144
	if NUMBER <= 0 then
145
		NUMBER = 0
146
	end
147
	return NUMBER
148
end
149
150
function Swait(NUMBER)
151
	if NUMBER == 0 or NUMBER == nil then
152
		ArtificialHB.Event:wait()
153
	else
154
		for i = 1, NUMBER do
155
			ArtificialHB.Event:wait()
156
		end
157
	end
158
end
159
160
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
161
	local NEWMESH = IT(MESH)
162
	if MESH == "SpecialMesh" then
163
		NEWMESH.MeshType = MESHTYPE
164
		if MESHID ~= "nil" and MESHID ~= "" then
165
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
166
		end
167
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
168
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
169
		end
170
	end
171
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
172
	NEWMESH.Scale = SCALE
173
	NEWMESH.Parent = PARENT
174
	return NEWMESH
175
end
176
177
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
178
	local NEWPART = IT("Part")
179
	NEWPART.formFactor = FORMFACTOR
180
	NEWPART.Reflectance = REFLECTANCE
181
	NEWPART.Transparency = TRANSPARENCY
182
	NEWPART.CanCollide = false
183
	NEWPART.Locked = true
184
	NEWPART.Anchored = true
185
	if ANCHOR == false then
186
		NEWPART.Anchored = false
187
	end
188
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
189
	NEWPART.Name = NAME
190
	NEWPART.Size = SIZE
191
	NEWPART.Position = Torso.Position
192
	NEWPART.Material = MATERIAL
193
	NEWPART:BreakJoints()
194
	NEWPART.Parent = PARENT
195
	return NEWPART
196
end
197
198
	local function weldBetween(a, b)
199
	    local weldd = Instance.new("ManualWeld")
200
	    weldd.Part0 = a
201
	    weldd.Part1 = b
202
	    weldd.C0 = CFrame.new()
203
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
204
	    weldd.Parent = a
205
	    return weldd
206
	end
207
208
209
function QuaternionFromCFrame(cf)
210
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
211
	local trace = m00 + m11 + m22
212
	if trace > 0 then 
213
		local s = math.sqrt(1 + trace)
214
		local recip = 0.5 / s
215
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
216
	else
217
		local i = 0
218
		if m11 > m00 then
219
			i = 1
220
		end
221
		if m22 > (i == 0 and m00 or m11) then
222
			i = 2
223
		end
224
		if i == 0 then
225
			local s = math.sqrt(m00 - m11 - m22 + 1)
226
			local recip = 0.5 / s
227
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
228
		elseif i == 1 then
229
			local s = math.sqrt(m11 - m22 - m00 + 1)
230
			local recip = 0.5 / s
231
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
232
		elseif i == 2 then
233
			local s = math.sqrt(m22 - m00 - m11 + 1)
234
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
235
		end
236
	end
237
end
238
 
239
function QuaternionToCFrame(px, py, pz, x, y, z, w)
240
	local xs, ys, zs = x + x, y + y, z + z
241
	local wx, wy, wz = w * xs, w * ys, w * zs
242
	local xx = x * xs
243
	local xy = x * ys
244
	local xz = x * zs
245
	local yy = y * ys
246
	local yz = y * zs
247
	local zz = z * zs
248
	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))
249
end
250
 
251
function QuaternionSlerp(a, b, t)
252
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
253
	local startInterp, finishInterp;
254
	if cosTheta >= 0.0001 then
255
		if (1 - cosTheta) > 0.0001 then
256
			local theta = ACOS(cosTheta)
257
			local invSinTheta = 1 / SIN(theta)
258
			startInterp = SIN((1 - t) * theta) * invSinTheta
259
			finishInterp = SIN(t * theta) * invSinTheta
260
		else
261
			startInterp = 1 - t
262
			finishInterp = t
263
		end
264
	else
265
		if (1 + cosTheta) > 0.0001 then
266
			local theta = ACOS(-cosTheta)
267
			local invSinTheta = 1 / SIN(theta)
268
			startInterp = SIN((t - 1) * theta) * invSinTheta
269
			finishInterp = SIN(t * theta) * invSinTheta
270
		else
271
			startInterp = t - 1
272
			finishInterp = t
273
		end
274
	end
275
	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
276
end
277
278
function Clerp(a, b, t)
279
	local qa = {QuaternionFromCFrame(a)}
280
	local qb = {QuaternionFromCFrame(b)}
281
	local ax, ay, az = a.x, a.y, a.z
282
	local bx, by, bz = b.x, b.y, b.z
283
	local _t = 1 - t
284
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
285
end
286
287
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
288
	local frame = IT("Frame")
289
	frame.BackgroundTransparency = TRANSPARENCY
290
	frame.BorderSizePixel = BORDERSIZEPIXEL
291
	frame.Position = POSITION
292
	frame.Size = SIZE
293
	frame.BackgroundColor3 = COLOR
294
	frame.BorderColor3 = BORDERCOLOR
295
	frame.Name = NAME
296
	frame.Parent = PARENT
297
	return frame
298
end
299
300
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
301
	local label = IT("TextLabel")
302
	label.BackgroundTransparency = 1
303
	label.Size = UD2(1, 0, 1, 0)
304
	label.Position = UD2(0, 0, 0, 0)
305
	label.TextColor3 = TEXTCOLOR
306
	label.TextStrokeTransparency = STROKETRANSPARENCY
307
	label.TextTransparency = TRANSPARENCY
308
	label.FontSize = TEXTFONTSIZE
309
	label.Font = TEXTFONT
310
	label.BorderSizePixel = BORDERSIZEPIXEL
311
	label.TextScaled = false
312
	label.Text = TEXT
313
	label.Name = NAME
314
	label.Parent = PARENT
315
	return label
316
end
317
318
function NoOutlines(PART)
319
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
320
end
321
322
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
323
	local NEWWELD = IT(TYPE)
324
	NEWWELD.Part0 = PART0
325
	NEWWELD.Part1 = PART1
326
	NEWWELD.C0 = C0
327
	NEWWELD.C1 = C1
328
	NEWWELD.Parent = PARENT
329
	return NEWWELD
330
end
331
332
local S = IT("Sound")
333
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
334
	local NEWSOUND = nil
335
	coroutine.resume(coroutine.create(function()
336
		NEWSOUND = S:Clone()
337
		NEWSOUND.Parent = PARENT
338
		NEWSOUND.Volume = VOLUME
339
		NEWSOUND.Pitch = PITCH
340
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
341
		NEWSOUND:play()
342
		if DOESLOOP == true then
343
			NEWSOUND.Looped = true
344
		else
345
			repeat wait(1) until NEWSOUND.Playing == false
346
			NEWSOUND:remove()
347
		end
348
	end))
349
	return NEWSOUND
350
end
351
352
function CFrameFromTopBack(at, top, back)
353
	local right = top:Cross(back)
354
	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)
355
end
356
357
--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})
358
function WACKYEFFECT(Table)
359
	local TYPE = (Table.EffectType or "Sphere")
360
	local SIZE = (Table.Size or VT(1,1,1))
361
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
362
	local TRANSPARENCY = (Table.Transparency or 0)
363
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
364
	local CFRAME = (Table.CFrame or Torso.CFrame)
365
	local MOVEDIRECTION = (Table.MoveToPos or nil)
366
	local ROTATION1 = (Table.RotationX or 0)
367
	local ROTATION2 = (Table.RotationY or 0)
368
	local ROTATION3 = (Table.RotationZ or 0)
369
	local MATERIAL = (Table.Material or "Neon")
370
	local COLOR = (Table.Color or C3(1,1,1))
371
	local TIME = (Table.Time or 45)
372
	local SOUNDID = (Table.SoundID or nil)
373
	local SOUNDPITCH = (Table.SoundPitch or nil)
374
	local SOUNDVOLUME = (Table.SoundVolume or nil)
375
	coroutine.resume(coroutine.create(function()
376
		local PLAYSSOUND = false
377
		local SOUND = nil
378
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
379
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
380
			PLAYSSOUND = true
381
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
382
		end
383
		EFFECT.Color = COLOR
384
		local MSH = nil
385
		if TYPE == "Sphere" then
386
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
387
		elseif TYPE == "Block" or TYPE == "Box" then
388
			MSH = IT("BlockMesh",EFFECT)
389
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
390
		elseif TYPE == "Wave" then
391
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
392
		elseif TYPE == "Ring" then
393
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
394
		elseif TYPE == "Slash" then
395
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
396
		elseif TYPE == "Round Slash" then
397
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
398
		elseif TYPE == "Swirl" then
399
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
400
		elseif TYPE == "Skull" then
401
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
402
		elseif TYPE == "Crystal" then
403
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
404
		end
405
		if MSH ~= nil then
406
			local MOVESPEED = nil
407
			if MOVEDIRECTION ~= nil then
408
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
409
			end
410
			local GROWTH = SIZE - ENDSIZE
411
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
412
			if TYPE == "Block" then
413
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
414
			else
415
				EFFECT.CFrame = CFRAME
416
			end
417
			for LOOP = 1, TIME+1 do
418
				Swait()
419
				MSH.Scale = MSH.Scale - GROWTH/TIME
420
				if TYPE == "Wave" then
421
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
422
				end
423
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
424
				if TYPE == "Block" then
425
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
426
				else
427
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
428
				end
429
				if MOVEDIRECTION ~= nil then
430
					local ORI = EFFECT.Orientation
431
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
432
					EFFECT.Orientation = ORI
433
				end
434
			end
435
			if PLAYSSOUND == false then
436
				EFFECT:remove()
437
			else
438
				repeat Swait() until SOUND.Playing == false
439
				EFFECT:remove()
440
			end
441
		else
442
			if PLAYSSOUND == false then
443
				EFFECT:remove()
444
			else
445
				repeat Swait() until SOUND.Playing == false
446
				EFFECT:remove()
447
			end
448
		end
449
	end))
450
end
451
452
function MakeForm(PART,TYPE)
453
	if TYPE == "Cyl" then
454
		local MSH = IT("CylinderMesh",PART)
455
	elseif TYPE == "Ball" then
456
		local MSH = IT("SpecialMesh",PART)
457
		MSH.MeshType = "Sphere"
458
	elseif TYPE == "Wedge" then
459
		local MSH = IT("SpecialMesh",PART)
460
		MSH.MeshType = "Wedge"
461
	end
462
end
463
464
Debris = game:GetService("Debris")
465
466
function CastProperRay(StartPos, EndPos, Distance, Ignore)
467
	local DIRECTION = CF(StartPos,EndPos).lookVector
468
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
469
end
470
471
function turnto(position)
472
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
473
end
474
475
--//=================================\\
476
--||	     WEAPON CREATION
477
--\\=================================//
478
479
local sick = CreateSound(853518668, Torso, 3, 0.9, true)
480
481
Head:ClearAllChildren()
482
483
local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
484
MakeForm(EYE,"Ball")
485
CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
486
local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
487
MakeForm(EYE2,"Ball")
488
CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
489
490
491
local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Detail", VT(2,0.2,2),false)
492
HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
493
local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Part", VT(1.35,0.4,1.35),false)
494
CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0.25,0), CF(0, 0, 0))
495
local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Detail", VT(1.3,2.2,1.3),false)
496
CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
497
498
local TIE1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Detail", VT(0.5,0.5,0),false)
499
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, TIE1, CF(0,0.8,-0.5), CF(0, 0, 0))
500
local TIE2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Detail", VT(0.2,0.5,0),false)
501
CreateWeldOrSnapOrMotor("Weld", TIE1, TIE1, TIE2, CF(0,-0.5,0), CF(0, 0, 0))
502
local TIE3 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Detail", VT(0.5,1,0),false)
503
CreateWeldOrSnapOrMotor("Weld", TIE2, TIE2, TIE3, CF(0,-0.75,0), CF(0, 0, 0))
504
505
Humanoid.DisplayDistanceType = "None"
506
local naeeym2 = IT("BillboardGui",Character)
507
naeeym2.AlwaysOnTop = true
508
naeeym2.Size = UDim2.new(5,35,2,15)
509
naeeym2.StudsOffset = Vector3.new(0,6,0)
510
naeeym2.MaxDistance = 75
511
naeeym2.Adornee = RootPart
512
naeeym2.Name = "Name"
513
naeeym2.PlayerToHideFrom = Player
514
local tecks2 = IT("TextLabel",naeeym2)
515
tecks2.BackgroundTransparency = 1
516
tecks2.TextScaled = true
517
tecks2.BorderSizePixel = 0
518
tecks2.Text = "Dark Pixels"
519
tecks2.Font = "Arcade"
520
tecks2.TextSize = 20
521
tecks2.TextStrokeTransparency = 1
522
tecks2.TextColor3 = BRICKC"Really black".Color
523
tecks2.TextStrokeColor3 = BRICKC"Really black".Color
524
tecks2.Size = UDim2.new(1,0,0.5,0)
525
tecks2.Parent = naeeym2
526
527
local MESH = IT("BlockMesh",Head)
528
MESH.Scale = VT(0.5,1,1)
529
530
local SKILLTEXTCOLOR = BRICKC"Really black".Color
531
local SKILLFONT = "Arcade"
532
local SKILLTEXTSIZE = 7
533
534
Humanoid.Died:connect(function()
535
	for _, c in pairs(Character:GetChildren()) do
536
		if c:IsA("BasePart") then
537
			c.Anchored = true
538
		end
539
	end
540
	naeeym2:remove()
541
	ATTACK = true
542
	DEAD = true
543
	UNANCHOR = false
544
	Character.PrimaryPart = RootPart
545
	CreateSound(580288658, Effects, 3, 1, false)
546
	Humanoid:remove()
547
	for i = 1, 50 do
548
		wait()
549
		Character:SetPrimaryPartCFrame(RootPart.CFrame *CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(90)))
550
	end
551
	UNANCHOR = true
552
	for _, c in pairs(Character:GetChildren()) do
553
		if c:IsA("BasePart") then
554
			c.CanCollide = true
555
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(45,85),MRANDOM(-45,45))
556
		end
557
	end
558
end)
559
560
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
561
local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
562
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
563
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.72, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
564
565
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
566
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
567
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
568
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
569
570
--//=================================\\
571
--||			DAMAGING
572
--\\=================================//
573
574
function ApplyDamage(Humanoid,Damage)
575
	Damage = Damage * DAMAGEMULTIPLIER
576
	if Humanoid.Health ~= 0 then
577
		Humanoid.Health = Humanoid.Health - Damage
578
	end
579
end
580
581
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
582
	local CHILDREN = workspace:GetDescendants()
583
	for index, CHILD in pairs(CHILDREN) do
584
		if CHILD.ClassName == "Model" and CHILD ~= Character then
585
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
586
			if HUM then
587
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
588
				if TORSO then
589
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
590
						if INSTAKILL == true then
591
							CHILD:BreakJoints()
592
						else
593
							local DMG = MRANDOM(MINDMG,MAXDMG)
594
							ApplyDamage(HUM,DMG)
595
						end
596
						if FLING > 0 then
597
							for _, c in pairs(CHILD:GetChildren()) do
598
								if c:IsA("BasePart") then
599
									local bv = Instance.new("BodyVelocity") 
600
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
601
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
602
									bv.Parent = c
603
									Debris:AddItem(bv,0.05)
604
								end
605
							end
606
						end
607
					end
608
				end
609
			end
610
		end
611
	end
612
end
613
614
function APPLYMELEE(PART,MINDMG,MAXDMG)
615
	local ONESHOT = false
616
	if MINDMG == "inf" then
617
		ONESHOT = true
618
	end
619
	local HITS = {}
620
	local TOUCH = PART.Touched:Connect(function(hit)
621
		if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then
622
			local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
623
			local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
624
			if TORSO and HUM.Health > 0 then
625
				local PASS = true
626
				for i = 1, #HITS do
627
					if HITS[i] == hit.Parent then
628
						PASS = false
629
					end
630
				end
631
				table.insert(HITS,hit.Parent)
632
				if PASS == true then
633
					if ONESHOT == false then
634
						ApplyDamage(HUM,MRANDOM(MINDMG,MAXDMG))
635
					else
636
						CreateSound(1538571923, TORSO, 10, 1, false)
637
						HUM.Parent:BreakJoints()
638
						HUM:remove()
639
						for _, c in pairs(TORSO.Parent:GetChildren()) do
640
							if c:IsA("BasePart") then
641
								c.CanCollide = true
642
								c.Velocity = VT(MRANDOM(-45,45),MRANDOM(45,85),MRANDOM(-45,45))
643
								Debris:AddItem(c,MRANDOM(5,20)/10)
644
							end
645
						end
646
					end
647
				end
648
			end
649
		end
650
	end)
651
	return TOUCH
652
end
653
654
function GoombaStomp(OBJECT)
655
	for _, c in pairs(OBJECT:GetChildren()) do
656
		if c:IsA("BasePart") then
657
			c.Size = VT(c.Size.X,0,c.Size.Z)
658
		end
659
	end
660
end
661
662
--//=================================\\
663
--||	ATTACK FUNCTIONS AND STUFF
664
--\\=================================//
665
666
function MushroomAi(Mushroom)
667
	coroutine.resume(coroutine.create(function()
668
		for i = 1, 500 do
669
			wait()
670
			local DISTANCE = 500
671
			local TARGET = nil
672
			local HUMAN = nil
673
			for _, c in pairs(workspace:GetChildren()) do
674
				if c.ClassName == "Model" and c:FindFirstChildOfClass("Humanoid") and c ~= Character then
675
					local HUM = c:FindFirstChildOfClass("Humanoid")
676
					local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
677
					if TORSO and HUM.Health > 0 then
678
						if (TORSO.Position - Mushroom.PrimaryPart.Position).Magnitude < DISTANCE then
679
							DISTANCE = (TORSO.Position - Mushroom.PrimaryPart.Position).Magnitude
680
							TARGET = TORSO
681
							HUMAN = HUM
682
						end
683
					end
684
				end
685
			end
686
			if TARGET then
687
				local HITFLOOR,HITPOS = Raycast(Mushroom.PrimaryPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 1, Mushroom)
688
				if HITFLOOR then
689
					local CFRAME = CF(Mushroom.PrimaryPart.Position,VT(TARGET.Position.X,Mushroom.PrimaryPart.Position.Y,TARGET.Position.Z))*CF(0,0,-0.3).p
690
					Mushroom:SetPrimaryPartCFrame(CF(CFRAME))
691
					local DIST = (TARGET.Position - Mushroom.PrimaryPart.Position).Magnitude
692
					if DIST < 4*(TARGET.Size.Y/2) then
693
						HUMAN.Health = HUMAN.Health - (HUMAN.MaxHealth-1)
694
						break
695
					end
696
				else
697
					Mushroom:SetPrimaryPartCFrame(CF(HITPOS))
698
				end
699
			end
700
		end
701
		Mushroom:remove()
702
	end))
703
end
704
705
function QuestionMarkBlock()
706
	ATTACK = true
707
	Rooted = true
708
	local BLOCKMODEL = IT("Model",Effects)
709
	local LOAD = false
710
	local BLOCK = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "New Yeller", "Base", VT(2,2,2))
711
	BLOCK.CFrame = CF(RootPart.CFrame*CF(0,15,0).p)
712
	BLOCKMODEL.PrimaryPart = BLOCK
713
	for i = 1, 4 do
714
		local BASE = CreatePart(3, BLOCKMODEL, "Neon", 0, 1, "New Yeller", "Blocc", VT(1.3,1.3,2)*1.001)
715
		BASE.CFrame = BLOCK.CFrame * ANGLES(RAD(0), RAD((360/4)*i), RAD(0))
716
		local DECAL = IT("Decal",BASE)
717
		DECAL.Texture = "http://www.roblox.com/asset/?id=1019185679"
718
		local PART = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "Pearl", "Blocc", VT(0.2,0.2,2.1))
719
		PART.CFrame = BASE.CFrame*CF(0.75,0.75,0)
720
		local PART = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "Pearl", "Blocc", VT(0.2,0.2,2.1))
721
		PART.CFrame = BASE.CFrame*CF(0.75,-0.75,0)
722
	end
723
	local LANDED = false
724
	local HIT = false
725
	local LOOP = 0
726
	coroutine.resume(coroutine.create(function()
727
		repeat
728
			Swait()
729
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
730
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(0), RAD(7.5-30*SIN(sick.PlaybackLoudness/300)), RAD(0 - 25 * SIN(SINE / 15))), 1 / Animation_Speed)
731
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(0), RAD(-15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
732
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
733
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
734
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
735
		until LOAD == true
736
		repeat
737
			Swait()
738
			if HIT == false then
739
				local HITFLOOR = Raycast(BLOCK.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 1.2, BLOCKMODEL)
740
				if HITFLOOR then
741
					HIT = true
742
					coroutine.resume(coroutine.create(function()
743
						local CFRAME = BLOCK.CFrame
744
						RootPart.Velocity = VT(0,0,0)
745
						RootPart.RotVelocity = VT(0,0,0)
746
						for i = 1, 5 do
747
							wait()
748
							RootPart.Velocity = VT(0,-i*4,0)
749
							RootPart.RotVelocity = VT(0,0,0)
750
							BLOCKMODEL:SetPrimaryPartCFrame(Clerp(CFRAME, CFRAME*CF(0,(5-i),0), 1 / Animation_Speed))
751
						end
752
						BLOCK.BrickColor = BRICKC"Dirt brown"
753
						for _, c in pairs(BLOCKMODEL:GetChildren()) do
754
							if c:IsA("BasePart") and c.Name ~= "Base" then
755
								c:remove()
756
							end
757
						end
758
						CreateSound(1246464612, BLOCK, 10, 1, false)
759
						local SIZE = 2.25
760
						local MUSHROOM = IT("Model",Effects)
761
						local BASE = CreatePart(3, MUSHROOM, "Neon", 0, 0, "Fawn brown", "Shroom", VT(0.5,0.5,0.5)*SIZE)
762
						MUSHROOM.PrimaryPart = BASE
763
						local HEAD = CreatePart(3, MUSHROOM, "Neon", 0, 0, "Mulberry", "Shroom", VT(0.75,0.45,0.75)*SIZE)
764
						HEAD.CFrame = BASE.CFrame*CF(0,0.35*SIZE,0)
765
						for i = 1, 2 do
766
							local DOT = CreatePart(3, MUSHROOM, "Neon", 0, 0, "Lime green", "Shroom", VT(0.35,0.35,0.8)*SIZE)
767
							DOT.CFrame = HEAD.CFrame * ANGLES(RAD(0), RAD((180/2)*i), RAD(0))
768
						end
769
						local HEAD = CreatePart(3, MUSHROOM, "Neon", 0, 0, "Mulberry", "Shroom", VT(0.55,0.45,0.55)*SIZE)
770
						HEAD.CFrame = BASE.CFrame*CF(0,0.55*SIZE,0)
771
						MUSHROOM:SetPrimaryPartCFrame(BLOCK.CFrame)
772
						for i = 1, 30 do
773
							wait()
774
							MUSHROOM:SetPrimaryPartCFrame(BLOCK.CFrame*CF(0,-0.35+(i/18),0))
775
						end
776
						MushroomAi(MUSHROOM)
777
						Debris:AddItem(BLOCKMODEL,5)			
778
					end))
779
				end
780
			else
781
				local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
782
				if HITFLOOR then
783
					LANDED = true
784
				end
785
			end
786
			LOOP = LOOP + 1
787
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
788
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
789
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, -0.2) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
790
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed)
791
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4-sick.PlaybackLoudness/800, -0.7) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
792
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.3) * ANGLES(RAD(-25), RAD(-80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
793
		until LANDED == true or ATTACK == false
794
	end))
795
	wait(1)
796
	LOAD = true
797
	CreateSound(158309736, Torso, 10, 1, false)
798
	local bv = Instance.new("BodyVelocity",RootPart) 
799
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
800
	bv.velocity = CF(RootPart.Position,BLOCK.Position).lookVector*150
801
	Debris:AddItem(bv,0.05)
802
	repeat wait() until LANDED == true or LOOP > 45
803
	Debris:AddItem(BLOCKMODEL,5)	
804
	ATTACK = false
805
	Rooted = false
806
end
807
808
function SwordBeam()
809
	ATTACK = true
810
	Rooted = false
811
	local SWORDMODEL = IT("Model",Effects)
812
	local HANDLE = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Shamrock", "Stic", VT(0.2,2,0.2),false)
813
	local GRIP = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HANDLE, CF(0,-1,0)* ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, -0.3, 0))
814
	local PART = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Shamrock", "Stic", VT(1,0.2,0.2),false)
815
	CreateWeldOrSnapOrMotor("Weld", HANDLE, HANDLE, PART, CF(0,1,0), CF(0, 0, 0))
816
	local PART = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Pearl", "Stic", VT(0.5,2,0.1),false)
817
	CreateWeldOrSnapOrMotor("Weld", HANDLE, HANDLE, PART, CF(0,2,0), CF(0, 0, 0))
818
	local PART = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Pearl", "Stic", VT(0.25,2,0.1),false)
819
	CreateWeldOrSnapOrMotor("Weld", HANDLE, HANDLE, PART, CF(0,2.25,0), CF(0, 0, 0))
820
	for i=0, 1, 0.1 / Animation_Speed do
821
		Swait()
822
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
823
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
824
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(160), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
825
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
826
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
827
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
828
	end
829
	coroutine.resume(coroutine.create(function()
830
		local BEAM = IT("Model",Effects)
831
		local BASE = CreatePart(3, BEAM, "Neon", 0, 0, "Really red", "Stic", VT(0.1,0.5,2))
832
		BASE.CFrame = RootPart.CFrame*CF(1.5,-0.4,0)
833
		local PART = CreatePart(3, BEAM, "Neon", 0, 0, "Really red", "Stic", VT(0.1,0.25,2))
834
		PART.CFrame = BASE.CFrame*CF(0,0,-0.2)
835
		for i = 1, 4 do
836
			local PART = CreatePart(3, BEAM, "Neon", 0, 0, "Really red", "Stic", VT(0.1,0.75,0.1))
837
			PART.CFrame = BASE.CFrame*CF(0,0,-0.8+(i/2.5))
838
		end
839
		BEAM.PrimaryPart = BASE
840
		for i = 1, 75 do
841
			wait()
842
			BEAM:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0,-2))
843
			local HITFLOOR = Raycast(BASE.Position, BASE.CFrame.lookVector, 2.1, Character)
844
			if HITFLOOR then
845
				if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
846
					local HUM = HITFLOOR.Parent:FindFirstChildOfClass("Humanoid")
847
					ApplyDamage(HUM,15)
848
				end
849
				break
850
			end
851
		end
852
		BEAM:remove()
853
	end))
854
	for i=0, 0.05, 0.1 / Animation_Speed do
855
		Swait()
856
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
857
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
858
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(25), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
859
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
860
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
861
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
862
	end
863
	for i=0, 0.5, 0.1 / Animation_Speed do
864
		Swait()
865
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
866
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
867
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(-25), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
868
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
869
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
870
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
871
	end
872
	SWORDMODEL:remove()
873
	ATTACK = false
874
	Rooted = false
875
end
876
877
function Candy()
878
	ATTACK = true
879
	Rooted = true
880
	local CANDYMODEL = IT("Model",Effects)
881
	local HANDLE = CreatePart(3, CANDYMODEL, "Neon", 0, 0, "Dirt brown", "Stic", VT(0.2,1,0.2),false)
882
	local GRIP = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HANDLE, CF(0,-1,0)* ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, -0.3, 0))
883
	local HEAD1 = CreatePart(3, CANDYMODEL, "Neon", 0, 0, "Pearl", "Stic", VT(1,1,0.21),false)
884
	CreateWeldOrSnapOrMotor("Weld", HANDLE, HANDLE, HEAD1, CF(0,1,0)* ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
885
	local HEAD2 = CreatePart(3, CANDYMODEL, "Neon", 0, 0, "Really red", "Stic", VT(0.85,0.85,0.22),false)
886
	CreateWeldOrSnapOrMotor("Weld", HEAD1, HEAD1, HEAD2, CF(0,0,0)* ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
887
	local HEAD3 = CreatePart(3, CANDYMODEL, "Neon", 0, 0, "Pearl", "Stic", VT(0.55,0.55,0.23),false)
888
	CreateWeldOrSnapOrMotor("Weld", HEAD2, HEAD2, HEAD3, CF(0,0,0)* ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
889
	local HEAD4 = CreatePart(3, CANDYMODEL, "Neon", 0, 0, "Really red", "Stic", VT(0.25,0.25,0.24),false)
890
	CreateWeldOrSnapOrMotor("Weld", HEAD3, HEAD3, HEAD4, CF(0,0,0)* ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
891
	local THROWN = false
892
	local THROW = Mouse.Button1Down:connect(function(NEWKEY)
893
		THROWN = true
894
	end)
895
	for i=0, 2, 0.1 / Animation_Speed do
896
		Swait()
897
		if THROWN == true then
898
			break
899
		end
900
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
901
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
902
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(120), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
903
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
904
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
905
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
906
	end
907
	THROW:disconnect()
908
	for i=0, 1, 0.1 / Animation_Speed do
909
		Swait()
910
		if THROWN == true then
911
			break
912
		end
913
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
914
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
915
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15+sick.PlaybackLoudness/1200, 0.3) * ANGLES(RAD(100), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
916
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
917
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
918
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
919
	end
920
	if THROWN == false then
921
		CANDYMODEL:remove()
922
		coroutine.resume(coroutine.create(function()
923
			SONG = 554418756
924
			Speed = 35
925
			sick:Play()
926
			for i = 1, 150 do
927
				local MELEES = {}
928
				for _, c in pairs(Character:GetChildren()) do
929
					if c:IsA("BasePart") then
930
						local MELEE = APPLYMELEE(c,"inf","inf")
931
						table.insert(MELEES,MELEE)
932
						WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)/2, Size2 = VT(1,1,1)/2, Transparency = .7, Transparency2 = 1, CFrame = c.CFrame*ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
933
					end
934
				end
935
				wait(0.1)
936
				for e = 1, #MELEES do
937
					MELEES[e]:disconnect()
938
				end
939
			end
940
			sick:Play()
941
			Speed = 20
942
			SONG = 853518668
943
		end))
944
	else
945
		local GIVEINV = function(OBJECT,HUMAN)
946
			local TORSO = OBJECT:FindFirstChild("Torso") or OBJECT:FindFirstChild("UpperTorso")
947
			if TORSO then
948
				if TORSO:FindFirstChild("YAY") == nil then
949
					local MUSIC = CreateSound(554418756, TORSO, 3, 1, true)
950
					MUSIC.Name = "YAY"
951
					HUMAN.WalkSpeed = 35
952
					local HEALTH = HUMAN.MaxHealth
953
					for i = 1, 150 do
954
						HUMAN.MaxHealth = 999999999999999999*999999999999999999*999999999999999999*999999999999999999
955
						HUMAN.Health = HUMAN.MaxHealth
956
						MUSIC.Parent = TORSO
957
						local MELEES = {}
958
						for _, c in pairs(OBJECT:GetChildren()) do
959
							if c:IsA("BasePart") then
960
								local MELEE = APPLYMELEE(c,"inf","inf")
961
								table.insert(MELEES,MELEE)
962
								WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)/2, Size2 = VT(1,1,1)/2, Transparency = .7, Transparency2 = 1, CFrame = c.CFrame*ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
963
							end
964
						end
965
						wait(0.1)
966
						for e = 1, #MELEES do
967
							MELEES[e]:disconnect()
968
						end
969
					end
970
					HUMAN.MaxHealth = HEALTH
971
					HUMAN.Health = HUMAN.MaxHealth
972
					MUSIC:remove()
973
					HUMAN.WalkSpeed = 16
974
				end
975
			end
976
		end
977
		for i=0, 1, 0.1 / Animation_Speed do
978
			Swait()
979
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
980
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
981
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(160), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
982
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
983
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
984
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
985
		end
986
		for i=0, 0.05, 0.1 / Animation_Speed do
987
			Swait()
988
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
989
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
990
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(25), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
991
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
992
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
993
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
994
		end
995
		for _, c in pairs(CANDYMODEL:GetChildren()) do
996
			if c:IsA("BasePart") then
997
				c.CanCollide = true
998
				c.Touched:Connect(function(hit)
999
					if hit.Parent ~= Character then
1000
						if hit.Parent:FindFirstChildOfClass("Humanoid") then
1001
							CANDYMODEL:remove()
1002
							GIVEINV(hit.Parent,hit.Parent:FindFirstChildOfClass("Humanoid"))
1003
						end
1004
					end
1005
				end)
1006
			end
1007
		end
1008
		GRIP:remove()
1009
		HANDLE.Velocity = CF(HANDLE.Position,Torso.CFrame*CF(0,7,-15).p).lookVector*MRANDOM(45,80)
1010
		Debris:AddItem(CANDYMODEL,10)
1011
		for i=0, 0.4, 0.1 / Animation_Speed do
1012
			Swait()
1013
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1014
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1015
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(25), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1016
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1017
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1018
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1019
		end
1020
	end
1021
	ATTACK = false
1022
	Rooted = false
1023
end
1024
1025
function Peashooter()
1026
	ATTACK = true
1027
	Rooted = true
1028
	local LOADED = false
1029
	local BLASTER = IT("Model",Effects)	
1030
	local HANDLE = CreatePart(3, BLASTER, "Neon", 0, 1, "Cyan", "Shooter", VT(1.3,1.4,1.3),false)
1031
	CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HANDLE, CF(0,-0.5,0), CF(0, 0, 0))
1032
	local HANDLE = CreatePart(3, BLASTER, "Neon", 0, 1, "Cyan", "Shooter", VT(1.1,1.4,1.1),false)
1033
	CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HANDLE, CF(0,-0.75,0), CF(0, 0, 0))
1034
	local SHOT = false
1035
	local FINISHED = false
1036
	coroutine.resume(coroutine.create(function()
1037
		for i=0, 1, 0.1 / Animation_Speed do
1038
			Swait()
1039
			turnto(Mouse.Hit.p)
1040
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1041
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1042
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(160), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1043
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1044
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1045
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1046
		end
1047
		LOADED = true
1048
		WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)*3, Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1049
		for _, c in pairs(BLASTER:GetChildren()) do
1050
			if c:IsA("BasePart") then
1051
				c.Transparency = 0
1052
			end
1053
		end
1054
		repeat
1055
			Swait()
1056
			turnto(Mouse.Hit.p)
1057
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1058
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-45)), 1 / Animation_Speed)
1059
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(80), RAD(15), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1060
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1061
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1062
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1063
		until SHOT == true
1064
		repeat
1065
			turnto(Mouse.Hit.p)
1066
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1067
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-45)), 1 / Animation_Speed)
1068
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(80), RAD(15), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1069
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1070
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1071
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1072
			coroutine.resume(coroutine.create(function()
1073
				local BULLET = IT("Model",Effects)
1074
				local MAIN = CreatePart(3, BULLET, "Neon", 0, 0, "Cork", "Bullet", VT(1,1,1.5))
1075
				CreateSound(635556833, RightArm, 3, 1, false)
1076
				BULLET.PrimaryPart = MAIN
1077
				local PART = CreatePart(3, BULLET, "Neon", 0, 0, "Cork", "Bullet", VT(0.8,0.8,2))
1078
				MAIN.CFrame = CF(RightArm.CFrame*CF(0,-2,0).p,Mouse.Hit.p)
1079
				PART.CFrame = MAIN.CFrame
1080
				for i = 1, 75 do
1081
					wait()
1082
					BULLET:SetPrimaryPartCFrame(MAIN.CFrame*CF(0,0,-2))
1083
					local HITFLOOR = Raycast(MAIN.Position, MAIN.CFrame.lookVector, 2.1, Character)
1084
					if HITFLOOR then
1085
						if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
1086
							local HUM = HITFLOOR.Parent:FindFirstChildOfClass("Humanoid")
1087
							ApplyDamage(HUM,10)
1088
						end
1089
						break
1090
					end
1091
				end
1092
				BULLET:remove()
1093
			end))
1094
			for i = 1, 25 do
1095
				Swait()
1096
				turnto(Mouse.Hit.p)
1097
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1098
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-45)), 1 / Animation_Speed)
1099
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(80), RAD(15), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1100
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1101
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1102
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1103
			end
1104
		until HOLD == false
1105
		for i=0, 0.2, 0.1 / Animation_Speed do
1106
			Swait()
1107
			turnto(Mouse.Hit.p)
1108
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1109
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-45)), 1 / Animation_Speed)
1110
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(80), RAD(15), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1111
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1112
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1113
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1114
		end
1115
		WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)*3, Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1116
		BLASTER:remove()
1117
		FINISHED = true
1118
	end))
1119
	repeat wait() until LOADED == true
1120
	wait(0.5)
1121
	local FIRE = Mouse.Button1Down:connect(function(NEWKEY)
1122
		SHOT = true
1123
	end)
1124
	repeat wait() until SHOT == true
1125
	FIRE:disconnect()
1126
	repeat wait() until FINISHED == true
1127
	ATTACK = false
1128
	Rooted = false
1129
end
1130
1131
function QuestionMarkBlock2()
1132
	ATTACK = true
1133
	Rooted = true
1134
	local BLOCKMODEL = IT("Model",Effects)
1135
	local LOAD = false
1136
	local BLOCK = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "New Yeller", "Base", VT(2,2,2))
1137
	BLOCK.CFrame = CF(RootPart.CFrame*CF(0,15,0).p)
1138
	BLOCKMODEL.PrimaryPart = BLOCK
1139
	local FRAME = RootPart.CFrame*CF(0,15,0)
1140
	for i = 1, 4 do
1141
		local BASE = CreatePart(3, BLOCKMODEL, "Neon", 0, 1, "New Yeller", "Blocc", VT(1.3,1.3,2)*1.001)
1142
		BASE.CFrame = BLOCK.CFrame * ANGLES(RAD(0), RAD((360/4)*i), RAD(0))
1143
		local DECAL = IT("Decal",BASE)
1144
		DECAL.Texture = "http://www.roblox.com/asset/?id=1019185679"
1145
		local PART = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "Pearl", "Blocc", VT(0.2,0.2,2.1))
1146
		PART.CFrame = BASE.CFrame*CF(0.75,0.75,0)
1147
		local PART = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "Pearl", "Blocc", VT(0.2,0.2,2.1))
1148
		PART.CFrame = BASE.CFrame*CF(0.75,-0.75,0)
1149
	end
1150
	local LANDED = false
1151
	local HIT = false
1152
	local LOOP = 0
1153
	coroutine.resume(coroutine.create(function()
1154
		repeat
1155
			Swait()
1156
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1157
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(0), RAD(7.5-30*SIN(sick.PlaybackLoudness/300)), RAD(0 - 25 * SIN(SINE / 15))), 1 / Animation_Speed)
1158
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(0), RAD(-15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1159
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1160
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1161
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1162
		until LOAD == true
1163
		repeat
1164
			Swait()
1165
			if HIT == false then
1166
				local HITFLOOR = Raycast(BLOCK.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 1.2, BLOCKMODEL)
1167
				if HITFLOOR then
1168
					HIT = true
1169
					coroutine.resume(coroutine.create(function()
1170
						local CFRAME = BLOCK.CFrame
1171
						RootPart.Velocity = VT(0,0,0)
1172
						RootPart.RotVelocity = VT(0,0,0)
1173
						coroutine.resume(coroutine.create(function()
1174
							CreateSound(138702491, BLOCK, 10, 1, false)
1175
							local COIN = CreatePart(3, BLOCKMODEL, "Neon", 0, 1, "New Yeller", "Coin", VT(1.8,1.8,0))
1176
							COIN.CFrame = BLOCK.CFrame
1177
							local DECAL = IT("Decal",COIN)
1178
							DECAL.Texture = "http://www.roblox.com/asset/?id=1512322302"
1179
							local DECAL = IT("Decal",COIN)
1180
							DECAL.Texture = "http://www.roblox.com/asset/?id=1512322302"
1181
							DECAL.Face = "Back"
1182
							for i = 1, 15 do
1183
								wait()
1184
								COIN.CFrame = Clerp(FRAME, FRAME*CF(0,(15-(i/10)),0), 1 / Animation_Speed)
1185
							end
1186
							COIN:remove()
1187
						end))
1188
						for i = 1, 5 do
1189
							wait()
1190
							RootPart.Velocity = VT(0,-i*4,0)
1191
							RootPart.RotVelocity = VT(0,0,0)
1192
							BLOCKMODEL:SetPrimaryPartCFrame(Clerp(CFRAME, CFRAME*CF(0,(5-i),0), 1 / Animation_Speed))
1193
						end
1194
						BLOCK.BrickColor = BRICKC"Dirt brown"
1195
						for _, c in pairs(BLOCKMODEL:GetChildren()) do
1196
							if c:IsA("BasePart") and c.Name ~= "Base" then
1197
								c:remove()
1198
							end
1199
						end
1200
						Debris:AddItem(BLOCKMODEL,5)			
1201
					end))
1202
				end
1203
			else
1204
				local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1205
				if HITFLOOR then
1206
					LANDED = true
1207
				end
1208
			end
1209
			LOOP = LOOP + 1
1210
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1211
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
1212
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, -0.2) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1213
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1214
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4-sick.PlaybackLoudness/800, -0.7) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1215
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.3) * ANGLES(RAD(-25), RAD(-80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
1216
		until LANDED == true or ATTACK == false
1217
	end))
1218
	wait(0.3)
1219
	LOAD = true
1220
	CreateSound(158309736, Torso, 10, 1, false)
1221
	local bv = Instance.new("BodyVelocity",RootPart) 
1222
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1223
	bv.velocity = CF(RootPart.Position,BLOCK.Position).lookVector*150
1224
	Debris:AddItem(bv,0.05)
1225
	repeat wait() until LANDED == true or LOOP > 45
1226
	Debris:AddItem(BLOCKMODEL,5)	
1227
	ATTACK = false
1228
	Rooted = false
1229
end
1230
1231
--//=================================\\
1232
--||	  ASSIGN THINGS TO KEYS
1233
--\\=================================//
1234
1235
function MouseDown(Mouse)
1236
	HOLD = true
1237
	if ATTACK == false then
1238
	end
1239
end
1240
1241
function MouseUp(Mouse)
1242
HOLD = false
1243
end
1244
1245
function KeyDown(Key)
1246
	KEYHOLD = true
1247
	if Key == "z" and ATTACK == false then
1248
		QuestionMarkBlock()
1249
	end
1250
1251
	if Key == "b" and ATTACK == false then
1252
		SwordBeam()
1253
	end
1254
1255
	if Key == "c" and ATTACK == false and SONG == 853518668 then
1256
		Candy()
1257
	end
1258
1259
	if Key == "v" and ATTACK == false then
1260
		Peashooter()
1261
	end
1262
1263
	if Key == "t" and ATTACK == false then
1264
		QuestionMarkBlock2()
1265
	end
1266
end
1267
1268
function KeyUp(Key)
1269
	KEYHOLD = false
1270
end
1271
1272
	Mouse.Button1Down:connect(function(NEWKEY)
1273
		MouseDown(NEWKEY)
1274
	end)
1275
	Mouse.Button1Up:connect(function(NEWKEY)
1276
		MouseUp(NEWKEY)
1277
	end)
1278
	Mouse.KeyDown:connect(function(NEWKEY)
1279
		KeyDown(NEWKEY)
1280
	end)
1281
	Mouse.KeyUp:connect(function(NEWKEY)
1282
		KeyUp(NEWKEY)
1283
	end)
1284
1285
--//=================================\\
1286
--\\=================================//
1287
1288
function unanchor()
1289
	if UNANCHOR == true then
1290
		for _, c in pairs(Character:GetChildren()) do
1291
			if c:IsA("BasePart") then
1292
				c.Anchored = false
1293
			end
1294
		end
1295
	else
1296
		for _, c in pairs(Character:GetChildren()) do
1297
			if c:IsA("BasePart") then
1298
				c.Anchored = true
1299
			end
1300
		end
1301
	end
1302
end
1303
1304
--//=================================\\
1305
--||	WRAP THE WHOLE SCRIPT UP
1306
--\\=================================//
1307
1308
local JUMPED = false
1309
1310
Humanoid.Changed:connect(function(Jump)
1311
	if Jump == "Jump" and (Disable_Jump == true) then
1312
		Humanoid.Jump = false
1313
	elseif Jump == "Jump" and Disable_Jump == false and JUMPED == false then
1314
		JUMPED = true
1315
		CreateSound(158309736, Torso, 10, 1, false)
1316
	end
1317
end)
1318
1319
while true do
1320
	Swait()
1321
	script.Parent = WEAPONGUI
1322
	ANIMATE.Parent = nil
1323
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1324
	    v:Stop();
1325
	end
1326
	Humanoid.JumpPower = 75
1327
	SINE = SINE + CHANGE
1328
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1329
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1330
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1331
	local WALKSPEEDVALUE = 4 / (Humanoid.WalkSpeed / 16)
1332
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1333
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1334
		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)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1335
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.825 - 0.175 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.1- 0.5 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1336
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.825 + 0.175 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.1+ 0.5 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1337
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1338
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1339
		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)
1340
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1341
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1342
	end
1343
	if HITFLOOR == nil then
1344
		ANIM = "Midair"
1345
		local JUMPHIT = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 5, Character)
1346
		if JUMPHIT ~= nil and TORSOVERTICALVELOCITY < 0 then
1347
			if JUMPHIT.Name == "Head" and JUMPHIT:FindFirstChild("Stomped") == nil then
1348
				local HIT = IT("Folder",JUMPHIT)
1349
				HIT.Name = "Stomped"
1350
				CreateSound(165013277, JUMPHIT, 10, 1, false)
1351
				RootPart.Velocity = VT(0,80,0)
1352
				GoombaStomp(JUMPHIT.Parent)
1353
			elseif JUMPHIT.Parent.ClassName == "Accessory" then
1354
				local HEAD = JUMPHIT.Parent.Parent:FindFirstChild("Head")
1355
				if HEAD then
1356
					if HEAD:FindFirstChild("Stomped") == nil then
1357
						local HIT = IT("Folder",HEAD)
1358
						HIT.Name = "Stomped"
1359
						CreateSound(165013277, HEAD, 10, 1, false)
1360
						RootPart.Velocity = VT(0,80,0)
1361
						GoombaStomp(HEAD.Parent)
1362
					end
1363
				end
1364
			end
1365
		end
1366
		local JUMPHIT = Raycast(RootPart.CFrame*CF(1,0,0).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 5, Character)
1367
		if JUMPHIT ~= nil and TORSOVERTICALVELOCITY < 0 then
1368
			if JUMPHIT.Name == "Head" and JUMPHIT:FindFirstChild("Stomped") == nil then
1369
				local HIT = IT("Folder",JUMPHIT)
1370
				HIT.Name = "Stomped"
1371
				CreateSound(165013277, JUMPHIT, 10, 1, false)
1372
				RootPart.Velocity = VT(0,80,0)
1373
				GoombaStomp(JUMPHIT.Parent)
1374
			elseif JUMPHIT.Parent.ClassName == "Accessory" then
1375
				local HEAD = JUMPHIT.Parent.Parent:FindFirstChild("Head")
1376
				if HEAD then
1377
					if HEAD:FindFirstChild("Stomped") == nil then
1378
						local HIT = IT("Folder",HEAD)
1379
						HIT.Name = "Stomped"
1380
						CreateSound(165013277, HEAD, 10, 1, false)
1381
						RootPart.Velocity = VT(0,80,0)
1382
						GoombaStomp(HEAD.Parent)
1383
					end
1384
				end
1385
			end
1386
		end
1387
		local JUMPHIT = Raycast(RootPart.CFrame*CF(-1,0,0).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 5, Character)
1388
		if JUMPHIT ~= nil and TORSOVERTICALVELOCITY < 0 then
1389
			if JUMPHIT.Name == "Head" and JUMPHIT:FindFirstChild("Stomped") == nil then
1390
				local HIT = IT("Folder",JUMPHIT)
1391
				HIT.Name = "Stomped"
1392
				CreateSound(165013277, JUMPHIT, 10, 1, false)
1393
				RootPart.Velocity = VT(0,80,0)
1394
				GoombaStomp(JUMPHIT.Parent)
1395
			elseif JUMPHIT.Parent.ClassName == "Accessory" then
1396
				local HEAD = JUMPHIT.Parent.Parent:FindFirstChild("Head")
1397
				if HEAD then
1398
					if HEAD:FindFirstChild("Stomped") == nil then
1399
						local HIT = IT("Folder",HEAD)
1400
						HIT.Name = "Stomped"
1401
						CreateSound(165013277, HEAD, 10, 1, false)
1402
						RootPart.Velocity = VT(0,80,0)
1403
						GoombaStomp(HEAD.Parent)
1404
					end
1405
				end
1406
			end
1407
		end
1408
		if ATTACK == false then
1409
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1410
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
1411
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, -0.2) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1412
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1413
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4-sick.PlaybackLoudness/800, -0.7) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1414
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.3) * ANGLES(RAD(-25), RAD(-80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
1415
	    end
1416
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1417
		ANIM = "Idle"
1418
		JUMPED = false
1419
		if ATTACK == false then
1420
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1421
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(0), RAD(7.5-30*SIN(sick.PlaybackLoudness/300)), RAD(0 - 25 * SIN(SINE / 15))), 1 / Animation_Speed)
1422
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(0), RAD(-15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1423
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1424
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1425
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1426
		end
1427
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1428
		ANIM = "Walk"
1429
		JUMPED = false
1430
		if ATTACK == false then
1431
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1+sick.PlaybackLoudness/800) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
1432
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(5 - 2 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(7.5-30*SIN(sick.PlaybackLoudness/300)), RAD(0)), 1 / Animation_Speed)
1433
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
1434
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(0), RAD(55), RAD(-12)) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1435
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1-sick.PlaybackLoudness/800, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-3)), 2 / Animation_Speed)
1436
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1-sick.PlaybackLoudness/800, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(3)), 2 / Animation_Speed)
1437
		end
1438
	end
1439
	unanchor()
1440
	Humanoid.MaxHealth = 999999999999999999*999999999999999999*999999999999999999*999999999999999999
1441
	Humanoid.Health = Humanoid.MaxHealth
1442
	if Rooted == false then
1443
		Disable_Jump = false
1444
		Humanoid.WalkSpeed = Speed
1445
	elseif Rooted == true then
1446
		Disable_Jump = true
1447
		Humanoid.WalkSpeed = 0
1448
	end
1449
	local COLOR = C3((0+sick.PlaybackLoudness/200)/510,(115+sick.PlaybackLoudness/25)/510,(150+sick.PlaybackLoudness*1.5)/610)
1450
	for _, c in pairs(Character:GetChildren()) do
1451
		if c:IsA("BasePart") and c.Name ~= "Detail" then
1452
			c.Material = "Neon"
1453
			if c:FindFirstChildOfClass("ParticleEmitter") then
1454
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1455
			end
1456
			c.Color = BRICKC"Really black".Color
1457
			if c == Head then
1458
				if c:FindFirstChild("face") then
1459
					c.face:remove()
1460
				end
1461
			end
1462
		elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
1463
			c:remove()
1464
		elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
1465
			c:remove()
1466
		elseif c.Name == "Detail" then
1467
			c.Material = "Neon"
1468
			c.Color = COLOR
1469
		end
1470
	end
1471
	if DEAD == false then
1472
		sick.SoundId = "rbxassetid://"..SONG
1473
		sick.Looped = true
1474
		sick.Pitch = 1
1475
		sick.Volume = 2
1476
		sick.Playing = true
1477
		sick.Parent = Torso
1478
	else
1479
		sick:remove()
1480
	end
1481
	Humanoid.Name = "Mr Pixels"
1482
end
1483
1484
--//=================================\\
1485
--\\=================================//
1486
1487
1488
1489
1490
1491
--//====================================================\\--
1492
--||			  		 END OF SCRIPT
1493
--\\====================================================//--