Advertisement
mr2meows

minors

Mar 18th, 2023 (edited)
785
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.86 KB | None | 0 0
  1. --bgtl (better gui to lua) made by "Cozapierdolonychuj" on roblox
  2. local MainUIElements = {}
  3. MainUIElements["chatgui"] = Instance.new("ScreenGui")
  4. MainUIElements["chatbox"] = Instance.new("TextBox")
  5. MainUIElements["chatgui"].ResetOnSpawn = false
  6. MainUIElements["chatgui"].Archivable = true
  7. MainUIElements["chatgui"].Name = "chatgui"
  8. MainUIElements["chatgui"].ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  9. MainUIElements["chatbox"].Archivable = true
  10. MainUIElements["chatbox"].Name = "chatbox"
  11. MainUIElements["chatbox"].Parent = MainUIElements["chatgui"]
  12. MainUIElements["chatbox"].CursorPosition = -1
  13. MainUIElements["chatbox"].PlaceholderColor3 = Color3.fromRGB(178.49999696016312,178.49999696016312,178.49999696016312)
  14. MainUIElements["chatbox"].ZIndex = 1
  15. MainUIElements["chatbox"].BackgroundColor3 = Color3.fromRGB(170.0000050663948,0,255)
  16. MainUIElements["chatbox"].AutomaticSize = Enum.AutomaticSize.None
  17. MainUIElements["chatbox"].TextSize = 14
  18. MainUIElements["chatbox"].ClipsDescendants = false
  19. MainUIElements["chatbox"].BorderColor3 = Color3.fromRGB(27.000002190470695,42.000001296401024,53.000004440546036)
  20. MainUIElements["chatbox"].Text = "enter text here"
  21. MainUIElements["chatbox"].Font = Enum.Font.Cartoon
  22. MainUIElements["chatbox"].BackgroundTransparency = 0.5
  23. MainUIElements["chatbox"].Position = UDim2.new(0.669049263, 0,0.78592813, 0)
  24. MainUIElements["chatbox"].Size = UDim2.new(0, 200,0, 50)
  25. MainUIElements["chatgui"].Parent = owner:WaitForChild("PlayerGui")
  26. local function script_qesxshhkzg_handler()
  27.     local script = Instance.new("Script",MainUIElements["chatgui"])
  28.     MainUIElements["handler"] = script
  29.     script.Name = "handler"
  30.     script.Archivable = true
  31.     script.Parent.chatbox:GetPropertyChangedSignal("Text"):Connect(function()
  32.         game:GetService("Chat"):Chat(owner.Character, script.Parent.chatbox.Text)
  33.     end)
  34. end
  35. coroutine.wrap(script_qesxshhkzg_handler)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement