View difference between Paste ID: CBGf3XL4 and LMmfvbX4
SHOW: | | - or go back to the newest paste.
1
Player = game.Players.LocalPlayer
2
Character = Player.Character 
3
PlayerGui = Player.PlayerGui
4
Backpack = Player.Backpack 
5
Torso = Character.Torso 
6
Head = Character.Head 
7
Humanoid = Character.Humanoid
8
LeftArm = Character["Left Arm"] 
9
LeftLeg = Character["Left Leg"] 
10
RightArm = Character["Right Arm"] 
11
RightLeg = Character["Right Leg"]
12
PlayerGui = Player.PlayerGui
13
Backpack = Player.Backpack 
14
Torso = Character.Torso 
15
Head = Character.Head 
16
Humanoid = Character.Humanoid
17
LeftArm = Character["Left Arm"] 
18
LeftLeg = Character["Left Leg"] 
19
RightArm = Character["Right Arm"] 
20
RightLeg = Character["Right Leg"] 
21
LS = Torso["Left Shoulder"] 
22
RS = Torso["Right Shoulder"] 
23
Neck = Torso.Neck
24
attacktype = 1
25
vt = Vector3.new
26
cf = CFrame.new
27
euler = CFrame.fromEulerAnglesXYZ
28
angles = CFrame.Angles
29
necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
30
necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
31
LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
32
LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
33
RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
34
RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
35
RootPart = Character.HumanoidRootPart
36
RootJoint = RootPart.RootJoint
37
RootCF = euler(-1.57, 0, 3.14)
38
attack = false
39
equipped = false
40
local Anim = "Idle"
41
local Effects = {}
42
cam = workspace.CurrentCamera
43
ZTarget = nil
44
RocketTarget = nil
45
local RbxUtility = LoadLibrary("RbxUtility")
46
local Create = RbxUtility.Create
47
local m = Create("Model"){
48
	Parent = Character,
49
	Name = "WeaponModel",
50
}
51
mouse = Player:GetMouse()
52
RSH = Torso["Right Shoulder"] 
53
LSH = Torso["Left Shoulder"]
54
RHP = Character.Torso["Right Hip"] 
55
LHP = Character.Torso["Left Hip"]  
56
57
function NoOutline(Part)
58
	Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
59
end
60
function swait(num)
61
	if num == 0 or num == nil then
62
		game:service'RunService'.Heartbeat:wait()
63
	else
64
		for i = 0, num do
65
			game:service'RunService'.Heartbeat:wait()
66
		end
67
	end
68
end
69
	
70
function nooutline(part)
71
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
72
end
73
	
74
function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
75
	local fp = Create("Part"){
76
		formFactor = formfactor,
77
		Parent = parent,
78
		Reflectance = reflectance,
79
		Transparency = transparency,
80
		CanCollide = false,
81
		Locked = true,
82
		BrickColor = BrickColor.new(tostring(brickcolor)),
83
		Name = name,
84
		Size = size,
85
		Position = Character.Torso.Position,
86
		Material = material,
87
	}
88
	nooutline(fp)
89
	return fp
90
end
91
	
92
function mesh(Mesh, part, meshtype, meshid, offset, scale)
93
	local Msh = Create(Mesh){
94
		Parent = part,
95
		Offset = offset,
96
		Scale = scale,
97
	}
98
	if Mesh == "SpecialMesh" then
99
		Msh.MeshType = meshtype
100
		Msh.MeshId = meshid
101
	end
102
	return Msh
103
end
104
	
105
function weld(parent, part0, part1, c0, c1)
106
	local Weld = Create("Weld"){
107
		Parent = parent,
108
		Part0 = part0,
109
		Part1 = part1,
110
		C0 = c0,
111
		C1 = c1,
112
	}
113
	return Weld
114
end
115
	
116
	
117
local function CFrameFromTopBack(at, top, back)
118
	local right = top:Cross(back)
119
	return CFrame.new(at.x, at.y, at.z,
120
right.x, top.x, back.x,
121
right.y, top.y, back.y,
122
right.z, top.z, back.z)
123
end
124
125
function Triangle(a, b, c)
126
	local edg1 = (c - a):Dot((b - a).unit)
127
	local edg2 = (a - b):Dot((c - b).unit)
128
	local edg3 = (b - c):Dot((a - c).unit)
129
	if edg1 <= (b - a).magnitude and edg1 >= 0 then
130
		a, b, c = a, b, c
131
	elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
132
		a, b, c = b, c, a
133
	elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
134
		a, b, c = c, a, b
135
	else
136
		assert(false, "unreachable")
137
	end
138
 
139
	local len1 = (c - a):Dot((b - a).unit)
140
	local len2 = (b - a).magnitude - len1
141
	local width = (a + (b - a).unit * len1 - c).magnitude
142
 
143
	local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
144
 
145
	local list = {}
146
147
	local Color = BrickColor.new("Dark stone grey")
148
 
149
	if len1 > 0.01 then
150
		local w1 = Create('WedgePart', m){
151
			Material = "SmoothPlastic",
152
			FormFactor = 'Custom',
153
			BrickColor = Color,
154
			Transparency = 0,
155
			Reflectance = 0,
156
			Material = "SmoothPlastic",
157
			CanCollide = false,
158
			Anchored = true,
159
			Parent = workspace,
160
			Transparency = 0.3,
161
		}
162
		game:GetService("Debris"):AddItem(w1, 5)
163
		NoOutline(w1)
164
		local sz = Vector3.new(0.2, width, len1)
165
		w1.Size = sz
166
		local sp = Create("SpecialMesh"){
167
			Parent = w1,
168
			MeshType = "Wedge",
169
			Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
170
		}
171
		w1:BreakJoints()
172
		table.insert(Effects, {
173
			w1,
174
			"Disappear",
175
			.03
176
		})
177
		w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
178
		table.insert(list, w1)
179
	end
180
	if len2 > 0.01 then
181
		local w2 = Create('WedgePart', m){
182
			Material = "SmoothPlastic",
183
			FormFactor = 'Custom',
184
			BrickColor = Color,
185
			Transparency = 0,
186
			Reflectance = 0,
187
			Material = "SmoothPlastic",
188
			CanCollide = false,
189
			Anchored = true,
190
			Parent = workspace,
191
			Transparency = 0.3,
192
		}
193
		game:GetService("Debris"):AddItem(w2, 5)
194
		NoOutline(w2)
195
		local sz = Vector3.new(0.2, width, len2)
196
		w2.Size = sz
197
		local sp = Create("SpecialMesh"){
198
			Parent = w2,
199
			MeshType = "Wedge",
200
			Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
201
		}
202
		w2:BreakJoints()
203
		table.insert(Effects, {
204
			w2,
205
			"Disappear",
206
			.03
207
		})
208
		w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
209
		table.insert(list, w2)
210
	end
211
	return unpack(list)
212
end
213
	
214
function so(id, par, vol, pit) 
215
	coroutine.resume(coroutine.create(function()
216
		local sou = Instance.new("Sound", par or workspace)
217
		sou.Volume = vol
218
		sou.Pitch = pit or 1
219
		sou.SoundId = id
220
		swait() 
221
		sou:play() 
222
		swait(6) 
223
		sou:Remove() 
224
	end))
225
end
226
 
227
function clerp(a, b, t)
228
229
	local function QuaternionFromCFrame(cf)
230
		local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
231
		local trace = m00 + m11 + m22
232
		if trace > 0 then
233
			local s = math.sqrt(1 + trace)
234
			local recip = 0.5 / s
235
			return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
236
		else
237
			local i = 0
238
			if m11 > m00 then
239
				i = 1
240
			end
241
			if m22 > (i == 0 and m00 or m11) then
242
				i = 2
243
			end
244
			if i == 0 then
245
				local s = math.sqrt(m00 - m11 - m22 + 1)
246
				local recip = 0.5 / s
247
				return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
248
			elseif i == 1 then
249
				local s = math.sqrt(m11 - m22 - m00 + 1)
250
				local recip = 0.5 / s
251
				return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
252
			elseif i == 2 then
253
				local s = math.sqrt(m22 - m00 - m11 + 1)
254
				local recip = 0.5 / s
255
				return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
256
			end
257
		end
258
	end
259
         
260
	local function QuaternionToCFrame(px, py, pz, x, y, z, w)
261
		local xs, ys, zs = x + x, y + y, z + z
262
		local wx, wy, wz = w * xs, w * ys, w * zs
263
		local xx = x * xs
264
		local xy = x * ys
265
		local xz = x * zs
266
		local yy = y * ys
267
		local yz = y * zs
268
		local zz = z * zs
269
		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))
270
	end
271
         
272
	local function QuaternionSlerp(a, b, t)
273
		local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
274
		local startInterp, finishInterp;
275
		if cosTheta >= 0.0001 then
276
			if (1 - cosTheta) > 0.0001 then
277
				local theta = math.acos(cosTheta)
278
				local invSinTheta = 1 / math.sin(theta)
279
				startInterp = math.sin((1 - t) * theta) * invSinTheta
280
				finishInterp = math.sin(t * theta) * invSinTheta
281
			else
282
				startInterp = 1 - t
283
				finishInterp = t
284
			end
285
		else
286
			if (1 + cosTheta) > 0.0001 then
287
				local theta = math.acos(-cosTheta)
288
				local invSinTheta = 1 / math.sin(theta)
289
				startInterp = math.sin((t - 1) * theta) * invSinTheta
290
				finishInterp = math.sin(t * theta) * invSinTheta
291
			else
292
				startInterp = t - 1
293
				finishInterp = t
294
			end
295
		end
296
		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
297
	end
298
299
	local qa = {
300
		QuaternionFromCFrame(a)
301
	}
302
	local qb = {
303
		QuaternionFromCFrame(b)
304
	}
305
	local ax, ay, az = a.x, a.y, a.z
306
	local bx, by, bz = b.x, b.y, b.z
307
308
	local _t = 1 - t
309
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
310
end
311
312
function rayCast(Pos, Dir, Max, Ignore)
313
	return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
314
end 
315
316
Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
317
	if hit.Parent == nil then
318
		return
319
	end
320
	local h = hit.Parent:FindFirstChild("Humanoid")
321
	for _, v in pairs(hit.Parent:children()) do
322
		if v:IsA("Humanoid") then
323
			h = v
324
		end
325
	end
326
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
327
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
328
			if hit.Parent.DebounceHit.Value == true then
329
				return
330
			end
331
		end
332
		if h.MaxHealth >= math.huge then
333
			hit:BreakJoints()
334
		end
335
		local c = Create("ObjectValue"){
336
			Name = "creator",
337
			Value = game:service("Players").LocalPlayer,
338
			Parent = h,
339
		}
340
		game:GetService("Debris"):AddItem(c, .5)
341
		if HitSound ~= nil and HitPitch ~= nil then
342
			so(HitSound, hit, 1, HitPitch) 
343
		end
344
		local Damage = math.random(minim, maxim)
345
		local blocked = false
346
		local block = hit.Parent:findFirstChild("Block")
347
		if block ~= nil then
348
			if block.className == "IntValue" then
349
				if block.Value > 0 then
350
					blocked = true
351
					block.Value = block.Value - 1
352
					print(block.Value)
353
				end
354
			end
355
		end
356
		if blocked == false then
357
			h.Health = h.Health - Damage
358
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color, Handle.BrickColor.Color)
359
		else
360
			h.Health = h.Health - (Damage / 2)
361
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color, Handle.BrickColor.Color)
362
		end
363
		if Type == "Knockdown" then
364
			local hum = hit.Parent.Humanoid
365
			hum.PlatformStand = true
366
			coroutine.resume(coroutine.create(function(HHumanoid)
367
				swait(1)
368
				HHumanoid.PlatformStand = false
369
			end), hum)
370
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
371
			local bodvol = Create("BodyVelocity"){
372
				velocity = angle * knockback,
373
				P = 5000,
374
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
375
				Parent = hit,
376
			}
377
			local rl = Create("BodyAngularVelocity"){
378
				P = 3000,
379
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
380
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
381
				Parent = hit,
382
			}
383
			game:GetService("Debris"):AddItem(bodvol, .5)
384
			game:GetService("Debris"):AddItem(rl, .5)
385
		elseif Type == "Normal" then
386
			local vp = Create("BodyVelocity"){
387
				P = 500,
388
				maxForce = Vector3.new(math.huge, 0, math.huge),
389
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
390
			}
391
			if knockback > 0 then
392
				vp.Parent = hit.Parent.Torso
393
			end
394
			game:GetService("Debris"):AddItem(vp, .5)
395
		elseif Type == "Up" then
396
			local bodyVelocity = Create("BodyVelocity"){
397
				velocity = vt(0, 20, 0),
398
				P = 5000,
399
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
400
				Parent = hit,
401
			}
402
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
403
		elseif Type == "Snare" then
404
			local bp = Create("BodyPosition"){
405
				P = 2000,
406
				D = 100,
407
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
408
				position = hit.Parent.Torso.Position,
409
				Parent = hit.Parent.Torso,
410
			}
411
			game:GetService("Debris"):AddItem(bp, 1)
412
		elseif Type == "Freeze" then
413
			local BodPos = Create("BodyPosition"){
414
				P = 50000,
415
				D = 1000,
416
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
417
				position = hit.Parent.Torso.Position,
418
				Parent = hit.Parent.Torso,
419
			}
420
			local BodGy = Create("BodyGyro") {
421
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
422
				P = 20e+003,
423
				Parent = hit.Parent.Torso,
424
				cframe = hit.Parent.Torso.CFrame,
425
			}
426
			hit.Parent.Torso.Anchored = true
427
			coroutine.resume(coroutine.create(function(Part) 
428
				swait(1.5)
429
				Part.Anchored = false
430
			end), hit.Parent.Torso)
431
			game:GetService("Debris"):AddItem(BodPos, 3)
432
			game:GetService("Debris"):AddItem(BodGy, 3)
433
		end
434
		local debounce = Create("BoolValue"){
435
			Name = "DebounceHit",
436
			Parent = hit.Parent,
437
			Value = true,
438
		}
439
		game:GetService("Debris"):AddItem(debounce, Delay)
440
		c = Instance.new("ObjectValue")
441
		c.Name = "creator"
442
		c.Value = Player
443
		c.Parent = h
444
		game:GetService("Debris"):AddItem(c, .5)
445
	end
446
end
447
448
function ShowDamage(Pos, Text, Time, Color, Color2)
449
	local Rate = (1 / 30)
450
	local Pos = (Pos or Vector3.new(0, 0, 0))
451
	local Text = (Text or "")
452
	local Time = (Time or 2)
453
	local Color = (Color or Color3.new(1, 0, 0))
454
	local EffectPart = part("Custom", workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
455
	EffectPart.Anchored = true
456
	local BillboardGui = Create("BillboardGui"){
457
		Size = UDim2.new(3, 0, 3, 0),
458
		Adornee = EffectPart,
459
		Parent = EffectPart,
460
	}
461
	local TextLabel = Create("TextLabel"){
462
		BackgroundTransparency = 1,
463
		Size = UDim2.new(1, 0, 1, 0),
464
		Text = Text,
465
		TextColor3 = Color,
466
		TextScaled = true,
467
		Font = Enum.Font.ArialBold,
468
		FontSize = Enum.FontSize.Size10,
469
		TextStrokeColor3 = Color2,
470
		TextStrokeTransparency = 0.8,
471
		Parent = BillboardGui,
472
	}
473
	game.Debris:AddItem(EffectPart, (Time + 0.1))
474
	EffectPart.Parent = game:GetService("Workspace")
475
	delay(0, function()
476
		local Frames = (Time / Rate)
477
		for Frame = 1, Frames do
478
			wait(Rate)
479
			local Percent = (Frame / Frames)
480
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
481
			TextLabel.TextTransparency = Percent
482
		end
483
		if EffectPart and EffectPart.Parent then
484
			EffectPart:Destroy()
485
		end
486
	end)
487
end
488
489
Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Handle",Vector3.new(0.280000031, 0.699999988, 0.280000001))
490
Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0860519409, -0.159469604, 1.00696373, 1, -1.72803976e-011, 1.90765604e-006, 1.90764786e-006, 4.44081707e-006, -1, 9.09494702e-012, 0.999999881, 4.44081707e-006))
491
FakeHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","FakeHandle",Vector3.new(0.280000031, 0.699999988, 0.280000001))
492
FakeHandleweld=weld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-006, 0.0707168579, 0.0574593544, 1, -8.18545232e-012, 2.86099269e-013, -8.18545232e-012, 1, 4.54747351e-013, 2.86099269e-013, 4.54747351e-013, 1))
493
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
494
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000375747681, -1.18781972, 0.839702606, -1, -1.02313925e-006, -2.56240446e-006, 2.56240173e-006, 1.79690323e-006, -1, 1.02317256e-006, -1, -1.79690414e-006))
495
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
496
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.200000003, 0.420000017, 0.200000003))
497
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.889633477, -0.979663849, 0.0548973083, -0.258811921, -5.54403186e-006, -0.96592772, -3.15453076e-006, 1, -4.89435752e-006, 0.96592778, 1.78029984e-006, -0.258811951))
498
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=111896510",Vector3.new(0, 0, 0),Vector3.new(0.349999994, 0.349999994, 0.349999994))
499
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.200000003, 0.200000003, 0.280000001))
500
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.279872894, 0.209986687, -1.33514404e-005, -3.935309e-006, 1, -2.90573007e-006, 1.08481819e-008, 2.90573598e-006, 1, 1, 3.93527625e-006, -1.08583693e-008))
501
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.519399941, 0.557200074, 1.74439991))
502
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.200000003, 0.420000017, 0.200000003))
503
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.889616966, -0.979663849, -0.0549716949, 0.258811742, -5.84206009e-006, -0.96592778, -1.50227504e-006, 1, -6.45063938e-006, 0.965927839, 3.12056136e-006, 0.258811772))
504
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=111896510",Vector3.new(0, 0, 0),Vector3.new(0.349999994, 0.349999994, 0.349999994))
505
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.420000046, 0.280000061, 0.560000002))
506
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.419868469, 7.62939453e-006, 2.7179718e-005, 3.83001225e-006, -1, 2.54809993e-006, 1, 3.82997496e-006, 3.03872399e-010, -3.12454534e-010, 2.54810584e-006, 1))
507
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
508
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.280000031, 0.700000048, 0.280000001))
509
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.14440918e-005, 0.552843094, 0.296955109, 1, -2.22826202e-011, 1.80189787e-011, -7.95807864e-013, 0.707115233, -0.707098365, -1.73940862e-011, 0.707098365, 0.707115233))
510
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000046, 0.28700006, 0.280000031))
511
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.41986084, 0.00234603882, 2.14576721e-005, 3.74060505e-006, -1, 2.30967612e-006, 1, 3.74057413e-006, -7.42010826e-008, 7.41938067e-008, 2.30968203e-006, 1))
512
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
513
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.287, 0.560000062, 0.200000003))
514
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00273132324, 0.622810364, 0.296985626, 1, -2.22826202e-011, 1.80189787e-011, -7.95807864e-013, 0.707115233, -0.707098365, -1.73940862e-011, 0.707098365, 0.707115233))
515
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
516
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.420000046, 0.280000061, 0.420000017))
517
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.839817047, -1.90734863e-005, -0.489821672, 3.8300077e-006, -1, 2.53319945e-006, 1, 3.82997496e-006, 3.04327147e-010, -3.12426113e-010, 2.53320582e-006, 1))
518
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
519
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000046, 0.28700006, 0.280000031))
520
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.839794159, 0.00254631042, -0.49509263, 3.8300077e-006, -1, 2.53319945e-006, 1, 3.82997496e-006, 3.04327147e-010, -3.12426113e-010, 2.53320582e-006, 1))
521
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
522
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.280000031, 0.420000046, 0.980000079))
523
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.90734863e-006, -0.559818268, 0.0699512959, 1, -2.04636308e-011, 7.38572398e-013, -1.63709046e-011, 1, 2.6823227e-007, 7.82044568e-013, -2.68225904e-007, 1))
524
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.280000001))
525
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.279872894, 0.209986687, -1.33514404e-005, -3.935309e-006, 1, -2.90573007e-006, 1.08481819e-008, 2.90573598e-006, 1, 1, 3.93527625e-006, -1.08583693e-008))
526
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.491399914, 0.557200074, 1.74439991))
527
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.280000031, 0.200000003, 0.560000062))
528
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.0980835e-005, -0.419818878, 0.839810848, 1, -2.13731255e-011, -1.65118821e-011, -1.54614099e-011, 1, 2.62222466e-006, 1.80325338e-011, -2.62221829e-006, 1))
529
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
530
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.420000017, 0.560000002))
531
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559810638, -0.769824028, -3.43322754e-005, 1.45437184e-007, -1, -1.29630371e-006, -2.08639904e-007, 1.29629734e-006, -1, 1, 1.45400691e-007, -2.08638184e-007))
532
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
533
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.280000061, 0.280000061, 0.280000031))
534
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.209846497, -3.81469727e-006, 0.559957266, 1.49184416e-008, -1, -6.10877123e-007, 1, 1.48816071e-008, 2.96593194e-010, -2.95063474e-010, -6.10870757e-007, 1))
535
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
536
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.287, 0.840000033, 0.200000003))
537
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00215530396, -0.0698623657, 0.000190734863, 1, -2.22826202e-011, 1.80189787e-011, -1.43245416e-011, 1, 2.69661223e-006, -1.68107646e-011, -2.69660586e-006, 1))
538
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
539
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.287, 0.200000003, 0.560000002))
540
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0021572113, -0.559833527, -0.0698022842, 1, -5.50244295e-011, 1.91965506e-011, -4.70663508e-011, 1, 2.69661314e-006, -1.56331059e-011, -2.69659495e-006, 1))
541
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
542
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.287, 0.427000016, 0.200000003))
543
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000122070313, -0.560840607, 0.27643466, 1, -2.22826202e-011, 1.80189787e-011, -1.43245416e-011, 1, 8.19589786e-007, -1.68107889e-011, -8.1958342e-007, 1))
544
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
545
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.420000017, 0.420000017, 0.280000031))
546
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.55978775, -2.44724131, -0.000165939331, 1.45490276e-007, -1, -2.49798723e-005, -2.08999595e-007, 2.49798668e-005, -1, 1, 1.45458671e-007, -2.08994436e-007))
547
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
548
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.420000017, 0.280000001, 0.560000062))
549
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.559822083, 0, -0.419999123, 5.95878191e-008, 1, 1.94764652e-007, -1, 5.9624881e-008, 3.44258311e-008, 3.44273339e-008, -1.94758286e-007, 1))
550
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
551
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.280000031, 0.200000003, 0.200000003))
552
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.279838562, 0.21000886, 1, 4.46839294e-008, 1.44186561e-006, 4.47196271e-008, -1, 7.78919912e-007, 1.44186413e-006, -7.78926278e-007, -1))
553
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 0.699999988))
554
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.560000002, 0.420000017))
555
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559791565, -0.55984664, 3.81469727e-005, 1.4543707e-007, -1, -5.08004541e-006, -2.08696321e-007, 5.08003723e-006, -1, 1, 1.45401373e-007, -2.08694047e-007))
556
mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
557
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.280000031, 0.200000003, 0.200000003))
558
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.91278076e-005, 0.279800415, 1.04951167, -1, -2.53198436e-007, 1.49545034e-008, 2.53235044e-007, -1, -7.584179e-006, 1.49579638e-008, -7.58417036e-006, 1))
559
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 0.699999988))
560
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.420000017, 0.560000062, 0.200000003))
561
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559768677, -2.37841272, -0.000438690186, 1.45475724e-007, -1, -2.01288749e-005, -2.08974669e-007, 2.01288676e-005, -1, 1, 1.45443096e-007, -2.08970206e-007))
562
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
563
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.280000001, 0.420000017))
564
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.55979538, -0.979748011, 7.62939453e-006, 1.45442073e-007, -1, -6.30070645e-006, -2.08722611e-007, 6.30070008e-006, -1, 1, 1.45406489e-007, -2.08720166e-007))
565
mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
566
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.280000031, 0.200000003, 0.560000002))
567
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.90734863e-006, -0.27980423, 0.699883938, 1, -2.04636308e-011, 1.10889423e-012, -1.63709046e-011, 1, 2.11572933e-006, 4.11753964e-013, -2.11572296e-006, 1))
568
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
569
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.280000031, 0.200000003, 0.560000062))
570
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.24249268e-005, -0.699771881, 0.839804649, 1, -2.13731255e-011, -1.66693187e-011, -1.54614099e-011, 1, 4.23093024e-006, 1.81899929e-011, -4.23092433e-006, 1))
571
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
572
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.280000031, 0.200000003, 0.200000003))
573
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-005, -0.559803009, 1.0495255, 1, -1.56887836e-011, 3.45319641e-011, -2.09183781e-011, 1, 5.48155458e-006, -3.30136751e-011, -5.48154867e-006, 1))
574
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 0.699999988))
575
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
576
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000427246094, -2.58794498, 0.839736938, -1, -1.49499328e-008, -2.52553122e-007, 2.52551388e-007, 1.52605935e-005, -1, 1.49906327e-008, -1, -1.52605971e-005))
577
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
578
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
579
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.83972168, -2.44782782, -0.000438690186, 1.45468562e-007, -1, -2.04852658e-005, -2.09350546e-007, 2.04852604e-005, -1, 1, 1.45436047e-007, -2.09346027e-007))
580
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
581
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
582
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000421524048, 2.30780578, 0.83972168, 1, 5.67174197e-007, 2.54727388e-006, -2.54726456e-006, -1.37063362e-005, 1, 5.67245934e-007, -1, -1.37063407e-005))
583
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
584
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
585
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00043296814, 2.30763364, -0.27973938, -1, 1.49386779e-008, 2.53097255e-007, 2.53098563e-007, -1.32949481e-005, 1, 1.49050265e-008, 1, 1.32949544e-005))
586
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
587
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
588
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.279750824, 2.44781303, -0.000444412231, 1.45382273e-007, 1, 2.08481797e-005, -2.08853876e-007, -2.08481761e-005, 1, 1, -1.45423428e-007, 2.08852413e-007))
589
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
590
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
591
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00043296814, -2.58781743, -0.279773712, 1, -5.67145435e-007, -2.54751899e-006, -2.54751376e-006, 1.19385704e-005, -1, 5.67138841e-007, 1, 1.19385777e-005))
592
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
593
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.231000006, 0.200000003, 0.280000031))
594
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.560119629, -2.59035707, -0.000175476074, 3.96057294e-006, -1, -2.42740825e-005, -2.09122135e-007, 2.42740789e-005, -1, 1, 3.96054475e-006, -2.09025103e-007))
595
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
596
Barrel=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Barrel",Vector3.new(0.200000003, 0.200000003, 0.280000031))
597
Barrelweld=weld(m,FakeHandle,Barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.562404633, -2.59142828, -0.000175476074, 3.96057203e-006, -1, -2.4095265e-005, -2.09117701e-007, 2.40952577e-005, -1, 1, 3.96054384e-006, -2.09021465e-007))
598
mesh("CylinderMesh",Barrel,"","",Vector3.new(0, 0, 0),Vector3.new(0.945000052, 0.699999988, 1))
599
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.200000003, 0.280000031))
600
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559753418, -1.60731864, -0.000179290771, 1.45490958e-007, -1, -2.51584643e-005, -2.09002877e-007, 2.51584588e-005, -1, 1, 1.45459353e-007, -2.0899769e-007))
601
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
602
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.200000003, 0.280000031))
603
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559776306, -2.16727662, -0.000164031982, 1.45485501e-007, -1, -2.33735591e-005, -2.08965247e-007, 2.33735518e-005, -1, 1, 1.45453555e-007, -2.08960316e-007))
604
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
605
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.420000017, 0.420000046, 0.280000031))
606
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559776306, -1.88730073, -0.000165939331, 1.45485956e-007, -1, -2.35518892e-005, -2.08967805e-007, 2.35518837e-005, -1, 1, 1.4545401e-007, -2.08962845e-007))
607
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
608
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.420000017, 0.280000061, 0.280000031))
609
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559753418, -1.39711809, -0.000173568726, 1.45514491e-007, -1, -2.24795003e-005, -2.08946716e-007, 2.24794821e-005, -1, 1, 1.45416834e-007, -2.08939554e-007))
610
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
611
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.420000046, 0.200000003))
612
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559764862, -1.88847375, -0.000436782837, 1.45466288e-007, -1, -1.8521725e-005, -2.08988865e-007, 1.85217195e-005, -1, 1, 1.45433319e-007, -2.08984645e-007))
613
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
614
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.420000017, 0.560000062, 0.200000003))
615
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559757233, -1.39839482, -0.000442504883, 1.45464355e-007, -1, -1.69149826e-005, -2.08905689e-007, 1.69149753e-005, -1, 1, 1.45431045e-007, -2.08901696e-007))
616
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
617
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000046, 0.287, 0.420000017))
618
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559772491, 0.00134277344, -0.0700860023, -7.44953468e-008, -1, -4.73725959e-006, 1, -7.45317266e-008, -7.42083941e-008, 7.42095523e-008, -4.73725368e-006, 1))
619
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
620
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000046, 0.287, 0.280000031))
621
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559783936, 0.00134277344, -0.420075655, -7.44639692e-008, -1, -5.6308827e-006, 1, -7.45658326e-008, -7.42004715e-008, 7.42039248e-008, -5.63086405e-006, 1))
622
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
623
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.420000017, 0.280000001, 0.560000062))
624
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.5598526, 1.52587891e-005, 1.11974049, 5.9590775e-008, 1, 2.51883012e-006, -1, 5.96276095e-008, 3.44174609e-008, 3.441885e-008, -2.51882193e-006, 1))
625
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
626
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
627
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00018119812, -0.844371796, 0.276464224, 1, -2.20552465e-011, 1.82033399e-011, -1.47792889e-011, 1, 1.78784603e-006, -1.66827021e-011, -1.78783966e-006, 1))
628
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.735000134, 0.699999988, 0.699999988))
629
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.280000001, 0.200000003, 0.280000091))
630
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.769760132, 0.000406265259, -0.279969931, 5.95582605e-008, 1, 2.26564134e-006, -1, 5.96603513e-008, 3.44175426e-008, 3.44209745e-008, -2.26562315e-006, 1))
631
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
632
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.700000048, 0.200000003))
633
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.839698792, -0.0692727566, -0.000392913818, 1.45439344e-007, -1, -9.2651635e-006, -2.0875224e-007, 9.26515713e-006, -1, 1, 1.45404442e-007, -2.0874937e-007))
634
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 1, 0.699999988))
635
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.699999988, 0.200000003))
636
Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.839668274, -0.768940926, -0.000394821167, 1.45451168e-007, -1, -1.17661502e-005, -2.08743202e-007, 1.17661421e-005, -1, 1, 1.45416834e-007, -2.08739948e-007))
637
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 1, 0.699999988))
638
639
Handleweld.Part0 = LeftLeg 
640
Handleweld.C0 = angles(-2, 0, 0) * cf(-.5, 1.3, 1) 
641
642
local PE1 = Create("ParticleEmitter"){
643
Parent = Barrel,
644
Color = ColorSequence.new(BrickColor.new("New Yeller").Color),
645
Transparency = NumberSequence.new(0),
646
Size = NumberSequence.new(.5),
647
Texture = "rbxassetid://257430870",
648
Lifetime = NumberRange.new(.1),
649
Rate = 100,
650
VelocitySpread = 180,
651
Rotation = NumberRange.new(0),
652
Speed = NumberRange.new(0),
653
LightEmission = .6,
654
LockedToPart = true,
655
Enabled = false
656
}
657
658
local PE2 = PE1:Clone()
659
PE2.Size = NumberSequence.new(.7)
660
PE2.LightEmission = 1
661
PE2.Texture = "rbxassetid://87729590"
662
663
local Lite = Create("PointLight"){
664
	Parent = Barrel,
665
	Color = BrickColor.new("New Yeller").Color,
666
	Shadows = true,
667
	Range = 10,
668
	Brightness = 0.5,
669
	Enabled = false
670
}
671
672
function Equip()
673
	attack = true
674
	equipped = true
675
	RSH.Parent = nil 
676
	LSH.Parent = nil 
677
678
	RHP.Parent = nil 
679
	LHP.Parent = nil 
680
681
	RW = Create("Weld"){
682
		Name = "Right Shoulder",
683
		Part0 = Torso ,
684
		C0 = cf(1.5, 0.5, 0),
685
		C1 = cf(0, 0.5, 0), 
686
		Part1 = RightArm ,
687
		Parent = Torso ,
688
	}
689
690
	LW = Create("Weld"){
691
		Name = "Left Shoulder",
692
		Part0 = Torso ,
693
		C0 = cf(-1.5, 0.5, 0),
694
		C1 = cf(0, 0.5, 0) ,
695
		Part1 = LeftArm ,
696
		Parent = Torso ,
697
	}
698
699
	RH = Create("Weld"){
700
		Part0 = Torso, 
701
		C0 = cf(0, -1.5, 0), --* euler(1.3, 0, -0.5) 
702
		C1 = cf(-0.5, 0.5, 0) ,
703
		Part1 = Character["Right Leg"], 
704
		Parent = Torso,
705
	}
706
707
	LH = Create("Weld"){
708
		Part0 = Torso, 
709
		C0 = cf(0, -1.5, 0), --* euler(1.3, 0, -0.5) 
710
		C1 = cf(0.5, 0.5, 0) ,
711
		Part1 = Character["Left Leg"], 
712
		Parent = Torso,
713
	}
714
715
	for i = 0, 1, 0.1 do
716
		swait()
717
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
718
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(30)), .3)
719
		RW.C0 = clerp(RW.C0, CFrame.new(0, 0.2, -.5) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
720
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-10)), 0.3)
721
		RH.C0 = clerp(RH.C0, cf(0.03, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(2)), .3)
722
		LH.C0 = clerp(LH.C0, cf(-0.03, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-2)), .3)
723
	end
724
	Handleweld.Part0 = RightArm
725
	Handleweld.C0 = euler(0, 0, 0) * cf(0, 0, 0) 
726
	attack = false
727
end
728
729
function Unequip()
730
	equipped = false
731
	attack = true
732
	for i = 0, 1, 0.1 do
733
		swait()
734
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
735
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(30)), .3)
736
		RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.2, -.7) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
737
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
738
		RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5)), .3)
739
		LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
740
		FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) *euler(6*i,0,0), .5)
741
	end
742
	FakeHandleweld.C0 = angles(0, 0, 0) * cf(0, 0, 0)
743
	Handleweld.Part0 = LeftLeg 
744
	Handleweld.C0 = angles(-2, 0, 0) * cf(-.5, 1.3, 1) 
745
	RW.Parent = nil 
746
	LW.Parent = nil 
747
	RH.Parent = nil 
748
	LH.Parent = nil 
749
	RSH.Parent = Torso
750
	LSH.Parent = Torso
751
	RHP.Parent = Torso
752
	LHP.Parent = Torso
753
	Torso.Neck.C0 = necko
754
	RootJoint.C0 = RootCF
755
	RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
756
	RW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
757
	LW.C0 = cf(-1.5, 0.5, 0) * euler(0, 0, 0)
758
	LW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
759
	attack = false
760
end
761
762
function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
763
	local prt = part(3, Character, "Neon", 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
764
	prt.Anchored = true
765
	prt.CFrame = cframe
766
	local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
767
	game:GetService("Debris"):AddItem(prt, 5)
768
	Effects[#Effects + 1] = {
769
		prt,
770
		"Cylinder",
771
		delay,
772
		x3,
773
		y3,
774
		z3
775
	} --part, type, delay
776
end
777
778
function MagnitudeDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
779
	for _, c in pairs(workspace:children()) do
780
		local hum = c:findFirstChild("Humanoid")
781
		if hum ~= nil then
782
			local head = c:findFirstChild("Torso")
783
			if head ~= nil then
784
				local targ = head.Position - Part.Position
785
				local mag = targ.magnitude
786
				if mag <= magni and c.Name ~= Player.Name then 
787
					Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, 0, "rbxassetid://199149186", 1)
788
				end
789
			end
790
		end
791
	end
