Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- --Whitelisted Users
- --lotushomerun (DUH)
- --lotushomerun's Friends
- --Anyone who buys this gamepass: https://www.roblox.com/library/1046169249/Police-Sim-2018-Whitelist
- --------UPDATE LIST------------
- --9-22-2017 Update---
- --Added Handcuffs(Acessory)
- --Added Glock 17(Secondery)
- --Added M1911(Secondery)
- --9-14-2017 Update---
- --Added Golden Pistol(Secondery. Very Overpowered. Only use it to kill those stupid god mode skids)
- --Added M4A1(Primary)
- ]]
- currentclothing = "Apoc"
- you = game.Players.LocalPlayer
- Character = you.Character
- ----------------THE GUI-------------------
- -- Objects
- local ConfigMe = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Intro = Instance.new("TextLabel")
- local Whitelist = Instance.new("TextLabel")
- local Primary = Instance.new("TextBox")
- local TextLabel = Instance.new("TextLabel")
- local TextLabel_2 = Instance.new("TextLabel")
- local Secondery = Instance.new("TextBox")
- local TextLabel_3 = Instance.new("TextLabel")
- local Melee = Instance.new("TextBox")
- local Ready = Instance.new("TextButton")
- local TextLabel_4 = Instance.new("TextLabel")
- local TextLabel_5 = Instance.new("TextLabel")
- local TextLabel_6 = Instance.new("TextLabel")
- local Acessory1 = Instance.new("TextBox")
- local Acessory2 = Instance.new("TextBox")
- local Throwable = Instance.new("TextBox")
- local TextLabel_7 = Instance.new("TextLabel")
- local Error = Instance.new("TextLabel")
- local ClothingFrame = Instance.new("Frame")
- local TextLabel_8 = Instance.new("TextLabel")
- local Apoc = Instance.new("TextButton")
- local Current = Instance.new("TextLabel")
- local Keep = Instance.new("TextButton")
- local Australia = Instance.new("TextButton")
- local Roblox = Instance.new("TextButton")
- local SWAT = Instance.new("TextButton")
- local NYPD = Instance.new("TextButton")
- -- Properties
- ConfigMe.Name = "ConfigMe"
- ConfigMe.Parent = you.PlayerGui
- Frame.Parent = ConfigMe
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BackgroundTransparency = 0.69999998807907
- Frame.Position = UDim2.new(0.259067357, 0, 0.134969324, 0)
- Frame.Size = UDim2.new(0.48852703, 0, 0.68865031, 0)
- Intro.Name = "Intro"
- Intro.Parent = Frame
- Intro.BackgroundColor3 = Color3.new(1, 1, 1)
- Intro.BackgroundTransparency = 1
- Intro.Size = UDim2.new(1, 0, 0.0902777761, 0)
- Intro.Font = Enum.Font.Bodoni
- Intro.FontSize = Enum.FontSize.Size14
- Intro.Text = "Welcome To Police Officer Sim 2018!"
- Intro.TextColor3 = Color3.new(0, 0.333333, 1)
- Intro.TextScaled = true
- Intro.TextSize = 14
- Intro.TextWrapped = true
- Whitelist.Name = "Whitelist"
- Whitelist.Parent = Frame
- Whitelist.BackgroundColor3 = Color3.new(1, 1, 1)
- Whitelist.BackgroundTransparency = 1
- Whitelist.Position = UDim2.new(0, 0, 0.905092597, 0)
- Whitelist.Size = UDim2.new(1, 0, 0.0902777761, 0)
- Whitelist.Font = Enum.Font.Highway
- Whitelist.FontSize = Enum.FontSize.Size14
- Whitelist.Text = "You Are Whitelisted. User: Player1"
- Whitelist.TextColor3 = Color3.new(0.333333, 0.666667, 0)
- Whitelist.TextScaled = true
- Whitelist.TextSize = 14
- Whitelist.TextWrapped = true
- Primary.Name = "Primary"
- Primary.Parent = Frame
- Primary.BackgroundColor3 = Color3.new(1, 1, 1)
- Primary.Position = UDim2.new(0.00453514745, 0, 0.275462955, 0)
- Primary.Size = UDim2.new(0.290909082, 0, 0.0935412049, 0)
- Primary.Font = Enum.Font.SourceSans
- Primary.FontSize = Enum.FontSize.Size14
- Primary.Text = "M4A1"
- Primary.TextScaled = true
- Primary.TextSize = 14
- Primary.TextWrapped = true
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(0.0075757578, 0, 0.213808462, 0)
- TextLabel.Size = UDim2.new(0.290909082, 0, 0.0556792878, 0)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.FontSize = Enum.FontSize.Size14
- TextLabel.Text = "Primary Weapon"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- TextLabel_2.Parent = Frame
- TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_2.BackgroundTransparency = 1
- TextLabel_2.Position = UDim2.new(0.0075757578, 0, 0.385300666, 0)
- TextLabel_2.Size = UDim2.new(0.291000009, 0, 0.0560000017, 0)
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.FontSize = Enum.FontSize.Size14
- TextLabel_2.Text = "Secondery Weapon"
- TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14
- TextLabel_2.TextWrapped = true
- Secondery.Name = "Secondery"
- Secondery.Parent = Frame
- Secondery.BackgroundColor3 = Color3.new(1, 1, 1)
- Secondery.Position = UDim2.new(0.00453514745, 0, 0.451388896, 0)
- Secondery.Size = UDim2.new(0.291000009, 0, 0.0939999968, 0)
- Secondery.Font = Enum.Font.SourceSans
- Secondery.FontSize = Enum.FontSize.Size14
- Secondery.Text = "Glock 17"
- Secondery.TextScaled = true
- Secondery.TextSize = 14
- Secondery.TextWrapped = true
- TextLabel_3.Parent = Frame
- TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_3.BackgroundTransparency = 1
- TextLabel_3.Position = UDim2.new(0.00151515147, 0, 0.559020042, 0)
- TextLabel_3.Size = UDim2.new(0.291000009, 0, 0.0560000017, 0)
- TextLabel_3.Font = Enum.Font.SourceSans
- TextLabel_3.FontSize = Enum.FontSize.Size14
- TextLabel_3.Text = "Melee Weapon"
- TextLabel_3.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_3.TextScaled = true
- TextLabel_3.TextSize = 14
- TextLabel_3.TextWrapped = true
- Melee.Name = "Melee"
- Melee.Parent = Frame
- Melee.BackgroundColor3 = Color3.new(1, 1, 1)
- Melee.Position = UDim2.new(0.00226757373, 0, 0.627314806, 0)
- Melee.Size = UDim2.new(0.291000009, 0, 0.0939999968, 0)
- Melee.Font = Enum.Font.SourceSans
- Melee.FontSize = Enum.FontSize.Size14
- Melee.Text = "Baton"
- Melee.TextScaled = true
- Melee.TextSize = 14
- Melee.TextWrapped = true
- Ready.Name = "Ready"
- Ready.Parent = Frame
- Ready.BackgroundColor3 = Color3.new(1, 1, 1)
- Ready.BackgroundTransparency = 1
- Ready.Position = UDim2.new(0.292517006, 0, 0.819444418, 0)
- Ready.Size = UDim2.new(0.365079373, 0, 0.0949074104, 0)
- Ready.Font = Enum.Font.SourceSans
- Ready.FontSize = Enum.FontSize.Size14
- Ready.Text = "Ready?"
- Ready.TextColor3 = Color3.new(0, 1, 0)
- Ready.TextScaled = true
- Ready.TextSize = 14
- Ready.TextWrapped = true
- TextLabel_4.Parent = Frame
- TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_4.BackgroundTransparency = 1
- TextLabel_4.Position = UDim2.new(0.304545462, 0, 0.216035634, 0)
- TextLabel_4.Size = UDim2.new(0.290909082, 0, 0.0556792878, 0)
- TextLabel_4.Font = Enum.Font.SourceSans
- TextLabel_4.FontSize = Enum.FontSize.Size14
- TextLabel_4.Text = "Acessory 1"
- TextLabel_4.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_4.TextScaled = true
- TextLabel_4.TextSize = 14
- TextLabel_4.TextWrapped = true
- TextLabel_5.Parent = Frame
- TextLabel_5.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_5.BackgroundTransparency = 1
- TextLabel_5.Position = UDim2.new(0.301515162, 0, 0.394209355, 0)
- TextLabel_5.Size = UDim2.new(0.290909082, 0, 0.0556792878, 0)
- TextLabel_5.Font = Enum.Font.SourceSans
- TextLabel_5.FontSize = Enum.FontSize.Size14
- TextLabel_5.Text = "Acessory 2"
- TextLabel_5.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_5.TextScaled = true
- TextLabel_5.TextSize = 14
- TextLabel_5.TextWrapped = true
- TextLabel_6.Parent = Frame
- TextLabel_6.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_6.BackgroundTransparency = 1
- TextLabel_6.Position = UDim2.new(0.300000012, 0, 0.559020042, 0)
- TextLabel_6.Size = UDim2.new(0.290909082, 0, 0.0556792878, 0)
- TextLabel_6.Font = Enum.Font.SourceSans
- TextLabel_6.FontSize = Enum.FontSize.Size14
- TextLabel_6.Text = "Throwable"
- TextLabel_6.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_6.TextScaled = true
- TextLabel_6.TextSize = 14
- TextLabel_6.TextWrapped = true
- Acessory1.Name = "Acessory1"
- Acessory1.Parent = Frame
- Acessory1.BackgroundColor3 = Color3.new(1, 1, 1)
- Acessory1.Position = UDim2.new(0.303030312, 0, 0.280623615, 0)
- Acessory1.Size = UDim2.new(0.290909082, 0, 0.0935412049, 0)
- Acessory1.Font = Enum.Font.SourceSans
- Acessory1.FontSize = Enum.FontSize.Size14
- Acessory1.Text = "Taser"
- Acessory1.TextScaled = true
- Acessory1.TextSize = 14
- Acessory1.TextWrapped = true
- Acessory2.Name = "Acessory2"
- Acessory2.Parent = Frame
- Acessory2.BackgroundColor3 = Color3.new(1, 1, 1)
- Acessory2.Position = UDim2.new(0.303030312, 0, 0.454342991, 0)
- Acessory2.Size = UDim2.new(0.290909082, 0, 0.0935412049, 0)
- Acessory2.Font = Enum.Font.SourceSans
- Acessory2.FontSize = Enum.FontSize.Size14
- Acessory2.Text = "Handcuffs"
- Acessory2.TextScaled = true
- Acessory2.TextSize = 14
- Acessory2.TextWrapped = true
- Throwable.Name = "Throwable"
- Throwable.Parent = Frame
- Throwable.BackgroundColor3 = Color3.new(1, 1, 1)
- Throwable.Position = UDim2.new(0.300000012, 0, 0.628062367, 0)
- Throwable.Size = UDim2.new(0.290909082, 0, 0.0935412049, 0)
- Throwable.Font = Enum.Font.SourceSans
- Throwable.FontSize = Enum.FontSize.Size14
- Throwable.Text = "Grenade"
- Throwable.TextScaled = true
- Throwable.TextSize = 14
- Throwable.TextWrapped = true
- TextLabel_7.Parent = Frame
- TextLabel_7.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_7.BackgroundTransparency = 1
- TextLabel_7.Position = UDim2.new(0.0212121215, 0, 0.106904231, 0)
- TextLabel_7.Size = UDim2.new(0.909090936, 0, 0.0824053437, 0)
- TextLabel_7.Font = Enum.Font.Arcade
- TextLabel_7.FontSize = Enum.FontSize.Size14
- TextLabel_7.Text = "Equipment"
- TextLabel_7.TextColor3 = Color3.new(1, 0.666667, 0)
- TextLabel_7.TextScaled = true
- TextLabel_7.TextSize = 14
- TextLabel_7.TextWrapped = true
- Error.Name = "Error"
- Error.Parent = Frame
- Error.BackgroundColor3 = Color3.new(1, 1, 1)
- Error.BackgroundTransparency = 1
- Error.Position = UDim2.new(0.0333333351, 0, 0.73942095, 0)
- Error.Size = UDim2.new(0.909090936, 0, 0.0824053437, 0)
- Error.Font = Enum.Font.SourceSansBold
- Error.FontSize = Enum.FontSize.Size14
- Error.Text = ""
- Error.TextColor3 = Color3.new(1, 0, 0)
- Error.TextScaled = true
- Error.TextSize = 14
- Error.TextWrapped = true
- ClothingFrame.Name = "ClothingFrame"
- ClothingFrame.Parent = Frame
- ClothingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- ClothingFrame.Position = UDim2.new(0.609090924, 0, 0.138307357, 0)
- ClothingFrame.Size = UDim2.new(0.351515144, 0, 0.583518922, 0)
- TextLabel_8.Parent = ClothingFrame
- TextLabel_8.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_8.BackgroundTransparency = 1
- TextLabel_8.Position = UDim2.new(0.0172413792, 0, 0.0190839693, 0)
- TextLabel_8.Size = UDim2.new(0.965517223, 0, 0.0954198465, 0)
- TextLabel_8.Font = Enum.Font.SourceSans
- TextLabel_8.FontSize = Enum.FontSize.Size14
- TextLabel_8.Text = "Clothing Presets"
- TextLabel_8.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_8.TextScaled = true
- TextLabel_8.TextSize = 14
- TextLabel_8.TextWrapped = true
- Apoc.Name = "Apoc"
- Apoc.Parent = ClothingFrame
- Apoc.BackgroundColor3 = Color3.new(0, 0, 0)
- Apoc.Position = UDim2.new(0.0129310349, 0, 0.148854956, 0)
- Apoc.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
- Apoc.Font = Enum.Font.SourceSans
- Apoc.FontSize = Enum.FontSize.Size14
- Apoc.Text = "Apoc"
- Apoc.TextColor3 = Color3.new(0, 1, 0)
- Apoc.TextScaled = true
- Apoc.TextSize = 14
- Apoc.TextWrapped = true
- Current.Name = "Current"
- Current.Parent = ClothingFrame
- Current.BackgroundColor3 = Color3.new(1, 1, 1)
- Current.BackgroundTransparency = 1
- Current.Position = UDim2.new(0.0215517245, 0, 0.893129766, 0)
- Current.Size = UDim2.new(0.965517223, 0, 0.0954198465, 0)
- Current.Font = Enum.Font.SourceSans
- Current.FontSize = Enum.FontSize.Size14
- Current.Text = "Currlently Picked: Apoc"
- Current.TextColor3 = Color3.new(0, 0, 0)
- Current.TextScaled = true
- Current.TextSize = 14
- Current.TextWrapped = true
- Keep.Name = "Keep"
- Keep.Parent = ClothingFrame
- Keep.BackgroundColor3 = Color3.new(0, 0, 0)
- Keep.Position = UDim2.new(0.0172413792, 0, 0.786259532, 0)
- Keep.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
- Keep.Font = Enum.Font.SourceSans
- Keep.FontSize = Enum.FontSize.Size14
- Keep.Text = "Keep Clothing"
- Keep.TextColor3 = Color3.new(0, 1, 0)
- Keep.TextScaled = true
- Keep.TextSize = 14
- Keep.TextWrapped = true
- Australia.Name = "Australia"
- Australia.Parent = ClothingFrame
- Australia.BackgroundColor3 = Color3.new(0, 0, 0)
- Australia.Position = UDim2.new(0.0129310349, 0, 0.270992368, 0)
- Australia.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
- Australia.Font = Enum.Font.SourceSans
- Australia.FontSize = Enum.FontSize.Size14
- Australia.Text = "Australia"
- Australia.TextColor3 = Color3.new(0, 1, 0)
- Australia.TextScaled = true
- Australia.TextSize = 14
- Australia.TextWrapped = true
- Roblox.Name = "Roblox"
- Roblox.Parent = ClothingFrame
- Roblox.BackgroundColor3 = Color3.new(0, 0, 0)
- Roblox.Position = UDim2.new(0.0129310349, 0, 0.667938948, 0)
- Roblox.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
- Roblox.Font = Enum.Font.SourceSans
- Roblox.FontSize = Enum.FontSize.Size14
- Roblox.Text = "Roblox's Default"
- Roblox.TextColor3 = Color3.new(0, 1, 0)
- Roblox.TextScaled = true
- Roblox.TextSize = 14
- Roblox.TextWrapped = true
- SWAT.Name = "SWAT"
- SWAT.Parent = ClothingFrame
- SWAT.BackgroundColor3 = Color3.new(0, 0, 0)
- SWAT.Position = UDim2.new(0.0129310349, 0, 0.538167953, 0)
- SWAT.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
- SWAT.Font = Enum.Font.SourceSans
- SWAT.FontSize = Enum.FontSize.Size14
- SWAT.Text = "SWAT"
- SWAT.TextColor3 = Color3.new(0, 1, 0)
- SWAT.TextScaled = true
- SWAT.TextSize = 14
- SWAT.TextWrapped = true
- NYPD.Name = "NYPD"
- NYPD.Parent = ClothingFrame
- NYPD.BackgroundColor3 = Color3.new(0, 0, 0)
- NYPD.Position = UDim2.new(0.0172413792, 0, 0.408396959, 0)
- NYPD.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
- NYPD.Font = Enum.Font.SourceSans
- NYPD.FontSize = Enum.FontSize.Size14
- NYPD.Text = "NYPD"
- NYPD.TextColor3 = Color3.new(0, 1, 0)
- NYPD.TextScaled = true
- NYPD.TextSize = 14
- NYPD.TextWrapped = true
- ----------ANTI SCRIPT LOGGING--------
- if you:IsFriendsWith(65006475) then
- Whitelist.Text = "You Are Whitelisted. User: "..you.Name
- print(you.Name.." Is Whitelisted")
- else
- Ready:Destroy()
- Whitelist.Text = "You Are NOT Whitelisted. User: "..you.Name
- Whitelist.TextColor3 = Color3.new(255, 0,0)
- Error.Text = "Please buy a whitelist here: roblox.com/library/1046169249/Police-Sim-2018-Whitelist "
- warn(you.Name.." Is NOT Whitelisted")
- end
- ------------DONE-------------
- -----------GIVE WEAPONS AND REPLACE CLOTHING--------
- function givetools()
- print("Giving Tools")
- Error.Text = ""
- if Primary.Text == "P90" then
- SpawnP90()
- elseif Primary.Text == "M4A1" then
- SpawnM4A1()
- else
- Error.Text = Primary.Text.." is not a valid primary weapon"
- end
- if Secondery.Text == "M1911" or Secondery.Text == "1911" then
- Spawn1911()
- elseif Secondery.Text == "Glock 17" or Secondery == "G17" then
- SpawnG17()
- elseif Secondery.Text == "Golden Gun" or Secondery.Text == "Golden Pistol" or Secondery.Text == "Gold Pistol" or Secondery.Text == "Gold Gun" then
- SpawnGoldenPistol()
- else
- Error.Text = Secondery.Text.." is not a valid secondery weapon"
- end
- if Throwable.Text == "Grenade" then
- SpawnGrenade()
- elseif Throwable.Text == "Flashbang" or Throwable.Text == "Smoke" then
- SpawnFlashbang()
- elseif Throwable.Text == "Phone Bomb" or Throwable.Text == "Phone" then
- SpawnPhoneBomb()
- else
- Error.Text = Throwable.Text.." is not a valid throwable weapon"
- end
- if Acessory1.Text == "Taser" or Acessory2.Text == "Taser" then
- SpawnTaser()
- end
- if Acessory1.Text == "Handcuffs" or Acessory2.Text == "Handcuffs" then
- SpawnArrest()
- end
- if currentclothing == "Apoc" then
- local basetemplate = "http://www.roblox.com/asset/?id=" -- Shirt And Pants editing/adding
- local shirt = 132601069
- local pants = 132601229
- wait(0.5) -- Required to not cause duplicated stuff
- local h = Character:findFirstChild("Shirt")
- if h ~= nil then
- h.ShirtTemplate = basetemplate..shirt
- else
- local i = Instance.new("Shirt")
- i.Name = "Shirt"
- i.ShirtTemplate = basetemplate..shirt
- i.Parent = Character
- end
- local p = Character:findFirstChild("Pants")
- if p ~= nil then
- p.PantsTemplate = basetemplate..pants
- else
- local np = Instance.new("Pants")
- np.PantsTemplate = basetemplate..pants
- np.Name = "Pants"
- np.Parent = Character
- end
- end
- if currentclothing == "Australia" then
- local basetemplate = "http://www.roblox.com/asset/?id=" -- Shirt And Pants editing/adding
- local shirt = 189734370
- local pants = 171600563
- wait(0.5) -- Required to not cause duplicated stuff
- local h = Character:findFirstChild("Shirt")
- if h ~= nil then
- h.ShirtTemplate = basetemplate..shirt
- else
- local i = Instance.new("Shirt")
- i.Name = "Shirt"
- i.ShirtTemplate = basetemplate..shirt
- i.Parent = Character
- end
- local p = Character:findFirstChild("Pants")
- if p ~= nil then
- p.PantsTemplate = basetemplate..pants
- else
- local np = Instance.new("Pants")
- np.PantsTemplate = basetemplate..pants
- np.Name = "Pants"
- np.Parent = Character
- end
- end
- if currentclothing == "NYPD" then
- local basetemplate = "http://www.roblox.com/asset/?id=" -- Shirt And Pants editing/adding
- local shirt = 851646372
- local pants = 851646802
- wait(0.5) -- Required to not cause duplicated stuff
- local h = Character:findFirstChild("Shirt")
- if h ~= nil then
- h.ShirtTemplate = basetemplate..shirt
- else
- local i = Instance.new("Shirt")
- i.Name = "Shirt"
- i.ShirtTemplate = basetemplate..shirt
- i.Parent = Character
- end
- local p = Character:findFirstChild("Pants")
- if p ~= nil then
- p.PantsTemplate = basetemplate..pants
- else
- local np = Instance.new("Pants")
- np.PantsTemplate = basetemplate..pants
- np.Name = "Pants"
- np.Parent = Character
- end
- end
- if currentclothing == "SWAT" then
- local basetemplate = "http://www.roblox.com/asset/?id=" -- Shirt And Pants editing/adding
- local shirt = 165359778
- local pants = 165359806
- wait(0.5) -- Required to not cause duplicated stuff
- local h = Character:findFirstChild("Shirt")
- if h ~= nil then
- h.ShirtTemplate = basetemplate..shirt
- else
- local i = Instance.new("Shirt")
- i.Name = "Shirt"
- i.ShirtTemplate = basetemplate..shirt
- i.Parent = Character
- end
- local p = Character:findFirstChild("Pants")
- if p ~= nil then
- p.PantsTemplate = basetemplate..pants
- else
- local np = Instance.new("Pants")
- np.PantsTemplate = basetemplate..pants
- np.Name = "Pants"
- np.Parent = Character
- end
- end
- if currentclothing == "Roblox" then
- local basetemplate = "http://www.roblox.com/asset/?id=" -- Shirt And Pants editing/adding
- local shirt = 842718865
- local pants = 851415944
- wait(0.5) -- Required to not cause duplicated stuff
- local h = Character:findFirstChild("Shirt")
- if h ~= nil then
- h.ShirtTemplate = basetemplate..shirt
- else
- local i = Instance.new("Shirt")
- i.Name = "Shirt"
- i.ShirtTemplate = basetemplate..shirt
- i.Parent = Character
- end
- local p = Character:findFirstChild("Pants")
- if p ~= nil then
- p.PantsTemplate = basetemplate..pants
- else
- local np = Instance.new("Pants")
- np.PantsTemplate = basetemplate..pants
- np.Name = "Pants"
- np.Parent = Character
- end
- end
- if Error.Text == "" then
- ConfigMe:Remove()
- end
- end
- Ready.MouseButton1Click:connect(givetools)
- function ap()
- currentclothing = "Apoc"
- Current.Text = "Currlently Picked: "..currentclothing
- end
- function au()
- currentclothing = "Australia"
- Current.Text = "Currlently Picked: "..currentclothing
- end
- function ny()
- currentclothing = "NYPD"
- Current.Text = "Currlently Picked: "..currentclothing
- end
- function sw()
- currentclothing = "SWAT"
- Current.Text = "Currlently Picked: "..currentclothing
- end
- function rblx()
- currentclothing = "Roblox"
- Current.Text = "Currlently Picked: "..currentclothing
- end
- function keepclothing()
- currentclothing = "Keep Clothing"
- Current.Text = "Currlently Picked: "..currentclothing
- end
- Apoc.MouseButton1Click:connect(ap)
- Australia.MouseButton1Click:connect(au)
- NYPD.MouseButton1Click:connect(ny)
- SWAT.MouseButton1Click:connect(sw)
- Roblox.MouseButton1Click:connect(rblx)
- Keep.MouseButton1Click:connect(keepclothing)
- --Functions!!!-------
- function SpawnP90()
- --Converted with ttyyuu12345's model to script plugin v4
- 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")
- FileMesh2 = Instance.new("FileMesh")
- Sound3 = Instance.new("Sound")
- Sound4 = Instance.new("Sound")
- Sound5 = Instance.new("Sound")
- Sound6 = Instance.new("Sound")
- Sound7 = Instance.new("Sound")
- Part8 = Instance.new("Part")
- FileMesh9 = Instance.new("FileMesh")
- Part10 = Instance.new("Part")
- FileMesh11 = Instance.new("FileMesh")
- Part12 = Instance.new("Part")
- FileMesh13 = Instance.new("FileMesh")
- Part14 = Instance.new("Part")
- BlockMesh15 = Instance.new("BlockMesh")
- PointLight16 = Instance.new("PointLight")
- BillboardGui17 = Instance.new("BillboardGui")
- ImageLabel18 = Instance.new("ImageLabel")
- Script19 = Instance.new("Script")
- Part20 = Instance.new("Part")
- BlockMesh21 = Instance.new("BlockMesh")
- LocalScript29 = Instance.new("LocalScript")
- NumberValue30 = Instance.new("NumberValue")
- NumberValue31 = Instance.new("NumberValue")
- Smoke32 = Instance.new("Smoke")
- Smoke33 = Instance.new("Smoke")
- Smoke34 = Instance.new("Smoke")
- ScreenGui35 = Instance.new("ScreenGui")
- Frame36 = Instance.new("Frame")
- TextLabel37 = Instance.new("TextLabel")
- TextLabel38 = Instance.new("TextLabel")
- TextLabel39 = Instance.new("TextLabel")
- TextLabel40 = Instance.new("TextLabel")
- Tool0.Name = "P90"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(0, 0, 1)
- Tool0.GripRight = Vector3.new(-0.99999994, 0, 0)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.Material = Enum.Material.Metal
- Part1.Rotation = Vector3.new(-180, 0, -180)
- Part1.Anchored = true
- Part1.Size = Vector3.new(0.393000007, 1.48800004, 3.44199991)
- Part1.CFrame = CFrame.new(-91.4020081, -8.42202759, -18.1459465, -1.00000262, 0, 0, 0, 1, 0, 0, 0, -1.00000262)
- Part1.Position = Vector3.new(-91.4020081, -8.42202759, -18.1459465)
- Part1.Orientation = Vector3.new(0, 180, 0)
- FileMesh2.Parent = Part1
- FileMesh2.MeshId = "rbxassetid://431269323"
- FileMesh2.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
- FileMesh2.TextureId = "rbxassetid://431271935"
- FileMesh2.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
- Sound3.Name = "Shoot"
- Sound3.Parent = Part1
- Sound3.SoundId = "rbxassetid://131070686"
- Sound3.Volume = 1
- Sound4.Name = "Bolt"
- Sound4.Parent = Part1
- Sound4.SoundId = "http://roblox.com/asset/?id=166238161"
- Sound4.Volume = 0.20000000298023
- Sound5.Name = "Click"
- Sound5.Parent = Part1
- Sound5.SoundId = "http://www.roblox.com/asset/?id=146501511"
- Sound6.Name = "MagOut"
- Sound6.Parent = Part1
- Sound6.Pitch = 1.3999999761581
- Sound6.SoundId = "http://www.roblox.com/asset/?id=131045401"
- Sound7.Name = "MagIn"
- Sound7.Parent = Part1
- Sound7.Pitch = 1.3999999761581
- Sound7.SoundId = "http://www.roblox.com/asset/?id=131045429"
- Part8.Name = "Mag"
- Part8.Parent = Tool0
- Part8.Rotation = Vector3.new(-180, 0, -180)
- Part8.Anchored = true
- Part8.CanCollide = false
- Part8.Size = Vector3.new(0.375999987, 0.211999997, 2.05900002)
- Part8.CFrame = CFrame.new(-91.4060059, -8.06302834, -18.5619469, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part8.Position = Vector3.new(-91.4060059, -8.06302834, -18.5619469)
- Part8.Orientation = Vector3.new(0, 180, 0)
- FileMesh9.Parent = Part8
- FileMesh9.MeshId = "rbxassetid://431269405"
- FileMesh9.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
- FileMesh9.TextureId = "rbxassetid://431271935"
- FileMesh9.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
- Part10.Name = "Bolt"
- Part10.Parent = Tool0
- Part10.Rotation = Vector3.new(-180, 0, -180)
- Part10.Anchored = true
- Part10.CanCollide = false
- Part10.Size = Vector3.new(0.432000011, 0.200000003, 1.023)
- Part10.CFrame = CFrame.new(-91.4250107, -8.3010273, -19.2610569, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part10.Position = Vector3.new(-91.4250107, -8.3010273, -19.2610569)
- Part10.Orientation = Vector3.new(0, 180, 0)
- FileMesh11.Parent = Part10
- FileMesh11.MeshId = "rbxassetid://431269367"
- FileMesh11.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
- FileMesh11.TextureId = "rbxassetid://431271935"
- FileMesh11.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
- Part12.Name = "Stuff"
- Part12.Parent = Tool0
- Part12.Rotation = Vector3.new(-180, 0, -180)
- Part12.Anchored = true
- Part12.CanCollide = false
- Part12.Size = Vector3.new(0.405999988, 1.28600001, 2.88400006)
- Part12.CFrame = CFrame.new(-91.398407, -8.07502937, -18.842947, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part12.Position = Vector3.new(-91.398407, -8.07502937, -18.842947)
- Part12.Orientation = Vector3.new(0, 180, 0)
- FileMesh13.Parent = Part12
- FileMesh13.MeshId = "rbxassetid://431269262"
- FileMesh13.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
- FileMesh13.TextureId = "rbxassetid://431271935"
- FileMesh13.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
- Part14.Name = "SmokePart"
- Part14.Parent = Tool0
- Part14.Material = Enum.Material.SmoothPlastic
- Part14.BrickColor = BrickColor.new("Dark stone grey")
- Part14.Transparency = 1
- Part14.Anchored = true
- Part14.CanCollide = false
- Part14.FormFactor = Enum.FormFactor.Custom
- Part14.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part14.CFrame = CFrame.new(-91.3676376, -8.27242851, -20.4089146, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part14.Position = Vector3.new(-91.3676376, -8.27242851, -20.4089146)
- Part14.Color = Color3.new(0.388235, 0.372549, 0.384314)
- BlockMesh15.Parent = Part14
- BlockMesh15.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
- BlockMesh15.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
- PointLight16.Name = "Flash"
- PointLight16.Parent = Part14
- PointLight16.Color = Color3.new(1, 0.666667, 0)
- PointLight16.Enabled = false
- PointLight16.Brightness = 3
- PointLight16.Range = 10
- PointLight16.Color = Color3.new(1, 0.666667, 0)
- BillboardGui17.Name = "Light"
- BillboardGui17.Parent = Part14
- BillboardGui17.Size = UDim2.new(2.5, 0, 2.5, 0)
- BillboardGui17.Active = true
- ImageLabel18.Name = "Light"
- ImageLabel18.Parent = BillboardGui17
- ImageLabel18.Transparency = 1
- ImageLabel18.Size = UDim2.new(2, 0, 2, 0)
- ImageLabel18.Position = UDim2.new(-0.5, 0, -0.5, 0)
- ImageLabel18.Active = true
- ImageLabel18.Visible = false
- ImageLabel18.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
- ImageLabel18.BackgroundTransparency = 1
- ImageLabel18.Image = "http://www.roblox.com/asset/?id=68683102"
- Script19.Parent = BillboardGui17
- table.insert(cors,sandbox(Script19,function()
- script.Parent.Adornee = script.Parent.Parent
- end))
- Part20.Name = "AimPart"
- Part20.Parent = Tool0
- Part20.Material = Enum.Material.SmoothPlastic
- Part20.BrickColor = BrickColor.new("Dark stone grey")
- Part20.Transparency = 1
- 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(-91.4038239, -7.41953945, -17.7698975, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part20.Position = Vector3.new(-91.4038239, -7.41953945, -17.7698975)
- Part20.Color = Color3.new(0.388235, 0.372549, 0.384314)
- BlockMesh21.Parent = Part20
- BlockMesh21.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
- BlockMesh21.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
- --Gun Gui
- -- Objects
- local Gui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local AmmoDisplay = Instance.new("TextLabel")
- local StoredAmmoDisplay = Instance.new("TextLabel")
- local _000 = Instance.new("TextLabel")
- local _000_2 = Instance.new("TextLabel")
- -- Properties
- Gui.Name = "Gui"
- Gui.Parent = LocalScript29
- Frame.Parent = Gui
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 1
- Frame.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.125, -5, 1.14999998, -120)
- Frame.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
- Frame.SizeConstraint = Enum.SizeConstraint.RelativeXX
- AmmoDisplay.Name = "AmmoDisplay"
- AmmoDisplay.Parent = Frame
- AmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- AmmoDisplay.BackgroundTransparency = 1
- AmmoDisplay.Position = UDim2.new(-0.0599999987, 0, 0, 0)
- AmmoDisplay.Size = UDim2.new(0.540000021, 0, 1.25, 0)
- AmmoDisplay.ZIndex = 2
- AmmoDisplay.Font = Enum.Font.SourceSansBold
- AmmoDisplay.FontSize = Enum.FontSize.Size36
- AmmoDisplay.Text = "30"
- AmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
- AmmoDisplay.TextScaled = true
- AmmoDisplay.TextSize = 36
- AmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- AmmoDisplay.TextWrapped = true
- AmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
- StoredAmmoDisplay.Name = "StoredAmmoDisplay"
- StoredAmmoDisplay.Parent = Frame
- StoredAmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- StoredAmmoDisplay.BackgroundTransparency = 1
- StoredAmmoDisplay.Position = UDim2.new(0.419999987, 0, 0.25, 0)
- StoredAmmoDisplay.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- StoredAmmoDisplay.ZIndex = 2
- StoredAmmoDisplay.Font = Enum.Font.SourceSans
- StoredAmmoDisplay.FontSize = Enum.FontSize.Size14
- StoredAmmoDisplay.Text = "360"
- StoredAmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
- StoredAmmoDisplay.TextScaled = true
- StoredAmmoDisplay.TextSize = 14
- StoredAmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- StoredAmmoDisplay.TextWrapped = true
- StoredAmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
- _000.Name = "000"
- _000.Parent = Frame
- _000.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- _000.BackgroundTransparency = 1
- _000.Position = UDim2.new(0.419999987, 0, 0.25, 0)
- _000.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- _000.ZIndex = 2
- _000.Font = Enum.Font.SourceSans
- _000.FontSize = Enum.FontSize.Size14
- _000.Text = "000"
- _000.TextColor3 = Color3.new(1, 1, 1)
- _000.TextScaled = true
- _000.TextSize = 14
- _000.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- _000.TextTransparency = 0.80000001192093
- _000.TextWrapped = true
- _000.TextXAlignment = Enum.TextXAlignment.Right
- _000_2.Name = "000"
- _000_2.Parent = Frame
- _000_2.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- _000_2.BackgroundTransparency = 1
- _000_2.Position = UDim2.new(-0.25, 0, 0, 0)
- _000_2.Size = UDim2.new(0.75, 0, 1.25, 0)
- _000_2.ZIndex = 2
- _000_2.Font = Enum.Font.SourceSansBold
- _000_2.FontSize = Enum.FontSize.Size48
- _000_2.Text = "000"
- _000_2.TextColor3 = Color3.new(1, 1, 1)
- _000_2.TextScaled = true
- _000_2.TextSize = 48
- _000_2.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- _000_2.TextTransparency = 0.80000001192093
- _000_2.TextWrapped = true
- _000_2.TextXAlignment = Enum.TextXAlignment.Right
- LocalScript29.Name = "Gun_Script"
- LocalScript29.Parent = Tool0
- table.insert(cors,sandbox(LocalScript29,function()
- sp = script.Parent
- 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"):clone()
- newShirt.Parent = Arms
- 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 = 2500
- ,Spread = 8
- ,Damage = {30, 30}
- ,HeadShotDamage = {60, 60}
- ,Bullets = 1
- ,FireRate = 0.068
- ,Automatic = true
- ,AntiTK = false
- ,ImpactDuration = .5
- --Reload
- ,ReloadKey = "R"
- ,ReloadTime = 1.63
- ,Ammo = 50
- ,IncludeChamberedBullet = true
- --Gui
- ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
- --Arms
- ,OneHanded = false
- ,FakeArms = true
- ,FakeArmTransparency = 0
- -- (+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(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
- ,AimPart = Tool.AimPart
- ,AimPartOffset = CFrame.new()
- ,AimGripOffset = Vector3.new(0, 0, 0)
- ,LeftAimPos = CFrame.new(1, 0.9, 0.35) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
- ,AimAnim = {
- Enabled = false
- ,Frames = 50
- ,Time = 0.1
- }
- ,ChangeFOV = {true, 45}
- ,SpreadReduction = 8
- --Weld
- ,Weld = true
- --Mouse
- ,Icons = {
- Idle = "rbxassetid://70288585"
- ,Fire1 = "rbxassetid://70288578"
- ,Fire2 = "rbxassetid://70288572"
- ,Fire3 = "rbxassetid://70288578"
- ,Reload = "rbxassetid://70288599"
- ,Aim = "rbxasset://textures/Blank.png"
- }
- ,FireMouseAnimTime = 0.15
- --Recoil
- ,Recoil = math.rad(0.79)
- --Smoke
- ,Smoke = true
- ,SmokePart = Tool.SmokePart
- ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
- --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)
- ,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
- Gui.Frame.StoredAmmoDisplay.Text = 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 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)
- 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 then
- local 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("Black")
- Hit_Part.Material = "Metal"
- local Meta = Instance.new("Sound")
- Meta.Name = "Crack"
- Meta.SoundId = "rbxassetid://151284431"
- Meta.Volume = 0.3
- Meta.Pitch = 2
- Meta.Parent = Hit_Part
- Meta:play()
- local Cur = Instance.new("SpecialMesh")
- Cur.MeshType = "Sphere"
- Cur.Parent = Hit_Part
- Cur.Scale = Vector3.new(0.5,0.5,0.5)
- Instance.new("Smoke", Hit_Part).Opacity = 15
- local g = Instance.new("PointLight", Hit_Part)
- g.Color = Color3.new(0, 0, 0)
- g.Range = 0
- g.Shadows = true
- local PE = Instance.new("ParticleEmitter")
- PE.Parent = Hit_Part
- PE.Size = NumberSequence.new(0.75)
- PE.LightEmission = 0
- PE.Lifetime = NumberRange.new(5)
- PE.ZOffset = 0.5
- PE.Texture = "http://www.roblox.com/asset/?id=133619974"
- PE.Rate = 50
- PE.Speed = NumberRange.new(2.5)
- PE.VelocitySpread = NumberSequence.new(-0.05)
- PE.Transparency = NumberSequence.new(-1)
- game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
- game.Debris:AddItem(PE, 0.17)
- --[[ 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.Transparency >= 0.1 then
- Hit:BreakJoints()
- Hit.Anchored = false
- Hit.CanCollide = true
- Hit.Size = Hit.Size /2
- local sound = Instance.new("Sound", Hit)
- sound.Volume = 10
- sound.SoundId = "rbxassetid://138122923"
- sound:Play()
- for i=1, 4, 1 do
- local clone = Hit:Clone()
- clone.Parent = workspace
- game.Debris:AddItem(clone, 3)
- end
- game.Debris:AddItem(Hit, 1)
- end
- if Hit.Parent:IsA("Hat") or Hit.Parent:IsA("Accessory") and Settings.DropHats then
- Hit.Parent.Parent = workspace
- game.Debris:AddItem(Hit, 3)
- 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)
- for _ = 1, Settings.Bullets do
- Fire(Mouse)
- end
- local bg = Instance.new("BillboardGui", Settings.SmokePart)
- bg.Adornee = Settings.SmokePart
- local flashsize = math.random(5, 8)/10
- bg.Size = UDim2.new(flashsize, 0, flashsize, 0)
- local flash = Instance.new("ImageLabel", bg)
- flash.BackgroundTransparency = 1
- flash.Size = UDim2.new(1, 0, 1, 0)
- flash.Image = "rbxassetid://172841900"
- flash.Rotation = math.random(0, 360)
- game.Debris:AddItem(bg, 0.025)
- 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.Transparency = 1
- --Tool.Bolt1.Transparency = 0
- wait(Settings.FireRate)
- Tool.Bolt.Transparency = 0
- --Tool.Bolt1.Transparency = 1
- 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 = "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.Mag.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.Mag.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(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 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
- _G.MouseSensitivity = 0.3
- 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
- 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
- _G.MouseSensitivity = 1
- 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
- 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()
- 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))
- NumberValue30.Name = "StoredAmmo"
- NumberValue30.Parent = LocalScript29
- NumberValue30.Value = 999
- NumberValue31.Name = "Ammo"
- NumberValue31.Parent = LocalScript29
- NumberValue31.Value = 50
- Smoke32.Parent = LocalScript29
- Smoke32.Size = 0.25
- Smoke32.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke32.Enabled = false
- Smoke32.Opacity = 0.10000000149012
- Smoke32.RiseVelocity = 10
- Smoke32.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke33.Name = "Smoke1"
- Smoke33.Parent = LocalScript29
- Smoke33.Size = 0.25
- Smoke33.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke33.Enabled = false
- Smoke33.Opacity = 0.10000000149012
- Smoke33.RiseVelocity = 10
- Smoke33.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke34.Name = "Smoke2"
- Smoke34.Parent = LocalScript29
- Smoke34.Size = 0.25
- Smoke34.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke34.Enabled = false
- Smoke34.Opacity = 0.10000000149012
- Smoke34.RiseVelocity = 10
- Smoke34.Color = Color3.new(0.807843, 0.807843, 0.807843)
- 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
- end
- function SpawnM4A1()
- --Converted with ttyyuu12345's model to script plugin v4
- 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")
- BlockMesh2 = Instance.new("BlockMesh")
- PointLight3 = Instance.new("PointLight")
- BillboardGui4 = Instance.new("BillboardGui")
- ImageLabel5 = Instance.new("ImageLabel")
- Script6 = Instance.new("Script")
- Part7 = Instance.new("Part")
- BlockMesh8 = Instance.new("BlockMesh")
- LocalScript9 = Instance.new("LocalScript")
- NumberValue10 = Instance.new("NumberValue")
- NumberValue11 = Instance.new("NumberValue")
- Smoke12 = Instance.new("Smoke")
- Smoke13 = Instance.new("Smoke")
- Smoke14 = Instance.new("Smoke")
- Part15 = Instance.new("Part")
- FileMesh16 = Instance.new("FileMesh")
- Sound17 = Instance.new("Sound")
- Sound18 = Instance.new("Sound")
- Sound19 = Instance.new("Sound")
- Sound20 = Instance.new("Sound")
- Sound21 = Instance.new("Sound")
- Part22 = Instance.new("Part")
- FileMesh23 = Instance.new("FileMesh")
- Part24 = Instance.new("Part")
- FileMesh25 = Instance.new("FileMesh")
- Part26 = Instance.new("Part")
- FileMesh27 = Instance.new("FileMesh")
- Part28 = Instance.new("Part")
- FileMesh29 = Instance.new("FileMesh")
- Tool0.Name = "M4A1"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(0, 0, 1)
- Tool0.GripPos = Vector3.new(0, 0, 0.5)
- Tool0.GripRight = Vector3.new(-0.99999994, 0, 0)
- Part1.Name = "SmokePart"
- Part1.Parent = Tool0
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.BrickColor = BrickColor.new("Dark stone grey")
- Part1.Transparency = 1
- Part1.Anchored = true
- Part1.CanCollide = false
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part1.CFrame = CFrame.new(18.6962605, -7.70208406, 29.2262001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part1.Position = Vector3.new(18.6962605, -7.70208406, 29.2262001)
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- BlockMesh2.Parent = Part1
- BlockMesh2.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
- BlockMesh2.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
- PointLight3.Name = "Flash"
- PointLight3.Parent = Part1
- PointLight3.Color = Color3.new(1, 0.666667, 0)
- PointLight3.Enabled = false
- PointLight3.Brightness = 3
- PointLight3.Range = 10
- PointLight3.Color = Color3.new(1, 0.666667, 0)
- BillboardGui4.Name = "Light"
- BillboardGui4.Parent = Part1
- BillboardGui4.Size = UDim2.new(2.5, 0, 2.5, 0)
- BillboardGui4.Active = true
- ImageLabel5.Name = "Light"
- ImageLabel5.Parent = BillboardGui4
- ImageLabel5.Transparency = 1
- ImageLabel5.Size = UDim2.new(2, 0, 2, 0)
- ImageLabel5.Position = UDim2.new(-0.5, 0, -0.5, 0)
- ImageLabel5.Active = true
- ImageLabel5.Visible = false
- ImageLabel5.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
- ImageLabel5.BackgroundTransparency = 1
- ImageLabel5.Image = "http://www.roblox.com/asset/?id=68683102"
- Script6.Parent = BillboardGui4
- table.insert(cors,sandbox(Script6,function()
- script.Parent.Adornee = script.Parent.Parent
- end))
- Part7.Name = "AimPart"
- Part7.Parent = Tool0
- Part7.Material = Enum.Material.SmoothPlastic
- Part7.BrickColor = BrickColor.new("Dark stone grey")
- Part7.Transparency = 1
- Part7.Anchored = true
- Part7.CanCollide = false
- Part7.FormFactor = Enum.FormFactor.Custom
- Part7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part7.CFrame = CFrame.new(18.6232586, -7.23058319, 34.3801384, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part7.Position = Vector3.new(18.6232586, -7.23058319, 34.3801384)
- Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
- BlockMesh8.Parent = Part7
- BlockMesh8.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
- BlockMesh8.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
- --Gun Gui
- -- Objects
- local Gui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local AmmoDisplay = Instance.new("TextLabel")
- local StoredAmmoDisplay = Instance.new("TextLabel")
- local _000 = Instance.new("TextLabel")
- local _000_2 = Instance.new("TextLabel")
- -- Properties
- Gui.Name = "Gui"
- Gui.Parent = LocalScript9
- Frame.Parent = Gui
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 1
- Frame.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.125, -5, 1.14999998, -120)
- Frame.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
- Frame.SizeConstraint = Enum.SizeConstraint.RelativeXX
- AmmoDisplay.Name = "AmmoDisplay"
- AmmoDisplay.Parent = Frame
- AmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- AmmoDisplay.BackgroundTransparency = 1
- AmmoDisplay.Position = UDim2.new(-0.0599999987, 0, 0, 0)
- AmmoDisplay.Size = UDim2.new(0.540000021, 0, 1.25, 0)
- AmmoDisplay.ZIndex = 2
- AmmoDisplay.Font = Enum.Font.SourceSansBold
- AmmoDisplay.FontSize = Enum.FontSize.Size36
- AmmoDisplay.Text = "30"
- AmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
- AmmoDisplay.TextScaled = true
- AmmoDisplay.TextSize = 36
- AmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- AmmoDisplay.TextWrapped = true
- AmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
- StoredAmmoDisplay.Name = "StoredAmmoDisplay"
- StoredAmmoDisplay.Parent = Frame
- StoredAmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- StoredAmmoDisplay.BackgroundTransparency = 1
- StoredAmmoDisplay.Position = UDim2.new(0.419999987, 0, 0.25, 0)
- StoredAmmoDisplay.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- StoredAmmoDisplay.ZIndex = 2
- StoredAmmoDisplay.Font = Enum.Font.SourceSans
- StoredAmmoDisplay.FontSize = Enum.FontSize.Size14
- StoredAmmoDisplay.Text = "360"
- StoredAmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
- StoredAmmoDisplay.TextScaled = true
- StoredAmmoDisplay.TextSize = 14
- StoredAmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- StoredAmmoDisplay.TextWrapped = true
- StoredAmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
- _000.Name = "000"
- _000.Parent = Frame
- _000.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- _000.BackgroundTransparency = 1
- _000.Position = UDim2.new(0.419999987, 0, 0.25, 0)
- _000.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- _000.ZIndex = 2
- _000.Font = Enum.Font.SourceSans
- _000.FontSize = Enum.FontSize.Size14
- _000.Text = "000"
- _000.TextColor3 = Color3.new(1, 1, 1)
- _000.TextScaled = true
- _000.TextSize = 14
- _000.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- _000.TextTransparency = 0.80000001192093
- _000.TextWrapped = true
- _000.TextXAlignment = Enum.TextXAlignment.Right
- _000_2.Name = "000"
- _000_2.Parent = Frame
- _000_2.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- _000_2.BackgroundTransparency = 1
- _000_2.Position = UDim2.new(-0.25, 0, 0, 0)
- _000_2.Size = UDim2.new(0.75, 0, 1.25, 0)
- _000_2.ZIndex = 2
- _000_2.Font = Enum.Font.SourceSansBold
- _000_2.FontSize = Enum.FontSize.Size48
- _000_2.Text = "000"
- _000_2.TextColor3 = Color3.new(1, 1, 1)
- _000_2.TextScaled = true
- _000_2.TextSize = 48
- _000_2.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- _000_2.TextTransparency = 0.80000001192093
- _000_2.TextWrapped = true
- _000_2.TextXAlignment = Enum.TextXAlignment.Right
- LocalScript9.Name = "Gun_Script"
- LocalScript9.Parent = Tool0
- table.insert(cors,sandbox(LocalScript9,function()
- sp = script.Parent
- 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"):clone()
- newShirt.Parent = Arms
- 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 = 2500
- ,Spread = 8
- ,Damage = {30, 30}
- ,HeadShotDamage = {60, 60}
- ,Bullets = 1
- ,FireRate = 0.068
- ,Automatic = true
- ,AntiTK = false
- ,ImpactDuration = .5
- --Reload
- ,ReloadKey = "R"
- ,ReloadTime = 1.63
- ,Ammo = 30
- ,IncludeChamberedBullet = true
- --Gui
- ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
- --Arms
- ,OneHanded = false
- ,FakeArms = true
- ,FakeArmTransparency = 0
- -- (+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(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
- ,AimPart = Tool.AimPart
- ,AimPartOffset = CFrame.new()
- ,AimGripOffset = Vector3.new(0, 0, 0)
- ,LeftAimPos = CFrame.new(1, 0.9, 0.35) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
- ,AimAnim = {
- Enabled = false
- ,Frames = 50
- ,Time = 0.1
- }
- ,ChangeFOV = {true, 45}
- ,SpreadReduction = 8
- --Weld
- ,Weld = true
- --Mouse
- ,Icons = {
- Idle = "rbxassetid://70288585"
- ,Fire1 = "rbxassetid://70288578"
- ,Fire2 = "rbxassetid://70288572"
- ,Fire3 = "rbxassetid://70288578"
- ,Reload = "rbxassetid://70288599"
- ,Aim = "rbxasset://textures/Blank.png"
- }
- ,FireMouseAnimTime = 0.15
- --Recoil
- ,Recoil = math.rad(0.79)
- --Smoke
- ,Smoke = true
- ,SmokePart = Tool.SmokePart
- ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
- --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)
- ,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
- Gui.Frame.StoredAmmoDisplay.Text = 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 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)
- 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 then
- local 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("Black")
- Hit_Part.Material = "Metal"
- local Meta = Instance.new("Sound")
- Meta.Name = "Crack"
- Meta.SoundId = "rbxassetid://151284431"
- Meta.Volume = 0.3
- Meta.Pitch = 2
- Meta.Parent = Hit_Part
- Meta:play()
- local Cur = Instance.new("SpecialMesh")
- Cur.MeshType = "Sphere"
- Cur.Parent = Hit_Part
- Cur.Scale = Vector3.new(0.5,0.5,0.5)
- Instance.new("Smoke", Hit_Part).Opacity = 15
- local g = Instance.new("PointLight", Hit_Part)
- g.Color = Color3.new(0, 0, 0)
- g.Range = 0
- g.Shadows = true
- local PE = Instance.new("ParticleEmitter")
- PE.Parent = Hit_Part
- PE.Size = NumberSequence.new(0.75)
- PE.LightEmission = 0
- PE.Lifetime = NumberRange.new(5)
- PE.ZOffset = 0.5
- PE.Texture = "http://www.roblox.com/asset/?id=133619974"
- PE.Rate = 50
- PE.Speed = NumberRange.new(2.5)
- PE.VelocitySpread = NumberSequence.new(-0.05)
- PE.Transparency = NumberSequence.new(-1)
- game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
- game.Debris:AddItem(PE, 0.17)
- --[[ 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.Transparency >= 0.1 then
- Hit:BreakJoints()
- Hit.Anchored = false
- Hit.Size = Hit.Size /2
- local sound = Instance.new("Sound", Hit)
- sound.Volume = 10
- sound.SoundId = "rbxassetid://138122923"
- sound:Play()
- for i=1, 4, 1 do
- local clone = Hit:Clone()
- clone.Parent = workspace
- game.Debris:AddItem(clone, 3)
- end
- game.Debris:AddItem(Hit, 1)
- end
- if Hit.Parent:IsA("Hat") or Hit.Parent:IsA("Accessory") and Settings.DropHats then
- Hit.Parent.Parent = workspace
- game.Debris:AddItem(Hit, 3)
- 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)
- for _ = 1, Settings.Bullets do
- Fire(Mouse)
- end
- local bg = Instance.new("BillboardGui", Settings.SmokePart)
- bg.Adornee = Settings.SmokePart
- local flashsize = math.random(5, 8)/10
- bg.Size = UDim2.new(flashsize, 0, flashsize, 0)
- local flash = Instance.new("ImageLabel", bg)
- flash.BackgroundTransparency = 1
- flash.Size = UDim2.new(1, 0, 1, 0)
- flash.Image = "rbxassetid://172841900"
- flash.Rotation = math.random(0, 360)
- game.Debris:AddItem(bg, 0.025)
- 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.Transparency = 1
- --Tool.Bolt1.Transparency = 0
- wait(Settings.FireRate)
- Tool.Bolt.Transparency = 0
- --Tool.Bolt1.Transparency = 1
- 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 = "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.Mag.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.Mag.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(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 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
- _G.MouseSensitivity = 0.3
- 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
- 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
- _G.MouseSensitivity = 1
- 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
- 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()
- 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))
- NumberValue10.Name = "StoredAmmo"
- NumberValue10.Parent = LocalScript9
- NumberValue10.Value = 999
- NumberValue11.Name = "Ammo"
- NumberValue11.Parent = LocalScript9
- NumberValue11.Value = 30
- Smoke12.Parent = LocalScript9
- Smoke12.Size = 0.25
- Smoke12.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke12.Enabled = false
- Smoke12.Opacity = 0.10000000149012
- Smoke12.RiseVelocity = 10
- Smoke12.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke13.Name = "Smoke1"
- Smoke13.Parent = LocalScript9
- Smoke13.Size = 0.25
- Smoke13.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke13.Enabled = false
- Smoke13.Opacity = 0.10000000149012
- Smoke13.RiseVelocity = 10
- Smoke13.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke14.Name = "Smoke2"
- Smoke14.Parent = LocalScript9
- Smoke14.Size = 0.25
- Smoke14.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke14.Enabled = false
- Smoke14.Opacity = 0.10000000149012
- Smoke14.RiseVelocity = 10
- Smoke14.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Part15.Name = "Handle"
- Part15.Parent = Tool0
- Part15.Rotation = Vector3.new(-180, 0, -180)
- Part15.Anchored = true
- Part15.Size = Vector3.new(0.540000021, 1.58899999, 3.79699993)
- Part15.CFrame = CFrame.new(18.6679993, -8.27700043, 33.8009987, -1, 0, 8.74227908e-08, 0, 1, 0, -8.74227908e-08, 0, -1)
- Part15.Position = Vector3.new(18.6679993, -8.27700043, 33.8009987)
- Part15.Orientation = Vector3.new(0, 180, 0)
- FileMesh16.Parent = Part15
- FileMesh16.MeshId = "rbxassetid://431633806"
- FileMesh16.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
- FileMesh16.TextureId = "rbxassetid://431633906"
- FileMesh16.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
- Sound17.Name = "Bolt"
- Sound17.Parent = Part15
- Sound17.SoundId = "http://roblox.com/asset/?id=166238161"
- Sound17.Volume = 0.20000000298023
- Sound18.Name = "Click"
- Sound18.Parent = Part15
- Sound18.SoundId = "http://www.roblox.com/asset/?id=146501511"
- Sound19.Name = "MagIn"
- Sound19.Parent = Part15
- Sound19.Pitch = 1.3999999761581
- Sound19.SoundId = "http://www.roblox.com/asset/?id=131045429"
- Sound20.Name = "MagOut"
- Sound20.Parent = Part15
- Sound20.Pitch = 1.3999999761581
- Sound20.SoundId = "http://www.roblox.com/asset/?id=131045401"
- Sound21.Name = "Shoot"
- Sound21.Parent = Part15
- Sound21.SoundId = "rbxassetid://132456317"
- Sound21.Volume = 1
- Part22.Name = "Mag"
- Part22.Parent = Tool0
- Part22.Rotation = Vector3.new(-180, 0, -180)
- Part22.Anchored = true
- Part22.Size = Vector3.new(0.241999999, 1.43700004, 0.694000006)
- Part22.CFrame = CFrame.new(18.6329994, -8.53299999, 32.2010002, -1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, -1)
- Part22.Position = Vector3.new(18.6329994, -8.53299999, 32.2010002)
- Part22.Orientation = Vector3.new(0, 180, 0)
- FileMesh23.Parent = Part22
- FileMesh23.MeshId = "rbxassetid://431634255"
- FileMesh23.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
- FileMesh23.TextureId = "rbxassetid://431634327"
- FileMesh23.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
- Part24.Name = "Bolt"
- Part24.Parent = Tool0
- Part24.Rotation = Vector3.new(-180, 0, -180)
- Part24.Anchored = true
- Part24.Size = Vector3.new(0.432999998, 0.200000003, 0.930999994)
- Part24.CFrame = CFrame.new(18.6420002, -7.57600021, 33.0209999, -1, 0, 9.23857442e-07, -0, 1, 0, -9.23857442e-07, 0, -1)
- Part24.Position = Vector3.new(18.6420002, -7.57600021, 33.0209999)
- Part24.Orientation = Vector3.new(0, 180, 0)
- FileMesh25.Parent = Part24
- FileMesh25.MeshId = "rbxassetid://431643522"
- FileMesh25.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
- FileMesh25.TextureId = "rbxassetid://431634327"
- FileMesh25.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
- Part26.Name = "Barrel"
- Part26.Parent = Tool0
- Part26.Rotation = Vector3.new(-180, 0, -180)
- Part26.Anchored = true
- Part26.Size = Vector3.new(0.518999994, 0.727999985, 2.6329999)
- Part26.CFrame = CFrame.new(18.6410007, -7.57800007, 30.6490002, -1, 0, 9.23857442e-07, 0, 1, 0, -9.23857442e-07, 0, -1)
- Part26.Position = Vector3.new(18.6410007, -7.57800007, 30.6490002)
- Part26.Orientation = Vector3.new(0, 180, 0)
- FileMesh27.Parent = Part26
- FileMesh27.MeshId = "rbxassetid://431635813"
- FileMesh27.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
- FileMesh27.TextureId = "rbxassetid://431634327"
- FileMesh27.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
- Part28.Name = "Stuff"
- Part28.Parent = Tool0
- Part28.Rotation = Vector3.new(-180, 0, -180)
- Part28.Anchored = true
- Part28.Size = Vector3.new(0.229000002, 0.319000006, 0.305000007)
- Part28.CFrame = CFrame.new(18.6480007, -7.35699987, 33.0449982, -1, 0, 9.23857442e-07, 0, 1, 0, -9.23857442e-07, 0, -1)
- Part28.Position = Vector3.new(18.6480007, -7.35699987, 33.0449982)
- Part28.Orientation = Vector3.new(0, 180, 0)
- FileMesh29.Parent = Part28
- FileMesh29.MeshId = "rbxassetid://431635355"
- FileMesh29.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
- FileMesh29.TextureId = "rbxassetid://431633906"
- FileMesh29.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
- 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
- end
- function SpawnGoldenPistol()
- --Converted with ttyyuu12345's model to script plugin v4
- 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")
- BlockMesh2 = Instance.new("BlockMesh")
- PointLight3 = Instance.new("PointLight")
- BillboardGui4 = Instance.new("BillboardGui")
- ImageLabel5 = Instance.new("ImageLabel")
- Script6 = Instance.new("Script")
- Part7 = Instance.new("Part")
- BlockMesh8 = Instance.new("BlockMesh")
- Part9 = Instance.new("Part")
- Sound10 = Instance.new("Sound")
- Sound11 = Instance.new("Sound")
- Sound12 = Instance.new("Sound")
- Sound13 = Instance.new("Sound")
- Sound14 = Instance.new("Sound")
- Part15 = Instance.new("Part")
- SpecialMesh16 = Instance.new("SpecialMesh")
- Part17 = Instance.new("Part")
- SpecialMesh18 = Instance.new("SpecialMesh")
- LocalScript19 = Instance.new("LocalScript")
- NumberValue20 = Instance.new("NumberValue")
- NumberValue21 = Instance.new("NumberValue")
- Smoke22 = Instance.new("Smoke")
- Smoke23 = Instance.new("Smoke")
- Smoke24 = Instance.new("Smoke")
- Tool0.Name = "Golden Pistol"
- Tool0.Parent = mas
- Part1.Name = "SmokePart"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Bright orange")
- Part1.Transparency = 1
- Part1.Rotation = Vector3.new(90, 0, -180)
- Part1.Anchored = true
- Part1.CanCollide = false
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(0.200000003, 0.478571415, 0.200000003)
- Part1.CFrame = CFrame.new(10.1076241, 0.800050974, 22.9184761, -1, 7.15255624e-07, -5.53527059e-07, 5.53528764e-07, 2.44172543e-06, -1, -7.15254259e-07, -1, -2.44172611e-06)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.854902, 0.521569, 0.254902)
- Part1.Position = Vector3.new(10.1076241, 0.800050974, 22.9184761)
- Part1.Orientation = Vector3.new(90, 180, 0)
- Part1.Color = Color3.new(0.854902, 0.521569, 0.254902)
- BlockMesh2.Parent = Part1
- PointLight3.Name = "Flash"
- PointLight3.Parent = Part1
- PointLight3.Color = Color3.new(1, 0.666667, 0)
- PointLight3.Enabled = false
- PointLight3.Brightness = 3
- PointLight3.Range = 10
- PointLight3.Color = Color3.new(1, 0.666667, 0)
- BillboardGui4.Name = "Light"
- BillboardGui4.Parent = Part1
- BillboardGui4.Size = UDim2.new(2.5, 0, 2.5, 0)
- BillboardGui4.Active = true
- ImageLabel5.Name = "Light"
- ImageLabel5.Parent = BillboardGui4
- ImageLabel5.Transparency = 1
- ImageLabel5.Size = UDim2.new(2, 0, 2, 0)
- ImageLabel5.Position = UDim2.new(-0.5, 0, -0.5, 0)
- ImageLabel5.Active = true
- ImageLabel5.Visible = false
- ImageLabel5.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
- ImageLabel5.BackgroundTransparency = 1
- ImageLabel5.Image = "http://www.roblox.com/asset/?id=68683102"
- Script6.Parent = BillboardGui4
- table.insert(cors,sandbox(Script6,function()
- script.Parent.Adornee = script.Parent.Parent
- end))
- Part7.Name = "AimPart"
- Part7.Parent = Tool0
- Part7.BrickColor = BrickColor.new("Dark stone grey")
- Part7.Transparency = 1
- Part7.Anchored = true
- Part7.CanCollide = false
- Part7.FormFactor = Enum.FormFactor.Custom
- Part7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part7.CFrame = CFrame.new(10.1076241, 1.00005198, 24.4685402, 1, 5.53527684e-07, -7.30156273e-07, -5.53528821e-07, 1, -1.58907233e-06, 7.30155421e-07, 1.58907267e-06, 1)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part7.Position = Vector3.new(10.1076241, 1.00005198, 24.4685402)
- Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
- BlockMesh8.Parent = Part7
- Part9.Name = "Handle"
- Part9.Parent = Tool0
- Part9.BrickColor = BrickColor.new("Really black")
- Part9.Transparency = 1
- Part9.Rotation = Vector3.new(0.0199999996, 0, 0)
- Part9.Anchored = true
- Part9.CanCollide = false
- Part9.FormFactor = Enum.FormFactor.Custom
- Part9.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part9.CFrame = CFrame.new(10.1076241, 0.100050002, 23.8185158, 1, 8.55040923e-07, -7.46405703e-07, -8.55299845e-07, 0.99999994, -0.000346982124, 7.46108981e-07, 0.000346982095, 0.99999994)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part9.Position = Vector3.new(10.1076241, 0.100050002, 23.8185158)
- Part9.Orientation = Vector3.new(0.0199999996, 0, 0)
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Sound10.Name = "Shoot"
- Sound10.Parent = Part9
- Sound10.SoundId = "rbxassetid://131257506"
- Sound10.Volume = 10
- Sound11.Name = "Bolt"
- Sound11.Parent = Part9
- Sound11.SoundId = "http://roblox.com/asset/?id=166238161"
- Sound11.Volume = 0.20000000298023
- Sound12.Name = "Click"
- Sound12.Parent = Part9
- Sound12.SoundId = "http://www.roblox.com/asset/?id=146501511"
- Sound13.Name = "MagIn"
- Sound13.Parent = Part9
- Sound13.Pitch = 1.3999999761581
- Sound13.SoundId = "http://www.roblox.com/asset/?id=131045429"
- Sound14.Name = "MagOut"
- Sound14.Parent = Part9
- Sound14.Pitch = 1.3999999761581
- Sound14.SoundId = "http://www.roblox.com/asset/?id=131045401"
- Part15.Name = "Mag"
- Part15.Parent = Tool0
- Part15.BrickColor = BrickColor.new("Black")
- Part15.Rotation = Vector3.new(169.849991, 0, 180)
- Part15.Anchored = true
- Part15.CanCollide = false
- Part15.FormFactor = Enum.FormFactor.Custom
- Part15.Size = Vector3.new(0.200000003, 0.599999964, 0.200000003)
- Part15.CFrame = CFrame.new(10.1076088, 0.367998987, 24.1280594, -1.00000882, -9.37858147e-08, 8.36750701e-07, -2.39778871e-07, 0.984353244, -0.176231131, -8.07122547e-07, -0.176231131, -0.984353244)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part15.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part15.Position = Vector3.new(10.1076088, 0.367998987, 24.1280594)
- Part15.Orientation = Vector3.new(10.1499996, 180, 0)
- Part15.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh16.Parent = Part15
- SpecialMesh16.MeshId = "rbxassetid://27839686"
- SpecialMesh16.Scale = Vector3.new(0.129999995, 0.300000012, 0.200000003)
- SpecialMesh16.TextureId = "rbxassetid://271708747"
- SpecialMesh16.MeshType = Enum.MeshType.FileMesh
- SpecialMesh16.Scale = Vector3.new(0.129999995, 0.300000012, 0.200000003)
- Part17.Name = "Gun"
- Part17.Parent = Tool0
- Part17.BrickColor = BrickColor.new("Pastel yellow")
- Part17.Rotation = Vector3.new(-90, 0, 0)
- Part17.Anchored = true
- Part17.CanCollide = false
- Part17.FormFactor = Enum.FormFactor.Custom
- Part17.Size = Vector3.new(0.200000003, 1.20000005, 0.800000012)
- Part17.CFrame = CFrame.new(10.1076088, 0.499817997, 23.7184944, 1.00000441, -1.79147608e-09, -1.02596701e-07, 1.02596857e-07, 2.38419517e-07, 1.00000572, -3.15940909e-08, -1.00000346, 2.38287697e-07)
- Part17.Color = Color3.new(1, 1, 0.8)
- Part17.Position = Vector3.new(10.1076088, 0.499817997, 23.7184944)
- Part17.Orientation = Vector3.new(-90, 0, 0)
- Part17.Color = Color3.new(1, 1, 0.8)
- SpecialMesh18.Parent = Part17
- SpecialMesh18.MeshId = "http://www.roblox.com/asset/?id=72012879"
- SpecialMesh18.Scale = Vector3.new(1.25, 1.5, 1.5)
- SpecialMesh18.TextureId = "rbxassetid://322996025"
- SpecialMesh18.VertexColor = Vector3.new(2, 2, 2)
- SpecialMesh18.MeshType = Enum.MeshType.FileMesh
- SpecialMesh18.Scale = Vector3.new(1.25, 1.5, 1.5)
- --Gun Gui
- -- Objects
- local Gui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local AmmoDisplay = Instance.new("TextLabel")
- local StoredAmmoDisplay = Instance.new("TextLabel")
- local _000 = Instance.new("TextLabel")
- local _000_2 = Instance.new("TextLabel")
- -- Properties
- Gui.Name = "Gui"
- Gui.Parent = LocalScript19
- Frame.Parent = Gui
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 1
- Frame.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.125, -5, 1.14999998, -120)
- Frame.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
- Frame.SizeConstraint = Enum.SizeConstraint.RelativeXX
- AmmoDisplay.Name = "AmmoDisplay"
- AmmoDisplay.Parent = Frame
- AmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- AmmoDisplay.BackgroundTransparency = 1
- AmmoDisplay.Position = UDim2.new(-0.0599999987, 0, 0, 0)
- AmmoDisplay.Size = UDim2.new(0.540000021, 0, 1.25, 0)
- AmmoDisplay.ZIndex = 2
- AmmoDisplay.Font = Enum.Font.SourceSansBold
- AmmoDisplay.FontSize = Enum.FontSize.Size36
- AmmoDisplay.Text = "30"
- AmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
- AmmoDisplay.TextScaled = true
- AmmoDisplay.TextSize = 36
- AmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- AmmoDisplay.TextWrapped = true
- AmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
- StoredAmmoDisplay.Name = "StoredAmmoDisplay"
- StoredAmmoDisplay.Parent = Frame
- StoredAmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- StoredAmmoDisplay.BackgroundTransparency = 1
- StoredAmmoDisplay.Position = UDim2.new(0.419999987, 0, 0.25, 0)
- StoredAmmoDisplay.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- StoredAmmoDisplay.ZIndex = 2
- StoredAmmoDisplay.Font = Enum.Font.SourceSans
- StoredAmmoDisplay.FontSize = Enum.FontSize.Size14
- StoredAmmoDisplay.Text = "360"
- StoredAmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
- StoredAmmoDisplay.TextScaled = true
- StoredAmmoDisplay.TextSize = 14
- StoredAmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- StoredAmmoDisplay.TextWrapped = true
- StoredAmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
- _000.Name = "000"
- _000.Parent = Frame
- _000.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- _000.BackgroundTransparency = 1
- _000.Position = UDim2.new(0.419999987, 0, 0.25, 0)
- _000.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- _000.ZIndex = 2
- _000.Font = Enum.Font.SourceSans
- _000.FontSize = Enum.FontSize.Size14
- _000.Text = "000"
- _000.TextColor3 = Color3.new(1, 1, 1)
- _000.TextScaled = true
- _000.TextSize = 14
- _000.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- _000.TextTransparency = 0.80000001192093
- _000.TextWrapped = true
- _000.TextXAlignment = Enum.TextXAlignment.Right
- _000_2.Name = "000"
- _000_2.Parent = Frame
- _000_2.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- _000_2.BackgroundTransparency = 1
- _000_2.Position = UDim2.new(-0.25, 0, 0, 0)
- _000_2.Size = UDim2.new(0.75, 0, 1.25, 0)
- _000_2.ZIndex = 2
- _000_2.Font = Enum.Font.SourceSansBold
- _000_2.FontSize = Enum.FontSize.Size48
- _000_2.Text = "000"
- _000_2.TextColor3 = Color3.new(1, 1, 1)
- _000_2.TextScaled = true
- _000_2.TextSize = 48
- _000_2.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- _000_2.TextTransparency = 0.80000001192093
- _000_2.TextWrapped = true
- _000_2.TextXAlignment = Enum.TextXAlignment.Right
- LocalScript19.Name = "Gun_Script"
- LocalScript19.Parent = Tool0
- table.insert(cors,sandbox(LocalScript19,function()
- sp = script.Parent
- 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"):clone()
- newShirt.Parent = Arms
- 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 = 2500
- ,Spread = 0
- ,Damage = {30, 30}
- ,HeadShotDamage = {60, 60}
- ,Bullets = 1
- ,FireRate = 0.050
- ,Automatic = true
- ,AntiTK = false
- ,ImpactDuration = .5
- --Reload
- ,ReloadKey = "R"
- ,ReloadTime = 1.63
- ,Ammo = math.huge
- ,IncludeChamberedBullet = true
- --Gui
- ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
- --Arms
- ,OneHanded = true
- ,FakeArms = true
- ,FakeArmTransparency = 0
- -- (+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(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
- ,AimPart = Tool.AimPart
- ,AimPartOffset = CFrame.new()
- ,AimGripOffset = Vector3.new(0, 0, 0)
- ,LeftAimPos = CFrame.new(1, 0.9, 0.35) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
- ,AimAnim = {
- Enabled = false
- ,Frames = 50
- ,Time = 0.1
- }
- ,ChangeFOV = {true, 45}
- ,SpreadReduction = 8
- --Weld
- ,Weld = true
- --Mouse
- ,Icons = {
- Idle = "rbxassetid://70288585"
- ,Fire1 = "rbxassetid://70288578"
- ,Fire2 = "rbxassetid://70288572"
- ,Fire3 = "rbxassetid://70288578"
- ,Reload = "rbxassetid://70288599"
- ,Aim = "rbxasset://textures/Blank.png"
- }
- ,FireMouseAnimTime = 0.15
- --Recoil
- ,Recoil = math.rad(0.79)
- --Smoke
- ,Smoke = true
- ,SmokePart = Tool.SmokePart
- ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
- --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)
- ,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
- Gui.Frame.StoredAmmoDisplay.Text = 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 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)
- 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 = 0
- else
- Humanoid.Health = 0
- end
- elseif Hit then
- local 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("Black")
- Hit_Part.Material = "Metal"
- local Meta = Instance.new("Sound")
- Meta.Name = "Crack"
- Meta.SoundId = "rbxassetid://151284431"
- Meta.Volume = 0.3
- Meta.Pitch = 2
- Meta.Parent = Hit_Part
- Meta:play()
- local Cur = Instance.new("SpecialMesh")
- Cur.MeshType = "Sphere"
- Cur.Parent = Hit_Part
- Cur.Scale = Vector3.new(0.5,0.5,0.5)
- Instance.new("Smoke", Hit_Part).Opacity = 15
- local g = Instance.new("PointLight", Hit_Part)
- g.Color = Color3.new(0, 0, 0)
- g.Range = 0
- g.Shadows = true
- local PE = Instance.new("ParticleEmitter")
- PE.Parent = Hit_Part
- PE.Size = NumberSequence.new(0.75)
- PE.LightEmission = 0
- PE.Lifetime = NumberRange.new(5)
- PE.ZOffset = 0.5
- PE.Texture = "http://www.roblox.com/asset/?id=133619974"
- PE.Rate = 50
- PE.Speed = NumberRange.new(2.5)
- PE.VelocitySpread = NumberSequence.new(-0.05)
- PE.Transparency = NumberSequence.new(-1)
- game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
- game.Debris:AddItem(PE, 0.17)
- --[[ 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.Transparency >= 0.1 then
- Hit:BreakJoints()
- Hit.Anchored = false
- Hit.Size = Hit.Size /2
- local sound = Instance.new("Sound", Hit)
- sound.Volume = 10
- sound.SoundId = "rbxassetid://138122923"
- sound:Play()
- for i=1, 4, 1 do
- local clone = Hit:Clone()
- clone.Parent = workspace
- game.Debris:AddItem(clone, 3)
- end
- game.Debris:AddItem(Hit, 1)
- end
- if Hit.Parent:IsA("Hat") or Hit.Parent:IsA("Accessory") and Settings.DropHats then
- Hit.Parent.Parent = workspace
- game.Debris:AddItem(Hit, 3)
- 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)
- for _ = 1, Settings.Bullets do
- Fire(Mouse)
- end
- local bg = Instance.new("BillboardGui", Settings.SmokePart)
- bg.Adornee = Settings.SmokePart
- local flashsize = math.random(5, 8)/10
- bg.Size = UDim2.new(flashsize, 0, flashsize, 0)
- local flash = Instance.new("ImageLabel", bg)
- flash.BackgroundTransparency = 1
- flash.Size = UDim2.new(1, 0, 1, 0)
- flash.Image = "rbxassetid://172841900"
- flash.Rotation = math.random(0, 360)
- game.Debris:AddItem(bg, 0.025)
- 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.Transparency = 1
- --Tool.Bolt1.Transparency = 0
- wait(Settings.FireRate)
- --Tool.Bolt.Transparency = 0
- --Tool.Bolt1.Transparency = 1
- 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 = "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.Mag.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.Mag.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(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 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
- _G.MouseSensitivity = 0.3
- 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
- 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
- _G.MouseSensitivity = 1
- 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
- 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()
- 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))
- NumberValue20.Name = "StoredAmmo"
- NumberValue20.Parent = LocalScript19
- NumberValue20.Value = math.huge
- NumberValue21.Name = "Ammo"
- NumberValue21.Parent = LocalScript19
- NumberValue21.Value = math.huge
- Smoke22.Parent = LocalScript19
- Smoke22.Size = 0.25
- Smoke22.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke22.Enabled = false
- Smoke22.Opacity = 0.10000000149012
- Smoke22.RiseVelocity = 10
- Smoke22.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke23.Name = "Smoke1"
- Smoke23.Parent = LocalScript19
- Smoke23.Size = 0.25
- Smoke23.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke23.Enabled = false
- Smoke23.Opacity = 0.10000000149012
- Smoke23.RiseVelocity = 10
- Smoke23.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke24.Name = "Smoke2"
- Smoke24.Parent = LocalScript19
- Smoke24.Size = 0.25
- Smoke24.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke24.Enabled = false
- Smoke24.Opacity = 0.10000000149012
- Smoke24.RiseVelocity = 10
- Smoke24.Color = Color3.new(0.807843, 0.807843, 0.807843)
- 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
- end
- function SpawnGrenade()
- --Converted with ttyyuu12345's model to script plugin v4
- 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")
- Sound2 = Instance.new("Sound")
- SpecialMesh3 = Instance.new("SpecialMesh")
- LocalScript4 = Instance.new("LocalScript")
- Tool0.Name = "Grenade"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxassetid://16370867"
- Tool0.GripForward = Vector3.new(0.536952674, -0, -0.843612373)
- Tool0.GripPos = Vector3.new(0, -0.375, 0.25)
- Tool0.GripRight = Vector3.new(0.843612373, 0, 0.536952674)
- Tool0.ToolTip = "A Throwable Explodsive"
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Earth green")
- Part1.RotVelocity = Vector3.new(1.37593925e-05, -6.13289521e-05, 1.96380879e-05)
- Part1.Velocity = Vector3.new(-0.000568417425, -0.0197211988, 0.000788206118)
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(1, 1, 1)
- Part1.CFrame = CFrame.new(-4.41068363, 70.1459122, -1.17578077, 1.0000006, -5.28530109e-10, -6.98491931e-10, -5.28530109e-10, 0.999999881, -5.82076609e-11, -6.98491931e-10, -5.82076609e-11, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part1.Position = Vector3.new(-4.41068363, 70.1459122, -1.17578077)
- Part1.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Sound2.Name = "Fire"
- Sound2.Parent = Part1
- Sound2.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound2.Volume = 0.69999998807907
- SpecialMesh3.Parent = Part1
- SpecialMesh3.MeshId = "http://www.roblox.com/Asset/?id=10207236"
- SpecialMesh3.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- SpecialMesh3.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- LocalScript4.Name = "MainScript"
- LocalScript4.Parent = Tool0
- table.insert(cors,sandbox(LocalScript4,function()
- -- A Samsung Galaxy Note 7 Rigged With Explodsives!
- --Varibles--
- Uses = 1 --How many uses availible until its useless--
- CanKill = true -- Can it kill people? --
- local tool = script.Parent
- ammountofuses = Uses
- function swing(mouse)
- vCharacter = tool.Parent
- vPlayer = game.Players:playerFromCharacter(vCharacter)
- if ammountofuses > 0 then
- ammountofuses = ammountofuses -1
- print("Throwing a "..tool.Name.." from " ..vPlayer.Name.. "!")
- tool.Handle.Fire:Play()
- local explosive = tool.Handle:Clone()
- --explosive.Position = tool.Handle.Position
- explosive.CanCollide = true
- explosive.Parent = workspace
- explosive.RotVelocity=Vector3.new(0,0,0)
- explosive.Velocity=(mouse.Hit.p-explosive.Position).unit*100+Vector3.new(0,10,0)
- explosive.CFrame=CFrame.new(tool.Handle.Position,mouse.Hit.p)*CFrame.Angles(-math.pi/2,0,0)
- if ammountofuses <= 0 then
- script.Parent.Handle:Remove()
- end
- explode(explosive, tool)
- end
- end
- function explode(part, weapon)
- --[[local firesound = Instance.new("Sound", part)
- firesound.SoundId = "rbxassetid://192104941"]]
- local explodesound = Instance.new("Sound", part)
- explodesound.SoundId = "rbxassetid://157878578"
- --[[wait(1)
- local smoke = Instance.new("Smoke", part)
- smoke.Color = Color3.new(0, 0, 0)
- wait(2)
- local fire = Instance.new("Fire", part)
- firesound:Play()]]
- wait(3)
- local explosion = Instance.new("Explosion", part)
- explodesound:Play()
- explosion.Position = part.Position
- if CanKill == true then
- explosion.BlastPressure = 100000
- else
- explosion.BlastPressure = 0
- end
- explosion.Hit:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then tagHumanoid(hit.Parent.Humanoid) delay(1, function() untagHumanoid(hit.Parent.Humanoid) end) end end)
- wait(1)
- part:Destroy()
- if ammountofuses <= 0 then
- weapon:Destroy()
- end
- end
- --script.Parent.Activated:connect(swing)
- tool.Equipped:connect(function(mouse)
- if mouse==nil then
- print("Mouse not found")
- return
- end
- equipped=true
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function()
- swing(mouse)
- end)
- end)
- function tagHumanoid(humanoid)
- local tag = Instance.new("ObjectValue")
- tag.Name = "creator"
- tag.Value = vPlayer
- tag.Parent = humanoid
- local tag = Instance.new("StringValue")
- tag.Name = "creatorType1"
- tag.Value = tool.Name
- tag.Parent = humanoid
- local tag = Instance.new("StringValue")
- tag.Name = "creatorType2"
- tag.Value = "blown to pieces"
- tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:FindFirstChild("creator")
- if tag ~= nil then
- tag:Remove()
- end
- local tag = humanoid:FindFirstChild("creatorType1")
- if tag ~= nil then
- tag:Remove()
- end
- local tag = humanoid:FindFirstChild("creatorType2")
- if tag ~= nil then
- tag:Remove()
- end
- end
- end
- end))
- 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
- end
- function SpawnPhoneBomb()
- -- A Samsung Galaxy Note 7 Rigged With Explodsives!
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Tool")
- o2 = Instance.new("Part")
- o3 = Instance.new("SpecialMesh")
- o4 = Instance.new("Sound")
- o5 = Instance.new("LocalScript")
- o1.Name = "Phone Bomb"
- o1.Parent = game.Players.LocalPlayer.Backpack
- o1.TextureId = "rbxassetid://16370867"
- o1.GripForward = Vector3.new(0.536952674, -0, -0.843612373)
- o1.GripPos = Vector3.new(0, -0.375, 0.25)
- o1.GripRight = Vector3.new(0.843612373, 0, 0.536952674)
- o1.ToolTip = "A Samsung Galaxy Note 7 Rigged With Explodsives!"
- o2.Name = "Handle"
- o2.Parent = o1
- o2.Position = Vector3.new(-4.320683, 0.855857015, -3.17578101)
- o2.FormFactor = Enum.FormFactor.Custom
- o2.Size = Vector3.new(0.75, 1.25, 0.200000003)
- o2.CFrame = CFrame.new(-4.320683, 0.855857015, -3.17578101, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Position = Vector3.new(-4.320683, 0.855857015, -3.17578101)
- o3.Parent = o2
- o3.MeshId = "http://www.roblox.com/asset/?id=268471347"
- o3.Scale = Vector3.new(1.375, 1.375, 1.375)
- o3.TextureId = "rbxassetid://637111231"
- o3.MeshType = Enum.MeshType.FileMesh
- o4.Name = "Fire"
- o4.Parent = o2
- o4.SoundId = "rbxasset://sounds/swoosh.wav"
- o4.Volume = 0.69999998807907
- o5.Name = "MainScript"
- o5.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- -- A Samsung Galaxy Note 7 Rigged With Explodsives!
- --Varibles--
- Uses = 1 --How many uses availible until its useless--
- CanKill = true -- Can it kill people? --
- local tool = o1
- ammountofuses = Uses
- function swing(mouse)
- vCharacter = tool.Parent
- vPlayer = game.Players:playerFromCharacter(vCharacter)
- if ammountofuses > 0 then
- ammountofuses = ammountofuses -1
- print("Throwing a "..tool.Name.." from " ..vPlayer.Name.. "!")
- tool.Handle.Fire:Play()
- local explosive = tool.Handle:Clone()
- --explosive.Position = tool.Handle.Position
- explosive.CanCollide = true
- explosive.Parent = workspace
- explosive.RotVelocity=Vector3.new(0,0,0)
- explosive.Velocity=(mouse.Hit.p-explosive.Position).unit*100+Vector3.new(0,10,0)
- explosive.CFrame=CFrame.new(tool.Handle.Position,mouse.Hit.p)*CFrame.Angles(-math.pi/2,0,0)
- if ammountofuses <= 0 then
- script.Parent.Handle:Remove()
- end
- explode(explosive, tool)
- end
- end
- function explode(part, weapon)
- local firesound = Instance.new("Sound", part)
- firesound.SoundId = "rbxassetid://192104941"
- local explodesound = Instance.new("Sound", part)
- explodesound.SoundId = "rbxassetid://157878578"
- wait(1)
- local smoke = Instance.new("Smoke", part)
- smoke.Color = Color3.new(0, 0, 0)
- wait(2)
- local fire = Instance.new("Fire", part)
- firesound:Play()
- wait(3)
- local explosion = Instance.new("Explosion", part)
- explodesound:Play()
- explosion.Position = part.Position
- if CanKill == true then
- explosion.BlastPressure = 100000
- else
- explosion.BlastPressure = 0
- end
- explosion.Hit:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then tagHumanoid(hit.Parent.Humanoid) delay(1, function() untagHumanoid(hit.Parent.Humanoid) end) end end)
- wait(1)
- part:Destroy()
- if ammountofuses <= 0 then
- weapon:Destroy()
- end
- end
- --script.Parent.Activated:connect(swing)
- tool.Equipped:connect(function(mouse)
- if mouse==nil then
- print("Mouse not found")
- return
- end
- equipped=true
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function()
- swing(mouse)
- end)
- end)
- function tagHumanoid(humanoid)
- local tag = Instance.new("ObjectValue")
- tag.Name = "creator"
- tag.Value = vPlayer
- tag.Parent = humanoid
- local tag = Instance.new("StringValue")
- tag.Name = "creatorType1"
- tag.Value = tool.Name
- tag.Parent = humanoid
- local tag = Instance.new("StringValue")
- tag.Name = "creatorType2"
- tag.Value = "blown to pieces"
- tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:FindFirstChild("creator")
- if tag ~= nil then
- tag:Remove()
- end
- local tag = humanoid:FindFirstChild("creatorType1")
- if tag ~= nil then
- tag:Remove()
- end
- local tag = humanoid:FindFirstChild("creatorType2")
- if tag ~= nil then
- tag:Remove()
- end
- end
- end
- end,o5)
- end))
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- end
- function SpawnFlashbang()
- --Converted with ttyyuu12345's model to script plugin v4
- 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")
- Sound2 = Instance.new("Sound")
- SpecialMesh3 = Instance.new("SpecialMesh")
- LocalScript4 = Instance.new("LocalScript")
- Tool0.Name = "Smoke Grenade"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxassetid://16370867"
- Tool0.GripForward = Vector3.new(0.536952674, -0, -0.843612373)
- Tool0.GripPos = Vector3.new(0, -0.375, 0.25)
- Tool0.GripRight = Vector3.new(0.843612373, 0, 0.536952674)
- Tool0.ToolTip = "A Throwable Smoke Maker"
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Earth green")
- Part1.RotVelocity = Vector3.new(1.37593925e-05, -6.13289521e-05, 1.96380879e-05)
- Part1.Velocity = Vector3.new(-0.000691075344, -0.0197487175, 0.000788206118)
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(1, 1, 1)
- Part1.CFrame = CFrame.new(-4.41068363, 70.1459122, 0.824219227, 1.0000006, -5.28530109e-10, -6.98491931e-10, -5.28530109e-10, 0.999999881, -5.82076609e-11, -6.98491931e-10, -5.82076609e-11, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part1.Position = Vector3.new(-4.41068363, 70.1459122, 0.824219227)
- Part1.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Sound2.Name = "Fire"
- Sound2.Parent = Part1
- Sound2.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound2.Volume = 0.69999998807907
- SpecialMesh3.Parent = Part1
- SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=16975131"
- SpecialMesh3.Scale = Vector3.new(0.600000024, 0.649999976, 0.600000024)
- SpecialMesh3.TextureId = "http://www.roblox.com/asset/?id=16975111"
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- SpecialMesh3.Scale = Vector3.new(0.600000024, 0.649999976, 0.600000024)
- LocalScript4.Name = "MainScript"
- LocalScript4.Parent = Tool0
- table.insert(cors,sandbox(LocalScript4,function()
- -- A Samsung Galaxy Note 7 Rigged With Explodsives!
- --Varibles--
- Uses = 1 --How many uses availible until its useless--
- CanKill = false -- Can it kill people? --
- local tool = script.Parent
- ammountofuses = Uses
- function swing(mouse)
- vCharacter = tool.Parent
- vPlayer = game.Players:playerFromCharacter(vCharacter)
- if ammountofuses > 0 then
- ammountofuses = ammountofuses -1
- print("Throwing a "..tool.Name.." from " ..vPlayer.Name.. "!")
- tool.Handle.Fire:Play()
- local explosive = tool.Handle:Clone()
- --explosive.Position = tool.Handle.Position
- explosive.CanCollide = true
- explosive.Parent = workspace
- explosive.RotVelocity=Vector3.new(0,0,0)
- explosive.Velocity=(mouse.Hit.p-explosive.Position).unit*100+Vector3.new(0,10,0)
- explosive.CFrame=CFrame.new(tool.Handle.Position,mouse.Hit.p)*CFrame.Angles(-math.pi/2,0,0)
- if ammountofuses <= 0 then
- script.Parent.Handle:Remove()
- end
- explode(explosive, tool)
- end
- end
- function explode(part, weapon)
- --[[local firesound = Instance.new("Sound", part)
- firesound.SoundId = "rbxassetid://192104941"]]
- local explodesound = Instance.new("Sound", part)
- explodesound.SoundId = "rbxassetid://157878578"
- --[[wait(1)
- local smoke = Instance.new("Smoke", part)
- smoke.Color = Color3.new(0, 0, 0)
- wait(2)
- local fire = Instance.new("Fire", part)
- firesound:Play()]]
- wait(3)
- local explosion = Instance.new("Explosion", part)
- explodesound:Play()
- explosion.Position = part.Position
- if CanKill == true then
- explosion.BlastPressure = 100000
- else
- explosion.BlastPressure = 0
- end
- explosion.Hit:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then tagHumanoid(hit.Parent.Humanoid) delay(1, function() untagHumanoid(hit.Parent.Humanoid) end) end end)
- wait(1)
- local smoke = Instance.new("Smoke", part)
- smoke.Color = Color3.new(255, 255, 255)
- if ammountofuses <= 0 then
- weapon:Destroy()
- end
- end
- --script.Parent.Activated:connect(swing)
- tool.Equipped:connect(function(mouse)
- if mouse==nil then
- print("Mouse not found")
- return
- end
- equipped=true
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function()
- swing(mouse)
- end)
- end)
- function tagHumanoid(humanoid)
- local tag = Instance.new("ObjectValue")
- tag.Name = "creator"
- tag.Value = vPlayer
- tag.Parent = humanoid
- local tag = Instance.new("StringValue")
- tag.Name = "creatorType1"
- tag.Value = tool.Name
- tag.Parent = humanoid
- local tag = Instance.new("StringValue")
- tag.Name = "creatorType2"
- tag.Value = "blown to pieces"
- tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:FindFirstChild("creator")
- if tag ~= nil then
- tag:Remove()
- end
- local tag = humanoid:FindFirstChild("creatorType1")
- if tag ~= nil then
- tag:Remove()
- end
- local tag = humanoid:FindFirstChild("creatorType2")
- if tag ~= nil then
- tag:Remove()
- end
- end
- end
- end))
- 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
- end
- function SpawnTaser()
- --Converted with ttyyuu12345's model to script plugin v4
- 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")
- Sound3 = Instance.new("Sound")
- LocalScript4 = Instance.new("LocalScript")
- Tool0.Name = "Taser"
- Tool0.Parent = mas
- Tool0.GripPos = Vector3.new(0, -0.400000006, 0.400000006)
- Tool0.ToolTip = "Taser"
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Black")
- Part1.Rotation = Vector3.new(-180, 0, -180)
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(1, 1.61800003, 0.617999971)
- Part1.CFrame = CFrame.new(6.97999907, 0.809001982, -40.0199966, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part1.Position = Vector3.new(6.97999907, 0.809001982, -40.0199966)
- Part1.Orientation = Vector3.new(0, 180, 0)
- Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=82337638"
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=82337709"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Sound3.Name = "Fire"
- Sound3.Parent = Part1
- Sound3.SoundId = "http://www.roblox.com/asset/?id=10756118"
- LocalScript4.Parent = Tool0
- table.insert(cors,sandbox(LocalScript4,function()
- MaxDistance = 512
- Tool = script.Parent
- TouchDamage = 100
- DirectDamage = 100
- function fireLaser(pos, target, obj)
- local part = Instance.new("Part")
- part.Anchored = true
- part.CanCollide = false
- part.formFactor = "Symmetric"
- part.TopSurface = 0
- part.BottomSurface = 0
- part.BrickColor = BrickColor.new("Institutional white")
- part.Transparency = 0.5
- part.Name = "Laser Shot"
- part.Locked = true
- part.Size = Vector3.new(1,1,(pos - obj.Position).magnitude)
- part.CFrame = CFrame.new(((obj.Position + pos)/2) + 1 * (pos - obj.Position).unit, pos)
- local mesh = Instance.new("BlockMesh")
- mesh.Scale = Vector3.new(0.25,0.25,1)
- mesh.Parent = part
- part.Parent = workspace
- --Optional: Laser will damage others than the target.
- --part.Touched:connect(onTouch)
- local h = getHumanoid(target.Parent)
- local player = game.Players:findFirstChild(Tool.Parent.Name)
- if player ~= nil and h ~= nil and target.Parent ~= Tool.Parent then
- tagHumanoid(h, player)
- h.PlatformStand = true
- h.JumpPower = 0
- h.WalkSpeed = 0
- wait(0.05)
- untagHumanoid(h)
- elseif player ~= nil and h==nil and target.Parent ~= Tool.Parent then
- if target:getMass() <= 216 then
- --burn(target, part)
- end
- else
- getTarget(pos)
- end
- for v=1, 10 do
- part.Transparency = 0.1 * v
- wait(0.05)
- end
- part:remove()
- end
- function burn(obj, laser)
- local spark = Instance.new("Sparkles")
- spark.Color = laser.Color
- spark.Parent = obj
- for i=1, 10, 1 do
- local ex = Instance.new("Explosion")
- ex.BlastRadius = 0
- ex.Position = obj.Position
- ex.Parent = workspace
- obj.Transparency = 0.1 * i
- wait(0.1)
- end
- obj:remove()
- end
- function getTarget(pos)
- local child = workspace:getChildren()
- for i,v in pairs(child) do
- local h = getHumanoid(v)
- if h ~= nil and v ~= Tool.Parent then
- local torso = v:findFirstChild("Torso")
- if torso ~= nil then
- if (torso.Position - pos).magnitude <= 3 then
- local player = game.Players:findFirstChild(Tool.Parent.Name)
- if player ~= nil then
- tagHumanoid(h, player)
- end
- h:takeDamage(DirectDamage)
- wait(0.05)
- untagHumanoid(h)
- end
- end
- end
- end
- end
- function getHumanoid(obj)
- local child = obj:getChildren()
- for i=1, #child do
- if child[i].className == "Humanoid" then
- return child[i]
- end
- end
- return nil
- end
- db = false
- function onTouch(hit)
- if db then return end
- db = true
- if hit.Parent ~= Tool.Parent then
- local h = getHumanoid(hit.Parent)
- if h ~= nil then
- local player = game.Players:findFirstChild(Tool.Parent.Name)
- if player ~= nil then
- tagHumanoid(h, player)
- end
- h:takeDamage(TouchDamage)
- wait(0.1)
- untagHumanoid(h)
- end
- end
- wait(0.9)
- db = false
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- enabled = true
- function onActivated(mouse)
- if not enabled or mouse.Target == nil then return end
- enabled = false
- local handle = Tool:findFirstChild("Handle")
- local human = Tool.Parent:findFirstChild("Humanoid")
- if handle ~= nil and human ~= nil then
- if (handle.Position - human.TargetPoint).magnitude <= MaxDistance then
- handle.Fire:play()
- fireLaser(human.TargetPoint, mouse.Target, handle)
- end
- end
- enabled = true
- end
- mouseabled = true
- function onButton1Down(mouse)
- if not mouseabled or mouse.Target == nil then return end
- mouseabled = false
- mouse.Icon = "rbxasset://textures/GunWaitCursor.png"
- wait(0.5)
- mouseabled = true
- mouse.Icon = "rbxasset://textures/GunCursor.png"
- end
- zoom = false
- function onKeyDown(key)
- key:lower()
- if key == "q" then
- if not zoom then
- zoom = true
- local obj = Instance.new("Part")
- obj.Parent = Tool.Parent
- obj.Size = Vector3.new(1,1,1)
- obj.Transparency = 1
- obj.CanCollide = false
- obj.Anchored = true
- obj.Name = "Zoom"
- obj.CFrame = CFrame.new(Tool.Parent.Humanoid.TargetPoint)
- cam = workspace.CurrentCamera:Clone()
- cam.Parent = workspace
- workspace.CurrentCamera.CameraSubject = obj
- workspace.CurrentCamera.CameraType = 4
- else
- zoom = false
- local check = Tool.Parent:findFirstChild("Zoom")
- if check ~= nil then
- check:remove()
- end
- workspace.CurrentCamera.CameraSubject = Tool.Parent.Humanoid
- workspace.CurrentCamera:Remove()
- workspace.CurrentCamera = cam
- end
- end
- end
- function onSelected(mouse)
- connection = script.Parent.Activated:connect(function() onActivated(mouse) end)
- mouse.KeyDown:connect(onKeyDown)
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- mouse.Icon = "rbxasset://textures/GunCursor.png"
- end
- function onDeselected()
- connection:disconnect()
- end
- script.Parent.Equipped:connect(onSelected)
- script.Parent.Unequipped:connect(onDeselected)
- end))
- 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
- end
- function SpawnG17()
- --Converted with ttyyuu12345's model to script plugin v4
- 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")
- BlockMesh2 = Instance.new("BlockMesh")
- PointLight3 = Instance.new("PointLight")
- BillboardGui4 = Instance.new("BillboardGui")
- ImageLabel5 = Instance.new("ImageLabel")
- Script6 = Instance.new("Script")
- Part7 = Instance.new("Part")
- BlockMesh8 = Instance.new("BlockMesh")
- LocalScript9 = Instance.new("LocalScript")
- NumberValue10 = Instance.new("NumberValue")
- NumberValue11 = Instance.new("NumberValue")
- Smoke12 = Instance.new("Smoke")
- Smoke13 = Instance.new("Smoke")
- Smoke14 = Instance.new("Smoke")
- Part15 = Instance.new("Part")
- FileMesh16 = Instance.new("FileMesh")
- Sound17 = Instance.new("Sound")
- Sound18 = Instance.new("Sound")
- Sound19 = Instance.new("Sound")
- Sound20 = Instance.new("Sound")
- Sound21 = Instance.new("Sound")
- Part22 = Instance.new("Part")
- FileMesh23 = Instance.new("FileMesh")
- Part24 = Instance.new("Part")
- FileMesh25 = Instance.new("FileMesh")
- Tool0.Name = "Glock 17"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(0, 0, 1)
- Tool0.GripRight = Vector3.new(-0.99999994, 0, 0)
- Part1.Name = "SmokePart"
- Part1.Parent = Tool0
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.BrickColor = BrickColor.new("Dark stone grey")
- Part1.Transparency = 1
- Part1.Anchored = true
- Part1.CanCollide = false
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part1.CFrame = CFrame.new(9.1289444, -6.32531691, 18.8775139, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part1.Position = Vector3.new(9.1289444, -6.32531691, 18.8775139)
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- BlockMesh2.Parent = Part1
- BlockMesh2.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
- BlockMesh2.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
- PointLight3.Name = "Flash"
- PointLight3.Parent = Part1
- PointLight3.Color = Color3.new(1, 0.666667, 0)
- PointLight3.Enabled = false
- PointLight3.Brightness = 3
- PointLight3.Range = 10
- PointLight3.Color = Color3.new(1, 0.666667, 0)
- BillboardGui4.Name = "Light"
- BillboardGui4.Parent = Part1
- BillboardGui4.Size = UDim2.new(2.5, 0, 2.5, 0)
- BillboardGui4.Active = true
- ImageLabel5.Name = "Light"
- ImageLabel5.Parent = BillboardGui4
- ImageLabel5.Transparency = 1
- ImageLabel5.Size = UDim2.new(2, 0, 2, 0)
- ImageLabel5.Position = UDim2.new(-0.5, 0, -0.5, 0)
- ImageLabel5.Active = true
- ImageLabel5.Visible = false
- ImageLabel5.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
- ImageLabel5.BackgroundTransparency = 1
- ImageLabel5.Image = "http://www.roblox.com/asset/?id=68683102"
- Script6.Parent = BillboardGui4
- table.insert(cors,sandbox(Script6,function()
- script.Parent.Adornee = script.Parent.Parent
- end))
- Part7.Name = "AimPart"
- Part7.Parent = Tool0
- Part7.Material = Enum.Material.SmoothPlastic
- Part7.BrickColor = BrickColor.new("Dark stone grey")
- Part7.Transparency = 1
- Part7.Anchored = true
- Part7.CanCollide = false
- Part7.FormFactor = Enum.FormFactor.Custom
- Part7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part7.CFrame = CFrame.new(9.11491966, -6.07727814, 21.8804073, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part7.Position = Vector3.new(9.11491966, -6.07727814, 21.8804073)
- Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
- BlockMesh8.Parent = Part7
- BlockMesh8.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
- BlockMesh8.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
- --Gun Gui
- -- Objects
- local Gui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local AmmoDisplay = Instance.new("TextLabel")
- local StoredAmmoDisplay = Instance.new("TextLabel")
- local _000 = Instance.new("TextLabel")
- local _000_2 = Instance.new("TextLabel")
- -- Properties
- Gui.Name = "Gui"
- Gui.Parent = LocalScript9
- Frame.Parent = Gui
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 1
- Frame.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.125, -5, 1.14999998, -120)
- Frame.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
- Frame.SizeConstraint = Enum.SizeConstraint.RelativeXX
- AmmoDisplay.Name = "AmmoDisplay"
- AmmoDisplay.Parent = Frame
- AmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- AmmoDisplay.BackgroundTransparency = 1
- AmmoDisplay.Position = UDim2.new(-0.0599999987, 0, 0, 0)
- AmmoDisplay.Size = UDim2.new(0.540000021, 0, 1.25, 0)
- AmmoDisplay.ZIndex = 2
- AmmoDisplay.Font = Enum.Font.SourceSansBold
- AmmoDisplay.FontSize = Enum.FontSize.Size36
- AmmoDisplay.Text = "30"
- AmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
- AmmoDisplay.TextScaled = true
- AmmoDisplay.TextSize = 36
- AmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- AmmoDisplay.TextWrapped = true
- AmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
- StoredAmmoDisplay.Name = "StoredAmmoDisplay"
- StoredAmmoDisplay.Parent = Frame
- StoredAmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- StoredAmmoDisplay.BackgroundTransparency = 1
- StoredAmmoDisplay.Position = UDim2.new(0.419999987, 0, 0.25, 0)
- StoredAmmoDisplay.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- StoredAmmoDisplay.ZIndex = 2
- StoredAmmoDisplay.Font = Enum.Font.SourceSans
- StoredAmmoDisplay.FontSize = Enum.FontSize.Size14
- StoredAmmoDisplay.Text = "360"
- StoredAmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
- StoredAmmoDisplay.TextScaled = true
- StoredAmmoDisplay.TextSize = 14
- StoredAmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- StoredAmmoDisplay.TextWrapped = true
- StoredAmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
- _000.Name = "000"
- _000.Parent = Frame
- _000.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- _000.BackgroundTransparency = 1
- _000.Position = UDim2.new(0.419999987, 0, 0.25, 0)
- _000.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- _000.ZIndex = 2
- _000.Font = Enum.Font.SourceSans
- _000.FontSize = Enum.FontSize.Size14
- _000.Text = "000"
- _000.TextColor3 = Color3.new(1, 1, 1)
- _000.TextScaled = true
- _000.TextSize = 14
- _000.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- _000.TextTransparency = 0.80000001192093
- _000.TextWrapped = true
- _000.TextXAlignment = Enum.TextXAlignment.Right
- _000_2.Name = "000"
- _000_2.Parent = Frame
- _000_2.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- _000_2.BackgroundTransparency = 1
- _000_2.Position = UDim2.new(-0.25, 0, 0, 0)
- _000_2.Size = UDim2.new(0.75, 0, 1.25, 0)
- _000_2.ZIndex = 2
- _000_2.Font = Enum.Font.SourceSansBold
- _000_2.FontSize = Enum.FontSize.Size48
- _000_2.Text = "000"
- _000_2.TextColor3 = Color3.new(1, 1, 1)
- _000_2.TextScaled = true
- _000_2.TextSize = 48
- _000_2.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- _000_2.TextTransparency = 0.80000001192093
- _000_2.TextWrapped = true
- _000_2.TextXAlignment = Enum.TextXAlignment.Right
- LocalScript9.Name = "Gun_Script"
- LocalScript9.Parent = Tool0
- table.insert(cors,sandbox(LocalScript9,function()
- sp = script.Parent
- 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"):clone()
- newShirt.Parent = Arms
- 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 = 2500
- ,Spread = 8
- ,Damage = {15, 25}
- ,HeadShotDamage = {60, 60}
- ,Bullets = 1
- ,FireRate = 0.068
- ,Automatic = false
- ,AntiTK = false
- ,ImpactDuration = .5
- --Reload
- ,ReloadKey = "R"
- ,ReloadTime = 1.63
- ,Ammo = 17
- ,IncludeChamberedBullet = true
- --Gui
- ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
- --Arms
- ,OneHanded = true
- ,FakeArms = true
- ,FakeArmTransparency = 0
- -- (+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(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
- ,AimPart = Tool.AimPart
- ,AimPartOffset = CFrame.new()
- ,AimGripOffset = Vector3.new(0, 0, 0)
- ,LeftAimPos = CFrame.new(1, 0.9, 0.35) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
- ,AimAnim = {
- Enabled = false
- ,Frames = 50
- ,Time = 0.1
- }
- ,ChangeFOV = {true, 45}
- ,SpreadReduction = 8
- --Weld
- ,Weld = true
- --Mouse
- ,Icons = {
- Idle = "rbxassetid://70288585"
- ,Fire1 = "rbxassetid://70288578"
- ,Fire2 = "rbxassetid://70288572"
- ,Fire3 = "rbxassetid://70288578"
- ,Reload = "rbxassetid://70288599"
- ,Aim = "rbxasset://textures/Blank.png"
- }
- ,FireMouseAnimTime = 0.15
- --Recoil
- ,Recoil = math.rad(0.79)
- --Smoke
- ,Smoke = true
- ,SmokePart = Tool.SmokePart
- ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
- --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)
- ,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
- Gui.Frame.StoredAmmoDisplay.Text = 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 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)
- 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 then
- local 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("Black")
- Hit_Part.Material = "Metal"
- local Meta = Instance.new("Sound")
- Meta.Name = "Crack"
- Meta.SoundId = "rbxassetid://151284431"
- Meta.Volume = 0.3
- Meta.Pitch = 2
- Meta.Parent = Hit_Part
- Meta:play()
- local Cur = Instance.new("SpecialMesh")
- Cur.MeshType = "Sphere"
- Cur.Parent = Hit_Part
- Cur.Scale = Vector3.new(0.5,0.5,0.5)
- Instance.new("Smoke", Hit_Part).Opacity = 15
- local g = Instance.new("PointLight", Hit_Part)
- g.Color = Color3.new(0, 0, 0)
- g.Range = 0
- g.Shadows = true
- local PE = Instance.new("ParticleEmitter")
- PE.Parent = Hit_Part
- PE.Size = NumberSequence.new(0.75)
- PE.LightEmission = 0
- PE.Lifetime = NumberRange.new(5)
- PE.ZOffset = 0.5
- PE.Texture = "http://www.roblox.com/asset/?id=133619974"
- PE.Rate = 50
- PE.Speed = NumberRange.new(2.5)
- PE.VelocitySpread = NumberSequence.new(-0.05)
- PE.Transparency = NumberSequence.new(-1)
- game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
- game.Debris:AddItem(PE, 0.17)
- --[[ 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.Transparency >= 0.1 then
- Hit:BreakJoints()
- Hit.Anchored = false
- Hit.Size = Hit.Size /2
- local sound = Instance.new("Sound", Hit)
- sound.Volume = 10
- sound.SoundId = "rbxassetid://138122923"
- sound:Play()
- for i=1, 4, 1 do
- local clone = Hit:Clone()
- clone.Parent = workspace
- game.Debris:AddItem(clone, 3)
- end
- game.Debris:AddItem(Hit, 1)
- end
- if Hit.Parent:IsA("Hat") or Hit.Parent:IsA("Accessory") and Settings.DropHats then
- Hit.Parent.Parent = workspace
- game.Debris:AddItem(Hit, 3)
- 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)
- for _ = 1, Settings.Bullets do
- Fire(Mouse)
- end
- local bg = Instance.new("BillboardGui", Settings.SmokePart)
- bg.Adornee = Settings.SmokePart
- local flashsize = math.random(5, 8)/10
- bg.Size = UDim2.new(flashsize, 0, flashsize, 0)
- local flash = Instance.new("ImageLabel", bg)
- flash.BackgroundTransparency = 1
- flash.Size = UDim2.new(1, 0, 1, 0)
- flash.Image = "rbxassetid://172841900"
- flash.Rotation = math.random(0, 360)
- game.Debris:AddItem(bg, 0.025)
- 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.Transparency = 1
- --Tool.Bolt1.Transparency = 0
- wait(Settings.FireRate)
- -- Tool.Bolt.Transparency = 0
- --Tool.Bolt1.Transparency = 1
- 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 = "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.Mag.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.Mag.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(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 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
- _G.MouseSensitivity = 0.3
- 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
- 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
- _G.MouseSensitivity = 1
- 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
- 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()
- 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))
- NumberValue10.Name = "StoredAmmo"
- NumberValue10.Parent = LocalScript9
- NumberValue10.Value = 999
- NumberValue11.Name = "Ammo"
- NumberValue11.Parent = LocalScript9
- NumberValue11.Value = 17
- Smoke12.Parent = LocalScript9
- Smoke12.Size = 0.25
- Smoke12.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke12.Enabled = false
- Smoke12.Opacity = 0.10000000149012
- Smoke12.RiseVelocity = 10
- Smoke12.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke13.Name = "Smoke1"
- Smoke13.Parent = LocalScript9
- Smoke13.Size = 0.25
- Smoke13.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke13.Enabled = false
- Smoke13.Opacity = 0.10000000149012
- Smoke13.RiseVelocity = 10
- Smoke13.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke14.Name = "Smoke2"
- Smoke14.Parent = LocalScript9
- Smoke14.Size = 0.25
- Smoke14.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke14.Enabled = false
- Smoke14.Opacity = 0.10000000149012
- Smoke14.RiseVelocity = 10
- Smoke14.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Part15.Name = "Handle"
- Part15.Parent = Tool0
- Part15.Rotation = Vector3.new(-180, 0, -180)
- Part15.Anchored = true
- Part15.Size = Vector3.new(0.381999999, 1.28199995, 2.3829999)
- Part15.CFrame = CFrame.new(9.13755798, -6.86499977, 20.1830006, -1, 0, 8.74227908e-08, 0, 1, 0, -8.74227908e-08, 0, -1)
- Part15.Position = Vector3.new(9.13755798, -6.86499977, 20.1830006)
- Part15.Orientation = Vector3.new(0, 180, 0)
- FileMesh16.Parent = Part15
- FileMesh16.MeshId = "rbxassetid://430349699"
- FileMesh16.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
- FileMesh16.TextureId = "rbxassetid://430348267"
- FileMesh16.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
- Sound17.Name = "Bolt"
- Sound17.Parent = Part15
- Sound17.SoundId = "http://roblox.com/asset/?id=166238161"
- Sound17.Volume = 0.20000000298023
- Sound18.Name = "Click"
- Sound18.Parent = Part15
- Sound18.SoundId = "http://www.roblox.com/asset/?id=146501511"
- Sound19.Name = "MagIn"
- Sound19.Parent = Part15
- Sound19.Pitch = 1.3999999761581
- Sound19.SoundId = "http://www.roblox.com/asset/?id=131045429"
- Sound20.Name = "MagOut"
- Sound20.Parent = Part15
- Sound20.Pitch = 1.3999999761581
- Sound20.SoundId = "http://www.roblox.com/asset/?id=131045401"
- Sound21.Name = "Shoot"
- Sound21.Parent = Part15
- Sound21.SoundId = "rbxassetid://131070686"
- Sound21.Volume = 1
- Part22.Name = "Mag"
- Part22.Parent = Tool0
- Part22.Rotation = Vector3.new(-180, 0, -180)
- Part22.Anchored = true
- Part22.Size = Vector3.new(0.316000015, 1.30400002, 0.842999995)
- Part22.CFrame = CFrame.new(9.13755798, -6.98799992, 20.8470001, -1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, -1)
- Part22.Position = Vector3.new(9.13755798, -6.98799992, 20.8470001)
- Part22.Orientation = Vector3.new(0, 180, 0)
- FileMesh23.Parent = Part22
- FileMesh23.MeshId = "rbxassetid://430349765"
- FileMesh23.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
- FileMesh23.TextureId = "rbxassetid://430348267"
- FileMesh23.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
- Part24.Name = "Bolt"
- Part24.Parent = Tool0
- Part24.Rotation = Vector3.new(-180, 0, -180)
- Part24.Anchored = true
- Part24.Size = Vector3.new(0.282999992, 0.451999992, 2.35899997)
- Part24.CFrame = CFrame.new(9.13555908, -6.39799976, 20.1800003, -1, 0, 9.23857442e-07, -0, 1, 0, -9.23857442e-07, 0, -1)
- Part24.Position = Vector3.new(9.13555908, -6.39799976, 20.1800003)
- Part24.Orientation = Vector3.new(0, 180, 0)
- FileMesh25.Parent = Part24
- FileMesh25.MeshId = "rbxassetid://430349880"
- FileMesh25.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
- FileMesh25.TextureId = "rbxassetid://430348267"
- FileMesh25.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
- 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
- end
- function Spawn1911()
- --Converted with ttyyuu12345's model to script plugin v4
- 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")
- BlockMesh2 = Instance.new("BlockMesh")
- PointLight3 = Instance.new("PointLight")
- BillboardGui4 = Instance.new("BillboardGui")
- ImageLabel5 = Instance.new("ImageLabel")
- Script6 = Instance.new("Script")
- Part7 = Instance.new("Part")
- BlockMesh8 = Instance.new("BlockMesh")
- Part9 = Instance.new("Part")
- Sound10 = Instance.new("Sound")
- Sound11 = Instance.new("Sound")
- Sound12 = Instance.new("Sound")
- Sound13 = Instance.new("Sound")
- Sound14 = Instance.new("Sound")
- Part15 = Instance.new("Part")
- SpecialMesh16 = Instance.new("SpecialMesh")
- Part17 = Instance.new("Part")
- SpecialMesh18 = Instance.new("SpecialMesh")
- LocalScript19 = Instance.new("LocalScript")
- NumberValue20 = Instance.new("NumberValue")
- NumberValue21 = Instance.new("NumberValue")
- Smoke22 = Instance.new("Smoke")
- Smoke23 = Instance.new("Smoke")
- Smoke24 = Instance.new("Smoke")
- Tool0.Name = "M1911"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxassetid://245265452"
- Part1.Name = "SmokePart"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Bright orange")
- Part1.Transparency = 1
- Part1.Rotation = Vector3.new(90, 0, -180)
- Part1.Anchored = true
- Part1.CanCollide = false
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(0.200000003, 0.478571415, 0.200000003)
- Part1.CFrame = CFrame.new(1.44665051, 0.703978181, 16.5859318, -1, 7.15255624e-07, -5.53527059e-07, 5.53528764e-07, 2.44172543e-06, -1, -7.15254259e-07, -1, -2.44172611e-06)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.854902, 0.521569, 0.254902)
- Part1.Position = Vector3.new(1.44665051, 0.703978181, 16.5859318)
- Part1.Orientation = Vector3.new(90, 180, 0)
- Part1.Color = Color3.new(0.854902, 0.521569, 0.254902)
- BlockMesh2.Parent = Part1
- PointLight3.Name = "Flash"
- PointLight3.Parent = Part1
- PointLight3.Color = Color3.new(1, 0.666667, 0)
- PointLight3.Enabled = false
- PointLight3.Brightness = 3
- PointLight3.Range = 10
- PointLight3.Color = Color3.new(1, 0.666667, 0)
- BillboardGui4.Name = "Light"
- BillboardGui4.Parent = Part1
- BillboardGui4.Size = UDim2.new(2.5, 0, 2.5, 0)
- BillboardGui4.Active = true
- ImageLabel5.Name = "Light"
- ImageLabel5.Parent = BillboardGui4
- ImageLabel5.Transparency = 1
- ImageLabel5.Size = UDim2.new(2, 0, 2, 0)
- ImageLabel5.Position = UDim2.new(-0.5, 0, -0.5, 0)
- ImageLabel5.Active = true
- ImageLabel5.Visible = false
- ImageLabel5.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
- ImageLabel5.BackgroundTransparency = 1
- ImageLabel5.Image = "http://www.roblox.com/asset/?id=68683102"
- Script6.Parent = BillboardGui4
- table.insert(cors,sandbox(Script6,function()
- script.Parent.Adornee = script.Parent.Parent
- end))
- Part7.Name = "AimPart"
- Part7.Parent = Tool0
- Part7.BrickColor = BrickColor.new("Dark stone grey")
- Part7.Transparency = 1
- Part7.Anchored = true
- Part7.CanCollide = false
- Part7.FormFactor = Enum.FormFactor.Custom
- Part7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part7.CFrame = CFrame.new(1.44665051, 0.903979182, 18.1359978, 1, 5.53527684e-07, -7.30156273e-07, -5.53528821e-07, 1, -1.58907233e-06, 7.30155421e-07, 1.58907267e-06, 1)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part7.Position = Vector3.new(1.44665051, 0.903979182, 18.1359978)
- Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
- BlockMesh8.Parent = Part7
- Part9.Name = "Handle"
- Part9.Parent = Tool0
- Part9.BrickColor = BrickColor.new("Really black")
- Part9.Transparency = 1
- Part9.Rotation = Vector3.new(0.0199999996, 0, 0)
- Part9.Anchored = true
- Part9.CanCollide = false
- Part9.FormFactor = Enum.FormFactor.Custom
- Part9.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part9.CFrame = CFrame.new(1.44665051, 0.00397720933, 17.4859734, 1, 8.55040923e-07, -7.46405703e-07, -8.55299845e-07, 0.99999994, -0.000346982124, 7.46108981e-07, 0.000346982095, 0.99999994)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part9.Position = Vector3.new(1.44665051, 0.00397720933, 17.4859734)
- Part9.Orientation = Vector3.new(0.0199999996, 0, 0)
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Sound10.Name = "Shoot"
- Sound10.Parent = Part9
- Sound10.SoundId = "rbxassetid://131257506"
- Sound10.Volume = 10
- Sound11.Name = "Bolt"
- Sound11.Parent = Part9
- Sound11.SoundId = "http://roblox.com/asset/?id=166238161"
- Sound11.Volume = 0.20000000298023
- Sound12.Name = "Click"
- Sound12.Parent = Part9
- Sound12.SoundId = "http://www.roblox.com/asset/?id=146501511"
- Sound13.Name = "MagIn"
- Sound13.Parent = Part9
- Sound13.Pitch = 1.3999999761581
- Sound13.SoundId = "http://www.roblox.com/asset/?id=131045429"
- Sound14.Name = "MagOut"
- Sound14.Parent = Part9
- Sound14.Pitch = 1.3999999761581
- Sound14.SoundId = "http://www.roblox.com/asset/?id=131045401"
- Part15.Name = "Mag"
- Part15.Parent = Tool0
- Part15.BrickColor = BrickColor.new("Black")
- Part15.Rotation = Vector3.new(169.849991, 0, 180)
- Part15.Anchored = true
- Part15.CanCollide = false
- Part15.FormFactor = Enum.FormFactor.Custom
- Part15.Size = Vector3.new(0.200000003, 0.599999964, 0.200000003)
- Part15.CFrame = CFrame.new(1.44663525, 0.271926194, 17.795517, -1.00000882, -9.37858147e-08, 8.36750701e-07, -2.39778871e-07, 0.984353244, -0.176231131, -8.07122547e-07, -0.176231131, -0.984353244)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part15.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part15.Position = Vector3.new(1.44663525, 0.271926194, 17.795517)
- Part15.Orientation = Vector3.new(10.1499996, 180, 0)
- Part15.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh16.Parent = Part15
- SpecialMesh16.MeshId = "rbxassetid://27839686"
- SpecialMesh16.Scale = Vector3.new(0.129999995, 0.300000012, 0.200000003)
- SpecialMesh16.TextureId = "rbxassetid://271708747"
- SpecialMesh16.MeshType = Enum.MeshType.FileMesh
- SpecialMesh16.Scale = Vector3.new(0.129999995, 0.300000012, 0.200000003)
- Part17.Name = "Gun"
- Part17.Parent = Tool0
- Part17.BrickColor = BrickColor.new("Pastel yellow")
- Part17.Rotation = Vector3.new(-90, 0, 0)
- Part17.Anchored = true
- Part17.CanCollide = false
- Part17.FormFactor = Enum.FormFactor.Custom
- Part17.Size = Vector3.new(0.200000003, 1.20000005, 0.800000012)
- Part17.CFrame = CFrame.new(1.44663525, 0.403745204, 17.385952, 1.00000441, -1.79147608e-09, -1.02596701e-07, 1.02596857e-07, 2.38419517e-07, 1.00000572, -3.15940909e-08, -1.00000346, 2.38287697e-07)
- Part17.Color = Color3.new(1, 1, 0.8)
- Part17.Position = Vector3.new(1.44663525, 0.403745204, 17.385952)
- Part17.Orientation = Vector3.new(-90, 0, 0)
- Part17.Color = Color3.new(1, 1, 0.8)
- SpecialMesh18.Parent = Part17
- SpecialMesh18.MeshId = "http://www.roblox.com/asset/?id=72012879"
- SpecialMesh18.Scale = Vector3.new(1.25, 1.5, 1.5)
- SpecialMesh18.TextureId = "rbxassetid://72012859"
- SpecialMesh18.VertexColor = Vector3.new(2, 2, 2)
- SpecialMesh18.MeshType = Enum.MeshType.FileMesh
- SpecialMesh18.Scale = Vector3.new(1.25, 1.5, 1.5)
- --Gun Gui
- -- Objects
- local Gui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local AmmoDisplay = Instance.new("TextLabel")
- local StoredAmmoDisplay = Instance.new("TextLabel")
- local _000 = Instance.new("TextLabel")
- local _000_2 = Instance.new("TextLabel")
- -- Properties
- Gui.Name = "Gui"
- Gui.Parent = LocalScript19
- Frame.Parent = Gui
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 1
- Frame.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.125, -5, 1.14999998, -120)
- Frame.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
- Frame.SizeConstraint = Enum.SizeConstraint.RelativeXX
- AmmoDisplay.Name = "AmmoDisplay"
- AmmoDisplay.Parent = Frame
- AmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- AmmoDisplay.BackgroundTransparency = 1
- AmmoDisplay.Position = UDim2.new(-0.0599999987, 0, 0, 0)
- AmmoDisplay.Size = UDim2.new(0.540000021, 0, 1.25, 0)
- AmmoDisplay.ZIndex = 2
- AmmoDisplay.Font = Enum.Font.SourceSansBold
- AmmoDisplay.FontSize = Enum.FontSize.Size36
- AmmoDisplay.Text = "30"
- AmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
- AmmoDisplay.TextScaled = true
- AmmoDisplay.TextSize = 36
- AmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- AmmoDisplay.TextWrapped = true
- AmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
- StoredAmmoDisplay.Name = "StoredAmmoDisplay"
- StoredAmmoDisplay.Parent = Frame
- StoredAmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- StoredAmmoDisplay.BackgroundTransparency = 1
- StoredAmmoDisplay.Position = UDim2.new(0.419999987, 0, 0.25, 0)
- StoredAmmoDisplay.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- StoredAmmoDisplay.ZIndex = 2
- StoredAmmoDisplay.Font = Enum.Font.SourceSans
- StoredAmmoDisplay.FontSize = Enum.FontSize.Size14
- StoredAmmoDisplay.Text = "360"
- StoredAmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
- StoredAmmoDisplay.TextScaled = true
- StoredAmmoDisplay.TextSize = 14
- StoredAmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- StoredAmmoDisplay.TextWrapped = true
- StoredAmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
- _000.Name = "000"
- _000.Parent = Frame
- _000.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- _000.BackgroundTransparency = 1
- _000.Position = UDim2.new(0.419999987, 0, 0.25, 0)
- _000.Size = UDim2.new(0.550000012, 0, 0.75, 0)
- _000.ZIndex = 2
- _000.Font = Enum.Font.SourceSans
- _000.FontSize = Enum.FontSize.Size14
- _000.Text = "000"
- _000.TextColor3 = Color3.new(1, 1, 1)
- _000.TextScaled = true
- _000.TextSize = 14
- _000.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- _000.TextTransparency = 0.80000001192093
- _000.TextWrapped = true
- _000.TextXAlignment = Enum.TextXAlignment.Right
- _000_2.Name = "000"
- _000_2.Parent = Frame
- _000_2.BackgroundColor3 = Color3.new(0.501961, 0, 0)
- _000_2.BackgroundTransparency = 1
- _000_2.Position = UDim2.new(-0.25, 0, 0, 0)
- _000_2.Size = UDim2.new(0.75, 0, 1.25, 0)
- _000_2.ZIndex = 2
- _000_2.Font = Enum.Font.SourceSansBold
- _000_2.FontSize = Enum.FontSize.Size48
- _000_2.Text = "000"
- _000_2.TextColor3 = Color3.new(1, 1, 1)
- _000_2.TextScaled = true
- _000_2.TextSize = 48
- _000_2.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
- _000_2.TextTransparency = 0.80000001192093
- _000_2.TextWrapped = true
- _000_2.TextXAlignment = Enum.TextXAlignment.Right
- LocalScript19.Name = "Gun_Script"
- LocalScript19.Parent = Tool0
- table.insert(cors,sandbox(LocalScript19,function()
- sp = script.Parent
- 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"):clone()
- newShirt.Parent = Arms
- 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 = 2500
- ,Spread = 8
- ,Damage = {30, 35}
- ,HeadShotDamage = {60, 70}
- ,Bullets = 1
- ,FireRate = 0.068
- ,Automatic = false
- ,AntiTK = false
- ,ImpactDuration = .5
- --Reload
- ,ReloadKey = "R"
- ,ReloadTime = 1.63
- ,Ammo = 7
- ,IncludeChamberedBullet = true
- --Gui
- ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
- --Arms
- ,OneHanded = true
- ,FakeArms = true
- ,FakeArmTransparency = 0
- -- (+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(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
- ,AimPart = Tool.AimPart
- ,AimPartOffset = CFrame.new()
- ,AimGripOffset = Vector3.new(0, 0, 0)
- ,LeftAimPos = CFrame.new(1, 0.9, 0.35) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
- ,AimAnim = {
- Enabled = false
- ,Frames = 50
- ,Time = 0.1
- }
- ,ChangeFOV = {true, 45}
- ,SpreadReduction = 8
- --Weld
- ,Weld = true
- --Mouse
- ,Icons = {
- Idle = "rbxassetid://70288585"
- ,Fire1 = "rbxassetid://70288578"
- ,Fire2 = "rbxassetid://70288572"
- ,Fire3 = "rbxassetid://70288578"
- ,Reload = "rbxassetid://70288599"
- ,Aim = "rbxasset://textures/Blank.png"
- }
- ,FireMouseAnimTime = 0.15
- --Recoil
- ,Recoil = math.rad(0.79)
- --Smoke
- ,Smoke = true
- ,SmokePart = Tool.SmokePart
- ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
- --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)
- ,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
- Gui.Frame.StoredAmmoDisplay.Text = 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 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)
- 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 then
- local 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("Black")
- Hit_Part.Material = "Metal"
- local Meta = Instance.new("Sound")
- Meta.Name = "Crack"
- Meta.SoundId = "rbxassetid://151284431"
- Meta.Volume = 0.3
- Meta.Pitch = 2
- Meta.Parent = Hit_Part
- Meta:play()
- local Cur = Instance.new("SpecialMesh")
- Cur.MeshType = "Sphere"
- Cur.Parent = Hit_Part
- Cur.Scale = Vector3.new(0.5,0.5,0.5)
- Instance.new("Smoke", Hit_Part).Opacity = 15
- local g = Instance.new("PointLight", Hit_Part)
- g.Color = Color3.new(0, 0, 0)
- g.Range = 0
- g.Shadows = true
- local PE = Instance.new("ParticleEmitter")
- PE.Parent = Hit_Part
- PE.Size = NumberSequence.new(0.75)
- PE.LightEmission = 0
- PE.Lifetime = NumberRange.new(5)
- PE.ZOffset = 0.5
- PE.Texture = "http://www.roblox.com/asset/?id=133619974"
- PE.Rate = 50
- PE.Speed = NumberRange.new(2.5)
- PE.VelocitySpread = NumberSequence.new(-0.05)
- PE.Transparency = NumberSequence.new(-1)
- game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
- game.Debris:AddItem(PE, 0.17)
- --[[ 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.Transparency >= 0.1 then
- Hit:BreakJoints()
- Hit.Anchored = false
- Hit.Size = Hit.Size /2
- local sound = Instance.new("Sound", Hit)
- sound.Volume = 10
- sound.SoundId = "rbxassetid://138122923"
- sound:Play()
- for i=1, 4, 1 do
- local clone = Hit:Clone()
- clone.Parent = workspace
- game.Debris:AddItem(clone, 3)
- end
- game.Debris:AddItem(Hit, 1)
- end
- if Hit.Parent:IsA("Hat") or Hit.Parent:IsA("Accessory") and Settings.DropHats then
- Hit.Parent.Parent = workspace
- game.Debris:AddItem(Hit, 3)
- 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)
- for _ = 1, Settings.Bullets do
- Fire(Mouse)
- end
- local bg = Instance.new("BillboardGui", Settings.SmokePart)
- bg.Adornee = Settings.SmokePart
- local flashsize = math.random(5, 8)/10
- bg.Size = UDim2.new(flashsize, 0, flashsize, 0)
- local flash = Instance.new("ImageLabel", bg)
- flash.BackgroundTransparency = 1
- flash.Size = UDim2.new(1, 0, 1, 0)
- flash.Image = "rbxassetid://172841900"
- flash.Rotation = math.random(0, 360)
- game.Debris:AddItem(bg, 0.025)
- 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.Transparency = 1
- --Tool.Bolt1.Transparency = 0
- wait(Settings.FireRate)
- -- Tool.Bolt.Transparency = 0
- --Tool.Bolt1.Transparency = 1
- 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 = "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.Mag.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.Mag.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(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 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
- _G.MouseSensitivity = 0.3
- 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
- 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
- _G.MouseSensitivity = 1
- 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
- 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()
- 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))
- NumberValue20.Name = "StoredAmmo"
- NumberValue20.Parent = LocalScript19
- NumberValue20.Value = 999
- NumberValue21.Name = "Ammo"
- NumberValue21.Parent = LocalScript19
- NumberValue21.Value = 7
- Smoke22.Parent = LocalScript19
- Smoke22.Size = 0.25
- Smoke22.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke22.Enabled = false
- Smoke22.Opacity = 0.10000000149012
- Smoke22.RiseVelocity = 10
- Smoke22.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke23.Name = "Smoke1"
- Smoke23.Parent = LocalScript19
- Smoke23.Size = 0.25
- Smoke23.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke23.Enabled = false
- Smoke23.Opacity = 0.10000000149012
- Smoke23.RiseVelocity = 10
- Smoke23.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke24.Name = "Smoke2"
- Smoke24.Parent = LocalScript19
- Smoke24.Size = 0.25
- Smoke24.Color = Color3.new(0.807843, 0.807843, 0.807843)
- Smoke24.Enabled = false
- Smoke24.Opacity = 0.10000000149012
- Smoke24.RiseVelocity = 10
- Smoke24.Color = Color3.new(0.807843, 0.807843, 0.807843)
- 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
- end
- function SpawnArrest()
- --Converted with ttyyuu12345's model to script plugin v4
- 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")
- Script3 = Instance.new("Script")
- Tool0.Name = "Arrest"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(-0.77155745, 0.462976098, 0.43629396)
- Tool0.GripPos = Vector3.new(0.899999976, 0.5, 0.400000006)
- Tool0.GripRight = Vector3.new(0.632408082, 0.63257581, 0.447110623)
- Tool0.GripUp = Vector3.new(0.0689874813, -0.620887339, 0.780858338)
- Tool0.ToolTip = "Take those skids to gulag!"
- Tool0.CanBeDropped = false
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(2, 2, 2)
- Part1.CFrame = CFrame.new(1.70000003e-05, 1.00001395, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(1.70000003e-05, 1.00001395, 0)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=88046657"
- SpecialMesh2.Scale = Vector3.new(2, 2, 2)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=88046679"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(2, 2, 2)
- Script3.Parent = Part1
- debounce = false
- player = game.Players.LocalPlayer
- mouse = player:GetMouse()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
- table.insert(cors,sandbox(Script3,function()
- function arrest(hit)
- print(1)
- hit = mouse.Target
- if hit.Parent ~= nil and hit.Parent:FindFirstChild("Head") ~= nil and hit.Parent.Name ~= game.Players.LocalPlayer.Name and debounce ~= true and hit.Parent.Head:FindFirstChild("ArrestedGui") == nil then
- debounce = true
- num = math.random(1,99)
- local message = Instance.new("Hint",workspace)
- message.Text = hit.Parent.Name.." Has been arrested by "..game.Players.LocalPlayer.Name.."! He or she has to spend "..num.." years in jail!"
- --hit.Parent:Destroy()
- hit.Parent.Humanoid.MaxHealth = math.huge
- print("Godded!")
- a = Instance.new("ForceField", hit.Parent)
- a.Visible = false
- print("FFed!")
- hit.Parent.Humanoid.PlatformStand = true
- hit.Parent.Head.Anchored = true
- local hum = Instance.new("Model", hit.Parent)
- hum.Name = hit.Parent.Name.."| Arrested | "..num.. " Years until release"
- local anotherhum = Instance.new("Humanoid", hum)
- local par = Instance.new("Part", hum)
- par.Size = Vector3.new(2,1,1)
- par.Name = "Head"
- par.BrickColor = hit.Parent.Head.BrickColor
- par.Transparency = 0
- par.Anchored = true
- par.CanCollide = false
- par.Position = hit.Parent.Head.Position
- local hide = Instance.new("SpecialMesh", par)
- hide.Scale = Vector3.new(1.25, 1.25, 1.25)
- hit.Parent.Head.Transparency = 1
- local SOUND = Instance.new("Sound", script.Parent)
- SOUND.SoundId = "rbxassetid://460919688"
- SOUND.Volume = 10
- SOUND:Play()
- --[[BillboardGui0 = Instance.new("BillboardGui")
- TextLabel1 = Instance.new("TextLabel")
- BillboardGui0.Name = "ArrestedGui"
- BillboardGui0.Parent = hit.Parent.Head
- BillboardGui0.Size = UDim2.new(10, 0, 2, 0)
- BillboardGui0.StudsOffset = Vector3.new(0, 3, 0)
- TextLabel1.Name = "Text"
- TextLabel1.Parent = BillboardGui0
- TextLabel1.Transparency = 1
- TextLabel1.Size = UDim2.new(1, 0, 1, 0)
- TextLabel1.Text = hit.Parent.Name.."| Arrested | "..num.. " Years until release"
- TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel1.BackgroundTransparency = 1
- TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel1.Font = Enum.Font.ArialBold
- TextLabel1.FontSize = Enum.FontSize.Size48
- TextLabel1.TextColor3 = Color3.new(1, 1, 1)
- TextLabel1.TextScaled = true
- TextLabel1.TextStrokeTransparency = 0
- TextLabel1.TextWrapped = true
- TextLabel1.TextYAlignment = Enum.TextYAlignment.Top]]
- game:GetService("Debris"):AddItem(SOUND,5)
- game:GetService("Debris"):AddItem(message,5)
- --hit.Parent.Humanoid:Destroy()
- --jailtime(hit.Parent)
- wait(3)
- debounce = false
- end
- end
- Tool0.Activated:connect(arrest)
- end))
- --[[function jailtime(char)
- for i = num, 0, -1 do
- wait(1)
- TextLabel1.Text = char.Name.."| Arrested | "..i.. " Years until release"
- end
- char.Humanoid.MaxHealth = 100
- print("Godded!")
- char.ForceField:Destroy()
- print("UNFFed!")
- char.Humanoid.PlatformStand = false
- BillboardGui0:Destroy()
- end
- script.Parent.Touched:connect(arrest)
- end))]]
- 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
- end
- -----RAGDOLL-----
- --0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0
- --0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0
- --[[
- local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
- vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
- vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- ]]
- --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
- --die plz
- mouse = game.Players.LocalPlayer:GetMouse()
- function ragdoll()
- game.Players.LocalPlayer.Character.Archivable = true
- clone = game.Players.LocalPlayer.Character:Clone()
- clone.Parent = workspace
- for i,v in pairs(clone:GetChildren()) do
- if v.ClassName == "Script" or v.ClassName == "LocalScript" then
- v:destroy()
- end
- for i,p in pairs(v:GetChildren()) do
- if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
- p:destroy()
- end
- end
- end
- for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
- t:destroy()
- end
- end
- vel = Instance.new("BodyVelocity", clone.Torso)
- vel.Velocity = clone.Torso.CFrame.lookVector * -5
- vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
- using = false
- hit = Instance.new("Sound", clone.Torso)
- hit.SoundId = "rbxassetid://260430060"
- hit.Volume = 5
- hit1 = Instance.new("Sound", clone.Torso)
- hit1.SoundId = "rbxassetid://138087186"
- hit1.Volume = 5
- hit2 = Instance.new("Sound", clone.Torso)
- hit2.SoundId = "rbxassetid://131237241"
- hit2.Volume = 5
- hit3 = Instance.new("Sound", clone.Torso)
- hit3.SoundId = "rbxassetid://278062209"
- hit3.Volume = 5
- hit3.TimePosition = 0.33
- ded = Instance.new("Sound", clone.Torso)
- ded.SoundId = "rbxassetid://418892870"
- ded.Volume = 5
- local leftarm = clone:findFirstChild("Left Arm")
- local rightrm = clone:findFirstChild("Right Arm")
- local leftleg = clone:findFirstChild("Left Leg")
- local rightleg = clone:findFirstChild("Right Leg")
- local head = clone:findFirstChild("Head")
- for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if g.ClassName == "Part" then
- g:destroy()
- end
- end
- for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if h.ClassName == "Accesory" then
- h:destroy()
- end
- end
- game.Workspace.CurrentCamera.CameraSubject = head
- if head ~= nil then
- local glue13 = Instance.new("Glue", clone.Torso)
- glue13.Part0 = clone.Torso
- glue13.Part1 = head
- glue13.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- glue13.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local collider13 = Instance.new("Part", head)
- collider13.Position = Vector3.new(0,999,0)
- collider13.Size = Vector3.new(0.5, 0.9, 0.9)
- collider13.Shape = "Cylinder"
- collider13.Transparency = 1
- local weld = Instance.new("Weld", collider13)
- weld.Part0 = head
- weld.Part1 = collider13
- weld.C0 = weld.C0 * CFrame.new(0,0.2,0) * CFrame.Angles(0, 0, 80)
- collider13.TopSurface = "Smooth"
- collider13.BottomSurface = "Smooth"
- collider13.formFactor = "Symmetric"
- end
- if leftleg ~= nil then
- local glue = Instance.new("Glue", clone.Torso)
- glue.Part0 = clone.Torso
- glue.Part1 = leftleg
- glue.Name = "Left leg"
- local collider = Instance.new("Part", leftleg)
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.7, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = leftleg
- weld.Part1 = collider
- weld.C0 = CFrame.Angles(0, 0, 80)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- end
- ------------
- if rightleg ~= nil then
- local glue1 = Instance.new("Glue", clone.Torso)
- glue1.Part0 = clone.Torso
- glue1.Part1 = rightleg
- glue1.Name = "Right leg"
- local collider1 = Instance.new("Part", rightleg)
- collider1.Position = Vector3.new(0,999,0)
- collider1.Size = Vector3.new(1.7, 1, 1)
- collider1.Shape = "Cylinder"
- local weld1 = Instance.new("Weld", collider1)
- weld1.Part0 = rightleg
- weld1.Part1 = collider1
- weld1.C0 = CFrame.Angles(0, 0, 80)
- collider1.TopSurface = "Smooth"
- collider1.BottomSurface = "Smooth"
- collider1.formFactor = "Symmetric"
- glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- collider1.Transparency = 1
- end
- ------------
- if rightrm ~= nil then
- local glue11 = Instance.new("Glue", clone.Torso)
- glue11.Part0 = clone.Torso
- glue11.Part1 = rightrm
- glue11.Name = "Right shoulder"
- local collider11 = Instance.new("Part", rightrm)
- collider11.Position = Vector3.new(0,9999,0)
- collider11.Size = Vector3.new(1.8,1,1)
- collider11.Shape = "Cylinder"
- local weld11 = Instance.new("Weld", collider11)
- weld11.Part0 = rightrm
- weld11.Part1 = collider11
- weld11.C0 = CFrame.Angles(0, 0, 80)
- collider11.TopSurface = "Smooth"
- collider11.BottomSurface = "Smooth"
- collider11.formFactor = "Symmetric"
- glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- collider11.Transparency = 1
- end
- ------------
- if leftarm ~= nil then
- local glue111 = Instance.new("Glue", clone.Torso)
- glue111.Part0 = clone.Torso
- glue111.Part1 = leftarm
- glue111.Name = "Left shoulder"
- local collider111 = Instance.new("Part", leftarm)
- collider111.Position = Vector3.new(0,9999,0)
- collider111.Size = Vector3.new(1.8,1,1)
- collider111.Shape = "Cylinder"
- local weld111 = Instance.new("Weld", collider111)
- weld111.Part0 = leftarm
- weld111.Part1 = collider111
- weld111.C0 = CFrame.Angles(0, 0, 80)
- collider111.TopSurface = "Smooth"
- collider111.BottomSurface = "Smooth"
- collider111.formFactor = "Symmetric"
- glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- collider111.Transparency = 1
- ----------------
- sensoring = Instance.new("Part", clone.Torso)
- sensoring.Size = Vector3.new(1.2,1.1,0.8)
- sensoring.CanCollide = false
- sensoring.Position = clone.Torso.Position
- local welder = Instance.new("Weld", sensoring)
- welder.Part0 = clone.Torso
- welder.Part1 = sensoring
- welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
- sensoring.Transparency = 1
- -----------------
- sensoring1 = Instance.new("Part", clone.Torso)
- sensoring1.Size = Vector3.new(1.2,1.1,0.8)
- sensoring1.CanCollide = false
- sensoring1.Position = clone.Torso.Position
- local welder1 = Instance.new("Weld", sensoring)
- welder1.Part0 = clone.Torso
- welder1.Part1 = sensoring1
- welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
- sensoring1.Transparency = 1
- end
- clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
- ded:Play()
- vel:destroy()
- wait(0.5)
- local function touch()
- if not using then
- using = true
- local Math = math.random(1,4)
- if Math == 1 then
- hit:Play()
- end
- if Math == 2 then
- hit1:Play()
- end
- if Math == 3 then
- hit2:Play()
- end
- if Math == 4 then
- hit3:Play()
- end
- wait(0.1)
- using = false
- end
- end
- sensoring.Touched:connect(touch)
- sensoring1.Touched:connect(touch)
- wait(4.47)
- hit1.Volume = 0
- hit2.Volume = 0
- hit3.Volume = 0
- hit.Volume = 0
- end
- game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
- --di ent
Add Comment
Please, Sign In to add comment