Advertisement
MawinCK

Roblox TextBox Script (#988) For youtuber and Script Showcase

Nov 20th, 2023
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local gui = Instance.new("ScreenGui")
  3. gui.Name = "BigGUI"
  4. gui.Parent = player.PlayerGui
  5.  
  6. local bigFrame = Instance.new("Frame")
  7. bigFrame.Size = UDim2.new(1, 0, 1, 0)
  8. bigFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  9. bigFrame.Visible = false
  10. bigFrame.Parent = gui
  11.  
  12. local textBox = Instance.new("TextBox")
  13. textBox.Size = UDim2.new(0.9, 0, 0.9, 0)
  14. textBox.Position = UDim2.new(0.05, 0, 0.05, 0)
  15. textBox.BackgroundColor3 = Color3.new(1, 1, 1)
  16. textBox.TextWrapped = true
  17. textBox.MultiLine = true
  18. textBox.Parent = bigFrame
  19.  
  20. local creditLabel = Instance.new("TextLabel")
  21. creditLabel.Size = UDim2.new(1, 0, 0, 30)
  22. creditLabel.Position = UDim2.new(0, 0, 1, -30)
  23. creditLabel.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  24. creditLabel.TextColor3 = Color3.new(1, 1, 1)
  25. creditLabel.TextSize = 20
  26. creditLabel.Font = Enum.Font.SourceSans
  27. creditLabel.Text = "Owner: MawinCK | Scripter: ChatGPT"
  28. creditLabel.Parent = bigFrame
  29.  
  30. local smallGUI = Instance.new("Frame")
  31. smallGUI.Size = UDim2.new(0.1, 0, 0.1, 0)
  32. smallGUI.Position = UDim2.new(0.9, 0, 0.1, 0)
  33. smallGUI.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  34. smallGUI.Parent = gui
  35.  
  36. local openButton = Instance.new("TextButton")
  37. openButton.Size = UDim2.new(1, 0, 1, 0)
  38. openButton.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  39. openButton.TextColor3 = Color3.new(1, 1, 1)
  40. openButton.TextSize = 20
  41. openButton.Font = Enum.Font.SourceSans
  42. openButton.Text = "Open"
  43. openButton.Parent = smallGUI
  44.  
  45. local isOpen = false
  46.  
  47. local function toggleGUI()
  48. if isOpen then
  49. bigFrame.Visible = false
  50. smallGUI.Size = UDim2.new(0.1, 0, 0.1, 0)
  51. smallGUI.Position = UDim2.new(0.9, 0, 0.1, 0)
  52. openButton.Text = "Open"
  53. else
  54. bigFrame.Visible = true
  55. smallGUI.Size = UDim2.new(0.05, 0, 0.05, 0)
  56. smallGUI.Position = UDim2.new(0.95, 0, 0, 0)
  57. openButton.Text = "Off"
  58. end
  59. isOpen = not isOpen
  60. end
  61.  
  62. openButton.MouseButton1Click:Connect(toggleGUI)
  63.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement