View difference between Paste ID: epyKgHNh and SLwDc5uU
SHOW: | | - or go back to the newest paste.
1-
--//====================================================\\--
1+
2-
--||			   CREATED BY SHACKLUSTER
2+
3-
--\\====================================================//--
3+
4
PlayerGui = Player.PlayerGui
5
Cam = workspace.CurrentCamera
6
Backpack = Player.Backpack
7
Character = Player.Character
8
Humanoid = Character.Humanoid
9
Mouse = Player:GetMouse()
10
RootPart = Character["HumanoidRootPart"]
11
Torso = Character["Torso"]
12
Head = Character["Head"]
13
RightArm = Character["Right Arm"]
14
LeftArm = Character["Left Arm"]
15
RightLeg = Character["Right Leg"]
16
LeftLeg = Character["Left Leg"]
17
RootJoint = RootPart["RootJoint"]
18
Neck = Torso["Neck"]
19
RightShoulder = Torso["Right Shoulder"]
20
LeftShoulder = Torso["Left Shoulder"]
21
RightHip = Torso["Right Hip"]
22
LeftHip = Torso["Left Hip"]
23
24
IT = Instance.new
25
CF = CFrame.new
26
VT = Vector3.new
27
RAD = math.rad
28
C3 = Color3.new
29
UD2 = UDim2.new
30
BRICKC = BrickColor.new
31
ANGLES = CFrame.Angles
32
EULER = CFrame.fromEulerAnglesXYZ
33
COS = math.cos
34
ACOS = math.acos
35
SIN = math.sin
36
ASIN = math.asin
37
ABS = math.abs
38
MRANDOM = math.random
39
FLOOR = math.floor
40
41
42
43
Animation_Speed = 3
44
Frame_Speed = 1 / 60 
45-
--//=================================\\
45+
46-
--|| 	      USEFUL VALUES
46+
47-
--\\=================================//
47+
48
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
49
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
50-
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
50+
51
local ANIM = "Idle"
52
local ATTACK = false
53
local EQUIPPED = false
54
local HOLD = false
55
local COMBO = 1
56
local Rooted = false
57
local SINE = 0
58
local KEYHOLD = false
59
local CHANGE = 2 / Animation_Speed
60
local WALKINGANIM = false
61
local VALUE1 = false
62
local VALUE2 = false
63
local ROBLOXIDLEANIMATION = IT("Animation")
64
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
65
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
66
--ROBLOXIDLEANIMATION.Parent = Humanoid
67
local WEAPONGUI = IT("ScreenGui", PlayerGui)
68
WEAPONGUI.Name = "Weapon GUI"
69
local Weapon = IT("Model")
70
Weapon.Name = "Adds"
71
local Effects = IT("Folder", Weapon)
72
Effects.Name = "Effects"
73
local ANIMATOR = Humanoid.Animator
74
local ANIMATE = Character.Animate
75
local UNANCHOR = true
76
local CYAN = BRICKC"Really red".Color
77
local ICONS = {"413366777"}
78
79
80
81
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
82-
local CYAN = BRICKC"Cyan".Color
82+
83-
local ICONS = {"167300717","413366101","839798346","413372165","413366777","132769874","99340890","413364594","64940934","99340699"}
83+
84
	frame.BorderSizePixel = BORDERSIZEPIXEL
85-
--//=================================\\
85+
86-
--\\=================================//
86+
87
	frame.BackgroundColor3 = COLOR
88
	frame.BorderColor3 = BORDERCOLOR
89-
--//=================================\\
89+
90-
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
90+
91-
--\\=================================//
91+
92
end
93
94
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
95
	local label = IT("TextLabel")
96
	label.BackgroundTransparency = 1
97
	label.Size = UD2(1, 0, 1, 0)
98
	label.Position = UD2(0, 0, 0, 0)
99
	label.TextColor3 = TEXTCOLOR
100
	label.TextStrokeTransparency = STROKETRANSPARENCY
101
	label.TextTransparency = TRANSPARENCY
102
	label.FontSize = TEXTFONTSIZE
103
	label.Font = TEXTFONT
104
	label.BorderSizePixel = BORDERSIZEPIXEL
105
	label.TextScaled = false
106
	label.Text = TEXT
107
	label.Name = NAME
108
	label.Parent = PARENT
109
	return label
110
end
111
112
113
ArtificialHB = Instance.new("BindableEvent", script)
114
ArtificialHB.Name = "ArtificialHB"
115
116
script:WaitForChild("ArtificialHB")
117
118
frame = Frame_Speed
119
tf = 0
120
allowframeloss = false
121
tossremainder = false
122
lastframe = tick()
123
script.ArtificialHB:Fire()
124
125-
--//=================================\\
125+
126-
--\\=================================//
126+
127
	if tf >= frame then
128-
--//=================================\\
128+
129-
--|| 	      SOME FUNCTIONS
129+
130-
--\\=================================//
130+
131
		else
132
			for i = 1, math.floor(tf / frame) do
133
				script.ArtificialHB:Fire()
134
			end
135
		lastframe = tick()
136
		end
137
		if tossremainder then
138
			tf = 0
139
		else
140
			tf = tf - frame * math.floor(tf / frame)
141
		end
142
	end
143
end)
144
145
146
147
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
148
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
149
end
150
151
function PositiveAngle(NUMBER)
152
	if NUMBER >= 0 then
153
		NUMBER = 0
154
	end
155
	return NUMBER
156
end
157
158
function NegativeAngle(NUMBER)
159
	if NUMBER <= 0 then
160
		NUMBER = 0
161
	end
162
	return NUMBER
163
end
164
165
function Swait(NUMBER)
166
	if NUMBER == 0 or NUMBER == nil then
167
		ArtificialHB.Event:wait()
168
	else
169
		for i = 1, NUMBER do
170
			ArtificialHB.Event:wait()
171
		end
172
	end
173
end
174
175
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
176
	local NEWMESH = IT(MESH)
177
	if MESH == "SpecialMesh" then
178
		NEWMESH.MeshType = MESHTYPE
179
		if MESHID ~= "nil" and MESHID ~= "" then
180
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
181
		end
182
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
183
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
184
		end
185
	end
186
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
187
	NEWMESH.Scale = SCALE
188
	NEWMESH.Parent = PARENT
189
	return NEWMESH
190
end
191
192
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
193
	local NEWPART = IT("Part")
194
	NEWPART.formFactor = FORMFACTOR
195
	NEWPART.Reflectance = REFLECTANCE
196
	NEWPART.Transparency = TRANSPARENCY
197
	NEWPART.CanCollide = false
198
	NEWPART.Locked = true
199
	NEWPART.Anchored = true
200
	if ANCHOR == false then
201
		NEWPART.Anchored = false
202
	end
203
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
204
	NEWPART.Name = NAME
205
	NEWPART.Size = SIZE
206
	NEWPART.Position = Torso.Position
207
	NEWPART.Material = MATERIAL
208
	NEWPART:BreakJoints()
209
	NEWPART.Parent = PARENT
210
	return NEWPART
211
end
212
213
	local function weldBetween(a, b)
214
	    local weldd = Instance.new("ManualWeld")
215
	    weldd.Part0 = a
216
	    weldd.Part1 = b
217
	    weldd.C0 = CFrame.new()
218
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
219
	    weldd.Parent = a
220
	    return weldd
221
	end
222
223
224
function QuaternionFromCFrame(cf)
225
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
226
	local trace = m00 + m11 + m22
227
	if trace > 0 then 
228
		local s = math.sqrt(1 + trace)
229
		local recip = 0.5 / s
230
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
231
	else
232
		local i = 0
233
		if m11 > m00 then
234
			i = 1
235
		end
236
		if m22 > (i == 0 and m00 or m11) then
237
			i = 2
238
		end
239
		if i == 0 then
240
			local s = math.sqrt(m00 - m11 - m22 + 1)
241
			local recip = 0.5 / s
242
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
243
		elseif i == 1 then
244
			local s = math.sqrt(m11 - m22 - m00 + 1)
245
			local recip = 0.5 / s
246
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
247
		elseif i == 2 then
248
			local s = math.sqrt(m22 - m00 - m11 + 1)
249
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
250
		end
251
	end
252
end
253
 
254
function QuaternionToCFrame(px, py, pz, x, y, z, w)
255
	local xs, ys, zs = x + x, y + y, z + z
256
	local wx, wy, wz = w * xs, w * ys, w * zs
257
	local xx = x * xs
258
	local xy = x * ys
259
	local xz = x * zs
260
	local yy = y * ys
261
	local yz = y * zs
262
	local zz = z * zs
263
	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))
264
end
265
 
266
function QuaternionSlerp(a, b, t)
267
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
268
	local startInterp, finishInterp;
269
	if cosTheta >= 0.0001 then
270
		if (1 - cosTheta) > 0.0001 then
271
			local theta = ACOS(cosTheta)
272
			local invSinTheta = 1 / SIN(theta)
273
			startInterp = SIN((1 - t) * theta) * invSinTheta
274
			finishInterp = SIN(t * theta) * invSinTheta
275
		else
276
			startInterp = 1 - t
277
			finishInterp = t
278
		end
279
	else
280
		if (1 + cosTheta) > 0.0001 then
281
			local theta = ACOS(-cosTheta)
282
			local invSinTheta = 1 / SIN(theta)
283
			startInterp = SIN((t - 1) * theta) * invSinTheta
284
			finishInterp = SIN(t * theta) * invSinTheta
285
		else
286
			startInterp = t - 1
287
			finishInterp = t
288
		end
289
	end
290
	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
291
end
292
293
function Clerp(a, b, t)
294
	local qa = {QuaternionFromCFrame(a)}
295
	local qb = {QuaternionFromCFrame(b)}
296
	local ax, ay, az = a.x, a.y, a.z
297
	local bx, by, bz = b.x, b.y, b.z
298
	local _t = 1 - t
299
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
300
end
301
302
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
303
	local frame = IT("Frame")
304
	frame.BackgroundTransparency = TRANSPARENCY
305
	frame.BorderSizePixel = BORDERSIZEPIXEL
306
	frame.Position = POSITION
307
	frame.Size = SIZE
308
	frame.BackgroundColor3 = COLOR
309
	frame.BorderColor3 = BORDERCOLOR
310
	frame.Name = NAME
311
	frame.Parent = PARENT
312
	return frame
313
end
314
315
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
316
	local label = IT("TextLabel")
317
	label.BackgroundTransparency = 1
318
	label.Size = UD2(1, 0, 1, 0)
319
	label.Position = UD2(0, 0, 0, 0)
320
	label.TextColor3 = TEXTCOLOR
321
	label.TextStrokeTransparency = STROKETRANSPARENCY
322
	label.TextTransparency = TRANSPARENCY
323
	label.FontSize = TEXTFONTSIZE
324
	label.Font = TEXTFONT
325
	label.BorderSizePixel = BORDERSIZEPIXEL
326
	label.TextScaled = false
327
	label.Text = TEXT
328
	label.Name = NAME
329
	label.Parent = PARENT
330
	return label
331
end
332
333
function NoOutlines(PART)
334
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
335
end
336
337
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
338
	local NEWWELD = IT(TYPE)
339
	NEWWELD.Part0 = PART0
340
	NEWWELD.Part1 = PART1
341
	NEWWELD.C0 = C0
342
	NEWWELD.C1 = C1
343
	NEWWELD.Parent = PARENT
344
	return NEWWELD
345
end
346
347
local S = IT("Sound")
348
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
349
	local NEWSOUND = nil
350
	coroutine.resume(coroutine.create(function()
351
		NEWSOUND = S:Clone()
352
		NEWSOUND.Parent = PARENT
353
		NEWSOUND.Volume = VOLUME
354
		NEWSOUND.Pitch = PITCH
355
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
356
		NEWSOUND:play()
357
		if DOESLOOP == true then
358
			NEWSOUND.Looped = true
359
		else
360
			repeat Swait() until NEWSOUND.Playing == false
361
			NEWSOUND:remove()
362
		end
363
	end))
364
	return NEWSOUND
365
end
366
367
function CFrameFromTopBack(at, top, back)
368
	local right = top:Cross(back)
369
	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)
370
end
371
372
--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})
373
function WACKYEFFECT(Table)
374
	local TYPE = (Table.EffectType or "Sphere")
375
	local SIZE = (Table.Size or VT(1,1,1))
376
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
377
	local TRANSPARENCY = (Table.Transparency or 0)
378
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
379
	local CFRAME = (Table.CFrame or Torso.CFrame)
380
	local MOVEDIRECTION = (Table.MoveToPos or nil)
381
	local ROTATION1 = (Table.RotationX or 0)
382
	local ROTATION2 = (Table.RotationY or 0)
383
	local ROTATION3 = (Table.RotationZ or 0)
384
	local MATERIAL = (Table.Material or "Neon")
385
	local COLOR = (Table.Color or C3(1,1,1))
386
	local TIME = (Table.Time or 45)
387
	local SOUNDID = (Table.SoundID or nil)
388
	local SOUNDPITCH = (Table.SoundPitch or nil)
389
	local SOUNDVOLUME = (Table.SoundVolume or nil)
390
	coroutine.resume(coroutine.create(function()
391
		local PLAYSSOUND = false
392
		local SOUND = nil
393
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
394
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
395
			PLAYSSOUND = true
396
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
397
		end
398
		EFFECT.Color = COLOR
399
		local MSH = nil
400
		if TYPE == "Sphere" then
401
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
402
		elseif TYPE == "Block" then
403
			MSH = IT("BlockMesh",EFFECT)
404
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
405
		elseif TYPE == "Wave" then
406
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
407
		elseif TYPE == "Ring" then
408
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.01), VT(0,0,0))
409
		elseif TYPE == "Slash" then
410
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
411
		elseif TYPE == "Round Slash" then
412
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
413
		elseif TYPE == "Swirl" then
414
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
415
		elseif TYPE == "Skull" then
416
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
417
		elseif TYPE == "Crystal" then
418
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
419
		elseif TYPE == "Box" then
420
			MSH = IT("BlockMesh",EFFECT)
421
			MSH.Scale = SIZE
422
		end
423
		if MSH ~= nil then
424
			local MOVESPEED = nil
425
			if MOVEDIRECTION ~= nil then
426
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
427
			end
428
			local GROWTH = SIZE - ENDSIZE
429
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
430
			if TYPE == "Block" then
431
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
432
			else
433
				EFFECT.CFrame = CFRAME
434
			end
435
			for LOOP = 1, TIME do
436
				Swait()
437
				MSH.Scale = MSH.Scale - GROWTH/TIME
438
				if TYPE == "Wave" then
439
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
440
				end
441
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
442
				if TYPE == "Block" then
443
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
444
				else
445
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
446
				end
447
				if MOVEDIRECTION ~= nil then
448
					local ORI = EFFECT.Orientation
449
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
450
					EFFECT.Orientation = ORI
451
				end
452
			end
453
			if PLAYSSOUND == false then
454
				EFFECT:remove()
455
			else
456
				repeat Swait() until SOUND.Playing == false
457
				EFFECT:remove()
458
			end
459
		else
460
			if PLAYSSOUND == false then
461
				EFFECT:remove()
462
			else
463
				repeat Swait() until SOUND.Playing == false
464
				EFFECT:remove()
465
			end
466
		end
467
	end))
468
end
469
470
function MakeForm(PART,TYPE)
471
	if TYPE == "Cyl" then
472
		local MSH = IT("CylinderMesh",PART)
473
	elseif TYPE == "Ball" then
474
		local MSH = IT("SpecialMesh",PART)
475
		MSH.MeshType = "Sphere"
476
	elseif TYPE == "Wedge" then
477
		local MSH = IT("SpecialMesh",PART)
478-
--//=================================\\
478+
479-
--||	     WEAPON CREATION
479+
480-
--\\=================================//
480+
481
482
Debris = game:GetService("Debris")
483
484
function CastProperRay(StartPos, EndPos, Distance, Ignore)
485
	local DIRECTION = CF(StartPos,EndPos).lookVector
486
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
487
end
488
489
function turnto(position)
490
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
491
end
492
493
494
495
RightArm:remove()
496
LeftArm:remove()
497
RightLeg:remove()
498
LeftLeg:remove()
499
Humanoid.HipHeight = 6
500
Head:ClearAllChildren()
501
Head.Transparency = 1
502
Torso.Transparency = 1
503
504-
local SCREEN = CreatePart(3, Weapon, "Neon", 0, 0, "Bright blue", "SCREEN", VT(1.8,1.8,0.45),false)
504+
505
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BOX, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
506-
local Eye1 = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Eyeball", VT(0.3,0.7,0.2),false)
506+
507
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BOX, CF(0,0,0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
508
local BOX = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "BOX", VT(2,0.2,0.5),false)
509
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BOX, CF(0,0.9,-0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
510-
local Eye2 = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Eyeball", VT(0.3,0.7,0.2),false)
510+
511
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BOX, CF(0,-0.9,-0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
512
local BOX = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "BOX", VT(0.2,1.8,0.5),false)
513
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BOX, CF(0.9,0,-0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
514
local BOX = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "BOX", VT(0.2,1.8,0.5),false)
515-
local TIE = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "TIE", VT(0,0,0),false)
515+
516
517
local SCREEN = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "SCREEN", VT(1.8,1.8,0.45),false)
518
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, SCREEN, CF(0,0,-0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
519
local Eye1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eyeball", VT(0.3,0.7,0.2),false)
520
MakeForm(Eye1,"Ball")
521
Eye1.Color = C3(0,0,0)
522
CreateWeldOrSnapOrMotor("Weld", SCREEN, SCREEN, Eye1, CF(0.3,0.2,-0.2) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
523
local Eye2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eyeball", VT(0.3,0.7,0.2),false)
524
MakeForm(Eye2,"Ball")
525
Eye2.Color = C3(0,0,0)
526
CreateWeldOrSnapOrMotor("Weld", SCREEN, SCREEN, Eye2, CF(-0.3,0.2,-0.2) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
527
528
local TIE = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "TIE", VT(0,0,0),false)
529
local TIEWELD = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, TIE, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,1.8,0.65))
530
CreateMesh("SpecialMesh", TIE, "FileMesh", "28463033", "28463022", VT(1,1,1)*1.5, VT(0,0,0))
531
532
for _, c in pairs(Weapon:GetChildren()) do
533
	if c.ClassName == "Part" then
534
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
535-
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
535+
536-
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
536+
537-
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
537+
538-
local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
538+
539
local SKILLFONT = "SciFi"
540-
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Chuck", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
540+
541-
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Suck", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
541+
542-
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Disable", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
542+
local ATTACKS = {"Chuck - Z","Suck - B","Disable - C","Warp - V"}
543-
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 4")
543+
544
for i = 1, #ATTACKS do
545-
--//=================================\\
545+
	local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.74, 0, 0.97-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
546-
--||	     DAMAGE FUNCTIONS
546+
	local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKS[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text")
547-
--\\=================================//
547+
	SKILLTEXT.TextXAlignment = "Right"
548
	SKILLTEXT.Rotation = i*3
549
end
550
551
local HEALTHBAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(1-0.20, 0, 0.75, 0), UD2(0.20, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Health Bar") 
552
local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Really red".Color, C3(0, 0, 0),"Health Cover")
553
local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP")
554
Character.Health:remove()
555
HEALTHBAR.Rotation = (#ATTACKS*3)+3
556
local WHOAMI = CreateFrame(WEAPONGUI, 1, 1, UD2(1-0.26, 0, 0.69, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Ban") 
557
WHOAMI.Rotation = (#ATTACKS*3)+3
558
CreateLabel(WHOAMI, "Studio", SKILLTEXTCOLOR, SKILLTEXTSIZE+4, SKILLFONT, 0, 2, 0, "Yes")
559
560
Weapon.Parent = Character
561
562
Humanoid.Died:connect(function()
563
	ATTACK = true
564
end)
565
566
567
568
function StatLabel(CFRAME, TEXT, COLOR)
569
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
570
	STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
571
	local BODYGYRO = IT("BodyGyro", STATPART)
572
	game:GetService("Debris"):AddItem(STATPART ,5)
573
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
574
	BILLBOARDGUI.Adornee = STATPART
575
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
576
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
577
	BILLBOARDGUI.AlwaysOnTop = false
578
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
579
	TEXTLABEL.BackgroundTransparency = 1
580-
--//=================================\\
580+
581-
--||			DAMAGING
581+
582-
--\\=================================//
582+
583
	TEXTLABEL.FontSize="Size42"
584
	TEXTLABEL.TextColor3 = COLOR
585
	TEXTLABEL.TextStrokeTransparency = 0
586
	TEXTLABEL.TextScaled = true
587
	TEXTLABEL.TextWrapped = true
588
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
589
		for i = 1, 50 do
590
			Swait()
591
			STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
592
			TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
593
			TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
594
		end
595
		THEPART.Parent = nil
596
	end),STATPART, TEXTLABEL)
597
end
598
599
600
601
function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
602
	if Humanoid.MaxHealth == math.huge then
603
		Humanoid.Parent:BreakJoints()
604
		local TORS = Humanoid.Parent:FindFirstChild("Torso") or Humanoid.Parent:FindFirstChild("UpperTorso")
605
			local REMAIN = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Idk lol", VT(3,3,3),false)
606
			REMAIN.CFrame = TORS.CFrame
607
			REMAIN.CanCollide = true
608
			local GUI = Instance.new("BillboardGui",REMAIN)
609
			GUI.Size = UDim2.new(3,0,3,0)
610
			GUI.Adornee = REMAIN
611
			local GUI2 = IT("ImageLabel",GUI)
612
			GUI2.BackgroundTransparency = 1
613
			GUI2.BorderSizePixel = 0
614
			GUI2.Size = UDim2.new(1,0,1,0)
615
			GUI2.SizeConstraint = "RelativeYY"
616
			GUI2.Image = "http://www.roblox.com/asset/?id=167300717"
617
			CreateSound("681582832", REMAIN, 3, 1, false)
618
			Debris:AddItem(REMAIN,15)
619
		if TORS then
620
		end
621
		Humanoid.Parent:remove()
622
	else
623
		local defence = Instance.new("BoolValue",Humanoid.Parent)
624
		defence.Name = ("HitBy"..Player.Name)
625
		game:GetService("Debris"):AddItem(defence, 0.001)
626
		Damage = Damage * DAMAGEMULTIPLIER
627
		if Humanoid.Health ~= 0 then
628
			local CritChance = MRANDOM(1,100)
629
			if CritChance < CritRate + 1 then
630
				Damage = Damage*CritMultiplier
631
			end
632
			if Damage > Humanoid.Health then
633
				Damage = math.ceil(Humanoid.Health)
634
				if Damage == 0 then
635
					Damage = 0.1
636
				end
637
			end
638
			Humanoid.Health = Humanoid.Health - Damage
639
			if Humanoid.Parent:FindFirstChild("Head") then
640
				if CritChance < CritRate + 1 then
641
					StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
642
				else
643-
					CreateSound("681582832", REMAIN, 3, 1, false)
643+
644
				end
645
			end
646
			if Humanoid.Health == 0 or Humanoid.MaxHealth == "inf" then
647
				local TORS = Humanoid.Parent:FindFirstChild("Torso") or Humanoid.Parent:FindFirstChild("UpperTorso")
648
					local REMAIN = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Idk lol", VT(3,3,3),false)
649
					REMAIN.CFrame = TORS.CFrame
650
					REMAIN.CanCollide = true
651
					local GUI = Instance.new("BillboardGui",REMAIN)
652
					GUI.Size = UDim2.new(3,0,3,0)
653-
--//=================================\\
653+
654-
--||	ATTACK FUNCTIONS AND STUFF
654+
655-
--\\=================================//
655+
656
					GUI2.BorderSizePixel = 0
657
					GUI2.Size = UDim2.new(1,0,1,0)
658
					GUI2.SizeConstraint = "RelativeYY"
659
					GUI2.Image = "http://www.roblox.com/asset/?id=167300717"
660
					CreateSound("1846613015", REMAIN, 3, 1, false)
661
					Debris:AddItem(REMAIN,15)
662
				if TORS then
663
				end
664
				Humanoid.Parent:remove()
665
			end
666
		end
667
	end
668
end
669
670
671
672
function Chuck()
673
	ATTACK = false
674
	Rooted = false
675
	CreateSound("11900833", SCREEN, 3, 1, false)
676
	coroutine.resume(coroutine.create(function()
677
		local TOCHUCK = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Idk lol", VT(1,1,1))
678
		TOCHUCK.CFrame = CF(SCREEN.Position,Mouse.Hit.p)
679
		local GUI = Instance.new("BillboardGui",TOCHUCK)
680
		GUI.Size = UDim2.new(1,0,1,0)
681-
						ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(7,14),4,3)
681+
682
		local GUI2 = IT("ImageLabel",GUI)
683
		GUI2.BackgroundTransparency = 1
684
		GUI2.BorderSizePixel = 0
685
		GUI2.Size = UDim2.new(1,0,1,0)
686
		GUI2.SizeConstraint = "RelativeYY"
687
		GUI2.Image = "http://www.roblox.com/asset/?id="..ICONS[MRANDOM(1,#ICONS)]
688
		for i = 1, 100 do
689
			Swait()
690
			TOCHUCK.CFrame = TOCHUCK.CFrame*CF(0,0,-1)
691
			local HIT = Raycast(TOCHUCK.Position, TOCHUCK.CFrame.lookVector, 1.5, Character)
692
			if HIT ~= nil then
693
				if HIT.Parent.ClassName == "Model" then
694
					if HIT.Parent:FindFirstChildOfClass("Humanoid") then
695
						CreateSound("131237241", HIT, 3, 1, false)
696
						ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"),0.01,50,10)
697
						local bv = Instance.new("BodyVelocity") 
698
						bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
699
						bv.velocity = CF(TOCHUCK.Position,HIT.Position).lookVector*15
700
						bv.Parent = HIT
701
						Debris:AddItem(bv,0.1)
702-
						ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(7,14),4,3)
702+
703
						bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
704
						bv.velocity = CF(HIT.Position,TOCHUCK.Position).lookVector*15
705
						bv.Parent = TOCHUCK
706
						Debris:AddItem(bv,0.1)
707
					end
708
				end
709
				break
710
			end
711
			TOCHUCK.CFrame = TOCHUCK.CFrame*CF(0,0,-1)
712
			local HIT = Raycast(TOCHUCK.Position, TOCHUCK.CFrame.lookVector, 1.5, Character)
713
			if HIT ~= nil then
714
				if HIT.Parent.ClassName == "Model" then
715
					if HIT.Parent:FindFirstChildOfClass("Humanoid") then
716
						CreateSound("131237241", HIT, 3, 1, false)
717
						ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"),0.01,50,10)
718
						local bv = Instance.new("BodyVelocity") 
719
						bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
720
						bv.velocity = CF(TOCHUCK.Position,HIT.Position).lookVector*15
721
						bv.Parent = HIT
722
						Debris:AddItem(bv,0.1)
723
						local bv = Instance.new("BodyVelocity") 
724
						bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
725
						bv.velocity = CF(HIT.Position,TOCHUCK.Position).lookVector*15
726
						bv.Parent = TOCHUCK
727
						Debris:AddItem(bv,0.1)
728
					end
729
				end
730
				break
731
			end
732
		end
733
		TOCHUCK.CanCollide = true
734
		TOCHUCK.Anchored = false
735
		Debris:AddItem(TOCHUCK,5)
736
	end))
737
738
	for i=0, 0.2, 0.1 / Animation_Speed do
739
		Swait()
740
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
741
		TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(-5), RAD(0), RAD(0))* CF(0,0,-0.1), 1 / Animation_Speed)
742
	end
743
	ATTACK = false
744
	Rooted = false
745
end
746
747
function Suck()
748
	local target = nil
749
	local targettorso = nil
750
	if Mouse.Target ~= nil then
751
		if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
752
			target = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
753
			targettorso = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") or Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
754
		end
755
	end
756
	if target ~= nil then
757
		VALUE1 = true
758
		CreateSound("131228548", SCREEN, 10, 1, false)
759
		targettorso.Anchored = true
760
		local GYRO = IT("BodyGyro",RootPart)
761
		GYRO.D = 100
762
		GYRO.P = 2000
763
		GYRO.MaxTorque = VT(0,999999999999999999,0)
764
		GYRO.cframe = CF(RootPart.Position,targettorso.Position)
765
		wait(1.5)
766
		GYRO:remove()
767
		coroutine.resume(coroutine.create(function()
768
			local DISTANCE = 10
769
			local REEEE = CreateSound("1278710301", targettorso, 5, 1, true)
770
			repeat
771
				Swait()
772
				targettorso.CFrame = CF(targettorso.Position,RootPart.Position)*CF(0,0,-1)
773
				DISTANCE = (targettorso.Position - RootPart.Position).Magnitude
774
				targettorso.Anchored = true
775
				target.PlatformStand = true
776
			until DISTANCE < 5
777
			REEEE.Looped = false
778
			targettorso.Anchored = false
779
			wait(0.5)
780
			target.PlatformStand = false
781
		end))
782
		VALUE1 = false
783
	end
784
end
785
786
function Disable()
787
	local target = nil
788
	local targettorso = nil
789
	if Mouse.Target ~= nil then
790
		if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
791
			target = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
792
			targettorso = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") or Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
793
		end
794
	end
795
	if target ~= nil then
796
		VALUE1 = true
797
		targettorso.Anchored = true
798
		CreateSound("191456748", SCREEN, 10, 1, false)
799
		local GYRO = IT("BodyGyro",RootPart)
800
		GYRO.D = 100
801
		GYRO.P = 2000
802
		GYRO.MaxTorque = VT(0,999999999999999999,0)
803
		GYRO.cframe = CF(RootPart.Position,targettorso.Position)
804
		wait(1)
805
		WACKYEFFECT({Time = 75, EffectType = "Ring", Size = VT(0.01,0.01,0.01), Size2 = VT(5,5,0.01), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,-2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 314970790, SoundPitch = 1, SoundVolume = 3})
806
		GYRO:remove()
807
		targettorso.CFrame = CF(targettorso.Position,RootPart.Position)
808
		targettorso.Anchored = false
809
		for _, c in pairs(target.Parent:GetChildren()) do
810
			if c.ClassName == "LocalScript" then
811
				local TOCHUCK = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Idk lol", VT(1,1,1))
812
				TOCHUCK.CFrame = targettorso.CFrame
813
				local GUI = Instance.new("BillboardGui",TOCHUCK)
814
				GUI.Size = UDim2.new(1,0,1,0)
815
				GUI.Adornee = TOCHUCK
816
				local GUI2 = IT("ImageLabel",GUI)
817
				GUI2.BackgroundTransparency = 1
818
				GUI2.BorderSizePixel = 0
819
				GUI2.Size = UDim2.new(1,0,1,0)
820
				GUI2.SizeConstraint = "RelativeYY"
821
				GUI2.Image = "http://www.roblox.com/asset/?id=99340858"
822
				c.Disabled = true
823
				c.Parent = TOCHUCK
824
				coroutine.resume(coroutine.create(function()
825
					wait()
826
					TOCHUCK.Anchored = false
827
					TOCHUCK.CanCollide = true
828
				end))
829
				coroutine.resume(coroutine.create(function()
830
					wait(MRANDOM(3,6))
831
					local DISTANCE = 10
832
					TOCHUCK.Anchored = true
833
					TOCHUCK.CanCollide = false
834
					repeat
835
						Swait()
836
						TOCHUCK.CFrame = CF(TOCHUCK.Position,RootPart.Position)*CF(0,0,-1)
837
						DISTANCE = (TOCHUCK.Position - RootPart.Position).Magnitude
838
					until DISTANCE < 2
839
					TOCHUCK:remove()
840
				end))
841
			elseif c.ClassName == "Script" then
842
				local TOCHUCK = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Idk lol", VT(1,1,1))
843
				TOCHUCK.CFrame = targettorso.CFrame
844
				local GUI = Instance.new("BillboardGui",TOCHUCK)
845
				GUI.Size = UDim2.new(1,0,1,0)
846
				GUI.Adornee = TOCHUCK
847
				local GUI2 = IT("ImageLabel",GUI)
848
				GUI2.BackgroundTransparency = 1
849
				GUI2.BorderSizePixel = 0
850
				GUI2.Size = UDim2.new(1,0,1,0)
851
				GUI2.SizeConstraint = "RelativeYY"
852
				GUI2.Image = "http://www.roblox.com/asset/?id=99340890"
853
				c.Disabled = true
854
				c.Parent = TOCHUCK
855
				coroutine.resume(coroutine.create(function()
856
					wait()
857
					TOCHUCK.Anchored = false
858
					TOCHUCK.CanCollide = true
859-
		CreateSound("330010786", targettorso, 10, 1, false)
859+
860
				coroutine.resume(coroutine.create(function()
861
					wait(MRANDOM(3,6))
862
					local DISTANCE = 10
863
					TOCHUCK.Anchored = true
864
					TOCHUCK.CanCollide = false
865
					repeat
866
						Swait()
867
						TOCHUCK.CFrame = CF(TOCHUCK.Position,RootPart.Position)*CF(0,0,-1)
868
						DISTANCE = (TOCHUCK.Position - RootPart.Position).Magnitude
869
					until DISTANCE < 1.2
870
					TOCHUCK:remove()
871
				end))
872-
		WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Cyan".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})	
872+
873
		end
874
		target.PlatformStand = true
875
		CreateSound("1846870244", targettorso, 10, 1, false)
876-
		WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Cyan".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})	
876+
877
		bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
878
		bv.velocity = CF(VT(RootPart.Position.X,targettorso.Position.Y-10,RootPart.Position.Z),targettorso.Position).lookVector*350
879
		bv.Parent = targettorso
880
		Debris:AddItem(bv,0.05)
881
		VALUE1 = false
882
	end
883
end
884
885
function Warp()
886
	local FRAME = RootPart.Position
887
	for i = 1, 6 do
888
		WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})	
889
	end
890
	RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z))
891
	for i = 1, 6 do
892
		WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})	
893
	end
894
end
895
896
function HavingFun()
897
	ATTACK = true
898
	VALUE2 = true
899
	Speed = 65
900
	local SONGS = {329896322,162986891,1027314531,171131642,248967176,922850176,966409302,255023933}
901
	local PISS = CreateSound(SONGS[MRANDOM(1,#SONGS)], SCREEN, 10, 1, true)
902
	repeat
903
		for i = 1, 5 do
904
			Swait()
905
			PISS.Parent = SCREEN
906
			SCREEN.Color = CYAN
907
			CYAN = C3(MRANDOM(0,255)/255,MRANDOM(0,255)/255,MRANDOM(0,255)/255)
908
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
909
			TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * CF(0,0,-0.1), 1 / Animation_Speed)
910
		end
911
		for i = 1, 5 do
912
			Swait()
913
			PISS.Parent = SCREEN
914
			SCREEN.Color = CYAN
915
			CYAN = C3(MRANDOM(0,255)/255,MRANDOM(0,255)/255,MRANDOM(0,255)/255)
916
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
917
			TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(0,-0.1,0.2), 1 / Animation_Speed)
918
		end
919
		if MRANDOM(1,15) == 1 then
920
			for i = 1, 15 do
921
				Swait()
922
				if VALUE2 == false then
923
					break
924
				end
925
				PISS.Parent = SCREEN
926
				SCREEN.Color = CYAN
927
				CYAN = C3(MRANDOM(0,255)/255,MRANDOM(0,255)/255,MRANDOM(0,255)/255)
928
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(i*18), RAD(0), RAD(0)), 1 / Animation_Speed)
929
				TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(0,-0.1,0.2), 1 / Animation_Speed)
