--[[ Objects Skipped: 3 Script: 3 --]] local vehicle = Instance.new("Model", workspace) local seat = Instance.new("VehicleSeat", vehicle) local gunignore = Instance.new("Model", vehicle) local barrel = Instance.new("Part", gunignore) local light = Instance.new("BillboardGui", barrel) local light_2 = Instance.new("ImageLabel", light) local pointlight = Instance.new("PointLight", barrel) local mesh = Instance.new("CylinderMesh", barrel) local maxclips = Instance.new("NumberValue", barrel) local clips = Instance.new("NumberValue", barrel) local ammo = Instance.new("NumberValue", barrel) local fire = Instance.new("Sound", barrel) local triger = Instance.new("Sound", barrel) local part = Instance.new("Part", vehicle) local mesh_2 = Instance.new("CylinderMesh", part) local part_2 = Instance.new("Part", vehicle) local mesh_3 = Instance.new("CylinderMesh", part_2) local part_3 = Instance.new("Part", vehicle) local mesh_4 = Instance.new("CylinderMesh", part_3) local part_4 = Instance.new("Part", vehicle) local mesh_5 = Instance.new("BlockMesh", part_4) local part_5 = Instance.new("Part", vehicle) local mesh_6 = Instance.new("BlockMesh", part_5) local part_6 = Instance.new("Part", vehicle) local mesh_7 = Instance.new("CylinderMesh", part_6) local part_7 = Instance.new("Part", vehicle) local mesh_8 = Instance.new("BlockMesh", part_7) local part_8 = Instance.new("Part", vehicle) local mesh_9 = Instance.new("SpecialMesh", part_8) local part_9 = Instance.new("Part", vehicle) local mesh_10 = Instance.new("BlockMesh", part_9) local parttopart_strong_joint = Instance.new("ManualWeld", part_9) local part_10 = Instance.new("Part", vehicle) local mesh_11 = Instance.new("BlockMesh", part_10) local part_11 = Instance.new("Part", vehicle) local mesh_12 = Instance.new("BlockMesh", part_11) local part_12 = Instance.new("Part", vehicle) local mesh_13 = Instance.new("CylinderMesh", part_12) local part_13 = Instance.new("Part", vehicle) local mesh_14 = Instance.new("BlockMesh", part_13) local part_14 = Instance.new("Part", vehicle) local mesh_15 = Instance.new("CylinderMesh", part_14) local part_15 = Instance.new("Part", vehicle) local mesh_16 = Instance.new("BlockMesh", part_15) local part_16 = Instance.new("Part", vehicle) local mesh_17 = Instance.new("BlockMesh", part_16) local part_17 = Instance.new("Part", vehicle) local mesh_18 = Instance.new("BlockMesh", part_17) local part_18 = Instance.new("Part", vehicle) local mesh_19 = Instance.new("BlockMesh", part_18) local part_19 = Instance.new("Part", vehicle) local mesh_20 = Instance.new("SpecialMesh", part_19) local parttopart_strong_joint_2 = Instance.new("ManualWeld", part_19) local part_20 = Instance.new("Part", vehicle) local mesh_21 = Instance.new("BlockMesh", part_20) local part_21 = Instance.new("Part", vehicle) local mesh_22 = Instance.new("BlockMesh", part_21) local part_22 = Instance.new("Part", vehicle) local mesh_23 = Instance.new("CylinderMesh", part_22) local part_23 = Instance.new("Part", vehicle) local mesh_24 = Instance.new("BlockMesh", part_23) local part_24 = Instance.new("Part", vehicle) local parttopart_strong_joint_3 = Instance.new("ManualWeld", part_24) local parttopart_strong_joint_4 = Instance.new("ManualWeld", part_24) local parttopart_strong_joint_5 = Instance.new("ManualWeld", part_24) local parttopart_strong_joint_6 = Instance.new("ManualWeld", part_24) local parttopart_strong_joint_7 = Instance.new("ManualWeld", part_24) local parttopart_strong_joint_8 = Instance.new("ManualWeld", part_24) local parttopart_strong_joint_9 = Instance.new("ManualWeld", part_24) local part_25 = Instance.new("Part", vehicle) local parttopart_strong_joint_10 = Instance.new("ManualWeld", part_25) local parttopart_strong_joint_11 = Instance.new("ManualWeld", part_25) local parttopart_strong_joint_12 = Instance.new("ManualWeld", part_25) local parttopart_strong_joint_13 = Instance.new("ManualWeld", part_25) local parttopart_strong_joint_14 = Instance.new("ManualWeld", part_25) local parttopart_strong_joint_15 = Instance.new("ManualWeld", part_25) local parttopart_strong_joint_16 = Instance.new("ManualWeld", part_25) local part_26 = Instance.new("Part", vehicle) local parttopart_strong_joint_17 = Instance.new("ManualWeld", part_26) local parttopart_strong_joint_18 = Instance.new("ManualWeld", part_26) local parttopart_strong_joint_19 = Instance.new("ManualWeld", part_26) local parttopart_strong_joint_20 = Instance.new("ManualWeld", part_26) local parttopart_strong_joint_21 = Instance.new("ManualWeld", part_26) local parttopart_strong_joint_22 = Instance.new("ManualWeld", part_26) local parttopart_strong_joint_23 = Instance.new("ManualWeld", part_26) local part_27 = Instance.new("Part", vehicle) local mesh_25 = Instance.new("CylinderMesh", part_27) local part_28 = Instance.new("Part", vehicle) local mesh_26 = Instance.new("BlockMesh", part_28) local part_29 = Instance.new("Part", vehicle) local mesh_27 = Instance.new("BlockMesh", part_29) local part_30 = Instance.new("Part", vehicle) local mesh_28 = Instance.new("BlockMesh", part_30) local part_31 = Instance.new("Part", vehicle) local mesh_29 = Instance.new("SpecialMesh", part_31) local parttopart_strong_joint_24 = Instance.new("ManualWeld", part_31) local part_32 = Instance.new("Part", vehicle) local mesh_30 = Instance.new("SpecialMesh", part_32) local parttopart_strong_joint_25 = Instance.new("ManualWeld", part_32) local part_33 = Instance.new("Part", vehicle) local mesh_31 = Instance.new("BlockMesh", part_33) local part_34 = Instance.new("Part", vehicle) local mesh_32 = Instance.new("BlockMesh", part_34) local part_35 = Instance.new("Part", vehicle) local mesh_33 = Instance.new("CylinderMesh", part_35) local part_36 = Instance.new("Part", vehicle) local mesh_34 = Instance.new("CylinderMesh", part_36) vehicle.Name = "Vehicle" seat.Friction = 0.3 seat.BottomSurface = Enum.SurfaceType.Weld seat.LeftSurface = Enum.SurfaceType.Weld seat.TopSurface = Enum.SurfaceType.Smooth seat.Name = "Seat" seat.BrickColor = BrickColor.new("Grime") seat.CFrame = CFrame.new(30.9, 0.488, -198.7) * CFrame.Angles(3.141592502594, -8.2584932670215e-007, -3.1415922641754) seat.Size = Vector3.new(1, 1, 1) seat.RightSurface = Enum.SurfaceType.Weld seat.Torque = 1 seat.BackSurface = Enum.SurfaceType.Weld seat.MaxSpeed = 20 seat.HeadsUpDisplay = false gunignore.Name = "GunIgnore" barrel.Anchored = true barrel.FormFactor = Enum.FormFactor.Symmetric barrel.LeftSurface = Enum.SurfaceType.Weld barrel.Transparency = 1 barrel.TopSurface = Enum.SurfaceType.Weld barrel.Reflectance = 0.2 barrel.FrontSurface = Enum.SurfaceType.Weld barrel.Name = "Barrel" barrel.Size = Vector3.new(1, 1, 1) barrel.RightSurface = Enum.SurfaceType.Weld barrel.BackSurface = Enum.SurfaceType.Weld barrel.CFrame = CFrame.new(30.911, 5.267, -192.762) * CFrame.Angles(3.0865514278412, 1.5698198080063, -1.5156611204147) barrel.BrickColor = BrickColor.new("Black") barrel.Friction = 0.3 barrel.BottomSurface = Enum.SurfaceType.Weld light.Active = true light.Adornee = barrel light.Name = "Light" light.Size = UDim2.new(1.5, 0, 1.5, 0) light_2.Visible = false light_2.Active = true light_2.Image = "http://www.roblox.com/asset/?id=69576497" light_2.Name = "Light" light_2.Position = UDim2.new(-0.5, 0, -0.5, 0) light_2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) light_2.BackgroundTransparency = 1 light_2.Size = UDim2.new(2, 0, 2, 0) light_2.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706) pointlight.Enabled = false pointlight.Color = Color3.new(1, 0.666667, 0) pointlight.Brightness = 2 pointlight.Range = 10 mesh.Offset = Vector3.new(0, -1.4, 0) mesh.Scale = Vector3.new(0.2, 2.4, 0.3) maxclips.Name = "MAXclips" maxclips.Value = 10 clips.Name = "Clips" clips.Value = 20 ammo.Name = "Ammo" ammo.Value = 100 fire.Pitch = 1.1 fire.MinDistance = 10 fire.MaxDistance = 10000 fire.Name = "Fire" fire.Volume = 1 fire.SoundId = "http://roblox.com/asset/?id=140588028" triger.Pitch = 100 triger.MinDistance = 10 triger.MaxDistance = 10000 triger.Name = "Triger" triger.SoundId = "http://roblox.com/asset/?id=10209859" part.Anchored = true part.FormFactor = Enum.FormFactor.Custom part.LeftSurface = Enum.SurfaceType.Weld part.TopSurface = Enum.SurfaceType.Weld part.FrontSurface = Enum.SurfaceType.Weld part.Material = Enum.Material.Metal part.Size = Vector3.new(1, 0.2, 1) part.RightSurface = Enum.SurfaceType.Weld part.BackSurface = Enum.SurfaceType.Weld part.CFrame = CFrame.new(30.9, 4.004, -195.7) * CFrame.Angles(-3.1415543556213, 7.1940559109862e-007, -1.2363815585559e-005) part.BrickColor = BrickColor.new("Dark stone grey") part.Friction = 0.3 part.BottomSurface = Enum.SurfaceType.Weld part_2.Anchored = true part_2.FormFactor = Enum.FormFactor.Custom part_2.LeftSurface = Enum.SurfaceType.Weld part_2.TopSurface = Enum.SurfaceType.Weld part_2.FrontSurface = Enum.SurfaceType.Weld part_2.Material = Enum.Material.Metal part_2.Size = Vector3.new(0.2, 2.2, 0.2) part_2.RightSurface = Enum.SurfaceType.Weld part_2.BackSurface = Enum.SurfaceType.Weld part_2.CFrame = CFrame.new(31.7, 3.324, -196.7) * CFrame.Angles(-2.3561561107635, 6.516629014186e-007, -0.52361118793488) part_2.BrickColor = BrickColor.new("Dark stone grey") part_2.Friction = 0.3 part_2.BottomSurface = Enum.SurfaceType.Weld part_3.Anchored = true part_3.FormFactor = Enum.FormFactor.Custom part_3.LeftSurface = Enum.SurfaceType.Weld part_3.TopSurface = Enum.SurfaceType.Weld part_3.FrontSurface = Enum.SurfaceType.Weld part_3.Material = Enum.Material.Metal part_3.Size = Vector3.new(0.2, 2, 0.2) part_3.RightSurface = Enum.SurfaceType.Weld part_3.BackSurface = Enum.SurfaceType.Weld part_3.CFrame = CFrame.new(30.9, 3.275, -194.571) * CFrame.Angles(2.356232881546, 6.1690802795056e-006, -8.9482928160578e-006) part_3.BrickColor = BrickColor.new("Dark stone grey") part_3.Friction = 0.3 part_3.BottomSurface = Enum.SurfaceType.Weld part_4.Anchored = true part_4.FormFactor = Enum.FormFactor.Custom part_4.FrontSurface = Enum.SurfaceType.Weld part_4.Size = Vector3.new(1.022, 1.022, 1.022) part_4.CFrame = CFrame.new(30.857, 5.401, -196.925) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_4.BrickColor = BrickColor.new("Really black") part_4.Friction = 0.3 mesh_5.Scale = Vector3.new(0.029, 0.048, 0.095) part_5.Anchored = true part_5.FormFactor = Enum.FormFactor.Custom part_5.FrontSurface = Enum.SurfaceType.Weld part_5.Size = Vector3.new(0.368, 0.368, 0.368) part_5.CFrame = CFrame.new(31.171, 5.411, -195.461) * CFrame.Angles(-3.1415927410126, 0, 2.6179938316345) part_5.BrickColor = BrickColor.new("Dark orange") part_5.Friction = 0.3 mesh_6.Scale = Vector3.new(0.265, 0.133, 1.327) part_6.Anchored = true part_6.FormFactor = Enum.FormFactor.Custom part_6.FrontSurface = Enum.SurfaceType.Weld part_6.Size = Vector3.new(0.721, 0.721, 0.721) part_6.CFrame = CFrame.new(30.911, 5.255, -195.266) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) part_6.BrickColor = BrickColor.new("Really black") part_6.Friction = 0.3 mesh_7.Scale = Vector3.new(0.271, 0.162, 0.203) part_7.Anchored = true part_7.FormFactor = Enum.FormFactor.Custom part_7.FrontSurface = Enum.SurfaceType.Weld part_7.Size = Vector3.new(1.022, 1.022, 1.022) part_7.CFrame = CFrame.new(30.911, 4.792, -196.876) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_7.BrickColor = BrickColor.new("Dark orange") part_7.Friction = 0.3 mesh_8.Scale = Vector3.new(0.172, 0.382, 0.191) part_8.Anchored = true part_8.FormFactor = Enum.FormFactor.Custom part_8.TopSurface = Enum.SurfaceType.Smooth part_8.Size = Vector3.new(0.721, 0.721, 0.721) part_8.CFrame = CFrame.new(30.667, 5.035, -196.193) * CFrame.Angles(0, 1.5707963705063, 0) part_8.BrickColor = BrickColor.new("Grime") part_8.Friction = 0.3 part_8.BottomSurface = Enum.SurfaceType.Weld mesh_9.Scale = Vector3.new(0.406, 0.135, 0.406) mesh_9.MeshType = Enum.MeshType.Wedge part_9.Anchored = true part_9.FormFactor = Enum.FormFactor.Custom part_9.FrontSurface = Enum.SurfaceType.Weld part_9.Size = Vector3.new(0.721, 0.721, 0.721) part_9.CFrame = CFrame.new(30.911, 5.133, -197.022) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_9.BrickColor = BrickColor.new("Really black") part_9.Friction = 0.3 mesh_10.Scale = Vector3.new(0.271, 0.406, 0.135) parttopart_strong_joint.Name = "Part-to-Part Strong Joint" parttopart_strong_joint.C1 = CFrame.new(2, 0, 1) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) parttopart_strong_joint.Part0 = part_9 parttopart_strong_joint.C0 = CFrame.new(-2, -0.5, 3.5) * CFrame.Angles(-0, 0, -0) part_10.Anchored = true part_10.FormFactor = Enum.FormFactor.Custom part_10.FrontSurface = Enum.SurfaceType.Weld part_10.Size = Vector3.new(0.781, 0.488, 0.293) part_10.CFrame = CFrame.new(30.911, 4.743, -196.193) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_10.BrickColor = BrickColor.new("Grime") part_10.Friction = 0.3 part_11.Anchored = true part_11.FormFactor = Enum.FormFactor.Custom part_11.FrontSurface = Enum.SurfaceType.Weld part_11.Size = Vector3.new(1.022, 1.022, 1.022) part_11.CFrame = CFrame.new(30.911, 5.157, -196.242) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_11.BrickColor = BrickColor.new("Really black") part_11.Friction = 0.3 mesh_12.Scale = Vector3.new(0.191, 0.334, 1.432) part_12.Anchored = true part_12.FormFactor = Enum.FormFactor.Custom part_12.FrontSurface = Enum.SurfaceType.Weld part_12.Size = Vector3.new(0.858, 0.858, 0.858) part_12.CFrame = CFrame.new(30.911, 5.255, -194.363) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) part_12.BrickColor = BrickColor.new("Really black") part_12.Friction = 0.3 mesh_13.Scale = Vector3.new(0.205, 2.671, 0.153) part_13.Anchored = true part_13.FormFactor = Enum.FormFactor.Custom part_13.FrontSurface = Enum.SurfaceType.Weld part_13.Size = Vector3.new(0.368, 0.368, 0.368) part_13.CFrame = CFrame.new(30.911, 5.353, -196.095) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_13.BrickColor = BrickColor.new("Really black") part_13.Friction = 0.3 mesh_14.Scale = Vector3.new(0.531, 0.133, 2.388) part_14.Anchored = true part_14.FormFactor = Enum.FormFactor.Custom part_14.FrontSurface = Enum.SurfaceType.Weld part_14.Size = Vector3.new(0.858, 0.858, 0.858) part_14.CFrame = CFrame.new(30.911, 5.109, -194.754) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) part_14.BrickColor = BrickColor.new("Really black") part_14.Friction = 0.3 mesh_15.Scale = Vector3.new(0.205, 0.966, 0.153) part_15.Anchored = true part_15.FormFactor = Enum.FormFactor.Custom part_15.FrontSurface = Enum.SurfaceType.Weld part_15.Size = Vector3.new(0.721, 0.721, 0.721) part_15.CFrame = CFrame.new(30.911, 5.182, -194.193) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_15.BrickColor = BrickColor.new("Really black") part_15.Friction = 0.3 mesh_16.Scale = Vector3.new(0.189, 0.406, 0.406) part_16.Anchored = true part_16.FormFactor = Enum.FormFactor.Custom part_16.FrontSurface = Enum.SurfaceType.Weld part_16.Size = Vector3.new(0.721, 0.721, 0.721) part_16.CFrame = CFrame.new(31.155, 5.035, -196.193) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_16.BrickColor = BrickColor.new("Grime") part_16.Friction = 0.3 mesh_17.Scale = Vector3.new(0.406, 0.135, 0.406) part_17.Anchored = true part_17.FormFactor = Enum.FormFactor.Custom part_17.FrontSurface = Enum.SurfaceType.Weld part_17.Size = Vector3.new(0.368, 0.368, 0.368) part_17.CFrame = CFrame.new(31.044, 5.338, -195.266) * CFrame.Angles(-3.1415927410126, 0, 2.6179938316345) part_17.BrickColor = BrickColor.new("Really black") part_17.Friction = 0.3 mesh_18.Scale = Vector3.new(0.531, 0.053, 0.239) part_18.Anchored = true part_18.FormFactor = Enum.FormFactor.Custom part_18.FrontSurface = Enum.SurfaceType.Weld part_18.Size = Vector3.new(1.022, 1.022, 1.022) part_18.CFrame = CFrame.new(30.911, 5.084, -195.339) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_18.BrickColor = BrickColor.new("Really black") part_18.Friction = 0.3 mesh_19.Scale = Vector3.new(0.191, 0.191, 0.334) part_19.Anchored = true part_19.FormFactor = Enum.FormFactor.Custom part_19.TopSurface = Enum.SurfaceType.Smooth part_19.Size = Vector3.new(0.721, 0.721, 0.721) part_19.CFrame = CFrame.new(30.911, 5.328, -197.022) * CFrame.Angles(-0, 0, -0) part_19.BrickColor = BrickColor.new("Really black") part_19.Friction = 0.3 part_19.BottomSurface = Enum.SurfaceType.Weld mesh_20.Scale = Vector3.new(0.271, 0.135, 0.135) mesh_20.MeshType = Enum.MeshType.Wedge parttopart_strong_joint_2.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_2.C1 = CFrame.new(2, -3.5, -4) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_2.Part0 = part_19 parttopart_strong_joint_2.C0 = CFrame.new(-3, -1, 3) * CFrame.Angles(-0, 0, -0) part_20.Anchored = true part_20.FormFactor = Enum.FormFactor.Custom part_20.FrontSurface = Enum.SurfaceType.Weld part_20.Size = Vector3.new(0.721, 0.721, 0.721) part_20.CFrame = CFrame.new(30.911, 5.353, -193.315) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_20.BrickColor = BrickColor.new("Really black") part_20.Friction = 0.3 mesh_21.Scale = Vector3.new(0.095, 0.203, 0.135) part_21.Anchored = true part_21.FormFactor = Enum.FormFactor.Custom part_21.FrontSurface = Enum.SurfaceType.Weld part_21.Size = Vector3.new(1.022, 1.022, 1.022) part_21.CFrame = CFrame.new(30.964, 5.401, -196.925) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_21.BrickColor = BrickColor.new("Really black") part_21.Friction = 0.3 mesh_22.Scale = Vector3.new(0.029, 0.048, 0.095) part_22.Anchored = true part_22.FormFactor = Enum.FormFactor.Custom part_22.FrontSurface = Enum.SurfaceType.Weld part_22.Size = Vector3.new(0.858, 0.858, 0.858) part_22.CFrame = CFrame.new(30.911, 5.255, -193.046) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) part_22.BrickColor = BrickColor.new("Really black") part_22.Friction = 0.3 mesh_23.Scale = Vector3.new(0.227, 0.398, 0.17) part_23.Anchored = true part_23.FormFactor = Enum.FormFactor.Custom part_23.FrontSurface = Enum.SurfaceType.Weld part_23.Size = Vector3.new(0.368, 0.368, 0.368) part_23.CFrame = CFrame.new(30.911, 5.353, -196.803) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_23.BrickColor = BrickColor.new("Really black") part_23.Friction = 0.3 mesh_24.Scale = Vector3.new(0.531, 0.133, 0.929) part_24.Anchored = true part_24.FormFactor = Enum.FormFactor.Custom part_24.TopSurface = Enum.SurfaceType.Smooth part_24.Material = Enum.Material.Metal part_24.Size = Vector3.new(0.4, 0.4, 0.2) part_24.CFrame = CFrame.new(30.7, 5.105, -195.6) * CFrame.Angles(0.78410416841507, 1.5703080892563, -1.4399670362473) part_24.BrickColor = BrickColor.new("Dark stone grey") part_24.Friction = 0.3 part_24.BottomSurface = Enum.SurfaceType.Smooth parttopart_strong_joint_3.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_3.C1 = CFrame.new(-12, -3.5, -12) * CFrame.Angles(-1.5707963705063, 0, 1.5707963705063) parttopart_strong_joint_3.Part0 = part_24 parttopart_strong_joint_3.C0 = CFrame.new(-12, 0.5, 12) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_4.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_4.C1 = CFrame.new(3.5, -1.5, -18.5) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_4.Part0 = part_24 parttopart_strong_joint_4.C0 = CFrame.new(-10, -1.5, 1.5) * CFrame.Angles(-0, 0, -0) parttopart_strong_joint_5.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_5.C1 = CFrame.new(-3.5, -0.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_5.Part0 = part_24 parttopart_strong_joint_5.C0 = CFrame.new(-1, 1.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_6.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_6.C1 = CFrame.new(5.5, 1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0) parttopart_strong_joint_6.Part0 = part_24 parttopart_strong_joint_6.C0 = CFrame.new(1, -1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0) parttopart_strong_joint_7.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_7.C1 = CFrame.new(7, -2, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_7.Part0 = part_24 parttopart_strong_joint_7.C0 = CFrame.new(-1, -1.5, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_8.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_8.C1 = CFrame.new(1.5, -0.5, 1.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_8.Part0 = part_24 parttopart_strong_joint_8.C0 = CFrame.new(-1.5, 1.5, 0.3) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_9.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_9.C1 = CFrame.new(5.3, 0.1, 0.2) * CFrame.Angles(1.5707963705063, 0, -0) parttopart_strong_joint_9.Part0 = part_24 parttopart_strong_joint_9.C0 = CFrame.new(2, -1.5, 0.2) * CFrame.Angles(1.5707963705063, 0, -0) part_25.Anchored = true part_25.FormFactor = Enum.FormFactor.Custom part_25.TopSurface = Enum.SurfaceType.Smooth part_25.Material = Enum.Material.Metal part_25.Size = Vector3.new(0.6, 0.2, 0.6) part_25.CFrame = CFrame.new(30.9, 4.805, -195.7) * CFrame.Angles(0.78410416841507, 1.5703080892563, -1.4399670362473) part_25.BrickColor = BrickColor.new("Dark stone grey") part_25.Friction = 0.3 part_25.BottomSurface = Enum.SurfaceType.Smooth parttopart_strong_joint_10.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_10.C1 = CFrame.new(-12, -3.5, -12) * CFrame.Angles(-1.5707963705063, 0, 1.5707963705063) parttopart_strong_joint_10.Part0 = part_25 parttopart_strong_joint_10.C0 = CFrame.new(-12, 0.5, 12) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_11.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_11.C1 = CFrame.new(3.5, -1.5, -18.5) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_11.Part0 = part_25 parttopart_strong_joint_11.C0 = CFrame.new(-10, -1.5, 1.5) * CFrame.Angles(-0, 0, -0) parttopart_strong_joint_12.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_12.C1 = CFrame.new(-3.5, -0.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_12.Part0 = part_25 parttopart_strong_joint_12.C0 = CFrame.new(-1, 1.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_13.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_13.C1 = CFrame.new(5.5, 1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0) parttopart_strong_joint_13.Part0 = part_25 parttopart_strong_joint_13.C0 = CFrame.new(1, -1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0) parttopart_strong_joint_14.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_14.C1 = CFrame.new(7, -2, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_14.Part0 = part_25 parttopart_strong_joint_14.C0 = CFrame.new(-1, -1.5, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_15.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_15.C1 = CFrame.new(1.5, -0.5, 1.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_15.Part0 = part_25 parttopart_strong_joint_15.C0 = CFrame.new(-1.5, 1.5, 0.3) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_16.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_16.C1 = CFrame.new(5.3, 0.1, 0.2) * CFrame.Angles(1.5707963705063, 0, -0) parttopart_strong_joint_16.Part0 = part_25 parttopart_strong_joint_16.C0 = CFrame.new(2, -1.5, 0.2) * CFrame.Angles(1.5707963705063, 0, -0) part_26.Anchored = true part_26.FormFactor = Enum.FormFactor.Custom part_26.TopSurface = Enum.SurfaceType.Smooth part_26.Material = Enum.Material.Metal part_26.Size = Vector3.new(0.4, 0.4, 0.2) part_26.CFrame = CFrame.new(31.1, 5.105, -195.6) * CFrame.Angles(0.78410416841507, 1.5703080892563, -1.4399670362473) part_26.BrickColor = BrickColor.new("Dark stone grey") part_26.Friction = 0.3 part_26.BottomSurface = Enum.SurfaceType.Smooth parttopart_strong_joint_17.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_17.C1 = CFrame.new(-12, -3.5, -12) * CFrame.Angles(-1.5707963705063, 0, 1.5707963705063) parttopart_strong_joint_17.Part0 = part_26 parttopart_strong_joint_17.C0 = CFrame.new(-12, 0.5, 12) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_18.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_18.C1 = CFrame.new(3.5, -1.5, -18.5) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_18.Part0 = part_26 parttopart_strong_joint_18.C0 = CFrame.new(-10, -1.5, 1.5) * CFrame.Angles(-0, 0, -0) parttopart_strong_joint_19.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_19.C1 = CFrame.new(-3.5, -0.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_19.Part0 = part_26 parttopart_strong_joint_19.C0 = CFrame.new(-1, 1.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_20.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_20.C1 = CFrame.new(5.5, 1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0) parttopart_strong_joint_20.Part0 = part_26 parttopart_strong_joint_20.C0 = CFrame.new(1, -1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0) parttopart_strong_joint_21.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_21.C1 = CFrame.new(7, -2, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_21.Part0 = part_26 parttopart_strong_joint_21.C0 = CFrame.new(-1, -1.5, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_22.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_22.C1 = CFrame.new(1.5, -0.5, 1.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_22.Part0 = part_26 parttopart_strong_joint_22.C0 = CFrame.new(-1.5, 1.5, 0.3) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) parttopart_strong_joint_23.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_23.C1 = CFrame.new(5.3, 0.1, 0.2) * CFrame.Angles(1.5707963705063, 0, -0) parttopart_strong_joint_23.Part0 = part_26 parttopart_strong_joint_23.C0 = CFrame.new(2, -1.5, 0.2) * CFrame.Angles(1.5707963705063, 0, -0) part_27.Anchored = true part_27.FormFactor = Enum.FormFactor.Custom part_27.LeftSurface = Enum.SurfaceType.Weld part_27.TopSurface = Enum.SurfaceType.Weld part_27.FrontSurface = Enum.SurfaceType.Weld part_27.Material = Enum.Material.Metal part_27.Size = Vector3.new(0.6, 0.6, 1) part_27.RightSurface = Enum.SurfaceType.Weld part_27.BackSurface = Enum.SurfaceType.Weld part_27.CFrame = CFrame.new(30.9, 4.404, -195.7) * CFrame.Angles(-3.1415543556213, 6.8804189368166e-007, -1.2319006600592e-005) part_27.BrickColor = BrickColor.new("Dark stone grey") part_27.Friction = 0.3 part_27.BottomSurface = Enum.SurfaceType.Weld part_28.Anchored = true part_28.FormFactor = Enum.FormFactor.Symmetric part_28.FrontSurface = Enum.SurfaceType.Weld part_28.Size = Vector3.new(0.195, 0.488, 0.146) part_28.CFrame = CFrame.new(30.911, 5.035, -198.169) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_28.BrickColor = BrickColor.new("Reddish brown") part_28.Friction = 0.3 part_29.Anchored = true part_29.FormFactor = Enum.FormFactor.Symmetric part_29.FrontSurface = Enum.SurfaceType.Weld part_29.Size = Vector3.new(0.195, 0.049, 0.829) part_29.CFrame = CFrame.new(30.911, 5.255, -197.681) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_29.BrickColor = BrickColor.new("Reddish brown") part_29.Friction = 0.3 part_30.Anchored = true part_30.FormFactor = Enum.FormFactor.Symmetric part_30.FrontSurface = Enum.SurfaceType.Weld part_30.Size = Vector3.new(0.195, 0.146, 0.683) part_30.CFrame = CFrame.new(30.911, 4.962, -197.754) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_30.BrickColor = BrickColor.new("Reddish brown") part_30.Friction = 0.3 part_31.Anchored = true part_31.FormFactor = Enum.FormFactor.Symmetric part_31.TopSurface = Enum.SurfaceType.Smooth part_31.Size = Vector3.new(0.195, 0.098, 0.098) part_31.CFrame = CFrame.new(30.911, 4.84, -198.047) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126) part_31.BrickColor = BrickColor.new("Reddish brown") part_31.Friction = 0.3 part_31.BottomSurface = Enum.SurfaceType.Weld mesh_29.MeshType = Enum.MeshType.Wedge parttopart_strong_joint_24.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_24.C1 = CFrame.new(2, -3.5, -4) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_24.Part0 = part_31 parttopart_strong_joint_24.C0 = CFrame.new(-3, -1, 3) * CFrame.Angles(-0, 0, -0) part_32.Anchored = true part_32.FormFactor = Enum.FormFactor.Symmetric part_32.TopSurface = Enum.SurfaceType.Smooth part_32.Size = Vector3.new(0.195, 0.049, 0.049) part_32.CFrame = CFrame.new(30.911, 5.255, -197.242) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_32.BrickColor = BrickColor.new("Reddish brown") part_32.Friction = 0.3 part_32.BottomSurface = Enum.SurfaceType.Weld mesh_30.MeshType = Enum.MeshType.Wedge parttopart_strong_joint_25.Name = "Part-to-Part Strong Joint" parttopart_strong_joint_25.C1 = CFrame.new(2, -3.5, -4) * CFrame.Angles(-0, -1.5707963705063, 0) parttopart_strong_joint_25.Part0 = part_32 parttopart_strong_joint_25.C0 = CFrame.new(-3, -1, 3) * CFrame.Angles(-0, 0, -0) part_33.Anchored = true part_33.FormFactor = Enum.FormFactor.Symmetric part_33.FrontSurface = Enum.SurfaceType.Weld part_33.Size = Vector3.new(0.195, 0.39, 0.146) part_33.CFrame = CFrame.new(30.911, 4.953, -197.387) * CFrame.Angles(-2.6179938316345, 0, -3.1415927410126) part_33.BrickColor = BrickColor.new("Reddish brown") part_33.Friction = 0.3 part_34.Anchored = true part_34.FormFactor = Enum.FormFactor.Symmetric part_34.FrontSurface = Enum.SurfaceType.Weld part_34.Size = Vector3.new(0.195, 0.195, 0.293) part_34.CFrame = CFrame.new(30.911, 5.133, -197.217) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126) part_34.BrickColor = BrickColor.new("Reddish brown") part_34.Friction = 0.3 part_35.Anchored = true part_35.FormFactor = Enum.FormFactor.Custom part_35.LeftSurface = Enum.SurfaceType.Weld part_35.TopSurface = Enum.SurfaceType.Weld part_35.FrontSurface = Enum.SurfaceType.Weld part_35.Material = Enum.Material.Metal part_35.Size = Vector3.new(0.2, 2.2, 0.2) part_35.RightSurface = Enum.SurfaceType.Weld part_35.BackSurface = Enum.SurfaceType.Weld part_35.CFrame = CFrame.new(30.1, 3.324, -196.7) * CFrame.Angles(-2.356155872345, 7.8976239592521e-007, 0.52358639240265) part_35.BrickColor = BrickColor.new("Dark stone grey") part_35.Friction = 0.3 part_35.BottomSurface = Enum.SurfaceType.Weld part_36.Anchored = true part_36.FormFactor = Enum.FormFactor.Custom part_36.LeftSurface = Enum.SurfaceType.Weld part_36.TopSurface = Enum.SurfaceType.Weld part_36.FrontSurface = Enum.SurfaceType.Weld part_36.Material = Enum.Material.Metal part_36.Size = Vector3.new(0.2, 1.4, 0.2) part_36.RightSurface = Enum.SurfaceType.Weld part_36.BackSurface = Enum.SurfaceType.Weld part_36.CFrame = CFrame.new(30.9, 3.464, -196.5) * CFrame.Angles(1.5708087682724, -3.8449161365861e-005, -1.5707974433899) part_36.BrickColor = BrickColor.new("Dark stone grey") part_36.Friction = 0.3 part_36.BottomSurface = Enum.SurfaceType.Weld local gun = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack) local gungui = Instance.new("ScreenGui", Game.Players.LocalPlayer.PlayerGui) local clips = Instance.new("Frame", gungui) local textlabel = Instance.new("TextLabel", clips) local ammo = Instance.new("Frame", gungui) local textlabel_2 = Instance.new("TextLabel", ammo) gun.Name = "GUN" gungui.Name = "GunGui" clips.Size = UDim2.new(0, 100, 0, 45) clips.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) clips.Name = "Clips" clips.Style = Enum.FrameStyle.RobloxRound clips.Position = UDim2.new(0.5, -50, 1, -200) clips.BackgroundColor3 = Color3.new(0.639216, 0.635294, 0.647059) textlabel.BackgroundColor3 = Color3.new(0.639216, 0.635294, 0.647059) textlabel.BackgroundTransparency = 1 textlabel.Size = UDim2.new(1, 0, 1, 0) textlabel.TextColor3 = Color3.new(1, 1, 1) textlabel.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) textlabel.Text = "Battery: 100" textlabel.FontSize = Enum.FontSize.Size11 ammo.Size = UDim2.new(0, 100, 0, 45) ammo.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) ammo.Name = "Ammo" ammo.Style = Enum.FrameStyle.RobloxRound ammo.Position = UDim2.new(0.5, -50, 1, -155) ammo.BackgroundColor3 = Color3.new(0.639216, 0.635294, 0.647059) textlabel_2.BackgroundColor3 = Color3.new(0.639216, 0.635294, 0.647059) textlabel_2.BackgroundTransparency = 1 textlabel_2.Size = UDim2.new(1, 0, 1, 0) textlabel_2.TextColor3 = Color3.new(1, 1, 1) textlabel_2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) textlabel_2.Text = "Charges: 15" textlabel_2.FontSize = Enum.FontSize.Size11 thetool=Vehicle.GunIgnore.Barrel local wc = game.Workspace:GetChildren() for i = 1, #wc do if wc[i].Name == "Vehicle" then if wc[i].Seat:findFirstChild("SeatWeld") then if wc[i].Seat["SeatWeld"].Part1.Parent == game.Players.LocalPlayer.Character then thetool = wc[i].GunIgnore.Barrel end end end end -------------------------------------DEFULT STUFF, NEEDED TO BE LIKE THIS, IF YOU CHANGE THIS LITTLE PART, YOU BREACK IT equiped=false reloading=false stopper=false down=false -------------------------------------GAMEINFO Team=BrickColor.new("Bright red") TeamsAliies=BrickColor.new("Bright green") -------------------------------------GUNINFO OriginalToolName=gun.Parent.Name RayLength=3000 MAXclips=thetool.MAXclips.Value Firerate=0.065 BaseDamage=20 VehicleDamage=35 MAXammo=200 reloadinterval=7/MAXammo Spread=0.07 threebb=false auto=true shot=false ShotFrom=Vector3.new(-1.5,0.6,0) clips=thetool.Clips ammo=thetool.Ammo Cursor="rbxasset://textures\\GunCursor.png" ReloadCursor="rbxasset://textures\\GunWaitCursor.png" -------------------------------------RAYINFO Bullet=Instance.new("Part") Bullet.Name="Bullet" Bullet.BrickColor=BrickColor.new("Bright yellow") Bullet.Anchored=true Bullet.CanCollide=false Bullet.Locked=true Bullet.Size=Vector3.new(1,1,1) Bullet.Transparency=.65 Bullet.formFactor=0 Bullet.TopSurface=0 Bullet.BottomSurface=0 mesh=Instance.new("SpecialMesh") mesh.Parent=Bullet mesh.MeshType="Brick" mesh.Name="Mesh" mesh.Scale=Vector3.new(.15,.15,1) -------------------------------------REFERENCES player=game.Players.LocalPlayer -------------------------------------SCRIPT function flash() if equiped==true then if clips.Value==0 then for i=1, 5 do player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 1, 1) wait(0.05) if reloading==true then player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255) break end player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 0, 0) wait(0.05) if reloading==true then player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255) break end end elseif ammo.Value==0 then for i=1, 5 do player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 1, 1) wait(0.05) if reloading==true then player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255) break end player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 0, 0) wait(0.05) if reloading==true then player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255) break end end end end end function check() if equiped==true then if clips.Value>0 then player.PlayerGui.GunGui.Clips.TextLabel.Text="Clips: "..clips.Value.."" if clips.Value>MAXclips/2 then player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 1, 1) elseif clips.Value>MAXclips/4 and clips.Value<=MAXclips/2 then player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 1, 0) elseif clips.Value<=MAXclips/4 then player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 0, 0) end elseif clips.Value<=0 then clips.Value=0 player.PlayerGui.GunGui.Clips.TextLabel.Text="Clips: "..clips.Value.."" player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 0, 0) end if ammo.Value>0 then player.PlayerGui.GunGui.Ammo.TextLabel.Text="Ammo: "..ammo.Value.."" if ammo.Value>MAXammo/2 then player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 1, 1) elseif ammo.Value<=MAXammo/2 and ammo.Value>MAXammo/4 then player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 1, 0) elseif ammo.Value<=MAXammo/4 then player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 0, 0) end elseif ammo.Value<=0 then ammo.Value=0 player.PlayerGui.GunGui.Ammo.TextLabel.Text="Ammo: "..ammo.Value.."" player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 0, 0) end end end function onClipsChanged() if clips.Value>0 and equiped==true and reloading==true then player.PlayerGui.GunGui.Clips.TextLabel.Text="Clips: "..clips.Value.."" player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255) elseif clips.Value>0 and equiped==true then player.PlayerGui.GunGui.Clips.TextLabel.Text="Clips: "..clips.Value.."" if clips.Value>MAXclips/2 then player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 1, 1) elseif clips.Value>MAXclips/4 and clips.Value<=MAXclips/2 then player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 1, 0) elseif clips.Value0 then mouse.Icon=ReloadCursor reloading=true player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255) player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255) player.PlayerGui.GunGui.Ammo.TextLabel.Text="Reloading" for i=1,100 do wait(0.07) if equiped==false then break end end if equiped~=false then clips.Value=clips.Value-1 ammo.Value=MAXammo check() end reloading=false if clips.Value<=0 then clips.Value=0 end mouse.Icon=Cursor elseif clips.Value==0 then flash() end end function onAmmoChanged() if ammo.Value>0 and equiped==true then player.PlayerGui.GunGui.Ammo.TextLabel.Text="Ammo: "..ammo.Value.."" if ammo.Value>MAXammo/2 then player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 1, 1) elseif ammo.Value<=MAXammo/2 and ammo.Value>MAXammo/4 then player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 1, 0) elseif ammo.Value<=MAXammo/4 then player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 0, 0) end elseif ammo.Value<=0 then ammo.Value=0 player.PlayerGui.GunGui.Ammo.TextLabel.Text="Ammo: "..ammo.Value.."" player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 0, 0) end end thetool.Ammo.Changed:connect(onAmmoChanged) function raycast(startp, endp, ign) local vec=(endp-startp) if vec.magnitude<1000 then local hit,pos=game.Workspace:FindPartOnRay(Ray.new(startp,vec),ign) if hit and pos then if hit.Parent.className=="Tool" or hit.Parent.className=="Hat" then if hit.Parent.Parent ~= nil then if hit.Parent.Parent:findFirstChild("Humanoid")~=nil then return hit.Parent, pos end end elseif string.lower(hit.Name)=="glass" then local vec=(endp-pos) hit,pos=raycast(pos,vec,ign) elseif string.lower(hit.Name)=="water" then local vec=(endp-pos) hit,pos=raycast(pos,vec,ign) elseif hit.Transparency==1 or hit.Name=="Bullet" or hit.Name=="BulletTexture" then local vec=(endp-pos) hit,pos=raycast(pos,vec,hit) end end return hit,pos end return nil end function tagHumanoid(humanoid) local plr=game.Players:playerFromCharacter(thetool.Parent) local enplr = game.Players:GetPlayerFromCharacter(humanoid.Parent) if enplr == nil then humanoid.Health = humanoid.Health - BaseDamage end if plr~=nil then local tag=Instance.new("ObjectValue") tag.Value=plr tag.Name="creator" tag.Parent=humanoid delay(0.2,function() if tag~=nil then tag.Parent=nil end end) end end function onKeyDown(key,mouse) key=key:lower() if key=="r" and not reloading then reload(mouse) elseif key=="t" then stopper=false reloading=false thetool=FindPlane() end end function movecframe(p,pos) p.Parent=game.Lighting p.Position=pos p.Parent=game.Workspace end function SameTeam(killer, victim) if game:findFirstChild("Teams")~=nil then if killer ~= victim then if killer.Neutral==true or victim.Neutral then return false elseif killer.TeamColor==Team and victim.TeamColor==TeamsAliies then return true elseif killer.TeamColor==TeamsAliies and victim.TeamColor==Team then return true elseif killer.TeamColor == victim.TeamColor then return true else return false end return false else return true end return false else return false end end function takeDamage(dm, pl) if pl:findFirstChild("Armor")~=nil then sh=pl:findFirstChild("Armor") if sh.Value==0 then pl.Humanoid:TakeDamage(dm) elseif sh.Valuedm then sh.Value=sh.Value-dm elseif sh.Value==dm then sh.Value=0 end else pl.Humanoid:TakeDamage(dm) end end function KillALLTheNoobs(aim) thetool.Fire:Play() thetool.Light.Light.Visible = true thetool.PointLight.Enabled = true local bullet=Bullet:clone() local startpoint=thetool.Position local direction=(aim-startpoint) local cfrm=CFrame.new(startpoint, direction+startpoint) local vector=startpoint+(direction.Unit*999) if (startpoint-vector).magnitude<1000 then local hit,pos=raycast(startpoint,vector,thetool.Parent) bullet.Parent=game.Workspace if hit~=nil then if hit.Parent==thetool.Parent.Parent or game.Players:GetPlayerFromCharacter(hit.Parent)==game.Players.LocalPlayer then return nil end if hit.Parent:FindFirstChild("VecHealth")~=nil then vech=hit.Parent:FindFirstChild("VecHealth") vech.Value=vech.Value-VehicleDamage end if hit.Parent:FindFirstChild("HealthStatus")~=nil then fo=hit.Parent:FindFirstChild("HealthStatus") fo.Value=fo.Value-BaseDamage end local humanoid=hit.Parent:FindFirstChild("Humanoid") if humanoid~=nil then local damage=math.random(BaseDamage-(BaseDamage*.25),BaseDamage+(BaseDamage*.25)) if hit.Name=="Head" then damage=damage*1.25 elseif hit.Name=="Torso" then else damage=damage*.75 end if humanoid.Health>0 then local eplr=game.Players:GetPlayerFromCharacter(humanoid.Parent) local plr=game.Players.LocalPlayer if eplr~=nil and plr~=nil then if (SameTeam(plr, eplr)==false) then if hit.Parent:findFirstChild("ForceField")==nil then tagHumanoid(humanoid) takeDamage(damage, humanoid.Parent) end end else if hit.Parent:findFirstChild("ForceField")==nil then tagHumanoid(humanoid) takeDamage(damage, humanoid.Parent) end end end end distance=(startpoint-pos).magnitude bullet.CFrame=cfrm*CFrame.new(0,0,-distance/2) bullet.Mesh.Scale=Vector3.new(.15,.15,distance) else bullet.CFrame=cfrm*CFrame.new(0,0,-RayLength/2) bullet.Mesh.Scale=Vector3.new(.15,.15,RayLength) end if pos~=nil then --bt2.CFrame=bullet.CFrame --movecframe(bt2,pos) end local deb=game:FindFirstChild("Debris") if deb==nil then local debris=Instance.new("Debris") debris.Parent=game end ammo.Value=ammo.Value-1 check() game.Debris:AddItem(bullet,.05) game.Debris:AddItem(sX, .3) wait(0.03) thetool.Light.Light.Visible = false thetool.PointLight.Enabled = false end end function onButton1Up(mouse) down=false end function onButton1Down(mouse) h=game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") if reloading~=true and stopper~=true and h~=nil and equiped==true then thetool.Triger:Play() down=true stopper=true if ammo.Value<=0 then flash() end while ammo.Value>0 and h.Health>0 and down==true do if threebb then local startpoint=thetool.CFrame.p local mag=(mouse.Hit.p-startpoint).magnitude local rndm=Vector3.new(math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag)) KillALLTheNoobs(mouse.Hit.p+rndm) if ammo.Value<=0 then break end wait(0.05) local startpoint=thetool.CFrame.p local mag2=((mouse.Hit.p+rndm)-startpoint).magnitude local rndm2=Vector3.new(math.random(-(.1/10)*mag2,(.1/10)*mag2),math.random(-(.1/10)*mag2,(.1/10)*mag2),math.random(-(.1/10)*mag2,(.1/10)*mag2)) KillALLTheNoobs(mouse.Hit.p+rndm+rndm2) if ammo.Value<=0 then break end wait(0.05) KillALLTheNoobs(mouse.Hit.p+rndm+rndm2+rndm2) elseif shot then local startpoint=thetool.CFrame.p local mag=(mouse.Hit.p-startpoint).magnitude local rndm=Vector3.new(math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag)) KillALLTheNoobs(mouse.Hit.p+rndm) local mag2=(mouse.Hit.p-startpoint).magnitude local rndm2=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2)) KillALLTheNoobs(mouse.Hit.p+rndm2) local rndm3=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2)) KillALLTheNoobs(mouse.Hit.p+rndm3) local rndm4=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2)) KillALLTheNoobs(mouse.Hit.p+rndm4) else local startpoint=thetool.CFrame.p local mag=(mouse.Hit.p-startpoint).magnitude local rndm=Vector3.new(math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag)) KillALLTheNoobs(mouse.Hit.p+rndm) end wait(Firerate) if auto==false or ammo.Value<=0 then break end end stopper=false end end function onEquippedLocal(mouse) if mouse==nil then print("Mouse not found") return end if (not player.PlayerGui:FindFirstChild("GunGui")) then gun.GunGui:Clone().Parent=player.PlayerGui end mouse.Icon=Cursor mouse.KeyDown:connect(function(key) onKeyDown(key,mouse) end) mouse.Button1Down:connect(function() onButton1Down(mouse) end) mouse.Button1Up:connect(function() onButton1Up(mouse) end) equiped=true down=false check() end function onUnequippedLocal(mouse) if player.PlayerGui:FindFirstChild("GunGui")~=nil then player.PlayerGui:FindFirstChild("GunGui").Parent=nil end equiped=false reloading=false down=false end gun.Selected:connect(onEquippedLocal) gun.Deselected:connect(onUnequippedLocal)