Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Lib = {}
- local channel = game:GetService("TextChatService"):WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
- wait(3)
- channel:DisplaySystemMessage("<font color='rgb(145, 73, 0)'>[SHIT] Welcome to the SHITTEST bedwars script, press P or click the button on your right screen to open the menu..</font>")
- function Lib:CreateShit()
- local Shit = {}
- local ShtClient = Instance.new("ScreenGui")
- table.insert(Shit, ShtClient)
- local MainFrame = Instance.new("Frame")
- table.insert(Shit, MainFrame)
- local Holders = Instance.new("ScrollingFrame")
- table.insert(Shit, Holders)
- local UIGridLayout = Instance.new("UIGridLayout")
- table.insert(Shit, UIGridLayout)
- local UIPadding = Instance.new("UIPadding")
- table.insert(Shit, UIPadding)
- local BackgroundImage = Instance.new("ImageLabel")
- table.insert(Shit, BackgroundImage)
- local SearchBar = Instance.new("TextBox")
- table.insert(Shit, SearchBar)
- local Logo = Instance.new("ImageLabel")
- table.insert(Shit, Logo)
- local Versions = Instance.new("TextLabel")
- table.insert(Shit, Versions)
- local OpenGUI = Instance.new("ImageButton")
- table.insert(Shit, OpenGUI)
- local UICorner_3 = Instance.new("UICorner")
- table.insert(Shit, UICorner_3)
- ShtClient.Name = "ShitB10"
- ShtClient.ResetOnSpawn = false
- ShtClient.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- if game:GetService("RunService"):IsStudio() then
- ShtClient.Parent = game.Players.LocalPlayer.PlayerGui
- else
- ShtClient.Parent = game:GetService("CoreGui")
- end
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = ShtClient
- MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- MainFrame.BackgroundColor3 = Color3.new(0.384314, 0.192157, 0)
- MainFrame.BorderColor3 = Color3.new(0.294118, 0.14902, 0)
- MainFrame.BorderSizePixel = 3
- MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- MainFrame.Size = UDim2.new(0, 310, 0, 230)
- MainFrame.Visible = false
- Holders.Name = "Holders"
- Holders.Parent = MainFrame
- Holders.Active = true
- Holders.BackgroundColor3 = Color3.new(1, 1, 1)
- Holders.BackgroundTransparency = 1
- Holders.BorderColor3 = Color3.new(0, 0, 0)
- Holders.BorderSizePixel = 0
- Holders.Size = UDim2.new(1, 0, 1, 0)
- Holders.CanvasSize = UDim2.new(0, 0, 5, 0)
- Holders.ScrollBarThickness = 8
- UIGridLayout.Parent = Holders
- UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout.CellSize = UDim2.new(0, 125, 0, 28)
- BackgroundImage.Name = "BackgroundImage"
- BackgroundImage.Parent = MainFrame
- BackgroundImage.BackgroundColor3 = Color3.new(1, 1, 1)
- BackgroundImage.BackgroundTransparency = 1
- BackgroundImage.BorderColor3 = Color3.new(0, 0, 0)
- BackgroundImage.BorderSizePixel = 0
- BackgroundImage.Size = UDim2.new(1, 0, 1, 0)
- BackgroundImage.ZIndex = -1
- BackgroundImage.Image = "rbxassetid://362382502"
- SearchBar.Name = "SearchBar"
- SearchBar.Parent = MainFrame
- SearchBar.BackgroundColor3 = Color3.new(1, 1, 1)
- SearchBar.BackgroundTransparency = 1
- SearchBar.BorderColor3 = Color3.new(0, 0, 0)
- SearchBar.BorderSizePixel = 0
- SearchBar.Position = UDim2.new(0, 0, -0.0836974755, 0)
- SearchBar.Size = UDim2.new(0, 310, 0, 18)
- SearchBar.Font = Enum.Font.SourceSans
- SearchBar.PlaceholderColor3 = Color3.new(0.372549, 0.188235, 0)
- SearchBar.PlaceholderText = "..."
- SearchBar.Text = ""
- SearchBar.TextColor3 = Color3.new(0.372549, 0.188235, 0)
- SearchBar.TextScaled = true
- SearchBar.TextSize = 14
- SearchBar.TextWrapped = true
- SearchBar:GetPropertyChangedSignal("Text"):Connect(function()
- local InputText: string = string.lower(SearchBar.Text)
- for _, Button: Instance in Holders:GetChildren() do
- if Button:IsA("TextButton") or Button:IsA("ImageButton") then
- Button.Visible = string.find(string.lower(Button.Name), InputText, 1, true) and true or false
- end
- end
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.P then
- MainFrame.Visible = not MainFrame.Visible
- end
- end)
- Logo.Name = "Logo"
- Logo.Parent = ShtClient
- Logo.BackgroundColor3 = Color3.new(1, 1, 1)
- Logo.BackgroundTransparency = 1
- Logo.BorderColor3 = Color3.new(0, 0, 0)
- Logo.BorderSizePixel = 0
- Logo.Visible = true
- Logo.Position = UDim2.new(0.0125195617, 0, 0.0167130921, 0)
- Logo.Size = UDim2.new(0, 50, 0, 50)
- Logo.Image = "rbxassetid://1622142429"
- Versions.Name = "Versions"
- Versions.Parent = Logo
- Versions.BackgroundColor3 = Color3.new(1, 1, 1)
- Versions.BackgroundTransparency = 1
- Versions.BorderColor3 = Color3.new(0, 0, 0)
- Versions.BorderSizePixel = 0
- Versions.Position = UDim2.new(0.419999987, 0, 0.410289615, 0)
- Versions.Size = UDim2.new(0, 95, 0, 23)
- Versions.Font = Enum.Font.SourceSansBold
- Versions.Text = "B10"
- Versions.TextColor3 = Color3.new(0.294118, 0.14902, 0)
- Versions.TextScaled = true
- Versions.TextSize = 14
- Versions.TextWrapped = true
- UIPadding.Parent = Holders
- UIPadding.PaddingLeft = UDim.new(0, 5)
- UIPadding.PaddingTop = UDim.new(0, 5)
- OpenGUI.Name = "OpenGUI"
- OpenGUI.Parent = ShtClient
- OpenGUI.BackgroundColor3 = Color3.new(1, 1, 1)
- OpenGUI.BorderColor3 = Color3.new(0, 0, 0)
- OpenGUI.BorderSizePixel = 0
- OpenGUI.Position = UDim2.new(0.940862775, 0, 0.361045748, 0)
- OpenGUI.Size = UDim2.new(0, 43, 0, 39)
- OpenGUI.Image = "rbxassetid://7626814737"
- OpenGUI.MouseButton1Click:Connect(function()
- MainFrame.Visible = not MainFrame.Visible
- end)
- function Shit:CreateToggles(ToggleName, Default, Keybind, callback)
- local Toggles = {Enabled = false}
- local TextButton = Instance.new("TextButton")
- table.insert(Toggles, TextButton)
- local UICorner = Instance.new("UICorner")
- table.insert(Toggles, UICorner)
- TextButton.Parent = Holders
- TextButton.BackgroundColor3 = Color3.new(0.294118, 0.14902, 0)
- TextButton.BorderColor3 = Color3.new(0, 0, 0)
- TextButton.BorderSizePixel = 0
- TextButton.Size = UDim2.new(0, 85, 0, 28)
- TextButton.Text = ToggleName
- TextButton.Name = ToggleName
- TextButton.Font = Enum.Font.SourceSans
- TextButton.TextColor3 = Color3.new(1, 0, 0)
- TextButton.TextSize = 14
- UICorner.Parent = TextButton
- UICorner.CornerRadius = UDim.new(0, 4)
- local function ChangeColor()
- if Toggles.Enabled then
- TextButton.BackgroundColor3 = Color3.new(0.568627, 0.286275, 0)
- TextButton.TextColor3 = Color3.new(0, 1, 0)
- else
- TextButton.BackgroundColor3 = Color3.new(0.294118, 0.14902, 0)
- TextButton.TextColor3 = Color3.new(1, 0, 0)
- end
- end
- if Default then
- Toggles.Enabled = not Toggles.Enabled
- ChangeColor()
- if callback then
- callback(Toggles.Enabled)
- end
- end
- TextButton.MouseButton1Click:Connect(function()
- Toggles.Enabled = not Toggles.Enabled
- ChangeColor()
- if callback then
- callback(Toggles.Enabled)
- end
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- if Keybind then
- if input.KeyCode == Enum.KeyCode[Keybind] then
- Toggles.Enabled = not Toggles.Enabled
- ChangeColor()
- if callback then
- callback(Toggles.Enabled)
- end
- end
- end
- end)
- function Shit:CreateTextBox(TextBoxName, PlaceHolderText, callback)
- local TextBox = Instance.new("TextBox")
- TextBox.Parent = Holders
- TextBox.BackgroundColor3 = Color3.fromRGB(240, 173, 15)
- TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextBox.BorderSizePixel = 0
- TextBox.Size = UDim2.new(0, 200, 0, 50)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.Text = ""
- TextBox.Name = TextBoxName
- TextBox.TextColor3 = Color3.new(0, 1, 0)
- TextBox.TextSize = 14.000
- TextBox.PlaceholderText = PlaceHolderText
- TextBox.Changed:Connect(function(property)
- if property == "Text" then
- callback(TextBox.Text)
- end
- end)
- return TextBox
- end
- return Toggles
- end
- return Shit
- end
- return Lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement