Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local CosetteGui = Instance.new("ScreenGui")
- local DecoFrame = Instance.new("Frame")
- local MainFrame = Instance.new("Frame")
- local PlayersFrame = Instance.new("ScrollingFrame")
- local ItemsFrame = Instance.new("ScrollingFrame")
- local KitsFrame = Instance.new("ScrollingFrame")
- local FALButton = Instance.new("TextButton")
- local M14Button = Instance.new("TextButton")
- local M17Button = Instance.new("TextButton")
- local G3Button = Instance.new("TextButton")
- local HK21Button = Instance.new("TextButton")
- local HK417Button = Instance.new("TextButton")
- local AK47Button = Instance.new("TextButton")
- local AKMButton = Instance.new("TextButton")
- local AK108Button = Instance.new("TextButton")
- local AK12Button = Instance.new("TextButton")
- local RPKButton = Instance.new("TextButton")
- local OTs14Button = Instance.new("TextButton")
- local PatriotButton = Instance.new("TextButton")
- local SCARLButton = Instance.new("TextButton")
- local G36KButton = Instance.new("TextButton")
- local M4A1Button = Instance.new("TextButton")
- local GadgetsButton = Instance.new("TextButton")
- local HealthButton = Instance.new("TextButton")
- local CarRepairButton = Instance.new("TextButton")
- local BaseButton = Instance.new("TextButton")
- local FoodButton = Instance.new("TextButton")
- local PlayersLabel = Instance.new("TextLabel")
- local ItemsLabel = Instance.new("TextLabel")
- local KitsLabel = Instance.new("TextLabel")
- local ItemsSearchBox = Instance.new("TextBox")
- local TitleLabel = Instance.new("TextLabel")
- local TransparencySlider = Instance.new("Frame")
- local TransparencyFill = Instance.new("Frame")
- CosetteGui.Name = "CosetteGui"
- CosetteGui.Parent = game.CoreGui
- DecoFrame.Name = "DecoFrame"
- DecoFrame.Parent = CosetteGui
- DecoFrame.BackgroundColor3 = Color3.new(0.219608, 0.219608, 0.219608)
- DecoFrame.BorderSizePixel = 0
- DecoFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
- DecoFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = DecoFrame
- MainFrame.BackgroundColor3 = Color3.new(0.364706, 0.364706, 0.364706)
- MainFrame.BorderSizePixel = 0
- MainFrame.Position = UDim2.new(0.0500000007, 0, 0.200000003, 0)
- MainFrame.Size = UDim2.new(0.899999976, 0, 0.699999988, 0)
- PlayersFrame.Name = "PlayersFrame"
- PlayersFrame.Parent = MainFrame
- PlayersFrame.BackgroundColor3 = Color3.new(0.364706, 0.364706, 0.364706)
- PlayersFrame.BorderColor3 = Color3.new(1, 1, 1)
- PlayersFrame.BorderSizePixel = 2
- PlayersFrame.Position = UDim2.new(0, 0, 0.100000001, 0)
- PlayersFrame.Size = UDim2.new(0.400000006, 0, 0.899999976, 0)
- PlayersFrame.ZIndex = 2
- PlayersFrame.CanvasSize = UDim2.new(0, 0, 500, 0)
- PlayersFrame.ScrollBarThickness = 0
- ItemsFrame.Name = "ItemsFrame"
- ItemsFrame.Parent = MainFrame
- ItemsFrame.BackgroundColor3 = Color3.new(0.364706, 0.364706, 0.364706)
- ItemsFrame.BorderColor3 = Color3.new(1, 1, 1)
- ItemsFrame.BorderSizePixel = 2
- ItemsFrame.Position = UDim2.new(0.400000006, 0, 0.200000003, 0)
- ItemsFrame.Size = UDim2.new(0.300000012, 0, 0.800000012, 0)
- ItemsFrame.CanvasSize = UDim2.new(0, 0, 500, 0)
- ItemsFrame.ScrollBarThickness = 0
- KitsFrame.Name = "KitsFrame"
- KitsFrame.Parent = MainFrame
- KitsFrame.BackgroundColor3 = Color3.new(0.364706, 0.364706, 0.364706)
- KitsFrame.BorderColor3 = Color3.new(1, 1, 1)
- KitsFrame.BorderSizePixel = 2
- KitsFrame.Position = UDim2.new(0.699999988, 0, 0.100000001, 0)
- KitsFrame.Size = UDim2.new(0.300000012, 0, 0.899999976, 0)
- KitsFrame.ZIndex = 2
- KitsFrame.CanvasSize = UDim2.new(0, 0, 500, 0)
- KitsFrame.ScrollBarThickness = 0
- FALButton.Name = "FALButton"
- FALButton.Parent = KitsFrame
- FALButton.BackgroundColor3 = Color3.new(0, 0, 0)
- FALButton.BorderSizePixel = 0
- FALButton.Size = UDim2.new(1, 0, 0.000500000024, 0)
- FALButton.ZIndex = 3
- FALButton.Font = Enum.Font.ArialBold
- FALButton.FontSize = Enum.FontSize.Size18
- FALButton.Text = "FAL Kit"
- FALButton.TextColor3 = Color3.new(1, 1, 1)
- FALButton.TextSize = 18
- M14Button.Name = "M14Button"
- M14Button.Parent = KitsFrame
- M14Button.BackgroundColor3 = Color3.new(0, 0, 0)
- M14Button.BorderSizePixel = 0
- M14Button.Position = UDim2.new(0, 0, 0.000500000024, 0)
- M14Button.Size = UDim2.new(1, 0, 0.000500000024, 0)
- M14Button.ZIndex = 3
- M14Button.Font = Enum.Font.ArialBold
- M14Button.FontSize = Enum.FontSize.Size18
- M14Button.Text = "M14 Kit"
- M14Button.TextColor3 = Color3.new(1, 1, 1)
- M14Button.TextSize = 18
- M17Button.Name = "M17Button"
- M17Button.Parent = KitsFrame
- M17Button.BackgroundColor3 = Color3.new(0, 0, 0)
- M17Button.BorderSizePixel = 0
- M17Button.Position = UDim2.new(0, 0, 0.00100000005, 0)
- M17Button.Size = UDim2.new(1, 0, 0.000500000024, 0)
- M17Button.ZIndex = 3
- M17Button.Font = Enum.Font.ArialBold
- M17Button.FontSize = Enum.FontSize.Size18
- M17Button.Text = "M17 Kit"
- M17Button.TextColor3 = Color3.new(1, 1, 1)
- M17Button.TextSize = 18
- G3Button.Name = "G3Button"
- G3Button.Parent = KitsFrame
- G3Button.BackgroundColor3 = Color3.new(0, 0, 0)
- G3Button.BorderSizePixel = 0
- G3Button.Position = UDim2.new(0, 0, 0.00150000001, 0)
- G3Button.Size = UDim2.new(1, 0, 0.000500000024, 0)
- G3Button.ZIndex = 3
- G3Button.Font = Enum.Font.ArialBold
- G3Button.FontSize = Enum.FontSize.Size18
- G3Button.Text = "G3 Kit"
- G3Button.TextColor3 = Color3.new(1, 1, 1)
- G3Button.TextSize = 18
- HK21Button.Name = "HK21Button"
- HK21Button.Parent = KitsFrame
- HK21Button.BackgroundColor3 = Color3.new(0, 0, 0)
- HK21Button.BorderSizePixel = 0
- HK21Button.Position = UDim2.new(0, 0, 0.00200000009, 0)
- HK21Button.Size = UDim2.new(1, 0, 0.000500000024, 0)
- HK21Button.ZIndex = 3
- HK21Button.Font = Enum.Font.ArialBold
- HK21Button.FontSize = Enum.FontSize.Size18
- HK21Button.Text = "HK21 Kit"
- HK21Button.TextColor3 = Color3.new(1, 1, 1)
- HK21Button.TextSize = 18
- HK417Button.Name = "HK417Button"
- HK417Button.Parent = KitsFrame
- HK417Button.BackgroundColor3 = Color3.new(0, 0, 0)
- HK417Button.BorderSizePixel = 0
- HK417Button.Position = UDim2.new(0, 0, 0.00249999994, 0)
- HK417Button.Size = UDim2.new(1, 0, 0.000500000024, 0)
- HK417Button.ZIndex = 3
- HK417Button.Font = Enum.Font.ArialBold
- HK417Button.FontSize = Enum.FontSize.Size18
- HK417Button.Text = "HK417 Kit"
- HK417Button.TextColor3 = Color3.new(1, 1, 1)
- HK417Button.TextSize = 18
- AK47Button.Name = "AK-47Button"
- AK47Button.Parent = KitsFrame
- AK47Button.BackgroundColor3 = Color3.new(0, 0, 0)
- AK47Button.BorderSizePixel = 0
- AK47Button.Position = UDim2.new(0, 0, 0.00300000003, 0)
- AK47Button.Size = UDim2.new(1, 0, 0.000500000024, 0)
- AK47Button.ZIndex = 3
- AK47Button.Font = Enum.Font.ArialBold
- AK47Button.FontSize = Enum.FontSize.Size18
- AK47Button.Text = "AK-47 Kit"
- AK47Button.TextColor3 = Color3.new(1, 1, 1)
- AK47Button.TextSize = 18
- AKMButton.Name = "AKMButton"
- AKMButton.Parent = KitsFrame
- AKMButton.BackgroundColor3 = Color3.new(0, 0, 0)
- AKMButton.BorderSizePixel = 0
- AKMButton.Position = UDim2.new(0, 0, 0.00350000011, 0)
- AKMButton.Size = UDim2.new(1, 0, 0.000500000024, 0)
- AKMButton.ZIndex = 3
- AKMButton.Font = Enum.Font.ArialBold
- AKMButton.FontSize = Enum.FontSize.Size18
- AKMButton.Text = "AKM Kit"
- AKMButton.TextColor3 = Color3.new(1, 1, 1)
- AKMButton.TextSize = 18
- AK108Button.Name = "AK-108Button"
- AK108Button.Parent = KitsFrame
- AK108Button.BackgroundColor3 = Color3.new(0, 0, 0)
- AK108Button.BorderSizePixel = 0
- AK108Button.Position = UDim2.new(0, 0, 0.00400000019, 0)
- AK108Button.Size = UDim2.new(1, 0, 0.000500000024, 0)
- AK108Button.ZIndex = 3
- AK108Button.Font = Enum.Font.ArialBold
- AK108Button.FontSize = Enum.FontSize.Size18
- AK108Button.Text = "AK-108 Kit"
- AK108Button.TextColor3 = Color3.new(1, 1, 1)
- AK108Button.TextSize = 18
- AK12Button.Name = "AK-12Button"
- AK12Button.Parent = KitsFrame
- AK12Button.BackgroundColor3 = Color3.new(0, 0, 0)
- AK12Button.BorderSizePixel = 0
- AK12Button.Position = UDim2.new(0, 0, 0.00449999981, 0)
- AK12Button.Size = UDim2.new(1, 0, 0.000500000024, 0)
- AK12Button.ZIndex = 3
- AK12Button.Font = Enum.Font.ArialBold
- AK12Button.FontSize = Enum.FontSize.Size18
- AK12Button.Text = "AK-12 Kit"
- AK12Button.TextColor3 = Color3.new(1, 1, 1)
- AK12Button.TextSize = 18
- RPKButton.Name = "RPKButton"
- RPKButton.Parent = KitsFrame
- RPKButton.BackgroundColor3 = Color3.new(0, 0, 0)
- RPKButton.BorderSizePixel = 0
- RPKButton.Position = UDim2.new(0, 0, 0.00499999989, 0)
- RPKButton.Size = UDim2.new(1, 0, 0.000500000024, 0)
- RPKButton.ZIndex = 3
- RPKButton.Font = Enum.Font.ArialBold
- RPKButton.FontSize = Enum.FontSize.Size18
- RPKButton.Text = "RPK Kit"
- RPKButton.TextColor3 = Color3.new(1, 1, 1)
- RPKButton.TextSize = 18
- OTs14Button.Name = "OTs-14Button"
- OTs14Button.Parent = KitsFrame
- OTs14Button.BackgroundColor3 = Color3.new(0, 0, 0)
- OTs14Button.BorderSizePixel = 0
- OTs14Button.Position = UDim2.new(0, 0, 0.00549999997, 0)
- OTs14Button.Size = UDim2.new(1, 0, 0.000500000024, 0)
- OTs14Button.ZIndex = 3
- OTs14Button.Font = Enum.Font.ArialBold
- OTs14Button.FontSize = Enum.FontSize.Size18
- OTs14Button.Text = "OTs-14 Kit"
- OTs14Button.TextColor3 = Color3.new(1, 1, 1)
- OTs14Button.TextSize = 18
- PatriotButton.Name = "PatriotButton"
- PatriotButton.Parent = KitsFrame
- PatriotButton.BackgroundColor3 = Color3.new(0, 0, 0)
- PatriotButton.BorderSizePixel = 0
- PatriotButton.Position = UDim2.new(0, 0, 0.00600000005, 0)
- PatriotButton.Size = UDim2.new(1, 0, 0.000500000024, 0)
- PatriotButton.ZIndex = 3
- PatriotButton.Font = Enum.Font.ArialBold
- PatriotButton.FontSize = Enum.FontSize.Size18
- PatriotButton.Text = "Patriot Kit"
- PatriotButton.TextColor3 = Color3.new(1, 1, 1)
- PatriotButton.TextSize = 18
- SCARLButton.Name = "SCAR-LButton"
- SCARLButton.Parent = KitsFrame
- SCARLButton.BackgroundColor3 = Color3.new(0, 0, 0)
- SCARLButton.BorderSizePixel = 0
- SCARLButton.Position = UDim2.new(0, 0, 0.00650000013, 0)
- SCARLButton.Size = UDim2.new(1, 0, 0.000500000024, 0)
- SCARLButton.ZIndex = 3
- SCARLButton.Font = Enum.Font.ArialBold
- SCARLButton.FontSize = Enum.FontSize.Size18
- SCARLButton.Text = "SCAR-L Kit"
- SCARLButton.TextColor3 = Color3.new(1, 1, 1)
- SCARLButton.TextSize = 18
- G36KButton.Name = "G36KButton"
- G36KButton.Parent = KitsFrame
- G36KButton.BackgroundColor3 = Color3.new(0, 0, 0)
- G36KButton.BorderSizePixel = 0
- G36KButton.Position = UDim2.new(0, 0, 0.00700000022, 0)
- G36KButton.Size = UDim2.new(1, 0, 0.000500000024, 0)
- G36KButton.ZIndex = 3
- G36KButton.Font = Enum.Font.ArialBold
- G36KButton.FontSize = Enum.FontSize.Size18
- G36KButton.Text = "G36K Kit"
- G36KButton.TextColor3 = Color3.new(1, 1, 1)
- G36KButton.TextSize = 18
- M4A1Button.Name = "M4A1Button"
- M4A1Button.Parent = KitsFrame
- M4A1Button.BackgroundColor3 = Color3.new(0, 0, 0)
- M4A1Button.BorderSizePixel = 0
- M4A1Button.Position = UDim2.new(0, 0, 0.00749999983, 0)
- M4A1Button.Size = UDim2.new(1, 0, 0.000500000024, 0)
- M4A1Button.ZIndex = 3
- M4A1Button.Font = Enum.Font.ArialBold
- M4A1Button.FontSize = Enum.FontSize.Size18
- M4A1Button.Text = "M4A1 Kit"
- M4A1Button.TextColor3 = Color3.new(1, 1, 1)
- M4A1Button.TextSize = 18
- GadgetsButton.Name = "GadgetsButton"
- GadgetsButton.Parent = KitsFrame
- GadgetsButton.BackgroundColor3 = Color3.new(0, 0, 0)
- GadgetsButton.BorderSizePixel = 0
- GadgetsButton.Position = UDim2.new(0, 0, 0.00800000038, 0)
- GadgetsButton.Size = UDim2.new(1, 0, 0.000500000024, 0)
- GadgetsButton.ZIndex = 3
- GadgetsButton.Font = Enum.Font.ArialBold
- GadgetsButton.FontSize = Enum.FontSize.Size18
- GadgetsButton.Text = "Gadgets Kit"
- GadgetsButton.TextColor3 = Color3.new(1, 1, 1)
- GadgetsButton.TextSize = 18
- HealthButton.Name = "HealthButton"
- HealthButton.Parent = KitsFrame
- HealthButton.BackgroundColor3 = Color3.new(0, 0, 0)
- HealthButton.BorderSizePixel = 0
- HealthButton.Position = UDim2.new(0, 0, 0.00850000046, 0)
- HealthButton.Size = UDim2.new(1, 0, 0.000500000024, 0)
- HealthButton.ZIndex = 3
- HealthButton.Font = Enum.Font.ArialBold
- HealthButton.FontSize = Enum.FontSize.Size18
- HealthButton.Text = "Health Kit"
- HealthButton.TextColor3 = Color3.new(1, 1, 1)
- HealthButton.TextSize = 18
- CarRepairButton.Name = "CarRepairButton"
- CarRepairButton.Parent = KitsFrame
- CarRepairButton.BackgroundColor3 = Color3.new(0, 0, 0)
- CarRepairButton.BorderSizePixel = 0
- CarRepairButton.Position = UDim2.new(0, 0, 0.00899999961, 0)
- CarRepairButton.Size = UDim2.new(1, 0, 0.000500000024, 0)
- CarRepairButton.ZIndex = 3
- CarRepairButton.Font = Enum.Font.ArialBold
- CarRepairButton.FontSize = Enum.FontSize.Size18
- CarRepairButton.Text = "Car Repairs Kit"
- CarRepairButton.TextColor3 = Color3.new(1, 1, 1)
- CarRepairButton.TextSize = 18
- BaseButton.Name = "BaseButton"
- BaseButton.Parent = KitsFrame
- BaseButton.BackgroundColor3 = Color3.new(0, 0, 0)
- BaseButton.BorderSizePixel = 0
- BaseButton.Position = UDim2.new(0, 0, 0.00949999969, 0)
- BaseButton.Size = UDim2.new(1, 0, 0.000500000024, 0)
- BaseButton.ZIndex = 3
- BaseButton.Font = Enum.Font.ArialBold
- BaseButton.FontSize = Enum.FontSize.Size18
- BaseButton.Text = "Base Kit"
- BaseButton.TextColor3 = Color3.new(1, 1, 1)
- BaseButton.TextSize = 18
- FoodButton.Name = "FoodButton"
- FoodButton.Parent = KitsFrame
- FoodButton.BackgroundColor3 = Color3.new(0, 0, 0)
- FoodButton.BorderSizePixel = 0
- FoodButton.Position = UDim2.new(0, 0, 0.00999999978, 0)
- FoodButton.Size = UDim2.new(1, 0, 0.000500000024, 0)
- FoodButton.ZIndex = 3
- FoodButton.Font = Enum.Font.ArialBold
- FoodButton.FontSize = Enum.FontSize.Size18
- FoodButton.Text = "Food Kit"
- FoodButton.TextColor3 = Color3.new(1, 1, 1)
- FoodButton.TextSize = 18
- PlayersLabel.Name = "PlayersLabel"
- PlayersLabel.Parent = MainFrame
- PlayersLabel.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
- PlayersLabel.BorderColor3 = Color3.new(1, 1, 1)
- PlayersLabel.BorderSizePixel = 2
- PlayersLabel.Size = UDim2.new(0.400000006, 0, 0.100000001, 0)
- PlayersLabel.ZIndex = 2
- PlayersLabel.Font = Enum.Font.SourceSansSemibold
- PlayersLabel.FontSize = Enum.FontSize.Size24
- PlayersLabel.Text = "Players"
- PlayersLabel.TextColor3 = Color3.new(1, 1, 1)
- PlayersLabel.TextSize = 24
- ItemsLabel.Name = "ItemsLabel"
- ItemsLabel.Parent = MainFrame
- ItemsLabel.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
- ItemsLabel.BorderColor3 = Color3.new(1, 1, 1)
- ItemsLabel.BorderSizePixel = 2
- ItemsLabel.Position = UDim2.new(0.400000006, 0, 0, 0)
- ItemsLabel.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
- ItemsLabel.ZIndex = 2
- ItemsLabel.Font = Enum.Font.SourceSansSemibold
- ItemsLabel.FontSize = Enum.FontSize.Size24
- ItemsLabel.Text = "Items"
- ItemsLabel.TextColor3 = Color3.new(1, 1, 1)
- ItemsLabel.TextSize = 24
- KitsLabel.Name = "KitsLabel"
- KitsLabel.Parent = MainFrame
- KitsLabel.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
- KitsLabel.BorderColor3 = Color3.new(1, 1, 1)
- KitsLabel.BorderSizePixel = 2
- KitsLabel.Position = UDim2.new(0.699999988, 0, 0, 0)
- KitsLabel.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
- KitsLabel.ZIndex = 3
- KitsLabel.Font = Enum.Font.SourceSansSemibold
- KitsLabel.FontSize = Enum.FontSize.Size24
- KitsLabel.Text = "Kits"
- KitsLabel.TextColor3 = Color3.new(1, 1, 1)
- KitsLabel.TextSize = 24
- ItemsSearchBox.Name = "ItemsSearchBox"
- ItemsSearchBox.Parent = MainFrame
- ItemsSearchBox.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
- ItemsSearchBox.BorderColor3 = Color3.new(1, 1, 1)
- ItemsSearchBox.BorderSizePixel = 2
- ItemsSearchBox.Position = UDim2.new(0.400000006, 0, 0.100000001, 0)
- ItemsSearchBox.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
- ItemsSearchBox.Font = Enum.Font.SourceSansBold
- ItemsSearchBox.FontSize = Enum.FontSize.Size14
- ItemsSearchBox.Text = "Type here to start searching."
- ItemsSearchBox.TextColor3 = Color3.new(1, 1, 1)
- ItemsSearchBox.TextScaled = true
- ItemsSearchBox.TextSize = 14
- ItemsSearchBox.TextWrapped = true
- TitleLabel.Name = "TitleLabel"
- TitleLabel.Parent = DecoFrame
- TitleLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TitleLabel.BackgroundTransparency = 1
- TitleLabel.BorderSizePixel = 0
- TitleLabel.Position = UDim2.new(0.049926579, 0, 0.0391198061, 0)
- TitleLabel.Size = UDim2.new(0.899999976, 0, 0.100000001, 0)
- TitleLabel.Font = Enum.Font.SourceSansSemibold
- TitleLabel.FontSize = Enum.FontSize.Size32
- TitleLabel.Text = "Cosette - Apoc Rising Item Spawner"
- TitleLabel.TextColor3 = Color3.new(1, 1, 1)
- TitleLabel.TextSize = 32
- TransparencySlider.Name = "TransparencySlider"
- TransparencySlider.Parent = DecoFrame
- TransparencySlider.BackgroundColor3 = Color3.new(1, 1, 1)
- TransparencySlider.BorderSizePixel = 0
- TransparencySlider.Position = UDim2.new(0.100000001, 0, 0.925000012, 0)
- TransparencySlider.Size = UDim2.new(0.800000012, 0, 0.0500000007, 0)
- TransparencyFill.Name = "TransparencyFill"
- TransparencyFill.Parent = TransparencySlider
- TransparencyFill.BackgroundColor3 = Color3.new(0, 0, 0)
- TransparencyFill.BorderSizePixel = 0
- TransparencyFill.Size = UDim2.new(0, 0, 1, 0)
- WhoToAffect = Instance.new("StringValue")
- GlobalTrans = Instance.new("NumberValue")
- -- [[ FIXES ]] --
- game.Lighting.LootDrops.Patriot.PrimaryPart = game.Lighting.LootDrops.Patriot.Model.Head
- game.Lighting.LootDrops.Katana.PrimaryPart = game.Lighting.LootDrops.Katana.Model.Head
- -- [[ FIXES END ]] --
- -- [[ FUNCTIONS ]] --
- function spawnitem(tospawn,times)
- for i=1,times do
- local item = game.Lighting.LootDrops:findFirstChild(tospawn)
- game.Workspace.Remote.PlaceMaterial:FireServer(item, game.Players:findFirstChild(WhoToAffect.Value).Character.Torso.Position-item.PrimaryPart.Position + Vector3.new(math.random(-10,10),1,math.random(-10,10)))
- wait()
- end
- end
- -- [[ FUNCTIONS END ]] --
- -- [[ TRANSPARENCY SLIDER START ]] --
- spawn (function()
- while true do
- TransparencySlider.MouseMoved:connect(function (x,y)
- local newval = ((x - TransparencySlider.AbsolutePosition.x) / TransparencySlider.AbsoluteSize.x)
- GlobalTrans.Value = newval
- TransparencyFill.Size = UDim2.new(newval,0,1,0)
- DecoFrame.Transparency = newval*0.8
- MainFrame.Transparency = newval*0.8
- TransparencySlider.Transparency = newval*0.9
- TransparencyFill.Transparency = newval*0.9
- ItemsFrame.Transparency = newval*0.8
- KitsFrame.Transparency = newval*0.8
- PlayersFrame.Transparency = newval*0.8
- ItemsLabel.Transparency = newval*0.8
- KitsLabel.Transparency = newval*0.8
- PlayersLabel.Transparency = newval*0.8
- TitleLabel.TextTransparency = newval*0.8
- local children = PlayersFrame:GetChildren()
- local children2 = ItemsFrame:GetChildren()
- local children3 = KitsFrame:GetChildren()
- for i =1, #children do
- children[i].BackgroundTransparency = newval*0.8
- children[i].TextTransparency = newval*0.8
- end
- for i =1, #children2 do
- children2[i].BackgroundTransparency = newval*0.8
- children2[i].TextTransparency = newval*0.8
- end
- for i =1, #children3 do
- children3[i].BackgroundTransparency = newval*0.8
- children3[i].TextTransparency = newval*0.8
- end
- end)
- wait(1.5)
- end
- end)
- -- [[ TRANSPARENCY SLIDER END ]] --
- -- [[ LOAD PLAYERS START ]] --
- function update()
- PlayersFrame:ClearAllChildren()
- local currentPos = UDim2.new(0,0,0,0)
- for _,v in pairs(game.Players:GetPlayers()) do
- local plrbutton = Instance.new("TextButton")
- plrbutton.Name = "PlayerButton"
- plrbutton.Parent = PlayersFrame
- plrbutton.BackgroundColor3 = Color3.fromRGB(0,0,0)
- plrbutton.BorderSizePixel = 0
- plrbutton.Size = UDim2.new(1,0,0.0005,0)
- plrbutton.Position = currentPos
- plrbutton.Font = Enum.Font.ArialBold
- plrbutton.FontSize = Enum.FontSize.Size18
- plrbutton.Text = v.Name
- plrbutton.TextSize = 18
- plrbutton.ZIndex = 3
- plrbutton.BackgroundTransparency = GlobalTrans.Value*0.8
- plrbutton.TextTransparency = GlobalTrans.Value*0.8
- plrbutton.TextColor3 = Color3.fromRGB(255,255,255)
- currentPos = currentPos + UDim2.new(0,0,0.0005,0)
- plrbutton.MouseButton1Down:connect(function()
- WhoToAffect.Value = plrbutton.Text
- end)
- end
- end
- update()
- game.Players.PlayerAdded:connect(function()
- update()
- end)
- game.Players.PlayerRemoving:connect(function()
- update()
- end)
- -- [[ LOAD PLAYERS END ]] --
- -- [[ LOAD ITEMS ]] --
- function Search(Text)
- local tabl = {}
- local currentPos = UDim2.new(0,0,0,0)
- for _,v in pairs(game.Lighting.LootDrops:GetChildren()) do
- if v.Name:find(Text) then
- local itembutton = Instance.new("TextButton")
- itembutton.Name = "ItemButton"
- itembutton.Parent = ItemsFrame
- itembutton.BackgroundColor3 = Color3.fromRGB(0,0,0)
- itembutton.BorderSizePixel = 0
- itembutton.Size = UDim2.new(1,0,0.0005,0)
- itembutton.Position = currentPos
- itembutton.Font = Enum.Font.ArialBold
- itembutton.FontSize = Enum.FontSize.Size18
- itembutton.Text = v.Name
- itembutton.TextSize = 18
- itembutton.ZIndex = 3
- itembutton.TextColor3 = Color3.fromRGB(255,255,255)
- currentPos = currentPos + UDim2.new(0,0,0.0005,0)
- itembutton.MouseButton1Down:connect(function()
- spawnitem(v.Name,1)
- end)
- end
- tabl[#tabl+1] = v
- end
- return tabl
- end
- ItemsSearchBox.Changed:connect(function(Val)
- if Val == "Text" then
- ItemsFrame:ClearAllChildren()
- Search(ItemsSearchBox.Text)
- end
- end)
- -- [[ FINISH LOADING ITEMS ]] --
- -- [[ LOAD KITS ]] --
- local def1 = {"MilitaryPackBlack","ACOG","Suppressor762","Grip","M14Ammo50","BloodBag"}
- function sdef1()
- spawnitem(def1[1],1)
- spawnitem(def1[2],1)
- spawnitem(def1[3],1)
- spawnitem(def1[4],1)
- spawnitem(def1[5],8)
- spawnitem(def1[6],8)
- end
- local def2 = {"MilitaryPackBlack","ACOG","Suppressor545","AK47Ammo75","BloodBag"}
- function sdef2()
- spawnitem(def2[1],1)
- spawnitem(def2[2],1)
- spawnitem(def2[3],1)
- spawnitem(def2[4],8)
- spawnitem(def2[5],8)
- end
- local def3 = {"MilitaryPackBlack","ACOG","Suppressor556","STANAGAmmo100","BloodBag"}
- function sdef3()
- spawnitem(def3[1],1)
- spawnitem(def3[2],1)
- spawnitem(def3[3],1)
- spawnitem(def3[4],8)
- spawnitem(def3[5],8)
- end
- FALButton.MouseButton1Down:connect(function()
- sdef1()
- spawnitem("FAL",1)
- end)
- M14Button.MouseButton1Down:connect(function()
- sdef1()
- spawnitem("M14",1)
- end)
- M17Button.MouseButton1Down:connect(function()
- sdef1()
- spawnitem("M17",1)
- end)
- G3Button.MouseButton1Down:connect(function()
- sdef1()
- spawnitem("G3",1)
- end)
- HK21Button.MouseButton1Down:connect(function()
- sdef1()
- spawnitem("HK21",1)
- end)
- HK417Button.MouseButton1Down:connect(function()
- sdef1()
- spawnitem("HK417",1)
- end)
- AK47Button.MouseButton1Down:connect(function()
- sdef2()
- spawnitem("AK-47",1)
- end)
- AKMButton.MouseButton1Down:connect(function()
- sdef2()
- spawnitem("AKM",1)
- end)
- AK108Button.MouseButton1Down:connect(function()
- sdef2()
- spawnitem("AK-108",1)
- end)
- AK12Button.MouseButton1Down:connect(function()
- sdef2()
- spawnitem("AK-12",1)
- end)
- RPKButton.MouseButton1Down:connect(function()
- sdef2()
- spawnitem("RPK",1)
- end)
- OTs14Button.MouseButton1Down:connect(function()
- sdef2()
- spawnitem("OTs-14",1)
- end)
- PatriotButton.MouseButton1Down:connect(function()
- sdef3()
- spawnitem("Patriot",1)
- end)
- SCARLButton.MouseButton1Down:connect(function()
- sdef3()
- spawnitem("SCAR-L",1)
- end)
- G36KButton.MouseButton1Down:connect(function()
- sdef3()
- spawnitem("G36K",1)
- end)
- M4A1Button.MouseButton1Down:connect(function()
- sdef3()
- spawnitem("M4A1",1)
- end)
- GadgetsButton.MouseButton1Down:connect(function()
- spawnitem("Watch",1)
- spawnitem("Compass",1)
- spawnitem("Map",1)
- spawnitem("GPS",1)
- spawnitem("OmniLight",1)
- spawnitem("Radio",1)
- spawnitem("C4Detonator",1)
- end)
- HealthButton.MouseButton1Down:connect(function()
- spawnitem("BloodBag",6)
- spawnitem("Painkillers",6)
- end)
- CarRepairButton.MouseButton1Down:connect(function()
- spawnitem("ReinforcedWheel",4)
- spawnitem("Engine")
- spawnitem("FuelTank")
- spawnitem("ScrapMetal",3)
- spawnitem("AmorPlates",8)
- spawnitem("BallisticGlass",2)
- end)
- BaseButton.MouseButton1Down:connect(function()
- spawnitem("Material5",4)
- spawnitem("Material3",4)
- spawnitem("Material7",2)
- spawnitem("LargeCrate",4)
- end)
- FoodButton.MouseButton1Down:connect(function()
- spawnitem("MRE",6)
- end)
- -- [[ FINISH LOADING KITS ]] --
- -- [[ START LOADING TOGGLE OPEN ]] --
- local inputHandler = game:GetService("UserInputService")
- inputHandler.InputBegan:connect(function(inp)
- local itype = inp.UserInputType
- local key = inp.KeyCode
- if itype == Enum.UserInputType.Keyboard then
- if key == Enum.KeyCode.LeftAlt then
- if DecoFrame.Visible == true then
- DecoFrame.Visible = false
- else
- DecoFrame.Visible = true
- end
- end
- end
- end)
- -- [[ DONE LOADING ]] --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement