Advertisement
Bennysparky0819

Ropad - Roblox Notepad (Shitty & Simple)

Jul 5th, 2022
1,122
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local Ropad = Instance.new("ScreenGui")
  7. local Main = Instance.new("Frame")
  8. local UICorner = Instance.new("UICorner")
  9. local Toolbar = Instance.new("Frame")
  10. local Logo = Instance.new("ImageLabel")
  11. local Title = Instance.new("TextLabel")
  12. local CloseButton = Instance.new("ImageButton")
  13. local TextScroll = Instance.new("ScrollingFrame")
  14. local Text = Instance.new("TextBox")
  15. local OpenButton = Instance.new("TextButton")
  16.  
  17. --Properties:
  18.  
  19. Ropad.Name = "Ropad"
  20. Ropad.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  21. Ropad.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  22.  
  23. Main.Name = "Main"
  24. Main.Parent = Ropad
  25. Main.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  26. Main.BackgroundTransparency = 0.300
  27. Main.Position = UDim2.new(0.10295175, 0, 0.222427309, 0)
  28. Main.Size = UDim2.new(0, 173, 0, 207)
  29.  
  30. UICorner.Parent = Main
  31.  
  32. Toolbar.Name = "Toolbar"
  33. Toolbar.Parent = Main
  34. Toolbar.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  35. Toolbar.BorderSizePixel = 0
  36. Toolbar.Size = UDim2.new(0, 173, 0, 19)
  37.  
  38. Logo.Name = "Logo"
  39. Logo.Parent = Toolbar
  40. Logo.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  41. Logo.BackgroundTransparency = 1.000
  42. Logo.BorderColor3 = Color3.fromRGB(27, 42, 53)
  43. Logo.BorderSizePixel = 0
  44. Logo.Position = UDim2.new(-8.94069672e-08, 0, -0.0473681018, 0)
  45. Logo.Size = UDim2.new(0, 20, 0, 20)
  46. Logo.Image = "rbxassetid://732339893"
  47.  
  48. Title.Name = "Title"
  49. Title.Parent = Logo
  50. Title.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  51. Title.BackgroundTransparency = 1.000
  52. Title.Position = UDim2.new(1.54999995, 0, 0, 0)
  53. Title.Size = UDim2.new(0, 87, 0, 20)
  54. Title.Font = Enum.Font.SourceSans
  55. Title.Text = "Ropad - Roblox Notepad"
  56. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  57. Title.TextSize = 12.000
  58.  
  59. CloseButton.Name = "CloseButton"
  60. CloseButton.Parent = Toolbar
  61. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  62. CloseButton.BackgroundTransparency = 1.000
  63. CloseButton.BorderSizePixel = 0
  64. CloseButton.Position = UDim2.new(0.906936467, 0, 0.315789461, 0)
  65. CloseButton.Size = UDim2.new(0, 9, 0, 9)
  66. CloseButton.Image = "rbxassetid://4470396752"
  67. CloseButton.MouseButton1Down:connect(function()
  68. Main.Visible = false
  69. OpenButton.Visible = true
  70. OpenButton.Active = true
  71. end)
  72.  
  73. TextScroll.Name = "TextScroll"
  74. TextScroll.Parent = Main
  75. TextScroll.Active = true
  76. TextScroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  77. TextScroll.BackgroundTransparency = 1.000
  78. TextScroll.Position = UDim2.new(0.0346820801, 0, 0.0917874426, 0)
  79. TextScroll.Size = UDim2.new(0, 167, 0, 180)
  80. TextScroll.SizeConstraint = Enum.SizeConstraint.RelativeYY
  81. TextScroll.CanvasSize = UDim2.new(0, 0, 45, 0)
  82. TextScroll.ScrollBarThickness = 4
  83.  
  84. Text.Name = "Text"
  85. Text.Parent = TextScroll
  86. Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. Text.BackgroundTransparency = 1.000
  88. Text.Position = UDim2.new(0.011173225, 0, 0.00127783883, 0)
  89. Text.Size = UDim2.new(0, 148, 0, 187)
  90. Text.ClearTextOnFocus = false
  91. Text.Font = Enum.Font.SourceSans
  92. Text.PlaceholderText = "Write your notes here..."
  93. Text.Text = ""
  94. Text.TextColor3 = Color3.fromRGB(255, 255, 255)
  95. Text.TextSize = 14.000
  96. Text.TextWrapped = true
  97. Text.TextXAlignment = Enum.TextXAlignment.Left
  98. Text.TextYAlignment = Enum.TextYAlignment.Top
  99.  
  100. OpenButton.Name = "OpenButton"
  101. OpenButton.Parent = Ropad
  102. OpenButton.Active = false
  103. OpenButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  104. OpenButton.Position = UDim2.new(0, 0, 0.396681786, 0)
  105. OpenButton.Size = UDim2.new(0, 111, 0, 28)
  106. OpenButton.Visible = false
  107. OpenButton.Font = Enum.Font.GothamBold
  108. OpenButton.Text = "Open Ropad"
  109. OpenButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  110. OpenButton.TextSize = 14.000
  111. OpenButton.MouseButton1Down:connect(function()
  112. Main.Visible = true
  113. OpenButton.Visible = false
  114. OpenButton.Active = false
  115. end)
  116.  
  117. -- Scripts:
  118.  
  119. local function UFMG_fake_script() -- Text.LocalScript
  120.     local script = Instance.new('LocalScript', Text)
  121.  
  122.    
  123.     local textArea = script.Parent.Text
  124.     local scrollFrame = script.Parent
  125.    
  126.     textArea:GetPropertyChangedSignal("TextFits"):Connect(function()
  127.         while textArea.TextFits == false do
  128.             scrollFrame.CanvasSize = UDim2.new(0, 0, 0, scrollFrame.CanvasSize.Y.Offset + 16)
  129.             scrollFrame.CanvasPosition = Vector2.new(0, scrollFrame.CanvasSize.Y.Offset - scrollFrame.AbsoluteWindowSize.Y)
  130.         end
  131.     end)
  132.    
  133.     textArea:GetPropertyChangedSignal("TextBounds"):Connect(function()
  134.         if scrollFrame.CanvasSize.Y.Offset > textArea.TextBounds.Y + 16 then
  135.             scrollFrame.CanvasSize = UDim2.new(0, 0, 0, textArea.TextBounds.Y)
  136.             scrollFrame.CanvasPosition = Vector2.new(0, scrollFrame.CanvasSize.Y.Offset - scrollFrame.AbsoluteWindowSize.Y)
  137.         end
  138.     end)
  139. end
  140. coroutine.wrap(UFMG_fake_script)()
Advertisement
RAW Paste Data Copied
Advertisement