Advertisement
1DollarH4ck

ShitLibrary

Jun 25th, 2024 (edited)
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. local Lib = {}
  2. local channel = game:GetService("TextChatService"):WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
  3. wait(3)
  4. 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>")
  5.  
  6. function Lib:CreateShit()
  7. local Shit = {}
  8. local ShtClient = Instance.new("ScreenGui")
  9. table.insert(Shit, ShtClient)
  10. local MainFrame = Instance.new("Frame")
  11. table.insert(Shit, MainFrame)
  12. local Holders = Instance.new("ScrollingFrame")
  13. table.insert(Shit, Holders)
  14. local UIGridLayout = Instance.new("UIGridLayout")
  15. table.insert(Shit, UIGridLayout)
  16. local UIPadding = Instance.new("UIPadding")
  17. table.insert(Shit, UIPadding)
  18. local BackgroundImage = Instance.new("ImageLabel")
  19. table.insert(Shit, BackgroundImage)
  20. local SearchBar = Instance.new("TextBox")
  21. table.insert(Shit, SearchBar)
  22. local Logo = Instance.new("ImageLabel")
  23. table.insert(Shit, Logo)
  24. local Versions = Instance.new("TextLabel")
  25. table.insert(Shit, Versions)
  26. local OpenGUI = Instance.new("ImageButton")
  27. table.insert(Shit, OpenGUI)
  28. local UICorner_3 = Instance.new("UICorner")
  29. table.insert(Shit, UICorner_3)
  30.  
  31. ShtClient.Name = "ShitB10"
  32. ShtClient.ResetOnSpawn = false
  33. ShtClient.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  34. if game:GetService("RunService"):IsStudio() then
  35. ShtClient.Parent = game.Players.LocalPlayer.PlayerGui
  36. else
  37. ShtClient.Parent = game:GetService("CoreGui")
  38. end
  39.  
  40. MainFrame.Name = "MainFrame"
  41. MainFrame.Parent = ShtClient
  42. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  43. MainFrame.BackgroundColor3 = Color3.new(0.384314, 0.192157, 0)
  44. MainFrame.BorderColor3 = Color3.new(0.294118, 0.14902, 0)
  45. MainFrame.BorderSizePixel = 3
  46. MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  47. MainFrame.Size = UDim2.new(0, 310, 0, 230)
  48. MainFrame.Visible = false
  49.  
  50. Holders.Name = "Holders"
  51. Holders.Parent = MainFrame
  52. Holders.Active = true
  53. Holders.BackgroundColor3 = Color3.new(1, 1, 1)
  54. Holders.BackgroundTransparency = 1
  55. Holders.BorderColor3 = Color3.new(0, 0, 0)
  56. Holders.BorderSizePixel = 0
  57. Holders.Size = UDim2.new(1, 0, 1, 0)
  58. Holders.CanvasSize = UDim2.new(0, 0, 5, 0)
  59. Holders.ScrollBarThickness = 8
  60.  
  61. UIGridLayout.Parent = Holders
  62. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  63. UIGridLayout.CellSize = UDim2.new(0, 125, 0, 28)
  64.  
  65. BackgroundImage.Name = "BackgroundImage"
  66. BackgroundImage.Parent = MainFrame
  67. BackgroundImage.BackgroundColor3 = Color3.new(1, 1, 1)
  68. BackgroundImage.BackgroundTransparency = 1
  69. BackgroundImage.BorderColor3 = Color3.new(0, 0, 0)
  70. BackgroundImage.BorderSizePixel = 0
  71. BackgroundImage.Size = UDim2.new(1, 0, 1, 0)
  72. BackgroundImage.ZIndex = -1
  73. BackgroundImage.Image = "rbxassetid://362382502"
  74.  
  75. SearchBar.Name = "SearchBar"
  76. SearchBar.Parent = MainFrame
  77. SearchBar.BackgroundColor3 = Color3.new(1, 1, 1)
  78. SearchBar.BackgroundTransparency = 1
  79. SearchBar.BorderColor3 = Color3.new(0, 0, 0)
  80. SearchBar.BorderSizePixel = 0
  81. SearchBar.Position = UDim2.new(0, 0, -0.0836974755, 0)
  82. SearchBar.Size = UDim2.new(0, 310, 0, 18)
  83. SearchBar.Font = Enum.Font.SourceSans
  84. SearchBar.PlaceholderColor3 = Color3.new(0.372549, 0.188235, 0)
  85. SearchBar.PlaceholderText = "..."
  86. SearchBar.Text = ""
  87. SearchBar.TextColor3 = Color3.new(0.372549, 0.188235, 0)
  88. SearchBar.TextScaled = true
  89. SearchBar.TextSize = 14
  90. SearchBar.TextWrapped = true
  91. SearchBar:GetPropertyChangedSignal("Text"):Connect(function()
  92. local InputText: string = string.lower(SearchBar.Text)
  93. for _, Button: Instance in Holders:GetChildren() do
  94. if Button:IsA("TextButton") or Button:IsA("ImageButton") then
  95. Button.Visible = string.find(string.lower(Button.Name), InputText, 1, true) and true or false
  96. end
  97. end
  98. end)
  99.  
  100. game:GetService("UserInputService").InputBegan:Connect(function(input)
  101. if input.KeyCode == Enum.KeyCode.P then
  102. MainFrame.Visible = not MainFrame.Visible
  103. end
  104. end)
  105.  
  106. Logo.Name = "Logo"
  107. Logo.Parent = ShtClient
  108. Logo.BackgroundColor3 = Color3.new(1, 1, 1)
  109. Logo.BackgroundTransparency = 1
  110. Logo.BorderColor3 = Color3.new(0, 0, 0)
  111. Logo.BorderSizePixel = 0
  112. Logo.Visible = true
  113. Logo.Position = UDim2.new(0.0125195617, 0, 0.0167130921, 0)
  114. Logo.Size = UDim2.new(0, 50, 0, 50)
  115. Logo.Image = "rbxassetid://1622142429"
  116.  
  117. Versions.Name = "Versions"
  118. Versions.Parent = Logo
  119. Versions.BackgroundColor3 = Color3.new(1, 1, 1)
  120. Versions.BackgroundTransparency = 1
  121. Versions.BorderColor3 = Color3.new(0, 0, 0)
  122. Versions.BorderSizePixel = 0
  123. Versions.Position = UDim2.new(0.419999987, 0, 0.410289615, 0)
  124. Versions.Size = UDim2.new(0, 95, 0, 23)
  125. Versions.Font = Enum.Font.SourceSansBold
  126. Versions.Text = "B10"
  127. Versions.TextColor3 = Color3.new(0.294118, 0.14902, 0)
  128. Versions.TextScaled = true
  129. Versions.TextSize = 14
  130. Versions.TextWrapped = true
  131.  
  132. UIPadding.Parent = Holders
  133. UIPadding.PaddingLeft = UDim.new(0, 5)
  134. UIPadding.PaddingTop = UDim.new(0, 5)
  135.  
  136. OpenGUI.Name = "OpenGUI"
  137. OpenGUI.Parent = ShtClient
  138. OpenGUI.BackgroundColor3 = Color3.new(1, 1, 1)
  139. OpenGUI.BorderColor3 = Color3.new(0, 0, 0)
  140. OpenGUI.BorderSizePixel = 0
  141. OpenGUI.Position = UDim2.new(0.940862775, 0, 0.361045748, 0)
  142. OpenGUI.Size = UDim2.new(0, 43, 0, 39)
  143. OpenGUI.Image = "rbxassetid://7626814737"
  144. OpenGUI.MouseButton1Click:Connect(function()
  145. MainFrame.Visible = not MainFrame.Visible
  146. end)
  147.  
  148. function Shit:CreateToggles(ToggleName, Default, Keybind, callback)
  149. local Toggles = {Enabled = false}
  150.  
  151. local TextButton = Instance.new("TextButton")
  152. table.insert(Toggles, TextButton)
  153. local UICorner = Instance.new("UICorner")
  154. table.insert(Toggles, UICorner)
  155.  
  156. TextButton.Parent = Holders
  157. TextButton.BackgroundColor3 = Color3.new(0.294118, 0.14902, 0)
  158. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  159. TextButton.BorderSizePixel = 0
  160. TextButton.Size = UDim2.new(0, 85, 0, 28)
  161. TextButton.Text = ToggleName
  162. TextButton.Name = ToggleName
  163. TextButton.Font = Enum.Font.SourceSans
  164. TextButton.TextColor3 = Color3.new(1, 0, 0)
  165. TextButton.TextSize = 14
  166.  
  167. UICorner.Parent = TextButton
  168. UICorner.CornerRadius = UDim.new(0, 4)
  169.  
  170. local function ChangeColor()
  171. if Toggles.Enabled then
  172. TextButton.BackgroundColor3 = Color3.new(0.568627, 0.286275, 0)
  173. TextButton.TextColor3 = Color3.new(0, 1, 0)
  174. else
  175. TextButton.BackgroundColor3 = Color3.new(0.294118, 0.14902, 0)
  176. TextButton.TextColor3 = Color3.new(1, 0, 0)
  177. end
  178. end
  179.  
  180. if Default then
  181. Toggles.Enabled = not Toggles.Enabled
  182. ChangeColor()
  183.  
  184. if callback then
  185. callback(Toggles.Enabled)
  186. end
  187. end
  188.  
  189. TextButton.MouseButton1Click:Connect(function()
  190. Toggles.Enabled = not Toggles.Enabled
  191. ChangeColor()
  192.  
  193. if callback then
  194. callback(Toggles.Enabled)
  195. end
  196. end)
  197.  
  198. game:GetService("UserInputService").InputBegan:Connect(function(input)
  199. if Keybind then
  200. if input.KeyCode == Enum.KeyCode[Keybind] then
  201. Toggles.Enabled = not Toggles.Enabled
  202. ChangeColor()
  203.  
  204. if callback then
  205. callback(Toggles.Enabled)
  206. end
  207. end
  208. end
  209. end)
  210.  
  211. function Shit:CreateTextBox(TextBoxName, PlaceHolderText, callback)
  212. local TextBox = Instance.new("TextBox")
  213. TextBox.Parent = Holders
  214. TextBox.BackgroundColor3 = Color3.fromRGB(240, 173, 15)
  215. TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  216. TextBox.BorderSizePixel = 0
  217. TextBox.Size = UDim2.new(0, 200, 0, 50)
  218. TextBox.Font = Enum.Font.SourceSans
  219. TextBox.Text = ""
  220. TextBox.Name = TextBoxName
  221. TextBox.TextColor3 = Color3.new(0, 1, 0)
  222. TextBox.TextSize = 14.000
  223. TextBox.PlaceholderText = PlaceHolderText
  224. TextBox.Changed:Connect(function(property)
  225. if property == "Text" then
  226. callback(TextBox.Text)
  227. end
  228. end)
  229. return TextBox
  230. end
  231. return Toggles
  232. end
  233. return Shit
  234. end
  235. return Lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement