Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local PlayerGui = Player.PlayerGui
- local Backpack = Player.Backpack
- local Remotes = game.ReplicatedStorage:WaitForChild("Remotes")
- local ScreenGui = Instance.new("ScreenGui",PlayerGui)
- ScreenGui.Name = "GearCH"
- ScreenGui.ResetOnSpawn = true
- local FrameBG = Instance.new("Frame",ScreenGui)
- FrameBG.Name = "BG"
- FrameBG.BackgroundColor3 = Color3.fromRGB(255,255,255)
- FrameBG.BorderSizePixel = 0
- FrameBG.Size = UDim2.new(0.185,0,0.442,0)
- FrameBG.Position = UDim2.new(0.252,0,0.263,0)
- local Title = Instance.new("TextLabel",FrameBG)
- Title.BackgroundColor3 = Color3.fromRGB(9,162,208)
- Title.BorderSizePixel = 0
- Title.Size = UDim2.new(1,0,0.196,0)
- Title.Position = UDim2.new(0,0,0,0)
- Title.Text = "Gear Insertor"
- Title.TextColor3 = Color3.fromRGB(255,255,255)
- Title.TextScaled = true
- Title.Font = Enum.Font.Code
- local Input = Instance.new("TextBox",FrameBG)
- Input.BackgroundColor3 = Color3.fromRGB(50,50,50)
- Input.BorderSizePixel = 10
- Input.Size = UDim2.new(0.729,0,0.1,0)
- Input.Position = UDim2.new(0.135,0,0.393,0)
- Input.TextColor3 = Color3.fromRGB(255,255,255)
- Input.PlaceholderText = "GearID"
- Input.PlaceholderColor3 = Color3.fromRGB(200,200,200)
- Input.TextScaled = true
- Input.Font = Enum.Font.Code
- local GiveButton = Instance.new("TextButton",FrameBG)
- GiveButton.BackgroundColor3 = Color3.fromRGB(150,150,150)
- GiveButton.BorderSizePixel = 0
- GiveButton.Size = UDim2.new(0.613,0,0.18,0)
- GiveButton.Position = UDim2.new(0.191,0,0.611,0)
- GiveButton.Text = "Give!"
- GiveButton.TextColor3 = Color3.fromRGB(255,255,255)
- GiveButton.TextScaled = true
- GiveButton.Font = Enum.Font.Code
- local Close = Instance.new("TextButton",FrameBG)
- Close.BackgroundColor3 = Color3.fromRGB(255,0,0)
- Close.BorderSizePixel = 0
- Close.Size = UDim2.new(0.194,0, 0.128,0)
- Close.Position = UDim2.new(0,0, 0.871,0)
- Close.Text = "Close"
- Close.TextColor3 = Color3.fromRGB(255,255,255)
- Close.TextScaled = true
- Close.Font = Enum.Font.Code
- Close.ZIndex = 2
- Close.MouseButton1Click:Connect(function()
- for i, v in pairs(Player.PlayerGui:GetChildren()) do
- if v.Name == "GearCH" then
- v:Destroy()
- end
- end
- ScreenGui:Destroy()
- end)
- GiveButton.MouseButton1Click:Connect(function()
- spawn(function()
- Remotes.Gear:FireServer(tonumber(Input.Text))
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement