Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- made by 1ndrew DONT ABUSE THIS NIGGERS
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- SpecialMesh5 = Instance.new("SpecialMesh")
- Part6 = Instance.new("Part")
- SpecialMesh7 = Instance.new("SpecialMesh")
- Part8 = Instance.new("Part")
- SpecialMesh9 = Instance.new("SpecialMesh")
- ManualWeld10 = Instance.new("ManualWeld")
- Part11 = Instance.new("Part")
- SpecialMesh12 = Instance.new("SpecialMesh")
- Part13 = Instance.new("Part")
- SpecialMesh14 = Instance.new("SpecialMesh")
- Part15 = Instance.new("Part")
- SpecialMesh16 = Instance.new("SpecialMesh")
- Part17 = Instance.new("Part")
- SpecialMesh18 = Instance.new("SpecialMesh")
- Part19 = Instance.new("Part")
- SpecialMesh20 = Instance.new("SpecialMesh")
- Sound21 = Instance.new("Sound")
- Sound22 = Instance.new("Sound")
- Part23 = Instance.new("Part")
- Part24 = Instance.new("Part")
- PointLight25 = Instance.new("PointLight")
- BillboardGui26 = Instance.new("BillboardGui")
- ImageLabel27 = Instance.new("ImageLabel")
- Part28 = Instance.new("Part")
- Sound29 = Instance.new("Sound")
- Sound30 = Instance.new("Sound")
- Sound31 = Instance.new("Sound")
- Sound32 = Instance.new("Sound")
- Part33 = Instance.new("Part")
- CylinderMesh34 = Instance.new("CylinderMesh")
- Part35 = Instance.new("Part")
- LocalScript36 = Instance.new("LocalScript")
- NumberValue37 = Instance.new("NumberValue")
- NumberValue38 = Instance.new("NumberValue")
- Smoke39 = Instance.new("Smoke")
- Smoke40 = Instance.new("Smoke")
- Smoke41 = Instance.new("Smoke")
- ScreenGui42 = Instance.new("ScreenGui")
- Frame43 = Instance.new("Frame")
- TextLabel44 = Instance.new("TextLabel")
- TextLabel45 = Instance.new("TextLabel")
- TextLabel46 = Instance.new("TextLabel")
- TextLabel47 = Instance.new("TextLabel")
- TextLabel48 = Instance.new("TextLabel")
- TextLabel49 = Instance.new("TextLabel")
- TextLabel50 = Instance.new("TextLabel")
- TextLabel51 = Instance.new("TextLabel")
- TextLabel52 = Instance.new("TextLabel")
- TextLabel53 = Instance.new("TextLabel")
- TextLabel54 = Instance.new("TextLabel")
- Frame55 = Instance.new("Frame")
- TextLabel56 = Instance.new("TextLabel")
- Part57 = Instance.new("Part")
- CylinderMesh58 = Instance.new("CylinderMesh")
- Part59 = Instance.new("Part")
- SpecialMesh60 = Instance.new("SpecialMesh")
- Part61 = Instance.new("Part")
- BlockMesh62 = Instance.new("BlockMesh")
- Part63 = Instance.new("Part")
- Part64 = Instance.new("Part")
- Sound65 = Instance.new("Sound")
- Sound66 = Instance.new("Sound")
- Sound67 = Instance.new("Sound")
- Sound68 = Instance.new("Sound")
- Part69 = Instance.new("Part")
- SpecialMesh70 = Instance.new("SpecialMesh")
- Tool0.Name = "Galil"
- Tool0.Parent = mas
- Tool0.ToolTip = "Made in Germany"
- Part1.Name = "Stock"
- Part1.Parent = Tool0
- Part1.Material = Enum.Material.Concrete
- Part1.Rotation = Vector3.new(90, 0, 90)
- Part1.Anchored = true
- Part1.CanCollide = false
- Part1.Size = Vector3.new(1.37353814, 0.225373551, 0.677169979)
- Part1.CFrame = CFrame.new(-11.9016075, 0.827715993, -114.571457, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part1.Position = Vector3.new(-11.9016075, 0.827715993, -114.571457)
- Part1.Orientation = Vector3.new(90, -90, 0)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxassetid://777168070"
- SpecialMesh2.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- SpecialMesh2.TextureId = "rbxassetid://777335465"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- Part3.Name = "SightMark"
- Part3.Parent = Tool0
- Part3.Material = Enum.Material.SmoothPlastic
- Part3.BrickColor = BrickColor.new("New Yeller")
- Part3.Transparency = 1
- Part3.Anchored = true
- Part3.CanCollide = false
- Part3.FormFactor = Enum.FormFactor.Custom
- Part3.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part3.CFrame = CFrame.new(-11.8999996, 1.39999998, -117.650002, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.Color = Color3.new(1, 1, 0)
- Part3.Position = Vector3.new(-11.8999996, 1.39999998, -117.650002)
- Part3.Color = Color3.new(1, 1, 0)
- Part4.Name = "PMag"
- Part4.Parent = Tool0
- Part4.Material = Enum.Material.Concrete
- Part4.Rotation = Vector3.new(90, 0, 90)
- Part4.Anchored = true
- Part4.CanCollide = false
- Part4.Size = Vector3.new(0.611639202, 0.225373551, 1.02088165)
- Part4.CFrame = CFrame.new(-11.9085007, 0.510469019, -116.243156, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part4.Position = Vector3.new(-11.9085007, 0.510469019, -116.243156)
- Part4.Orientation = Vector3.new(90, -90, 0)
- SpecialMesh5.Parent = Part4
- SpecialMesh5.MeshId = "rbxassetid://777172237"
- SpecialMesh5.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- SpecialMesh5.TextureId = "rbxassetid://777384640"
- SpecialMesh5.MeshType = Enum.MeshType.FileMesh
- SpecialMesh5.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- Part6.Name = "Carry Handle and Bipod"
- Part6.Parent = Tool0
- Part6.Material = Enum.Material.Fabric
- Part6.Rotation = Vector3.new(90, 0, 90)
- Part6.Anchored = true
- Part6.CanCollide = false
- Part6.Size = Vector3.new(1.56262827, 0.330295652, 0.420204818)
- Part6.CFrame = CFrame.new(-11.9754944, 0.999993026, -117.226105, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part6.Position = Vector3.new(-11.9754944, 0.999993026, -117.226105)
- Part6.Orientation = Vector3.new(90, -90, 0)
- SpecialMesh7.Parent = Part6
- SpecialMesh7.MeshId = "rbxassetid://777123880"
- SpecialMesh7.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- SpecialMesh7.TextureId = "rbxassetid://777364176"
- SpecialMesh7.MeshType = Enum.MeshType.FileMesh
- SpecialMesh7.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- Part8.Name = "Sights"
- Part8.Parent = Tool0
- Part8.Material = Enum.Material.Concrete
- Part8.Rotation = Vector3.new(90, 0, 90)
- Part8.Anchored = true
- Part8.CanCollide = false
- Part8.Size = Vector3.new(2.59750986, 0.225373551, 0.46276167)
- Part8.CFrame = CFrame.new(-11.9239273, 1.20390105, -116.700882, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part8.Position = Vector3.new(-11.9239273, 1.20390105, -116.700882)
- Part8.Orientation = Vector3.new(90, -90, 0)
- SpecialMesh9.Parent = Part8
- SpecialMesh9.MeshId = "rbxassetid://777163506"
- SpecialMesh9.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- SpecialMesh9.TextureId = "rbxassetid://777369857"
- SpecialMesh9.MeshType = Enum.MeshType.FileMesh
- SpecialMesh9.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- ManualWeld10.Name = "Sights-to-Handle Strong Joint"
- ManualWeld10.Parent = Part8
- ManualWeld10.C0 = CFrame.new(-1.29875493, -0.112686776, 0.231380835, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld10.C1 = CFrame.new(0.150893211, 0.0998110771, -2.60734558, 1.29999999e-05, -1, 0, -0.00598000083, -7.77400047e-08, -0.999982119, 0.999982119, 1.29997679e-05, -0.0059800013)
- ManualWeld10.Part0 = Part8
- ManualWeld10.Part1 = Part64
- Part11.Name = "Lower receiver"
- Part11.Parent = Tool0
- Part11.Material = Enum.Material.Concrete
- Part11.Rotation = Vector3.new(90, 0, 90)
- Part11.Anchored = true
- Part11.CanCollide = false
- Part11.Size = Vector3.new(2.53263402, 0.225373551, 0.633969903)
- Part11.CFrame = CFrame.new(-11.8991966, 0.955765009, -116.50531, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part11.Position = Vector3.new(-11.8991966, 0.955765009, -116.50531)
- Part11.Orientation = Vector3.new(90, -90, 0)
- SpecialMesh12.Parent = Part11
- SpecialMesh12.MeshId = "rbxassetid://777158802"
- SpecialMesh12.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- SpecialMesh12.TextureId = "rbxassetid://777342509"
- SpecialMesh12.MeshType = Enum.MeshType.FileMesh
- SpecialMesh12.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- Part13.Name = "Handguard"
- Part13.Parent = Tool0
- Part13.Material = Enum.Material.Concrete
- Part13.Rotation = Vector3.new(90, 0, 90)
- Part13.Anchored = true
- Part13.CanCollide = false
- Part13.Size = Vector3.new(0.91803354, 0.263795912, 0.339953363)
- Part13.CFrame = CFrame.new(-11.9229851, 1.040447, -117.015335, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part13.Position = Vector3.new(-11.9229851, 1.040447, -117.015335)
- Part13.Orientation = Vector3.new(90, -90, 0)
- SpecialMesh14.Parent = Part13
- SpecialMesh14.MeshId = "rbxassetid://777126216"
- SpecialMesh14.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- SpecialMesh14.TextureId = "rbxassetid://777479988"
- SpecialMesh14.MeshType = Enum.MeshType.FileMesh
- SpecialMesh14.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- Part15.Name = "FakeGrip"
- Part15.Parent = Tool0
- Part15.Material = Enum.Material.Concrete
- Part15.Rotation = Vector3.new(90, 0, 90)
- Part15.Anchored = true
- Part15.CanCollide = false
- Part15.Size = Vector3.new(0.639974177, 0.225373551, 0.605908811)
- Part15.CFrame = CFrame.new(-11.9085007, 0.618148029, -115.535614, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part15.Position = Vector3.new(-11.9085007, 0.618148029, -115.535614)
- Part15.Orientation = Vector3.new(90, -90, 0)
- SpecialMesh16.Parent = Part15
- SpecialMesh16.MeshId = "rbxassetid://777114867"
- SpecialMesh16.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- SpecialMesh16.TextureId = "rbxassetid://777375519"
- SpecialMesh16.MeshType = Enum.MeshType.FileMesh
- SpecialMesh16.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- Part17.Name = "Barrel"
- Part17.Parent = Tool0
- Part17.Material = Enum.Material.Concrete
- Part17.Rotation = Vector3.new(90, 0, 90)
- Part17.Anchored = true
- Part17.CanCollide = false
- Part17.Size = Vector3.new(2.24157023, 0.225373551, 0.225373551)
- Part17.CFrame = CFrame.new(-11.9085007, 1.06779695, -117.758286, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part17.Position = Vector3.new(-11.9085007, 1.06779695, -117.758286)
- Part17.Orientation = Vector3.new(90, -90, 0)
- SpecialMesh18.Parent = Part17
- SpecialMesh18.MeshId = "rbxassetid://777120329"
- SpecialMesh18.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- SpecialMesh18.TextureId = "rbxassetid://777358188"
- SpecialMesh18.MeshType = Enum.MeshType.FileMesh
- SpecialMesh18.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- Part19.Name = "Barrier"
- Part19.Parent = Tool0
- Part19.Material = Enum.Material.Concrete
- Part19.Rotation = Vector3.new(90, 0, 90)
- Part19.Anchored = true
- Part19.CanCollide = false
- Part19.Size = Vector3.new(0.426093042, 0.225373551, 0.225373551)
- Part19.CFrame = CFrame.new(-11.8584976, 1.17568004, -116.267441, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part19.Position = Vector3.new(-11.8584976, 1.17568004, -116.267441)
- Part19.Orientation = Vector3.new(90, -90, 0)
- SpecialMesh20.Parent = Part19
- SpecialMesh20.MeshId = "rbxassetid://777196460"
- SpecialMesh20.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- SpecialMesh20.TextureId = "rbxassetid://777328045"
- SpecialMesh20.MeshType = Enum.MeshType.FileMesh
- SpecialMesh20.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- Sound21.Name = "BoltForward"
- Sound21.Parent = Part19
- Sound21.SoundId = "rbxassetid://393678926"
- Sound21.Volume = 1
- Sound22.Name = "BoltBack"
- Sound22.Parent = Part19
- Sound22.SoundId = "rbxassetid://393678915"
- Sound22.Volume = 1
- Part23.Name = "AimPart"
- Part23.Parent = Tool0
- Part23.Material = Enum.Material.SmoothPlastic
- Part23.BrickColor = BrickColor.new("Electric blue")
- Part23.Transparency = 1
- Part23.Anchored = true
- Part23.CanCollide = false
- Part23.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- Part23.CFrame = CFrame.new(-11.9064178, 1.38265896, -115.35582, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part23.BottomSurface = Enum.SurfaceType.Smooth
- Part23.TopSurface = Enum.SurfaceType.Smooth
- Part23.Color = Color3.new(0.0352941, 0.537255, 0.811765)
- Part23.Position = Vector3.new(-11.9064178, 1.38265896, -115.35582)
- Part23.Color = Color3.new(0.0352941, 0.537255, 0.811765)
- Part24.Name = "SmokePart"
- Part24.Parent = Tool0
- Part24.Material = Enum.Material.SmoothPlastic
- Part24.BrickColor = BrickColor.new("Really black")
- Part24.Reflectance = 0.30000001192093
- Part24.Transparency = 1
- Part24.Rotation = Vector3.new(-90.3399963, 90, 0)
- Part24.Anchored = true
- Part24.CanCollide = false
- Part24.FormFactor = Enum.FormFactor.Custom
- Part24.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part24.CFrame = CFrame.new(-11.9090004, 1.06799996, -118.844002, 0, -1.30000017e-05, 1, -0.999982119, -0.00597900152, -7.7727023e-08, 0.00597900106, -0.999982119, -1.29997698e-05)
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part24.Position = Vector3.new(-11.9090004, 1.06799996, -118.844002)
- Part24.Orientation = Vector3.new(0, 90, -90.3399963)
- Part24.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- PointLight25.Parent = Part24
- PointLight25.Color = Color3.new(1, 0.988235, 0.870588)
- PointLight25.Enabled = false
- PointLight25.Range = 30
- PointLight25.Shadows = true
- PointLight25.Color = Color3.new(1, 0.988235, 0.870588)
- BillboardGui26.Parent = Part24
- BillboardGui26.Size = UDim2.new(2, 0, 2, 0)
- BillboardGui26.Enabled = false
- ImageLabel27.Name = "Flash"
- ImageLabel27.Parent = BillboardGui26
- ImageLabel27.Transparency = 1
- ImageLabel27.Size = UDim2.new(1, 1, 1, 1)
- ImageLabel27.BackgroundTransparency = 1
- ImageLabel27.BorderSizePixel = 0
- ImageLabel27.ClipsDescendants = true
- ImageLabel27.Image = "http://www.roblox.com/asset/?id=131435802"
- Part28.Name = "Grip"
- Part28.Parent = Tool0
- Part28.Material = Enum.Material.SmoothPlastic
- Part28.BrickColor = BrickColor.new("Electric blue")
- Part28.Transparency = 1
- Part28.Anchored = true
- Part28.CanCollide = false
- Part28.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- Part28.CFrame = CFrame.new(-11.8800049, 1.04155803, -115.814987, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.TopSurface = Enum.SurfaceType.Smooth
- Part28.Color = Color3.new(0.0352941, 0.537255, 0.811765)
- Part28.Position = Vector3.new(-11.8800049, 1.04155803, -115.814987)
- Part28.Color = Color3.new(0.0352941, 0.537255, 0.811765)
- Sound29.Name = "Click"
- Sound29.Parent = Part28
- Sound29.SoundId = "http://www.roblox.com/asset/?id=265275510"
- Sound29.Volume = 1
- Sound30.Name = "M3"
- Sound30.Parent = Part28
- Sound30.SoundId = "http://www.roblox.com/asset/?id=166238161"
- Sound31.Name = "MagIn"
- Sound31.Parent = Part28
- Sound31.SoundId = "http://roblox.com/asset/?id=166238223"
- Sound31.Volume = 0.20000000298023
- Sound32.Name = "MagOut"
- Sound32.Parent = Part28
- Sound32.SoundId = "http://roblox.com/asset/?id=166238177"
- Sound32.Volume = 0.20000000298023
- Part33.Name = "LaserLight"
- Part33.Parent = Tool0
- Part33.Material = Enum.Material.Neon
- Part33.BrickColor = BrickColor.new("Really red")
- Part33.Transparency = 1
- Part33.Rotation = Vector3.new(-90, -90, 0)
- Part33.CanCollide = false
- Part33.FormFactor = Enum.FormFactor.Custom
- Part33.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part33.CFrame = CFrame.new(-11.9198685, 0.979876995, -117.358482, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part33.Color = Color3.new(1, 0, 0)
- Part33.Position = Vector3.new(-11.9198685, 0.979876995, -117.358482)
- Part33.Orientation = Vector3.new(0, -90, 90)
- Part33.Color = Color3.new(1, 0, 0)
- CylinderMesh34.Parent = Part33
- CylinderMesh34.Offset = Vector3.new(0, 100, 0)
- CylinderMesh34.Scale = Vector3.new(0.0500000007, 1000, 0.0500000007)
- CylinderMesh34.Scale = Vector3.new(0.0500000007, 1000, 0.0500000007)
- Part35.Name = "LaserThing"
- Part35.Parent = Tool0
- Part35.Material = Enum.Material.Neon
- Part35.BrickColor = BrickColor.new("Really black")
- Part35.Transparency = 0.5
- Part35.Anchored = true
- Part35.CanCollide = false
- Part35.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- Part35.CFrame = CFrame.new(-11.9133339, 0.977980971, -117.348953, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part35.BottomSurface = Enum.SurfaceType.Smooth
- Part35.TopSurface = Enum.SurfaceType.Smooth
- Part35.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part35.Position = Vector3.new(-11.9133339, 0.977980971, -117.348953)
- Part35.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- LocalScript36.Name = "DDM4"
- LocalScript36.Parent = Tool0
- table.insert(cors,sandbox(LocalScript36,function()
- sp = script.Parent
- if not _G.MouseSensitivity then
- _G.MouseSensitivity = 1
- end
- CamCon = nil
- local tool = script.Parent
- local flashListBig = { -- List of image IDs for Muzzleflash -- big
- "131435802",
- "131435817",
- "131435825",
- }
- script:WaitForChild("StoredAmmo").Value = math.huge
- Mesh = false -- If true will load BC 2.0 Arm meshes as well.
- Shirt = true -- If true will load the user's shirt to the arms as well
- function onEquipped(mouse)
- local Player = game:GetService("Players").LocalPlayer
- local Cam = game.Workspace.CurrentCamera
- local Arms = Instance.new("Model")
- Arms.Name = "Arms"
- Arms.Parent = Cam
- if Shirt == true then
- local Humanoid = Instance.new("Humanoid")
- Humanoid.MaxHealth = 0
- Humanoid.Health = 0
- Humanoid.Name = ""
- Humanoid.Parent = Arms
- local newShirt = Player.Character:FindFirstChild("Shirt")
- if newShirt then
- newShirt = newShirt:clone()
- newShirt.Parent = Arms
- end
- else end
- local RightArm = Player.Character:FindFirstChild("Right Arm"):clone()
- RightArm.Name = "Right Arm"
- RightArm.Transparency = 0
- local w = Instance.new("Weld")
- w.Part0 = RightArm
- w.Part1 = Player.Character:FindFirstChild("Right Arm")
- w.C0 = CFrame.new()
- w.C1 = CFrame.new()
- w.Parent = RightArm
- RightArm.Parent = Arms
- local LeftArm = Player.Character:FindFirstChild("Left Arm"):clone()
- LeftArm.Name = "Left Arm"
- LeftArm.Transparency = 0
- local w = Instance.new("Weld")
- w.Part0 = LeftArm
- w.Part1 = Player.Character:FindFirstChild("Left Arm")
- w.C0 = CFrame.new()
- w.C1 = CFrame.new()
- w.Parent = LeftArm
- LeftArm.Parent = Arms
- if Mesh ~= false then
- local LeftArmMesh = script:FindFirstChild("LeftArm")
- LeftArmMesh.Parent = LeftArm
- local RightArmMesh = script:FindFirstChild("RightArm")
- RightArmMesh.Parent = RightArm
- else end
- end
- function onUnequipped(mouse)
- local Player = game:GetService("Players").LocalPlayer
- local Cam = game.Workspace.CurrentCamera
- for _, Model in pairs(Cam:GetChildren()) do
- if Model.Name == "Arms" then
- Model:remove()
- else end
- end
- end
- sp.Equipped:connect(onEquipped)
- sp.Unequipped:connect(onUnequipped)
- wait(0.5)
- --Made by YouTubes--
- --Edit settings below--
- local Tool = script.Parent
- local Settings = {
- Range = 1000
- ,Spread = 8
- ,Damage = {25, 40}
- ,HeadShotDamage = {70, 75}
- ,Bullets = 1
- ,FireRate = 0.12
- ,Automatic = true
- ,AntiTK = true
- ,ImpactDuration = 1
- --Reload
- ,ReloadKey = "R"
- ,ReloadTime = 1.83
- ,Ammo = 30
- ,IncludeChamberedBullet = true
- --Gui
- ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
- --Arms
- ,OneHanded = false
- ,FakeArms = false
- ,FakeArmTransparency = 1
- -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
- ,RightPos = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
- ,LeftPos = CFrame.new(0.8, 1.01, 0.38) * CFrame.Angles(math.rad(-90), math.rad(27), math.rad(0), 0)
- ,AimPart = Tool.AimPart
- ,AimPartOffset = CFrame.new()
- ,AimGripOffset = Vector3.new(0, 0, 0)
- ,LeftAimPos = CFrame.new(1, 1.01, 0.4) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
- ,AimAnim = {
- Enabled = false
- ,Frames = 50
- ,Time = 0.1
- }
- ,ChangeFOV = {true, 45}
- ,SpreadReduction = 7.5
- --Weld
- ,Weld = true
- --Mouse
- ,Icons = {
- Idle = "rbxasset://textures/Blank.png"
- ,Fire1 = "rbxasset://textures/Blank.png"
- ,Fire2 = "rbxasset://textures/Blank.png"
- ,Fire3 = "rbxasset://textures/Blank.png"
- ,Reload = "rbxasset://textures/Blank.png"
- ,Aim = "rbxasset://textures/Blank.png"
- }
- ,FireMouseAnimTime = 0.15
- --Recoil
- ,Recoil = math.rad(.8)
- --Smoke
- ,Smoke = true
- ,SmokePart = Tool.SmokePart
- ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
- --Sprint
- ,Sprint = true
- ,SprintSpeed = 20
- ,SprintKey = "0"
- ,SprintSpreadIncrease = 40
- ,SprintArmOffset = CFrame.new(0.25, -0.1, -0.25) * CFrame.Angles(math.rad(-25), math.rad(20), 0)
- --Other
- ,DropHats = true
- }
- -- Change how you want the shell casing to look here.
- local Shell = Instance.new("Part")
- Shell.BrickColor = BrickColor.new(24)
- Shell.Name = "Shell"
- Shell.Locked = true
- Shell.formFactor = 3
- Shell.CanCollide = true
- Shell.Size = Vector3.new(.2,.2,.2)
- --Shell.Parent = game.Workspace
- local ShellMesh = Instance.new("CylinderMesh")
- ShellMesh.Scale = Vector3.new(0.30, 1, 0.30)
- --Do not edit below this lign--
- local Orig_Spread = Settings.Spread
- local Orig_Grip = Tool.GripPos
- local Player = game.Players.LocalPlayer
- repeat wait() until Player.Character and Player.Character.Parent and Player.Character.Parent == game.Workspace
- local Character = Player.Character
- local Camera = Workspace.CurrentCamera
- local Ammo, StoredAmmo = script.Ammo, script.StoredAmmo
- local Gui, CanUpdateGui = nil, true
- local Sprinting, Equipped
- function Update_Gui()
- if Gui and CanUpdateGui then
- Gui.Frame.AmmoDisplay.Text = Ammo.Value
- Gui.Frame.StoredAmmoDisplay.Text = StoredAmmo.Value
- Gui.Frame.GunName.Text = Tool.Name
- Gui.Frame.GunTip3.Visible = true
- end
- end
- local Welded
- if Settings.Weld then
- Delay(0, function()
- local weldC0s = {}
- for i, v in pairs(Tool:GetChildren()) do
- if v:IsA("BasePart") and v ~= Tool.Handle then
- table.insert(weldC0s, {v, Tool.Handle.CFrame:toObjectSpace(v.CFrame)})
- v.Anchored = false
- end
- end
- Tool.Handle.Anchored = false
- local welds = {}
- Tool.Equipped:connect(function()
- for i, v in ipairs(welds) do
- v.Part1 = nil
- v:Destroy()
- end
- for i, v in ipairs(weldC0s) do
- if v[1] and v[2] then
- local w = Instance.new("Weld", Tool.Handle)
- w.Part0 = Tool.Handle
- w.Part1 = v[1]
- w.C0 = v[2]
- table.insert(welds, w)
- end
- end
- end)
- wait()
- Welded = true
- end)
- end
- local Left_Weld, Right_Weld
- Ammo.Changed:connect(Update_Gui)
- StoredAmmo.Changed:connect(Update_Gui)
- Settings.Range = math.min(Settings.Range, 999)
- local Ignore_Model = Workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", Workspace)
- Ignore_Model.Name = "Ray_Ignore"
- local Ray_Ignore = {Character, Ignore_Model, Camera}
- Character.Humanoid.Died:connect(function()
- Tool.Parent = Player.Backpack
- end)
- function convertToCFrameDegrees(xa, ya, za)
- return CFrame.Angles(math.rad(xa), math.rad(ya), math.rad(za))
- end
- function createShellCasing() -- Hooray for a bullet casing! ~~XAXA
- local ShellClone = Shell:Clone()
- ShellClone.Parent = Workspace
- ShellClone.CFrame = tool.E.CFrame * convertToCFrameDegrees(90,0,0)
- ShellClone.Velocity = Vector3.new(0,math.random(10,40),0) + (tool.E.CFrame * convertToCFrameDegrees(0,math.random(-140,-90),0)).lookVector * (math.random(5,25))
- ShellClone.RotVelocity = Vector3.new(0,0,(math.random(200,400) / 10))
- local ShellMeshClone = ShellMesh:Clone()
- ShellMeshClone.Parent = ShellClone
- game.Debris:AddItem(ShellClone, 0.3) --Add it to the debris. No script can match this one's reliability.
- end
- --FlightTheory_WAS_HERE--
- function GetHitInstDataTableFor(Target)
- local Target = Target
- local DataTable = {
- 0, --LightEmission
- NumberSequence.new(.5, 1), --Size
- 31727915, --Texture *STANDARD SMOKE*
- NumberSequence.new(0,0), --Transparency
- 0, --ZOffset
- Vector3.new(), --Acceleration *WIND EFFECT IDEA???
- NumberRange.new(.1,.2), --Lifetime
- 500, --Rate
- NumberRange.new(0,0), --RotSpeed
- NumberRange.new(1,2), --Speed
- 360, --VelocitySpread
- }
- --OriginPos--
- DataTable[6] = Character.Head.Position
- -------------
- if not Target or not Target.Parent then return DataTable end
- if Target.Material == Enum.Material.Metal then
- DataTable[1] = .25
- DataTable[2] = NumberSequence.new(.25, .5)
- DataTable[3] = "237909462"
- DataTable[10] = NumberRange.new(5,10)
- end
- if Target.Material == Enum.Material.DiamondPlate then
- DataTable[1] = .25
- DataTable[2] = NumberSequence.new(.25, .5)
- DataTable[3] = "237909462"
- DataTable[10] = NumberRange.new(5,10)
- end
- if Target.Material == Enum.Material.CorrodedMetal then
- DataTable[1] = .25
- DataTable[2] = NumberSequence.new(.25, .5)
- DataTable[3] = "237909462"
- DataTable[10] = NumberRange.new(5,10)
- end
- if Target.Material == Enum.Material.Grass then
- DataTable[1] = .25
- DataTable[2] = NumberSequence.new(.25, .5)
- DataTable[3] = "242493047"
- DataTable[10] = NumberRange.new(5,10)
- end
- if Target.Parent:FindFirstChild("Humanoid") then
- DataTable[2] = NumberSequence.new(.2, .4)
- DataTable[3] = "25161378"
- DataTable[10] = NumberRange.new(0,0)
- end
- DataTable[3] = "http://www.roblox.com/asset/?id="..DataTable[3]
- return DataTable
- end
- function HitInst(HitPos, Data, Effect)
- local HitPos, Data, Effect = HitPos, Data, Effect
- if Effect == nil then
- Effect = Instance.new("Part", Workspace["Ray_Ignore"])
- game.Debris:AddItem(Effect, .2)
- Effect.Name = "Effect"
- Effect.FormFactor = "Custom"
- Effect.Size = Vector3.new()
- Effect.Transparency = 1
- Effect.CanCollide = false
- Effect.Anchored = true
- Effect.CFrame = CFrame.new(HitPos)
- end
- local Emitter = Instance.new("ParticleEmitter", Effect)
- Emitter.LightEmission = Data[1]
- Emitter.Size = Data[2]
- Emitter.Texture = Data[3]
- Emitter.Transparency = Data[4]
- Emitter.ZOffset = Data[5]
- Emitter.Acceleration = Data[6]
- Emitter.Lifetime = Data[7]
- Emitter.Rate = Data[8]
- Emitter.Rotation = NumberRange.new(1,360) --START AT RANDOM ROTATION
- Emitter.RotSpeed = Data[9]
- Emitter.Speed = Data[10]
- Emitter.VelocitySpread = Data[11]
- delay(.1, function()
- if Emitter and Emitter.Parent then -- "JUST IN CASE" `GTA V Refference
- Emitter.Enabled = false
- end
- end)
- end
- -------------------------
- function Fire(Mouse)
- local Spread = CFrame.Angles(math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10))
- local Ray = Ray.new(Character.Head.Position, (CFrame.new(Character.Head.Position, Mouse.Hit.p) * Spread).lookVector.unit * Settings.Range)
- local Hit, Pos = Workspace:FindPartOnRayWithIgnoreList(Ray, Ray_Ignore)
- tool.SmokePart.PointLight.Enabled = true
- tool.SmokePart.BillboardGui.Flash.Image = "http://www.roblox.com/asset/?id="..flashListBig[math.random(1,#flashListBig)]
- tool.SmokePart.BillboardGui.Enabled = true
- wait()
- tool.SmokePart.PointLight.Enabled = false
- tool.SmokePart.BillboardGui.Enabled = false
- local Hit_Part
- if Hit and Hit.Parent:FindFirstChild("Humanoid") then
- local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
- if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
- return
- end
- local Humanoid = Hit.Parent.Humanoid
- local c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- game.Debris:AddItem(c, 3)
- c.Parent = Humanoid
- if Hit.Name == "Head" then
- Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2])
- else
- Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2])
- end
- elseif Hit and Hit.Parent and Hit.Parent.Parent and Hit.Parent.Parent:FindFirstChild("Humanoid") then
- local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent.Parent)
- if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
- return
- end
- local Humanoid = Hit.Parent.Parent.Humanoid
- local c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- game.Debris:AddItem(c, 3)
- c.Parent = Humanoid
- if Hit.Name == "Head" then
- Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2])
- else
- Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2])
- end
- elseif Hit then
- Hit_Part = Instance.new("Part", Ignore_Model)
- Hit_Part.FormFactor = "Custom"
- Hit_Part.TopSurface = 0
- Hit_Part.BottomSurface = 0
- Hit_Part.Anchored = true
- Hit_Part.CanCollide = false
- Hit_Part.Size = Vector3.new()
- Hit_Part.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
- Hit_Part.BrickColor = BrickColor.new("Really black")
- Hit_Part.Material = "Metal"
- local Holyy = Instance.new("Sound")
- Holyy.Name = "Cracks"
- Holyy.SoundId = "rbxassetid://151284431"
- Holyy.Volume = 0.3
- Holyy.Pitch = 2
- Holyy.Parent = Hit_Part
- Holyy:play()
- local Cur = Instance.new("SpecialMesh",Hit_Part)
- Cur.MeshType = "Sphere"
- Cur.Scale = Vector3.new(0.5,0.5,0.5)
- createShellCasing()
- game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
- if not Hit.Anchored then
- local w = Instance.new("Weld", Hit_Part)
- w.Part0 = Hit
- w.Part1 = Hit_Part
- w.C0 = Hit.CFrame:toObjectSpace(Hit_Part.CFrame)
- Hit_Part.Anchored = false
- end
- if Hit.Parent:IsA("Hat") and Settings.DropHats then
- Hit.Parent.Parent = workspace
- game.Debris:AddItem(Hit, 3)
- end
- end
- --
- HitInst(Pos, GetHitInstDataTableFor(Hit), Hit_Part)
- --
- end
- local Can_Shoot = true
- local Reloading = false
- local First_Person = false
- local DB = false
- local Mouse_Held
- Tool.Equipped:connect(function(Mouse)
- local Mouse = Mouse
- Player.CameraMode = "LockFirstPerson"
- Equipped = true
- if Settings.Weld and not Welded then
- wait()
- Tool.Parent = Player.Backpack
- end
- Character = Player.Character
- if Gui then
- return
- end
- Ray_Ignore = {Character, Ignore_Model, Camera}
- Mouse.Icon = Settings.Icons.Idle
- Gui = script.Gui:Clone()
- Gui.Parent = Player.PlayerGui
- Gui.Frame.Position = UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, 1.1, Gui.Frame.Position.Y.Offset)
- Gui.Frame:TweenPosition(UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, Settings.GuiPos.Y, Gui.Frame.Position.Y.Offset), "Out", "Bounce", 1)
- CanUpdateGui = true
- Update_Gui()
- Mouse.Button1Down:connect(function()
- if DB then return end
- DB = true
- if Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 and not Reloading then
- Mouse_Held = true
- while true do
- if Tool.Parent ~= Character then break end
- if Character.Humanoid.Health <= 0 or Reloading then break end
- Can_Shoot = false
- Delay(0, function()
- local t = math.min(Settings.FireMouseAnimTime/3, Settings.FireRate/3)
- if not Aiming then
- Mouse.Icon = Settings.Icons.Fire1
- end
- wait(t)
- if not Aiming then
- if Reloading then return end
- Mouse.Icon = Settings.Icons.Fire2
- end
- wait(t)
- if not Aiming then
- if Reloading then return end
- Mouse.Icon = Settings.Icons.Fire3
- end
- wait(t)
- if not Aiming then
- if Reloading then return end
- Mouse.Icon = Settings.Icons.Idle
- end
- end)
- for _ = 1, Settings.Bullets do
- Delay(0, function()
- Fire(Mouse, RANGE, SPEED, DROP)
- end)
- end
- Delay(0, function()
- local r = math.abs(Settings.Recoil)
- local ran = math.random(-1, 1)
- Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(r, r*ran, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
- local c = -r/20
- local cx = -(r*ran)/20
- for i = 1, math.random(15, 25) do
- if EquipId == curId then
- Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(c, cx, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
- wait()
- else
- break
- end
- end
- end)
- if Tool.Handle:FindFirstChild("Shoot") then
- Tool.Handle.Shoot:Play()
- end
- Ammo.Value = Ammo.Value - 1
- Tool.Bolt.Mesh.Offset = Vector3.new(0, 0.35, 0)
- wait(Settings.FireRate)
- Tool.Bolt.Mesh.Offset = Vector3.new(0, 0, 0)
- if not Settings.Automatic or Ammo.Value <= 0 or Character.Humanoid.Health <= 0 or not Mouse_Held then
- break
- end
- end
- Can_Shoot = true
- elseif Can_Shoot and Character.Humanoid.Health > 0 and Tool.Handle:FindFirstChild("Click") then
- Tool.Handle.Click:Play()
- end
- DB = false
- end)
- Mouse.Button1Up:connect(function()
- Mouse_Held = false
- end)
- Mouse.KeyDown:connect(function(Key)
- if Key:upper() == Settings.ReloadKey:upper() and Can_Shoot and StoredAmmo.Value > 0 and not Aiming then
- if Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo + 1 or not Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo then
- return
- end
- if Reloading then
- return
- end
- Can_Shoot = false
- Reloading = true
- local TextLabel = Gui.Frame.AmmoDisplay
- Delay(0, function()
- CanUpdateGui = false
- TextLabel.Text = "000"
- wait(Settings.ReloadTime/3)
- if TextLabel then
- TextLabel.Text = "000"
- end
- wait(Settings.ReloadTime/3)
- if TextLabel then
- TextLabel.Text = "000"
- end
- end)
- Mouse.Icon = Settings.Icons.Reload
- -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
- Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
- Left_Weld.C1 = CFrame.new(1.2, 0.6, 0.45) * CFrame.Angles(math.rad(-90), math.rad(45), math.rad(0), 0)
- wait(.02)
- Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
- Left_Weld.C1 = CFrame.new(1.2, 0.5, 0.45) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0), 0)
- wait(.02)
- Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
- Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
- wait(0.02)
- Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
- Tool.Handle.MagOut:play()
- Tool.PMag.Transparency = 1
- Tool.PMag1.Transparency = 1
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.15) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(25), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.10) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(30), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.05) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(35), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.2, 0) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(40), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.15, 0) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(45), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.1, 0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(50), 0)
- wait(0.5)
- Left_Weld.C1 = CFrame.new(1.2, 0.1, 0.0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(40), 0)
- Tool.Handle.MagIn:play()
- Tool.PMag.Transparency = 0
- Tool.PMag1.Transparency = 0
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.15, 0.05) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(35), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.2, 0.10) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(30), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.15) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(25), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
- wait(0.03)
- Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
- wait(0.03)
- Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
- Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
- wait(0.03)
- Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
- Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(05), 0)
- wait(0.03)
- Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
- Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
- wait(0.03)
- Right_Weld.C1 = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
- Left_Weld.C1 = CFrame.new(0.8, 1.01, 0.38) * CFrame.Angles(math.rad(-90), math.rad(27), math.rad(0), 0)
- Mouse.Icon = Settings.Icons.Idle
- CanUpdateGui = true
- local m = Settings.Ammo
- if Ammo.Value > 0 and Settings.IncludeChamberedBullet then
- m = m + 1
- end
- if (StoredAmmo.Value - (m - Ammo.Value)) <= 0 then
- Ammo.Value = Ammo.Value + StoredAmmo.Value
- StoredAmmo.Value = 0
- else
- StoredAmmo.Value = StoredAmmo.Value - (m - Ammo.Value)
- Ammo.Value = m
- end
- Can_Shoot = true
- Reloading = false
- elseif Key:upper() == Settings.SprintKey:upper() and Settings.Sprint and not Aiming then
- Sprinting = true
- Character.Humanoid.WalkSpeed = Settings.SprintSpeed
- Settings.Spread = Settings.Spread + Settings.SprintSpreadIncrease
- end
- end)
- Mouse.KeyUp:connect(function(Key)
- if Key:upper() == Settings.SprintKey:upper() and Sprinting then
- Sprinting = false
- Character.Humanoid.WalkSpeed = 16
- Settings.Spread = Settings.Spread - Settings.SprintSpreadIncrease
- Right_Weld.C0 = CFrame.new(0, -1.5, 0)
- end
- end)
- Mouse.Button2Down:connect(function()
- if not Reloading and not Sprinting and not Aiming and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 then
- Aiming = true
- Player.CameraMode = "LockFirstPerson"
- Mouse.WheelBackward:connect(function()
- if _G.MouseSensitivity >= 0.1 then
- _G.MouseSensitivity = _G.MouseSensitivity - 0.1
- wait()
- print(_G.MouseSensitivity)
- end
- end)
- Mouse.WheelForward:connect(function()
- if _G.MouseSensitivity < 2 then
- _G.MouseSensitivity = _G.MouseSensitivity + 0.1
- wait()
- end
- end)
- Mouse.Icon = Settings.Icons.Aim
- if Settings.AimAnim.Enabled then
- Right_Weld.C1 = CFrame.new()
- Right_Weld.C0 = CFrame.new()
- Delay(0, function()
- Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame))
- end)
- Delay(0, function()
- Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftAimPos)
- end)
- Delay(0, function()
- if Settings.ChangeFOV[1] then
- Camera.FieldOfView = 70
- local Cam_Dif, T_F = 70 - Settings.ChangeFOV[2], Settings.AimAnim.Time * Settings.AimAnim.Frames
- for i = 1, T_F do
- local FOV = 70 - Cam_Dif/T_F * i
- Camera.FieldOfView = FOV
- wait(Settings.AimAnim.Time/Settings.AimAnim.Frames)
- if not Aiming then
- return
- end
- end
- Camera.FieldOfView = Settings.ChangeFOV[2]
- end
- end)
- else
- Right_Weld.C1 = CFrame.new()
- Right_Weld.C0 = CFrame.new()
- Right_Weld.C1 = Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame)
- Left_Weld.C1 = Settings.LeftAimPos
- if Settings.ChangeFOV[1] then
- Camera.FieldOfView = Settings.ChangeFOV[2]
- end
- end
- Tool.GripPos = Orig_Grip + Settings.AimGripOffset
- Settings.Spread = Settings.Spread - Settings.SpreadReduction
- end
- end)
- Mouse.Button2Up:connect(function()
- if Aiming then
- Player.CameraMode = "LockFirstPerson"
- Mouse.Icon = Settings.Icons.Idle
- Tool.GripPos = Orig_Grip
- if Settings.AimAnim.Enabled then
- Delay(0, function()
- Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, CFrame.new(0, -1.5, 0))
- end)
- Delay(0, function()
- Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftPos)
- end)
- else
- Right_Weld.C1 = Settings.RightPos
- Right_Weld.C0 = CFrame.new(0, -1.5, 0)
- Left_Weld.C1 = Settings.LeftPos
- end
- if Settings.ChangeFOV[1] then
- Camera.FieldOfView = 70
- end
- Settings.Spread = Settings.Spread + Settings.SpreadReduction
- Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- wait(0.25)
- Aiming = false
- end
- end)
- wait()
- CamCon = Camera.Changed:connect(function()
- if Mouse and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
- Mouse.TargetFilter = workspace
- Character.Torso.Neck.C1 = CFrame.new()
- Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
- end
- end)
- Mouse.Idle:connect(function()
- if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
- Mouse.TargetFilter = workspace
- Character.Torso.Neck.C1 = CFrame.new()
- Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
- end
- end)
- while wait() and Equipped do
- if Character.Humanoid.Health <= 0 then break end
- if Sprinting then
- Can_Shoot = false
- Right_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
- Left_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
- elseif not Aiming and not Sprinting then
- Can_Shoot = true
- Left_Weld.C0 = CFrame.new(0, -1.5, 0)
- end
- if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude > 1 and Equipped then
- Mouse.TargetFilter = nil
- Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- end
- end
- end)
- local Arms_Made
- local Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model
- Tool.Equipped:connect(function(Mouse)
- if Character and not Arms_Made then
- Arms_Made = true
- local Torso = Character.Torso
- Torso["Right Shoulder"].Part1 = nil
- Left_Weld = Instance.new("Weld", Torso)
- Left_Weld.Name = "Left_Weld"
- Left_Weld.Part0 = Character.Head
- Left_Weld.C0 = CFrame.new(0, -1.5, 0)
- if not Settings.OneHanded then
- Torso["Left Shoulder"].Part1 = nil
- Left_Weld.Part1 = Character["Left Arm"]
- end
- Right_Weld = Instance.new("Weld", Torso)
- Right_Weld.Name = "Right_Weld"
- Right_Weld.Part0 = Character.Head
- Right_Weld.Part1 = Character["Right Arm"]
- Right_Weld.C0 = CFrame.new(0, -1.5, 0)
- Left_Weld.C1 = Settings.LeftPos
- Right_Weld.C1 = Settings.RightPos
- end
- if Settings.FakeArms and not Fake_Arm_Right then
- Fake_Arm_Right, Fake_Arm_Left = Character["Right Arm"]:Clone(), Character["Left Arm"]:Clone()
- Fake_Arm_Right.FormFactor, Fake_Arm_Left.FormFactor = "Custom", "Custom"
- Fake_Arm_Right.Size, Fake_Arm_Left.Size = Vector3.new(), Vector3.new()
- local fakeArms = {Fake_Arm_Right, Fake_Arm_Left}
- for i = 1, 2 do
- local w = Instance.new("Weld", fakeArms[i])
- w.Part0 = Character[fakeArms[i].Name]
- w.Part1 = fakeArms[i]
- fakeArms[i].Transparency = Settings.FakeArmTransparency
- end
- Fake_Arm_Model = Instance.new("Model", Camera)
- Fake_Arm_Right.Parent = Fake_Arm_Model
- if not Settings.OneHanded then
- Fake_Arm_Left.Parent = Fake_Arm_Model
- end
- Fake_Arm_Model.Name = "FakeArms"
- if Settings.CharacterMeshes then
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm or v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
- v:Clone().Parent = Fake_Arm_Model
- end
- end
- end
- if Character:FindFirstChild("Shirt") then
- Instance.new("Humanoid", Fake_Arm_Model)
- Character.Shirt:Clone().Parent = Fake_Arm_Model
- else
- local Arm_Mesh = Instance.new("SpecialMesh", Fake_Arm_Right)
- Arm_Mesh.MeshType, Arm_Mesh.Scale = "Brick", Vector3.new(1, 2, 1)
- local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
- Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(1, 2, 1)
- end
- end
- end)
- Tool.Unequipped:connect(function()
- if CamCon then
- CamCon:disconnect()
- end
- if Settings.ChangeFOV[1] then
- Camera.FieldOfView = 70
- end
- Player.CameraMode = "Classic"
- if Character.Humanoid.Health <= 0 then
- return
- end
- CamCon = nil
- Equipped = false
- Tool.GripPos = Orig_Grip
- Aiming = false
- Settings.Spread = Orig_Spread
- if Gui then
- Gui:Destroy()
- Gui = nil
- end
- for i, v in pairs(Tool.Handle:GetChildren()) do
- if v:IsA("Sound") then
- v:Stop()
- end
- end
- if Fake_Arm_Right and Fake_Arm_Left and Fake_Arm_Model then
- Fake_Arm_Model:Destroy()
- Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model = nil, nil, nil
- end
- if Character and Left_Weld and Right_Weld then
- Arms_Made = false
- local Torso = Character.Torso
- Torso["Right Shoulder"].Part1, Torso["Left Shoulder"].Part1 = Character["Right Arm"], Character["Left Arm"]
- Left_Weld:Destroy()
- Right_Weld:Destroy()
- end
- Sprinting = false
- Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Character.Humanoid.WalkSpeed = 16
- end)
- end))
- NumberValue37.Name = "StoredAmmo"
- NumberValue37.Parent = LocalScript36
- NumberValue37.Value = 120
- NumberValue38.Name = "Ammo"
- NumberValue38.Parent = LocalScript36
- NumberValue38.Value = 30
- Smoke39.Parent = LocalScript36
- Smoke39.Size = 0.25
- Smoke39.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke39.Enabled = false
- Smoke39.Opacity = 0.10000000149012
- Smoke39.RiseVelocity = 10
- Smoke39.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke40.Name = "Smoke1"
- Smoke40.Parent = LocalScript36
- Smoke40.Size = 0.25
- Smoke40.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke40.Enabled = false
- Smoke40.Opacity = 0.10000000149012
- Smoke40.RiseVelocity = 10
- Smoke40.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke41.Name = "Smoke2"
- Smoke41.Parent = LocalScript36
- Smoke41.Size = 0.25
- Smoke41.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke41.Enabled = false
- Smoke41.Opacity = 0.10000000149012
- Smoke41.RiseVelocity = 10
- Smoke41.Color = Color3.new(0.807843, 0.807843, 0.807843)
- ScreenGui42.Name = "Gui"
- ScreenGui42.Parent = LocalScript36
- Frame43.Parent = ScreenGui42
- Frame43.Transparency = 0.30000001192093
- Frame43.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
- Frame43.Position = UDim2.new(0.150000006, -5, 1, -120)
- Frame43.Active = true
- Frame43.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame43.BackgroundTransparency = 0.30000001192093
- Frame43.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
- Frame43.BorderSizePixel = 0
- Frame43.SizeConstraint = Enum.SizeConstraint.RelativeXX
- TextLabel44.Name = "000"
- TextLabel44.Parent = Frame43
- TextLabel44.Transparency = 1
- TextLabel44.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- TextLabel44.Text = "000"
- TextLabel44.Position = UDim2.new(-0.0299999993, 0, 0.129999995, 0)
- TextLabel44.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- TextLabel44.BackgroundTransparency = 1
- TextLabel44.ZIndex = 2
- TextLabel44.FontSize = Enum.FontSize.Size14
- TextLabel44.TextColor3 = Color3.new(1, 1, 1)
- TextLabel44.TextScaled = true
- TextLabel44.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- TextLabel44.TextTransparency = 0.80000001192093
- TextLabel44.TextWrapped = true
- TextLabel45.Name = "AmmoDisplay"
- TextLabel45.Parent = Frame43
- TextLabel45.Transparency = 1
- TextLabel45.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- TextLabel45.Text = ""
- TextLabel45.Position = UDim2.new(-0.0900000036, 0, 0.129999995, 0)
- TextLabel45.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- TextLabel45.BackgroundTransparency = 1
- TextLabel45.ZIndex = 2
- TextLabel45.FontSize = Enum.FontSize.Size14
- TextLabel45.TextColor3 = Color3.new(1, 1, 1)
- TextLabel45.TextScaled = true
- TextLabel45.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- TextLabel45.TextWrapped = true
- TextLabel45.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel46.Name = "000"
- TextLabel46.Parent = Frame43
- TextLabel46.Transparency = 1
- TextLabel46.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- TextLabel46.Text = "000"
- TextLabel46.Position = UDim2.new(0.479999989, 0, 0.129999995, 0)
- TextLabel46.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- TextLabel46.BackgroundTransparency = 1
- TextLabel46.ZIndex = 2
- TextLabel46.FontSize = Enum.FontSize.Size14
- TextLabel46.TextColor3 = Color3.new(1, 1, 1)
- TextLabel46.TextScaled = true
- TextLabel46.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- TextLabel46.TextTransparency = 0.80000001192093
- TextLabel46.TextWrapped = true
- TextLabel47.Name = "StoredAmmoDisplay"
- TextLabel47.Parent = Frame43
- TextLabel47.Transparency = 1
- TextLabel47.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- TextLabel47.Text = ""
- TextLabel47.Position = UDim2.new(0.419999987, 0, 0.129999995, 0)
- TextLabel47.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- TextLabel47.BackgroundTransparency = 1
- TextLabel47.ZIndex = 2
- TextLabel47.FontSize = Enum.FontSize.Size14
- TextLabel47.TextColor3 = Color3.new(1, 1, 1)
- TextLabel47.TextScaled = true
- TextLabel47.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- TextLabel47.TextWrapped = true
- TextLabel47.TextXAlignment = Enum.TextXAlignment.Right
- TextLabel48.Name = "Divider"
- TextLabel48.Parent = Frame43
- TextLabel48.Transparency = 1
- TextLabel48.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
- TextLabel48.Text = "|"
- TextLabel48.Position = UDim2.new(0.903999984, 0, 0.300000012, 0)
- TextLabel48.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- TextLabel48.BackgroundTransparency = 1
- TextLabel48.ZIndex = 2
- TextLabel48.FontSize = Enum.FontSize.Size18
- TextLabel48.TextColor3 = Color3.new(1, 1, 1)
- TextLabel48.TextScaled = true
- TextLabel48.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- TextLabel48.TextWrapped = true
- TextLabel49.Name = "Divider"
- TextLabel49.Parent = Frame43
- TextLabel49.Transparency = 1
- TextLabel49.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
- TextLabel49.Text = "|"
- TextLabel49.Position = UDim2.new(0.903999984, 0, 0.100000001, 0)
- TextLabel49.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- TextLabel49.BackgroundTransparency = 1
- TextLabel49.ZIndex = 2
- TextLabel49.FontSize = Enum.FontSize.Size18
- TextLabel49.TextColor3 = Color3.new(1, 1, 1)
- TextLabel49.TextScaled = true
- TextLabel49.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- TextLabel49.TextWrapped = true
- TextLabel50.Name = "Divider"
- TextLabel50.Parent = Frame43
- TextLabel50.Transparency = 1
- TextLabel50.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
- TextLabel50.Text = "|"
- TextLabel50.Position = UDim2.new(0.903999984, 0, 0.200000003, 0)
- TextLabel50.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- TextLabel50.BackgroundTransparency = 1
- TextLabel50.ZIndex = 2
- TextLabel50.FontSize = Enum.FontSize.Size18
- TextLabel50.TextColor3 = Color3.new(1, 1, 1)
- TextLabel50.TextScaled = true
- TextLabel50.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- TextLabel50.TextWrapped = true
- TextLabel51.Name = "GunName"
- TextLabel51.Parent = Frame43
- TextLabel51.Transparency = 1
- TextLabel51.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
- TextLabel51.Text = "Galil"
- TextLabel51.Position = UDim2.new(1.85000002, 0, 0, 0)
- TextLabel51.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- TextLabel51.BackgroundTransparency = 1
- TextLabel51.ZIndex = 2
- TextLabel51.FontSize = Enum.FontSize.Size14
- TextLabel51.TextColor3 = Color3.new(1, 1, 1)
- TextLabel51.TextScaled = true
- TextLabel51.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- TextLabel51.TextWrapped = true
- TextLabel51.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel52.Name = "GunTip"
- TextLabel52.Parent = Frame43
- TextLabel52.Transparency = 1
- TextLabel52.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
- TextLabel52.Text = "5.56x45mm "
- TextLabel52.Position = UDim2.new(1.85000002, 0, 0.449999988, 0)
- TextLabel52.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- TextLabel52.BackgroundTransparency = 1
- TextLabel52.ZIndex = 2
- TextLabel52.FontSize = Enum.FontSize.Size14
- TextLabel52.TextColor3 = Color3.new(1, 1, 1)
- TextLabel52.TextScaled = true
- TextLabel52.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- TextLabel52.TextWrapped = true
- TextLabel52.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel53.Name = "GunTip3"
- TextLabel53.Parent = Frame43
- TextLabel53.Transparency = 1
- TextLabel53.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
- TextLabel53.Text = "MADE BY 1ndrew"
- TextLabel53.Position = UDim2.new(0.800000012, 0, 0.894999981, 0)
- TextLabel53.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- TextLabel53.BackgroundTransparency = 1
- TextLabel53.ZIndex = 2
- TextLabel53.TextColor3 = Color3.new(1, 1, 1)
- TextLabel53.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- TextLabel53.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel54.Name = "GunTip3"
- TextLabel54.Parent = Frame43
- TextLabel54.Transparency = 1
- TextLabel54.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
- TextLabel54.Text = "V/B = Laser | G = Light"
- TextLabel54.Position = UDim2.new(0.800000012, 0, 2, 0)
- TextLabel54.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- TextLabel54.BackgroundTransparency = 1
- TextLabel54.ZIndex = 2
- TextLabel54.TextColor3 = Color3.new(1, 1, 1)
- TextLabel54.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- TextLabel54.TextXAlignment = Enum.TextXAlignment.Left
- Frame55.Parent = ScreenGui42
- Frame55.Transparency = 0.5
- Frame55.Size = UDim2.new(0, 126, 0, 10)
- Frame55.Position = UDim2.new(1, -153, 1, -62)
- Frame55.BackgroundColor3 = Color3.new(0.380392, 0.380392, 0.380392)
- Frame55.BackgroundTransparency = 0.5
- Frame55.BorderSizePixel = 3
- TextLabel56.Name = "Caliber"
- TextLabel56.Parent = Frame55
- TextLabel56.Transparency = 1
- TextLabel56.Size = UDim2.new(1, 0, 1, 0)
- TextLabel56.Text = "Made by 1ndrew"
- TextLabel56.BackgroundColor3 = Color3.new(0.380392, 0.380392, 0.380392)
- TextLabel56.BackgroundTransparency = 1
- TextLabel56.Font = Enum.Font.SourceSansBold
- TextLabel56.FontSize = Enum.FontSize.Size12
- TextLabel56.TextColor3 = Color3.new(0, 0, 0)
- TextLabel56.TextStrokeColor3 = Color3.new(0.380392, 0.380392, 0.380392)
- TextLabel56.TextStrokeTransparency = 0.5
- TextLabel56.TextXAlignment = Enum.TextXAlignment.Right
- Part57.Name = "Bolt"
- Part57.Parent = Tool0
- Part57.Material = Enum.Material.SmoothPlastic
- Part57.BrickColor = BrickColor.new("Dark stone grey")
- Part57.Rotation = Vector3.new(90, 0, 0)
- Part57.Anchored = true
- Part57.CanCollide = false
- Part57.FormFactor = Enum.FormFactor.Custom
- Part57.Size = Vector3.new(0.200000003, 0.402905315, 0.200000003)
- Part57.CFrame = CFrame.new(-11.9099998, 1.176, -116.266998, 1, -5.89999981e-05, 0, 0, 0, -1, 5.89999981e-05, 1, 0)
- Part57.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part57.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part57.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part57.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part57.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part57.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part57.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part57.Position = Vector3.new(-11.9099998, 1.176, -116.266998)
- Part57.Orientation = Vector3.new(90, 0, 0)
- Part57.Color = Color3.new(0.388235, 0.372549, 0.384314)
- CylinderMesh58.Parent = Part57
- CylinderMesh58.Scale = Vector3.new(0.496383131, 1, 0.979876816)
- CylinderMesh58.Scale = Vector3.new(0.496383131, 1, 0.979876816)
- Part59.Name = "PMag1"
- Part59.Parent = Tool0
- Part59.Material = Enum.Material.Concrete
- Part59.Rotation = Vector3.new(90, 0, 90)
- Part59.Anchored = true
- Part59.CanCollide = false
- Part59.Size = Vector3.new(0.611639202, 0.225373551, 1.02088165)
- Part59.CFrame = CFrame.new(-11.9085007, 0.510469019, -116.243156, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part59.Position = Vector3.new(-11.9085007, 0.510469019, -116.243156)
- Part59.Orientation = Vector3.new(90, -90, 0)
- SpecialMesh60.Parent = Part59
- SpecialMesh60.MeshId = "rbxassetid://777172237"
- SpecialMesh60.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- SpecialMesh60.TextureId = "rbxassetid://777384640"
- SpecialMesh60.MeshType = Enum.MeshType.FileMesh
- SpecialMesh60.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- Part61.Name = "E"
- Part61.Parent = Tool0
- Part61.Material = Enum.Material.SmoothPlastic
- Part61.BrickColor = BrickColor.new("Cool yellow")
- Part61.Reflectance = 0.30000001192093
- Part61.Transparency = 1
- Part61.Rotation = Vector3.new(-180, 0, 0)
- Part61.Anchored = true
- Part61.CanCollide = false
- Part61.FormFactor = Enum.FormFactor.Custom
- Part61.Size = Vector3.new(0.200000003, 0.200000003, 0.338)
- Part61.CFrame = CFrame.new(-11.8579998, 1.176, -116.266998, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- Part61.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part61.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part61.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part61.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part61.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part61.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part61.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part61.Position = Vector3.new(-11.8579998, 1.176, -116.266998)
- Part61.Orientation = Vector3.new(0, 180, 180)
- Part61.Color = Color3.new(0.992157, 0.917647, 0.552941)
- BlockMesh62.Parent = Part61
- BlockMesh62.Scale = Vector3.new(0.0769230723, 0.538461506, 1)
- BlockMesh62.Scale = Vector3.new(0.0769230723, 0.538461506, 1)
- Part63.Name = "Trigger"
- Part63.Parent = Tool0
- Part63.Material = Enum.Material.SmoothPlastic
- Part63.BrickColor = BrickColor.new("New Yeller")
- Part63.Transparency = 1
- Part63.Anchored = true
- Part63.CanCollide = false
- Part63.FormFactor = Enum.FormFactor.Custom
- Part63.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part63.CFrame = CFrame.new(-11.8999996, 0.829999983, -115.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part63.BottomSurface = Enum.SurfaceType.Smooth
- Part63.TopSurface = Enum.SurfaceType.Smooth
- Part63.Color = Color3.new(1, 1, 0)
- Part63.Position = Vector3.new(-11.8999996, 0.829999983, -115.75)
- Part63.Color = Color3.new(1, 1, 0)
- Part64.Name = "Handle"
- Part64.Parent = Tool0
- Part64.Material = Enum.Material.SmoothPlastic
- Part64.BrickColor = BrickColor.new("New Yeller")
- Part64.Reflectance = 0.30000001192093
- Part64.Transparency = 1
- Part64.Rotation = Vector3.new(-0.340000004, 0, 0)
- Part64.Anchored = true
- Part64.CanCollide = false
- Part64.FormFactor = Enum.FormFactor.Custom
- Part64.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part64.CFrame = CFrame.new(-11.5, 0.5, -115.449997, 1, 7.77400047e-08, -1.29997679e-05, 0, 0.999982119, 0.0059800013, 1.29999999e-05, -0.00598000083, 0.999982119)
- Part64.BottomSurface = Enum.SurfaceType.Smooth
- Part64.TopSurface = Enum.SurfaceType.Smooth
- Part64.Color = Color3.new(1, 1, 0)
- Part64.Position = Vector3.new(-11.5, 0.5, -115.449997)
- Part64.Orientation = Vector3.new(-0.340000004, 0, 0)
- Part64.Color = Color3.new(1, 1, 0)
- Sound65.Name = "MagIn"
- Sound65.Parent = Part64
- Sound65.SoundId = "http://roblox.com/asset/?id=166238223"
- Sound65.Volume = 0.20000000298023
- Sound66.Name = "MagOut"
- Sound66.Parent = Part64
- Sound66.SoundId = "http://roblox.com/asset/?id=166238177"
- Sound66.Volume = 0.20000000298023
- Sound67.Name = "Click"
- Sound67.Parent = Part64
- Sound67.SoundId = "http://www.roblox.com/asset/?id=146501511"
- Sound68.Name = "Shoot"
- Sound68.Parent = Part64
- Sound68.SoundId = "rbxassetid://169799921"
- Sound68.Volume = 1
- Part69.Name = "Upper receiver"
- Part69.Parent = Tool0
- Part69.Material = Enum.Material.Concrete
- Part69.Rotation = Vector3.new(90, 0, 90)
- Part69.Anchored = true
- Part69.CanCollide = false
- Part69.Size = Vector3.new(1.22473347, 0.225373551, 0.225373551)
- Part69.CFrame = CFrame.new(-11.9085007, 1.18544996, -115.871094, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part69.Position = Vector3.new(-11.9085007, 1.18544996, -115.871094)
- Part69.Orientation = Vector3.new(90, -90, 0)
- SpecialMesh70.Parent = Part69
- SpecialMesh70.MeshId = "rbxassetid://777155048"
- SpecialMesh70.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- SpecialMesh70.TextureId = "rbxassetid://777328045"
- SpecialMesh70.MeshType = Enum.MeshType.FileMesh
- SpecialMesh70.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement