Rojhann10

Untitled

Jun 11th, 2025
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. -- Rojhann GUI V1 - Organized 3-Column Buttons
  2.  
  3. local player = game.Players.LocalPlayer
  4. local playerGui = player:WaitForChild("PlayerGui")
  5.  
  6. -- Avoid duplication
  7. if playerGui:FindFirstChild("RojhannGUI") then return end
  8.  
  9. -- Create GUI
  10. local screenGui = Instance.new("ScreenGui")
  11. screenGui.Name = "RojhannGUI"
  12. screenGui.ResetOnSpawn = false
  13. screenGui.Parent = playerGui
  14.  
  15. -- Main Frame
  16. local mainFrame = Instance.new("Frame")
  17. mainFrame.Size = UDim2.new(0, 600, 0, 400)
  18. mainFrame.Position = UDim2.new(0.5, -300, 0.5, -200)
  19. mainFrame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  20. mainFrame.BorderSizePixel = 0
  21. mainFrame.Active = true
  22. mainFrame.Draggable = true
  23. mainFrame.Name = "MainFrame"
  24. mainFrame.Parent = screenGui
  25.  
  26. -- Rounded frame
  27. local frameCorner = Instance.new("UICorner")
  28. frameCorner.CornerRadius = UDim.new(0, 20)
  29. frameCorner.Parent = mainFrame
  30.  
  31. -- Title Label
  32. local titleLabel = Instance.new("TextLabel")
  33. titleLabel.Size = UDim2.new(1, 0, 0, 50)
  34. titleLabel.Position = UDim2.new(0, 0, 0, 0)
  35. titleLabel.BackgroundTransparency = 1
  36. titleLabel.Text = "Rojhann GUI V1"
  37. titleLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  38. titleLabel.TextScaled = true
  39. titleLabel.Font = Enum.Font.SourceSansBold
  40. titleLabel.Parent = mainFrame
  41.  
  42. -- Create a rounded button
  43. local function createButton(text, posX, posY)
  44. local button = Instance.new("TextButton")
  45. button.Size = UDim2.new(0, 150, 0, 40)
  46. button.Position = UDim2.new(0, posX, 0, posY)
  47. button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  48. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  49. button.Text = text
  50. button.TextScaled = true
  51. button.Font = Enum.Font.SourceSansBold
  52. button.Parent = mainFrame
  53.  
  54. local corner = Instance.new("UICorner")
  55. corner.CornerRadius = UDim.new(0, 10)
  56. corner.Parent = button
  57.  
  58. return button
  59. end
  60.  
  61. -- Column X positions
  62. local leftX = 40
  63. local middleX = 225
  64. local rightX = 410
  65.  
  66. -- Y spacing
  67. local spacing = 60
  68. local startY = 70
  69.  
  70. -- Create buttons in 3 columns
  71. createButton("Skybox", leftX, startY)
  72. createButton("Jumpscare", leftX, startY + spacing)
  73.  
  74. createButton("Decal", middleX, startY)
  75. createButton("Particle", middleX, startY + spacing)
  76.  
  77. createButton("Music", rightX, startY)
Advertisement
Add Comment
Please, Sign In to add comment