792
end
793
794
RailgunTarget = RootPart
795
function Laser(asd)
796
local MouseLook=cf((asd.Position+mouse.Hit.p)/2,mouse.Hit.p)
797
local hit,pos = rayCast(asd.Position,MouseLook.lookVector,999,RailgunTarget.Parent)
798
local mag=(asd.Position-pos).magnitude 
799
CylinderEffect(BrickColor.new("New Yeller"),CFrame.new((asd.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,1.2,0,1.2,0.1)
800
CylinderEffect(BrickColor.new("Institutional white"),CFrame.new((asd.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,.5,1,0,.5,0.1)
801
if hit~=nil then
802
local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("New Yeller"),"Reference",vt())
803
ref.Anchored=true
804
ref.CFrame=cf(pos)
805
game:GetService("Debris"):AddItem(ref,1)
806
Damagefunc(ref,hit,20,90,0,"Normal",RootPart,0)
807
end
808
end
809
810
RocketTarget = RootPart
811
function Shoot(asd, spread1, spread2)
812
	local MainPos = asd.Position
813
	local MainPos2 = mouse.Hit.p
814
	local spread = vt((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - mouse.Hit.p).magnitude / 100
815
	local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2 + spread)
816
	num = 30
817
	coroutine.resume(coroutine.create(function(Spreaded) 
818
		repeat
819
			wait()
820
			local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RocketTarget.Parent)
821
			local TheHit = mouse.Hit.p
822
			local mag = (MainPos - pos).magnitude 
823
			CylinderEffect(BrickColor.new("New Yeller"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 3, mag * 5, 3, .5, 0, 1.5, 0.1)
824
			MainPos = MainPos + (MouseLook.lookVector * 10)
825
			num = num - 1
826
			if hit ~= nil then
827
				num = 0
828
				local ref = part(3, workspace, "Neon", 0, 1, BrickColor.new("New Yeller"), "Reference", vt())
829
				ref.Anchored = true
830
				ref.CFrame = cf(pos)
831
				MagnitudeDamage(ref, hit, 5, 10, 20, 1, "Normal")
832
				game:GetService("Debris"):AddItem(ref, 5) 
833
			end
834
		until num <= 0
835
	end))
836
end
837
838
function ChargeEffect(part, x1, y1, z1, x2, y2, z2, x3, y3, z3, color) 
839
	local S = Create("Part"){
840
	Material = "SmoothPlastic",
841
	Name = "Effect",
842
	formFactor = 0,
843
	Size = vt(x1, y1, z1),
844
	BrickColor = color,
845
	Reflectance = 0,
846
	TopSurface = 0,
847
	BottomSurface = 0,
848
	Transparency = 0,
849
	Anchored = false,
850
	CanCollide = false,
851
	Material = "Neon",
852
	CFrame = part.CFrame * cf(x2, y2, z2) * euler(x3, y3, z3),
853
	Parent = m,
854
	}
855
	local msh1 = Create("SpecialMesh"){
856
	Scale = vt(0.5, 0.5, 0.5) ,
857
	MeshType = "Sphere", 
858
	Parent = S,
859
	}
860
	coroutine.resume(coroutine.create(function(Part, CF) 
861
		local f = Instance.new("BodyPosition")
862
		f.P = 800
863
		f.D = 100
864
		f.maxForce = vt(math.huge, math.huge, math.huge)
865
		f.position = part.Position
866
		f.Parent = Part
867
		for i = 0, 1, 0.1 do
868
			wait()
869
			Part.Transparency = Part.Transparency + 0.1
870
		end
871
		Part.Parent = nil
872
	end), S, S.CFrame)
873
end 
874
875
local lasrs = {} 
876
local lasrspd = 3 
877
local maxTravelDistance = 500 
878
local maxRebounds = 20 
879
880
function RAY(pos, dir, collidedlist, startpos, endpos, distleft) 
881
	collidedlist = collidedlist or {Character} 
882
	startpos = startpos or pos 
883
	distleft = distleft or dir.unit * dir.magnitude 
884
	endpos = endpos or pos + distleft 
885
	local ray = Ray.new(pos, distleft) 
886
	local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist) 
887
	if hitz ~= nil and not hitz.Parent:findFirstChild("Humanoid") then 
888
		if hitz.CanCollide == false then 
889
			table.insert(collidedlist, hitz) 
890
			local newpos = enz 
891
			local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude) 
892
			if newdistleft then 
893
				return RAY(newpos-(dir*0.01), dir, collidedlist, startpos, endpos, newdistleft+(dir*0.01)) 
894
			end 
895
		end 
896
	end 
897
	return hitz, enz, ray 
898
end 
899
900
function FindSurface(part, position) 
901
	local obj = part.CFrame:pointToObjectSpace(position) 
902
	local siz = part.Size/2 
903
	so("rbxassetid://199144144", workspace, 1, .9)
904
	for i,v in pairs(Enum.NormalId:GetEnumItems()) do 
905
		local vec = Vector3.FromNormalId(v) 
906
		local wvec = part.CFrame:vectorToWorldSpace(vec) 
907
		local vz = (obj)/(siz*vec) 
908
		if (math.abs(vz.X-1) < 0.001 or math.abs(vz.Y-1) < 0.001 or math.abs(vz.Z-1) < 0.001) then
909
			return wvec,vec 
910
		end 
911
	end 
912
	if part.className == "WedgePart" then 
913
		local pos = (part.CFrame * CFrame.new(0,part.Size.y/2,part.Size.z/2)).p 
914
		local apos = (part.CFrame * CFrame.Angles(-math.atan2(part.CFrame:pointToObjectSpace(pos).y,part.CFrame:pointToObjectSpace(pos).z),0,0) * CFrame.new(0,1,0)).p 
915
		local wvec,vec = (apos - part.Position).unit, part.CFrame:pointToObjectSpace(apos) 
916
		return wvec,vec 
917
	elseif part.className == "Part" and (part.Shape.Name == "Ball" or part.Shape.Name == "Cylinder") then 
918
		return (position - part.Position).unit, part.CFrame:vectorToObjectSpace((position - part.Position).unit) 
919
	end 
920
end 
921
922
function Reflect(direction, normal) 
923
	return direction - 2 * normal:Dot(direction) * normal 
924
end 
925
926
function ReflectShot(mouse) 
927
	local dir = (mouse.Hit.p - Torso.Position).unit 
928
	local tabl 
929
	local tablnum = 0 
930
	for i, v in pairs(lasrs) do 
931
		if not v[1] then 
932
			tabl = v 
933
			tablnum = i 
934
			break 
935
		end 
936
	end 
937
	if not tabl then 
938
		tablnum = #lasrs + 1 
939
		tabl = {false,nil,nil,0,0,1,{},{},{},{}} 
940
		for i = 1, 2 do 
941
			for j = 1, 6 do 
942
				local p = Instance.new("Part") 
943
				p.FormFactor = "Custom" 
944
				p.CanCollide = false 
945
				p.Anchored = true 
946
				p.Locked = true 
947
				p.BrickColor = BrickColor.new("New Yeller") 
948
				p.TopSurface = 10 
949
				p.BottomSurface = 10 
950
				p.RightSurface = 10 
951
				p.LeftSurface = 10 
952
				p.FrontSurface = 10 
953
				p.BackSurface = 10 
954
				p.Size = Vector3.new(1,1,1) 
955
				p.Material = "Neon"
956
				p.Transparency = i == 1 and 0 or 0.6 
957
				p.Touched:connect(function(hit)
958
		        hit.Parent.Humanoid:TakeDamage(30)
959
		        end)
960
				local mesh = Instance.new("CylinderMesh",p) 
961
				table.insert(tabl[6+i],p) 
962
				table.insert(tabl[8+i],mesh) 
963
			end 
964
		end 
965
		table.insert(lasrs,tabl) 
966
	end 
967
	-- isMoving,direction,lastPosition,rebounds,distance,recycleCount,middleLayer,outerLayer
968
	tabl[4],tabl[5] = 0,0 
969
	tabl[3] = Barrel.Position 
970
	tabl[2] = dir 
971
	tabl[1] = true 
972
973
end 
974
975
local MultiShoot = false
976
local gun = false
977
local shoot = false
978
local Obliterate = false
979
local LaserMode = false
980
function Aim()
981
	attack = true
982
	gun = true
983
	for i = 0, 1, 0.2 do
984
		swait()
985
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
986
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), .5)
987
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5)
988
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.5)
989
		RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
990
		LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
991
	end
992
	RootJoint.C0 = RootCF * cf(0, 0, 0) * euler(0, 0, 1.57)
993
	RW.C0 = cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57)
994
	local gairo = Create("BodyGyro"){
995
	Parent = RootPart,
996
	maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
997
	P = 20e+003 ,
998
	cframe = RootPart.CFrame,
999
	}
1000
	local offset = nil
1001
	while gun == true do
1002
		swait()
1003
		local gunpos = vt(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z)
1004
		offset = (Torso.Position.y - mouse.Hit.p.y) / 60
1005
		local mag = (Torso.Position - mouse.Hit.p).magnitude / 80
1006
		offset = offset / mag 
1007
		gairo.cframe = cf(Head.Position, gunpos)
1008
		Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), .3)
1009
		RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(offset, 0, 0), .5)
1010
	end
1011
	if shoot == true then
1012
		gairo.Parent = nil
1013
		PE1.Enabled,PE2.Enabled = true,true
1014
		Lite.Enabled = true
1015
		for i = 0, 1, 0.1 do
1016
			swait()
1017
			RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
1018
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
1019
			RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.3)
1020
			LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
1021
			RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
1022
			LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
1023
			FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
1024
		end
1025
		Lite.Enabled = false
1026
		PE1.Enabled,PE2.Enabled = false,false
1027
	elseif MultiShoot == true then
1028
		gairo.Parent = nil
1029
		for i = 1,5 do
1030
		so("rbxassetid://199144089", Barrel, 1, 1.1)
1031
		Shoot(Barrel, .2, 1)
1032
		PE1.Enabled,PE2.Enabled = true,true
1033
		Lite.Enabled = true
1034
		for i = 0,1,1 do
1035
			swait()
1036
			RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
1037
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(2), math.rad(-90)), .5)
1038
			RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.5)
1039
			LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.5)
1040
			RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
1041
			LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
1042
			FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
1043
		end
1044
		PE1.Enabled,PE2.Enabled = false,false
1045
		Lite.Enabled = false
1046
		for i = 0,1,1 do
1047
			swait()
1048
			RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
1049
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), .5)
1050
			RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5)
1051
			LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.5)
1052
			RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
1053
			LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
1054
			FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1055
		end
1056
       end
1057
	elseif LaserMode == true then
1058
		gairo.Parent = nil
1059
		so("rbxassetid://161006157", Barrel, 1, .9)
1060
		so("rbxassetid://161006131", Barrel, 1, 1.2)
1061
		for i = 1, 30 do
1062
			swait()
1063
			ChargeEffect(Barrel, 2, 2, 2, math.random(-10, 10), math.random(-10, 10), math.random(-10, 10), 0, 0, 0, BrickColor.new("New Yeller")) 
1064
		end
1065
		so("rbxassetid://199144089", Barrel, 1, .8)
1066
		so("rbxassetid://199144089", Barrel, 1, .5)
1067
		Laser(Barrel)
1068
		PE1.Enabled,PE2.Enabled = true,true
1069
		Lite.Enabled = true
1070
		for i = 0, 1, 0.1 do
1071
			swait()
1072
			RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
1073
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
1074
			RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.3)
1075
			LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
1076
			RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
1077
			LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
1078
			FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
1079
		end
1080
		PE1.Enabled,PE2.Enabled = false,false
1081
		Lite.Enabled = false
1082
	elseif Obliterate == true then
1083
		gairo.Parent = nil
1084
		so("rbxassetid://161006157", Barrel, 1, .7)
1085
		so("rbxassetid://161006131", Barrel, 1, 1)
1086
		for i = 1, 60 do
1087
			swait()
1088
			ChargeEffect(Barrel, 2, 2, 2, math.random(-10, 10), math.random(-10, 10), math.random(-10, 10), 0, 0, 0, BrickColor.new("New Yeller")) 
1089
		end
1090
		for i = 1, 5 do
1091
			so("rbxassetid://199144089", Barrel, 1, .8)
1092
			for i = 1, 5 do
1093
				Shoot(Barrel, 1, 3)
1094
			end
1095
			PE1.Enabled,PE2.Enabled = true,true
1096
		    Lite.Enabled = true
1097
			for i = 0, 1, 0.2 do
1098
				swait()
1099
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
1100
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .5)
1101
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.5)
1102
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.5)
1103
				RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
1104
				LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
1105
				FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
1106
			end
1107
		PE1.Enabled,PE2.Enabled = false,false
1108
		Lite.Enabled = false
1109
			for i = 0, 1, 0.2 do
1110
				swait()
1111
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
1112
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
1113
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
1114
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
1115
				RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
1116
				LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
1117
				FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1118
			end
1119
		end
1120
		
1121
			for i = 0, 1, 0.1 do
1122
				swait()
1123
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
1124
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(-5), math.rad(-55)), .3)
1125
				RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * angles(math.rad(0), math.rad(130), math.rad(80)), 0.3)
1126
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
1127
				RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
1128
				LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
1129
				FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
1130
			end
1131
		so("rbxassetid://161006157", Barrel, 1, .9)
1132
		so("rbxassetid://161006131", Barrel, 1, 1.2)
1133
		for i = 1, 30 do
1134
			swait()
1135
			ChargeEffect(Barrel, 2, 2, 2, math.random(-10, 10), math.random(-10, 10), math.random(-10, 10), 0, 0, 0, BrickColor.new("New Yeller")) 
1136
		end
1137
			for i = 0, 1, 0.05 do
1138
				swait()
1139
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
1140
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(1), math.rad(-85)), .3)
1141
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
1142
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
1143
				RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
1144
				LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
1145
				FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
1146
			end
1147
		so("rbxassetid://199144089", Barrel, 1, .8)
1148
		so("rbxassetid://199144089", Barrel, 1, .9)
1149
		so("rbxassetid://199144089", Barrel, 1, .6)
1150
			for i = 1, 20 do
1151
				Shoot(Barrel, 1.5, 5)
1152
			end
1153
			PE1.Enabled,PE2.Enabled = true,true
1154
		    Lite.Enabled = true
1155
			for i = 0, 1, 0.05 do
1156
				swait()
1157
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
1158
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(10), math.rad(-90)), .5)
1159
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(0), math.rad(50), math.rad(120)), 0.5)
1160
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.5)
1161
				RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
1162
				LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
1163
			end
1164
			PE1.Enabled,PE2.Enabled = false,false
1165
		    Lite.Enabled = false
1166
	end
1167
	gairo.Parent = nil
1168
	shoot = false
1169
	attack = false
1170
end
1171
1172
mouse.Button1Down:connect(function()
1173
	if gun == true then
1174
		shoot = true
1175
		so("rbxassetid://199144089", Barrel, 1, 1)
1176
		Shoot(Barrel, 0, 0)
1177
		gun = false
1178
	end
1179
end)
1180
1181
1182
1183
mouse.KeyDown:connect(function(k)
1184
	k = k:lower()
1185
	if attack == false and equipped == false and k == 'e' then
1186
		Equip()
1187
	elseif attack == false and equipped == true and k == 'e' then
1188
		Unequip()
1189
	elseif attack == false and equipped == true and k == 'f' then
1190
		Aim()
1191
	elseif equipped == true and k == 'f' then
1192
		shoot = false
1193
	elseif equipped == true and gun == true and k == 'q' then
1194
		shoot = true
1195
		so("rbxassetid://199144089", Barrel, 1, .8)
1196
		for i = 1, 5 do
1197
			Shoot(Barrel, 1, 3)
1198
			gun = false
1199
		end
1200
	elseif equipped == true and gun == true and k == 'e' then
1201
		MultiShoot = true
1202
		gun = false
1203
	elseif equipped == true and gun == true and k == 'r' then
1204
		MultiShoot = false
1205
		LaserMode = true
1206
		gun = false
1207
	elseif equipped == true and attack == true and gun == true and k == 't' then
1208
		MultiShoot = false
1209
		Obliterate = true
1210
		LaserMode = false
1211
		gun = false
1212
	elseif equipped == true and attack == true and gun == true and k == 'g' then
1213
		shoot = true
1214
		ReflectShot(mouse)
1215
		so("rbxassetid://199144089", Barrel, 1, .8)
1216
		so("rbxassetid://199144089", Barrel, 1, .5)
1217
		gun = false
1218
	end
1219
end)
1220
1221
game:GetService("RunService").Stepped:connect(function() 
1222
	for _, lasr in pairs(lasrs) do 
1223
		for i, v in pairs(lasr[9]) do 
1224
			if lasr[7][i].Parent then 
1225
				v.Scale = v.Scale + Vector3.new(-0.1,0,-0.1) 
1226
				lasr[10][i].Scale = lasr[10][i].Scale + Vector3.new(-0.1,0,-0.1) 
1227
				if v.Scale.x < 0.1 then 
1228
					lasr[7][i].Parent = nil 
1229
					lasr[8][i].Parent = nil 
1230
				end 
1231
			end 
1232
		end 
1233
1234
		if lasr[1] then 
1235
			local hitz, enz = RAY(lasr[3],lasr[2]*lasrspd) 
1236
			lasr[5] = lasr[5] + (lasr[3] - enz).magnitude 
1237
1238
			lasr[7][lasr[6]].Parent = m 
1239
			lasr[7][lasr[6]].CFrame = CFrame.new((lasr[3] + enz)/2,enz) * CFrame.Angles(math.pi/2,0,0) 
1240
			lasr[9][lasr[6]].Scale = Vector3.new(0.7,(lasr[3] - enz).magnitude*5,0.7) 
1241
1242
			lasr[8][lasr[6]].Parent = m 
1243
			lasr[8][lasr[6]].CFrame = lasr[7][lasr[6]].CFrame 
1244
			lasr[10][lasr[6]].Scale = Vector3.new(1.3,(lasr[3] - enz).magnitude*5 + 0.02,1.3) 
1245
1246
			lasr[3] = enz 
1247
			lasr[6] = lasr[6]%#lasr[7] + 1 
1248
1249
			if hitz then 
1250
				lasr[4] = lasr[4] + 1 
1251
				if lasr[4] == maxRebounds then 
1252
					lasr[1] = false 
1253
				else 
1254
					local norm = FindSurface(hitz,enz) 
1255
					lasr[2] = Reflect(lasr[2],norm) 
1256
				end 
1257
			end 
1258
			if lasr[5] > maxTravelDistance then 
1259
				lasr[1] = false 
1260
			end 
1261
		end 
1262
	end 
1263
end)
1264
1265
local sine = 0
1266
local change = 1
1267
local val = 0
1268
local idle = 0
1269
local donum = 0
1270
1271
while true do
1272
	swait()
1273
	sine = sine + change
1274
	mouse.Icon = "http://www.roblox.com/asset/?id=296383647"
1275
	local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
1276
	local velderp = RootPart.Velocity.y
1277
	hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
1278
	if equipped == true then
1279
		if attack == false then
1280
			idle = idle + 1
1281
		else
1282
			idle = 0
1283
		end
1284
		if idle >= 500 then
1285
			if attack == false then
1286
			end
1287
		end
1288
		if donum >= .5 then
1289
			handidle = true
1290
		elseif donum <= 0 then
1291
			handidle = false
1292
		end
1293
		if handidle == false then
1294
			donum = donum + 0.003
1295
		else
1296
			donum = donum - 0.003
1297
		end
1298
		if RootPart.Velocity.y > 1 and hitfloor == nil then 
1299
			Anim = "Jump"
1300
			if attack == false then
1301
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
1302
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
1303
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
1304
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
1305
				RH.C0 = clerp(RH.C0, cf(.05, -1.5, .5) * angles(math.rad(-20), math.rad(0), math.rad(5)), .3)
1306
				LH.C0 = clerp(LH.C0, cf(-.05, -1.5, .5) * angles(math.rad(-20), math.rad(0), math.rad(-5)), .3)
1307
				FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1308
				RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
1309
			end
1310
		elseif RootPart.Velocity.y < -1 and hitfloor == nil then 
1311
			Anim = "Fall"
1312
			if attack == false then
1313
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1314
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
1315
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(40)), 0.3)
1316
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
1317
				RH.C0 = clerp(RH.C0, cf(0.05, -1.5, -.2) * angles(math.rad(10), math.rad(0), math.rad(5)), .3)
1318
				LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, -.2) * angles(math.rad(10), math.rad(0), math.rad(-5)), .3)
1319
				FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1320
				RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
1321
			end
1322
		elseif torvel < 1 and hitfloor ~= nil then
1323
			Anim = "Idle"
1324
			if attack == false then
1325
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5) + donum / 3, math.rad(0), math.rad(30)), .3)
1326
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(.5) - donum / 3, math.rad(.5) + donum / 3, math.rad(-30)), .3)
1327
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(5) + donum / 2), 0.3)
1328
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5) + donum / 2, math.rad(0), math.rad(-10)), 0.3)
1329
				RH.C0 = clerp(RH.C0, cf(.2, -1.5, -.5) * angles(math.rad(5) + donum / 2, math.rad(-30), math.rad(5) + donum / 5), .3)
1330
				LH.C0 = clerp(LH.C0, cf(0, -1.5 - donum / 3.5, 0) * angles(math.rad(5) + donum / 3, math.rad(-10), math.rad(0)), .3)
1331
				FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1332
				RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
1333
			end
1334
		elseif torvel > 2 and hitfloor ~= nil then
1335
			Anim = "Walk"
1336
			if attack == false then
1337
				change = 3
1338
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20) + donum / 2, math.rad(0), math.rad(0)), .3)
1339
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10) - donum / 2, math.rad(0), math.rad(0)), .3)
1340
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50) + donum / 2, math.rad(0), math.rad(5) + donum / 2), 0.3)
1341
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20) + donum / 2, math.rad(0), math.rad(-5) - donum / 2), 0.3)
1342
                LH.C0 = clerp(LH.C0, CFrame.new(0, -1.5-0.3*math.cos(sine/10)/2, -.05 + math.sin(sine/10)/2) * CFrame.Angles(math.rad(3) + -math.sin(sine/10)/2.3, math.rad(0), math.rad(-3)), .4)
1343
                RH.C0 = clerp(RH.C0, CFrame.new(0, -1.5+0.3*math.cos(sine/10)/2, -.05 + -math.sin(sine/10)/2) * CFrame.Angles(math.rad(3) + math.sin(sine/10)/2.3, math.rad(0), math.rad(3)), .4)
1344
				FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1345
				RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
1346
			end
1347
		end
1348
	end
1349
	if #Effects > 0 then
1350
		for e = 1, #Effects do
1351
			if Effects[e] ~= nil then
1352
				local Thing = Effects[e]
1353
				if Thing ~= nil then
1354
					local Part = Thing[1]
1355
					local Mode = Thing[2]
1356
					local Delay = Thing[3]
1357
					local IncX = Thing[4]
1358
					local IncY = Thing[5]
1359
					local IncZ = Thing[6]
1360
					if Thing[1].Transparency <= 1 then
1361
						if Thing[2] == "Block1" then
1362
							Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1363
							Mesh = Thing[1].Mesh
1364
							Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1365
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1366
						elseif Thing[2] == "Cylinder" then
1367
							Mesh = Thing[1].Mesh
1368
							Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1369
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1370
						elseif Thing[2] == "Blood" then
1371
							Mesh = Thing[7]
1372
							Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
1373
							Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1374
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1375
						elseif Thing[2] == "Elec" then
1376
							Mesh = Thing[1].Mesh
1377
							Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
1378
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1379
						elseif Thing[2] == "Disappear" then
1380
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1381
						end
1382
					else
1383
						Part.Parent = nil
1384
						table.remove(Effects, e)
1385
					end
1386
				end
1387
			end
1388
		end
1389
	end
1390
end