Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- made by 1ndrew
- 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")
- LocalScript1 = Instance.new("LocalScript")
- NumberValue2 = Instance.new("NumberValue")
- NumberValue3 = Instance.new("NumberValue")
- ScreenGui4 = Instance.new("ScreenGui")
- Frame5 = Instance.new("Frame")
- TextLabel6 = Instance.new("TextLabel")
- Smoke7 = Instance.new("Smoke")
- Smoke8 = Instance.new("Smoke")
- Part9 = Instance.new("Part")
- BlockMesh10 = Instance.new("BlockMesh")
- Part11 = Instance.new("Part")
- Part12 = Instance.new("Part")
- SpecialMesh13 = Instance.new("SpecialMesh")
- Sound14 = Instance.new("Sound")
- Part15 = Instance.new("Part")
- CylinderMesh16 = Instance.new("CylinderMesh")
- Part17 = Instance.new("Part")
- SpecialMesh18 = Instance.new("SpecialMesh")
- Part19 = Instance.new("Part")
- Part20 = Instance.new("Part")
- Sound21 = Instance.new("Sound")
- Sound22 = Instance.new("Sound")
- Part23 = Instance.new("Part")
- SpecialMesh24 = Instance.new("SpecialMesh")
- Part25 = Instance.new("Part")
- Part26 = Instance.new("Part")
- SpecialMesh27 = Instance.new("SpecialMesh")
- Part28 = Instance.new("Part")
- Part29 = Instance.new("Part")
- CylinderMesh30 = Instance.new("CylinderMesh")
- Part31 = Instance.new("Part")
- CylinderMesh32 = Instance.new("CylinderMesh")
- Tool0.Name = "SMAW"
- Tool0.Parent = mas
- LocalScript1.Name = "Gun_Script"
- LocalScript1.Parent = Tool0
- table.insert(cors,sandbox(LocalScript1,function()
- wait(0.5)
- --Made by YouTubes--
- --Edit settings below--
- local Tool = script.Parent
- local Settings = {
- Range = 1000
- ,Spread = 3
- ,BlastRadius = 10
- ,Damage = {20, 45}
- ,HeadShotDamage = {70, 120}
- ,Bullets = 1
- ,FireRate = 0
- ,Automatic = false
- ,AntiTK = false
- ,ImpactDuration = 3
- --Reload
- ,ReloadKey = "R"
- ,ReloadTime = 2.5
- ,Ammo = 1
- ,IncludeChamberedBullet = false
- --Gui
- ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
- --Arms
- ,OneHanded = false
- ,FakeArms = true
- ,FakeArmTransparency = 0.5
- ,RightPos = CFrame.new(-0.75, 0.25, 0.5) * CFrame.Angles(math.rad(-90), 0, 0)
- ,LeftPos = CFrame.new(1, 0.5, 0.5) * CFrame.Angles(math.rad(-90), math.rad(45), 0)
- ,AimPart = Tool.AimPart
- ,AimPartOffset = CFrame.new()
- ,AimGripOffset = Vector3.new(0, 0, 0)
- ,LeftAimPos = CFrame.new(1, 0.5, 0.5) * CFrame.Angles(math.rad(-100), math.rad(45), 0)
- ,AimAnim = {
- Enabled = false
- ,Frames = 50
- ,Time = 0.1
- }
- ,ChangeFOV = {true, 60}
- ,SpreadReduction = 1
- --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(15)
- --Smoke
- ,Smoke = true
- ,SmokePart = Tool.SmokePart
- ,Smokes = {{script.Smoke, 6, 0.1}, {script.Smoke1, 0.1}, {script.Smoke1, 0.1}}
- --Sprint
- ,Sprint = true
- ,SprintSpeed = 25
- ,SprintKey = "0"
- ,SprintSpreadIncrease = 40
- ,SprintArmOffset = CFrame.new(0.25, 0.125, 0.25) * CFrame.Angles(math.rad(-30), math.rad(35), 0)
- --Other
- ,DropHats = true
- }
- --Do not edit below this lign--
- local Orig_Spread = Settings.Spread
- local Orig_Grip = Tool.GripPos
- local Player = game.Players.LocalPlayer
- 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 .. "|" .. StoredAmmo.Value
- 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 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 rocket = Tool.Rocket:Clone()
- Tool.Rocket.Transparency = 1
- local a = CFrame.new(Character.Head.CFrame.p, Mouse.Hit.p)
- rocket.CFrame = (CFrame.new(Character.Head.CFrame.p) * (a - a.p))
- rocket.CanCollide = false
- local bf = Instance.new("BodyForce", rocket)
- bf.force = Vector3.new(0, 100, 0)
- rocket.Velocity = rocket.CFrame.lookVector * 1000
- rocket.CFrame = rocket.CFrame * CFrame.Angles(math.rad(90), 0, 0)
- game.Debris:AddItem(rocket, 5)
- rocket.Parent = workspace
- local blownup = false
- rocket.Touched:connect(function(hit)
- if not hit:IsDescendantOf(Character) then
- blownup = true
- --if (rocket.Position - workspace.SpawnPart.Position).magnitude > 200 then
- if rocket:FindFirstChild("Explode") then
- rocket.Explode:Play()
- end
- local e = Instance.new("Explosion", workspace)
- e.Position = rocket.Position
- e.BlastRadius = Settings.BlastRadius
- e.Hit:connect(function(Hit)
- if Hit.Parent:FindFirstChild("Humanoid") then
- local Humanoid = Hit.Parent.Humanoid
- local c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- game.Debris:AddItem(c, 3)
- c.Parent = Humanoid
- elseif Hit.Parent:FindFirstChild("CrashAndWeld") or Hit.Parent.Parent:FindFirstChild("CrashAndWeld") then
- local hs = Hit.Parent:FindFirstChild("CrashAndWeld") or Hit.Parent.Parent:FindFirstChild("CrashAndWeld")
- hs.Health.Value = 0
- end
- end)
- --end
- rocket:Destroy()
- end
- end)
- end
- local Can_Shoot = true
- local Reloading = false
- local First_Person = false
- local Mouse_Held
- Tool.Equipped:connect(function(Mouse)
- 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 Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 then
- Mouse_Held = true
- while true do
- 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)
- if Settings.Smoke then
- for i, v in pairs(Settings.Smokes) do
- local s = v[1]:Clone()
- s.Parent = Settings.SmokePart
- s.Enabled = true
- game.Debris:AddItem(s, v[2])
- if v[3] then
- Delay(v[3], function()
- s.Enabled = false
- end)
- end
- end
- end
- for _ = 1, Settings.Bullets do
- Fire(Mouse)
- end
- Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(math.abs(Settings.Recoil), 0, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
- if Tool.Handle:FindFirstChild("Shoot") then
- Tool.Handle.Shoot:Play()
- end
- Ammo.Value = Ammo.Value - 1
- wait(Settings.FireRate)
- 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
- 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
- Can_Shoot = false
- Reloading = true
- local TextLabel = Gui.Frame.AmmoDisplay
- Delay(0, function()
- CanUpdateGui = false
- TextLabel.Text = "Reloading."
- wait(Settings.ReloadTime/3)
- if TextLabel then
- TextLabel.Text = "Reloading.."
- end
- wait(Settings.ReloadTime/3)
- if TextLabel then
- TextLabel.Text = "Reloading..."
- end
- end)
- if Tool.Handle:FindFirstChild("Reload") then
- Tool.Handle.Reload:Play()
- end
- Mouse.Icon = Settings.Icons.Reload
- wait(Settings.ReloadTime)
- Tool.Rocket.Transparency = 0
- Mouse.Icon = Settings.Icons.Idle
- CanUpdateGui = true
- local av = Ammo.Value
- if (StoredAmmo.Value - (Settings.Ammo - Ammo.Value)) <= 0 then
- Ammo.Value = Ammo.Value + StoredAmmo.Value
- StoredAmmo.Value = 0
- else
- StoredAmmo.Value = StoredAmmo.Value - (Settings.Ammo - Ammo.Value)
- Ammo.Value = Settings.Ammo
- end
- if av > 0 and Settings.IncludeChamberedBullet then
- Ammo.Value = Ammo.Value + 1
- 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
- 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
- local Torso = Character.Torso
- local Head = Character.Head
- Right_Weld.C1 = CFrame.new()
- Right_Weld.C0 = CFrame.new()
- Right_Weld.C1 = 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
- 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()
- Camera.Changed: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)
- 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 Sprinting then
- 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 then
- 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(5, 10, 5)
- local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
- Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(5, 10, 5)
- end
- end
- end)
- Tool.Unequipped:connect(function()
- Equipped = false
- Tool.GripPos = Orig_Grip
- Aiming = false
- Settings.Spread = Orig_Spread
- if Settings.ChangeFOV[1] then
- Camera.FieldOfView = 70
- end
- 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))
- NumberValue2.Name = "Ammo"
- NumberValue2.Parent = LocalScript1
- NumberValue2.Value = 1
- NumberValue3.Name = "StoredAmmo"
- NumberValue3.Parent = LocalScript1
- NumberValue3.Value = 50
- ScreenGui4.Name = "Gui"
- ScreenGui4.Parent = LocalScript1
- Frame5.Parent = ScreenGui4
- Frame5.Transparency = 1
- Frame5.Size = UDim2.new(0, 100, 0, 100)
- Frame5.Position = UDim2.new(1, -200, 1, -100)
- Frame5.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame5.BackgroundTransparency = 1
- Frame5.BorderSizePixel = 0
- TextLabel6.Name = "AmmoDisplay"
- TextLabel6.Parent = Frame5
- TextLabel6.Transparency = 1
- TextLabel6.Size = UDim2.new(1, 0, 1, 0)
- TextLabel6.Text = ""
- TextLabel6.BackgroundTransparency = 1
- TextLabel6.FontSize = Enum.FontSize.Size24
- TextLabel6.TextColor3 = Color3.new(0.917647, 0.917647, 0.917647)
- TextLabel6.TextStrokeTransparency = 0.5
- TextLabel6.TextXAlignment = Enum.TextXAlignment.Right
- Smoke7.Parent = LocalScript1
- Smoke7.Size = 0.25
- Smoke7.Color = Color3.new(0.372549, 0.372549, 0.372549)
- Smoke7.Enabled = false
- Smoke7.Opacity = 0.10000000149012
- Smoke7.RiseVelocity = 15
- Smoke7.Color = Color3.new(0.372549, 0.372549, 0.372549)
- Smoke8.Name = "Smoke1"
- Smoke8.Parent = LocalScript1
- Smoke8.Size = 0.10000000149012
- Smoke8.Color = Color3.new(1, 0.6, 0.2)
- Smoke8.Enabled = false
- Smoke8.Opacity = 0.40000000596046
- Smoke8.RiseVelocity = 3
- Smoke8.Color = Color3.new(1, 0.6, 0.2)
- Part9.Name = "RailCover_Hyperactiveness"
- Part9.Parent = Tool0
- Part9.Material = Enum.Material.SmoothPlastic
- Part9.BrickColor = BrickColor.new("Really black")
- Part9.Rotation = Vector3.new(0, -90, 0)
- Part9.Anchored = true
- Part9.CanCollide = false
- Part9.FormFactor = Enum.FormFactor.Custom
- Part9.Size = Vector3.new(0.386999875, 0.200000003, 0.287999988)
- Part9.CFrame = CFrame.new(-83.6560059, 3635.80005, 959.606506, -3.55271368e-15, -5.95526165e-14, -1, -3.55271368e-15, 1, 5.95526165e-14, 1, -3.55271368e-15, 3.55271368e-15)
- Part9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part9.Position = Vector3.new(-83.6560059, 3635.80005, 959.606506)
- Part9.Orientation = Vector3.new(0, -90, 0)
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- BlockMesh10.Parent = Part9
- BlockMesh10.Scale = Vector3.new(1, 0.400000006, 0.699999988)
- BlockMesh10.Scale = Vector3.new(1, 0.400000006, 0.699999988)
- Part11.Parent = Tool0
- Part11.Material = Enum.Material.SmoothPlastic
- Part11.BrickColor = BrickColor.new("Really black")
- Part11.Rotation = Vector3.new(145.809998, 0, 90)
- Part11.Anchored = true
- Part11.CanCollide = false
- Part11.FormFactor = Enum.FormFactor.Custom
- Part11.Size = Vector3.new(0.400000036, 0.677000046, 0.200000033)
- Part11.CFrame = CFrame.new(-83.7374573, 3635.35938, 959.907959, 6.08062874e-06, -0.999997675, 8.64631729e-05, -0.827175915, -5.4166685e-05, -0.561933815, 0.561937273, -6.81493693e-05, -0.827180862)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part11.Position = Vector3.new(-83.7374573, 3635.35938, 959.907959)
- Part11.Orientation = Vector3.new(34.1899986, 179.98999, -90)
- Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part12.Name = "Rocket"
- Part12.Parent = Tool0
- Part12.Material = Enum.Material.SmoothPlastic
- Part12.BrickColor = BrickColor.new("Earth green")
- Part12.Rotation = Vector3.new(145.809998, 0, 90)
- Part12.Anchored = true
- Part12.CanCollide = false
- Part12.FormFactor = Enum.FormFactor.Custom
- Part12.Size = Vector3.new(0.600000024, 1.60000002, 0.600000024)
- Part12.CFrame = CFrame.new(-83.2759628, 3635.60742, 959.739441, 6.08062874e-06, -0.999997675, 8.64631729e-05, -0.827175915, -5.4166685e-05, -0.561933815, 0.561937273, -6.81493693e-05, -0.827180862)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part12.Position = Vector3.new(-83.2759628, 3635.60742, 959.739441)
- Part12.Orientation = Vector3.new(34.1899986, 179.98999, -90)
- Part12.Color = Color3.new(0.152941, 0.27451, 0.176471)
- SpecialMesh13.Parent = Part12
- SpecialMesh13.MeshId = "http://www.roblox.com/asset/?id=31601976"
- SpecialMesh13.Scale = Vector3.new(0.200000003, 1, 0.200000003)
- SpecialMesh13.MeshType = Enum.MeshType.FileMesh
- SpecialMesh13.Scale = Vector3.new(0.200000003, 1, 0.200000003)
- Sound14.Name = "Explode"
- Sound14.Parent = Part12
- Sound14.SoundId = "http://www.roblox.com/asset/?id=31762335"
- Sound14.Volume = 1
- Part15.Parent = Tool0
- Part15.Material = Enum.Material.SmoothPlastic
- Part15.BrickColor = BrickColor.new("Really black")
- Part15.Rotation = Vector3.new(145.809998, 0, 90)
- Part15.Anchored = true
- Part15.CanCollide = false
- Part15.FormFactor = Enum.FormFactor.Custom
- Part15.Size = Vector3.new(0.600000024, 2.79999995, 0.600000024)
- Part15.CFrame = CFrame.new(-83.3759613, 3635.60742, 959.739441, 6.08062874e-06, -0.999997675, 8.64631729e-05, -0.827175915, -5.4166685e-05, -0.561933815, 0.561937273, -6.81493693e-05, -0.827180862)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part15.Position = Vector3.new(-83.3759613, 3635.60742, 959.739441)
- Part15.Orientation = Vector3.new(34.1899986, 179.98999, -90)
- Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- CylinderMesh16.Parent = Part15
- CylinderMesh16.Scale = Vector3.new(0.899999976, 1, 0.899999976)
- CylinderMesh16.Scale = Vector3.new(0.899999976, 1, 0.899999976)
- Part17.Parent = Tool0
- Part17.Material = Enum.Material.SmoothPlastic
- Part17.BrickColor = BrickColor.new("Really black")
- Part17.Rotation = Vector3.new(141.520004, -89.8799973, 85.9799957)
- Part17.Anchored = true
- Part17.CanCollide = false
- Part17.FormFactor = Enum.FormFactor.Custom
- Part17.Size = Vector3.new(0.200000003, 0.200000003, 0.85799998)
- Part17.CFrame = CFrame.new(-83.6749344, 3635.76978, 959.266479, 6.08062874e-06, -8.64631729e-05, -0.999997675, -0.827175915, 0.561933815, -5.4166685e-05, 0.561937273, 0.827180862, -6.81493693e-05)
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part17.Position = Vector3.new(-83.6749344, 3635.76978, 959.266479)
- Part17.Orientation = Vector3.new(0, -90, -55.8099976)
- Part17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- SpecialMesh18.Parent = Part17
- SpecialMesh18.MeshId = "http://www.roblox.com/asset/?id=3270017"
- SpecialMesh18.Scale = Vector3.new(0.300000012, 0.300000012, 5)
- SpecialMesh18.MeshType = Enum.MeshType.FileMesh
- SpecialMesh18.Scale = Vector3.new(0.300000012, 0.300000012, 5)
- Part19.Parent = Tool0
- Part19.Material = Enum.Material.SmoothPlastic
- Part19.BrickColor = BrickColor.new("Really black")
- Part19.Rotation = Vector3.new(145.809998, 0, 90)
- Part19.Anchored = true
- Part19.CanCollide = false
- Part19.FormFactor = Enum.FormFactor.Custom
- Part19.Size = Vector3.new(0.600000024, 0.200000003, 0.200000033)
- Part19.CFrame = CFrame.new(-83.3759537, 3635.21045, 960.009155, 6.08062874e-06, -0.999997675, 8.64631729e-05, -0.827175915, -5.4166685e-05, -0.561933815, 0.561937273, -6.81493693e-05, -0.827180862)
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part19.Position = Vector3.new(-83.3759537, 3635.21045, 960.009155)
- Part19.Orientation = Vector3.new(34.1899986, 179.98999, -90)
- Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part20.Name = "Handle"
- Part20.Parent = Tool0
- Part20.Material = Enum.Material.SmoothPlastic
- Part20.BrickColor = BrickColor.new("Really black")
- Part20.Transparency = 1
- Part20.Rotation = Vector3.new(141.520004, -89.8799973, 175.979996)
- Part20.Anchored = true
- Part20.CanCollide = false
- Part20.FormFactor = Enum.FormFactor.Custom
- Part20.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part20.CFrame = CFrame.new(-83.8759613, 3635.16724, 960.159302, -8.64631729e-05, -6.08062874e-06, -0.999997675, 0.561933815, 0.827175915, -5.4166685e-05, 0.827180862, -0.561937273, -6.81493693e-05)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part20.Position = Vector3.new(-83.8759613, 3635.16724, 960.159302)
- Part20.Orientation = Vector3.new(0, -90, 34.1899986)
- Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Sound21.Name = "Shoot"
- Sound21.Parent = Part20
- Sound21.SoundId = "http://roblox.com/asset/?id=10209821"
- Sound21.Volume = 1
- Sound22.Name = "Reload"
- Sound22.Parent = Part20
- Sound22.SoundId = "http://www.roblox.com/asset/?id=95309699"
- Sound22.Volume = 1
- Part23.Parent = Tool0
- Part23.Material = Enum.Material.SmoothPlastic
- Part23.BrickColor = BrickColor.new("Really black")
- Part23.Rotation = Vector3.new(145.809998, 0, 90)
- Part23.Anchored = true
- Part23.CanCollide = false
- Part23.FormFactor = Enum.FormFactor.Custom
- Part23.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part23.CFrame = CFrame.new(-83.8459549, 3635.1665, 960.03894, 6.08062874e-06, -0.999997675, 8.64631729e-05, -0.827175915, -5.4166685e-05, -0.561933815, 0.561937273, -6.81493693e-05, -0.827180862)
- Part23.BottomSurface = Enum.SurfaceType.Smooth
- Part23.TopSurface = Enum.SurfaceType.Smooth
- Part23.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part23.Position = Vector3.new(-83.8459549, 3635.1665, 960.03894)
- Part23.Orientation = Vector3.new(34.1899986, 179.98999, -90)
- Part23.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- SpecialMesh24.Parent = Part23
- SpecialMesh24.MeshId = "http://www.roblox.com/asset/?id=3270017"
- SpecialMesh24.Scale = Vector3.new(0.200000003, 0.300000012, 1)
- SpecialMesh24.MeshType = Enum.MeshType.FileMesh
- SpecialMesh24.Scale = Vector3.new(0.200000003, 0.300000012, 1)
- Part25.Parent = Tool0
- Part25.Material = Enum.Material.SmoothPlastic
- Part25.BrickColor = BrickColor.new("Really black")
- Part25.Rotation = Vector3.new(145.809998, 0, 95.2900009)
- Part25.Anchored = true
- Part25.CanCollide = false
- Part25.FormFactor = Enum.FormFactor.Custom
- Part25.Size = Vector3.new(0.67900002, 0.216000006, 0.200000033)
- Part25.CFrame = CFrame.new(-83.9710617, 3635.1853, 960.026184, -0.0921307206, -0.995744646, 8.64631729e-05, -0.8236624, 0.0761595666, -0.561933815, 0.559540749, -0.0518430695, -0.827180862)
- Part25.BottomSurface = Enum.SurfaceType.Smooth
- Part25.TopSurface = Enum.SurfaceType.Smooth
- Part25.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part25.Position = Vector3.new(-83.9710617, 3635.1853, 960.026184)
- Part25.Orientation = Vector3.new(34.1899986, 179.98999, -84.7200012)
- Part25.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part26.Parent = Tool0
- Part26.Material = Enum.Material.SmoothPlastic
- Part26.BrickColor = BrickColor.new("Really red")
- Part26.Rotation = Vector3.new(141.520004, -89.8799973, 85.9799957)
- Part26.Anchored = true
- Part26.CanCollide = false
- Part26.FormFactor = Enum.FormFactor.Custom
- Part26.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part26.CFrame = CFrame.new(-83.7829437, 3635.76978, 959.266479, 6.08062874e-06, -8.64631729e-05, -0.999997675, -0.827175915, 0.561933815, -5.4166685e-05, 0.561937273, 0.827180862, -6.81493693e-05)
- Part26.BottomSurface = Enum.SurfaceType.Smooth
- Part26.TopSurface = Enum.SurfaceType.Smooth
- Part26.Color = Color3.new(1, 0, 0)
- Part26.Position = Vector3.new(-83.7829437, 3635.76978, 959.266479)
- Part26.Orientation = Vector3.new(0, -90, -55.8099976)
- Part26.Color = Color3.new(1, 0, 0)
- SpecialMesh27.Parent = Part26
- SpecialMesh27.MeshId = "http://www.roblox.com/asset/?id=3270017"
- SpecialMesh27.Scale = Vector3.new(0.00999999978, 0.00999999978, 0.100000001)
- SpecialMesh27.MeshType = Enum.MeshType.FileMesh
- SpecialMesh27.Scale = Vector3.new(0.00999999978, 0.00999999978, 0.100000001)
- Part28.Name = "AimPart"
- Part28.Parent = Tool0
- Part28.Material = Enum.Material.SmoothPlastic
- Part28.BrickColor = BrickColor.new("Black")
- Part28.Transparency = 1
- Part28.Rotation = Vector3.new(141.520004, -89.8799973, 175.979996)
- Part28.Anchored = true
- Part28.CanCollide = false
- Part28.FormFactor = Enum.FormFactor.Custom
- Part28.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part28.CFrame = CFrame.new(-84.3939285, 3635.76978, 959.266479, -8.64631729e-05, -6.08062874e-06, -0.999997675, 0.561933815, 0.827175915, -5.4166685e-05, 0.827180862, -0.561937273, -6.81493693e-05)
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.TopSurface = Enum.SurfaceType.Smooth
- Part28.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part28.Position = Vector3.new(-84.3939285, 3635.76978, 959.266479)
- Part28.Orientation = Vector3.new(0, -90, 34.1899986)
- Part28.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part29.Parent = Tool0
- Part29.Material = Enum.Material.SmoothPlastic
- Part29.BrickColor = BrickColor.new("Dark stone grey")
- Part29.Rotation = Vector3.new(145.809998, 0, 90)
- Part29.Anchored = true
- Part29.CanCollide = false
- Part29.FormFactor = Enum.FormFactor.Custom
- Part29.Size = Vector3.new(0.400000006, 1.60000002, 0.400000006)
- Part29.CFrame = CFrame.new(-85.5759506, 3635.60742, 959.739258, 6.08062874e-06, -0.999997675, 8.64631729e-05, -0.827175915, -5.4166685e-05, -0.561933815, 0.561937273, -6.81493693e-05, -0.827180862)
- Part29.BottomSurface = Enum.SurfaceType.Smooth
- Part29.TopSurface = Enum.SurfaceType.Smooth
- Part29.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part29.Position = Vector3.new(-85.5759506, 3635.60742, 959.739258)
- Part29.Orientation = Vector3.new(34.1899986, 179.98999, -90)
- Part29.Color = Color3.new(0.388235, 0.372549, 0.384314)
- CylinderMesh30.Parent = Part29
- CylinderMesh30.Scale = Vector3.new(1.25, 1, 1.25)
- CylinderMesh30.Scale = Vector3.new(1.25, 1, 1.25)
- Part31.Name = "SmokePart"
- Part31.Parent = Tool0
- Part31.Material = Enum.Material.SmoothPlastic
- Part31.BrickColor = BrickColor.new("Really black")
- Part31.Rotation = Vector3.new(145.809998, 0, 90)
- Part31.Anchored = true
- Part31.CanCollide = false
- Part31.FormFactor = Enum.FormFactor.Custom
- Part31.Size = Vector3.new(0.600000024, 0.200000003, 0.600000024)
- Part31.CFrame = CFrame.new(-86.4759521, 3635.60718, 959.739258, 6.08062874e-06, -0.999997675, 8.64631729e-05, -0.827175915, -5.4166685e-05, -0.561933815, 0.561937273, -6.81493693e-05, -0.827180862)
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.TopSurface = Enum.SurfaceType.Smooth
- Part31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part31.Position = Vector3.new(-86.4759521, 3635.60718, 959.739258)
- Part31.Orientation = Vector3.new(34.1899986, 179.98999, -90)
- Part31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- CylinderMesh32.Parent = Part31
- 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