930
			end
931
		end
932
		if MRANDOM(1,15) == 1 then
933
			for i = 1, 15 do
934
				Swait()
935
				if VALUE2 == false then
936
					break
937
				end
938
				PISS.Parent = SCREEN
939
				SCREEN.Color = CYAN
940
				CYAN = C3(MRANDOM(0,255)/255,MRANDOM(0,255)/255,MRANDOM(0,255)/255)
941
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(i*18)), 1 / Animation_Speed)
942
				TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(0,-0.1,0.2), 1 / Animation_Speed)
943
			end
944
		end
945
		if MRANDOM(1,15) == 1 then
946
			for i = 1, 15 do
947
				Swait()
948
				if VALUE2 == false then
949
					break
950-
--//=================================\\
950+
951-
--||	  ASSIGN THINGS TO KEYS
951+
952-
--\\=================================//
952+
953
				CYAN = C3(MRANDOM(0,255)/255,MRANDOM(0,255)/255,MRANDOM(0,255)/255)
954
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(i*18), RAD(0)), 1 / Animation_Speed)
955
				TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(0,-0.1,0.2), 1 / Animation_Speed)
956
			end
957
		end
958
	until VALUE2 == false
959
	Speed = 16
960
	PISS:remove()
961
	SCREEN.BrickColor = BRICKC"Bright blue"
962
	CYAN = BRICKC"Cyan".Color
963
	ATTACK = false
964
end
965
966
967
968
function KeyDown(Key)
969
	KEYHOLD = true
970
	if VALUE1 == false and ATTACK == false then
971
		if Key == "z" then
972
			Chuck()
973
			Chuck()
974
			Chuck()
975
			Chuck()
976
			Chuck()
977
			Chuck()
978
			Chuck()
979
			Chuck()
980
			Chuck()
981
			Chuck()
982
			Chuck()
983
			Chuck()
984
			Chuck()
985
			Chuck()
986
			Chuck()
987
			Chuck()
988
			Chuck()
989
			Chuck()
990
			Chuck()
991
			Chuck()
992
			Chuck()
993
			Chuck()
994
			Chuck()
995
			Chuck()
996
			Chuck()
997
			Chuck()
998
			Chuck()
999-
--//=================================\\
999+
1000-
--\\=================================//
1000+
1001
			Chuck()
1002
			Chuck()
1003
			Chuck()
1004
			Chuck()
1005
			Chuck()
1006
			Chuck()
1007
			Chuck()
1008
			Chuck()
1009
			Chuck()
1010
			Chuck()
1011
			Chuck()
1012
			Chuck()
1013
			Chuck()
1014
			Chuck()
1015-
--//=================================\\
1015+
1016-
--||	WRAP THE WHOLE SCRIPT UP
1016+
1017-
--\\=================================//
1017+
1018
			Chuck()
1019
			Chuck()
1020
			Chuck()
1021
			Chuck()
1022
			Chuck()
1023
			Chuck()
1024
			Chuck()
1025
			Chuck()
1026
			Chuck()
1027
			Chuck()
1028
			Chuck()
1029
			Chuck()
1030
			Chuck()
1031
			Chuck()
1032
			Chuck()
1033
			Chuck()
1034
			Chuck()
1035
			Chuck()
1036
			Chuck()
1037
			Chuck()
1038
			Chuck()
1039
			Chuck()
1040
			Chuck()
1041
			Chuck()
1042
			Chuck()
1043
			Chuck()
1044
			Chuck()
1045
			Chuck()
1046
			Chuck()
1047
			Chuck()
1048
			Chuck()
1049
			Chuck()
1050
			Chuck()
1051
			Chuck()
1052
			Chuck()
1053
			Chuck()
1054
			Chuck()
1055
			Chuck()
1056
			Chuck()
1057
			Chuck()
1058
			Chuck()
1059
			Chuck()
1060
			Chuck()
1061
			Chuck()
1062
			Chuck()
1063
			Chuck()
1064
			Chuck()
1065
			Chuck()
1066
			Chuck()
1067
			Chuck()
1068
			Chuck()
1069
			Chuck()
1070
			Chuck()
1071
			Chuck()
1072
			Chuck()
1073
			Chuck()
1074
			Chuck()
1075
			Chuck()
1076
			Chuck()
1077
			Chuck()
1078
			Chuck()
1079
			Chuck()
1080
			Chuck()
1081-
--//=================================\\
1081+
1082-
--\\=================================//
1082+
1083
			Chuck()
1084
			Chuck()
1085
			Chuck()
1086
			Chuck()
1087
			Chuck()
1088-
--//====================================================\\--
1088+
1089-
--||			  		 END OF SCRIPT
1089+
1090-
--\\====================================================//--
1090+
1091
			Chuck()
1092
			Chuck()
1093
			Chuck()
1094
			Chuck()
1095
			Chuck()
1096
			Chuck()
1097
			Chuck()
1098
			Chuck()
1099
			Chuck()
1100
			Chuck()
1101
			Chuck()
1102
			Chuck()
1103
			Chuck()
1104
			Chuck()
1105
			Chuck()
1106
			Chuck()
1107
			Chuck()
1108
			Chuck()
1109
			Chuck()
1110
			Chuck()
1111
			Chuck()
1112
			Chuck()
1113
			Chuck()
1114
			Chuck()
1115
			Chuck()
1116
		end
1117
	
1118
		if Key == "b" then
1119
			Suck()
1120
		end
1121
	
1122
		if Key == "c" then
1123
			Disable()
1124
		end
1125
1126
		if Key == "v" then
1127
			Warp()
1128
		end
1129
1130
		if Key == "t" then
1131
			CreateSound("1395854043", Effects, 5, 1, false)
1132
		end
1133
	end
1134
	if (VALUE1 == false and ATTACK == false) or VALUE2 == true then
1135
		if Key == "q" then
1136
			if VALUE2 == false then
1137
				HavingFun()
1138
			elseif VALUE2 == true then
1139
				VALUE2 = false
1140
			end
1141
		end
1142
	end
1143
end
1144
1145
function KeyUp(Key)
1146
	KEYHOLD = false
1147
end
1148
1149
	Mouse.KeyDown:connect(function(NEWKEY)
1150
		KeyDown(NEWKEY)
1151
	end)
1152
	Mouse.KeyUp:connect(function(NEWKEY)
1153
		KeyUp(NEWKEY)
1154
	end)
1155
1156
1157
1158
1159
function unanchor()
1160
	if UNANCHOR == true then
1161
		g = Character:GetChildren()
1162
		for i = 1, #g do
1163
			if g[i].ClassName == "Part" then
1164
				g[i].Anchored = false
1165
			end
1166
		end
1167
	end
1168
end
1169
1170
1171
1172
1173
Humanoid.Changed:connect(function(Jump)
1174
	if Jump == "Jump" and (Disable_Jump == true) then
1175
		Humanoid.Jump = false
1176
	end
1177
end)
1178
1179
local LOOPED = 0
1180
1181
while true do
1182
	Swait()
1183
	script.Parent = WEAPONGUI
1184
	ANIMATE.Parent = nil
1185
	Character.Parent = workspace
1186
	Humanoid.Parent = Character
1187
	if Humanoid then
1188
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1189
		IDLEANIMATION:Play()
1190
	end
1191
	SINE = SINE + CHANGE
1192
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1193
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1194
	local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
1195
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1196
	if ATTACK == false then
1197
		if TORSOVELOCITY < 1 then
1198
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1199
			TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1200
		elseif TORSOVELOCITY > 1 then
1201
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1202
			TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(0,-0.1,0.2), 1 / Animation_Speed)
1203
		end
1204
	end
1205
	unanchor()
1206
	Humanoid.MaxHealth = "inf"
1207
	Humanoid.Health = "inf"
1208
	if Rooted == false then
1209
		Disable_Jump = false
1210
		Humanoid.WalkSpeed = Speed
1211
	elseif Rooted == true then
1212
		Disable_Jump = true
1213
		Humanoid.WalkSpeed = 0
1214
	end
1215
	Head:ClearAllChildren()
1216
	Head.Transparency = 1
1217
	for _, c in pairs(Character:GetChildren()) do
1218
		if c.ClassName == "Part" then
1219
		elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
1220
			c:remove()
1221
		end
1222
	end
1223
	script.Parent = WEAPONGUI
1224
	Humanoid.Name = "Roblox_Studio"
1225
	LOOPED = LOOPED + 1
1226
	if LOOPED == 15 and HITFLOOR then
1227
		LOOPED = 0
1228
		WACKYEFFECT({EffectType = "Ring", Size = VT(0.01,0.01,0.01), Size2 = VT(0.5,0.5,0.01), Transparency = 0.5, Transparency2 = 1, CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(0),RAD(0),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = CYAN, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1229
	end
1230
	if LOOPED > 15 then
1231
		LOOPED = 0
1232
	end
1233
end