Mr_3242

Enter Brainrot iPad/pc sized script

May 10th, 2026 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.96 KB | Gaming | 0 0
  1. -- Create the GUI
  2. local screenGui = Instance.new("ScreenGui")
  3. local frame = Instance.new("Frame")
  4. local teleportButton = Instance.new("TextButton")
  5. local destroyButton = Instance.new("TextButton")
  6. local chairButton = Instance.new("TextButton")
  7. local hideShowButton = Instance.new("TextButton")  -- New Hide/Show button
  8. local randomDoorButton = Instance.new("TextButton") -- Random Door button
  9. local luckyBlockButton = Instance.new("TextButton")  -- New "Enter the Lucky Block" button
  10.  
  11. -- Set up the screen GUI
  12. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13. frame.Parent = screenGui
  14. frame.Size = UDim2.new(0, 300, 0, 400)  -- Adjusted size (300x400) to fit all buttons
  15. frame.Position = UDim2.new(1, -310, 0.5, -150)  -- Position on the right side of the screen
  16. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  17. frame.BackgroundTransparency = 1  -- Hide the black border (make the background transparent)
  18.  
  19. -- Set up the "Level 40" teleport button
  20. teleportButton.Parent = frame
  21. teleportButton.Size = UDim2.new(0, 280, 0, 50)
  22. teleportButton.Position = UDim2.new(0, 10, 0, 10)
  23. teleportButton.Text = "Teleport to Level 40"
  24. teleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  25. teleportButton.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  26.  
  27. -- Set up the "Enter the Lucky Block" button
  28. luckyBlockButton.Parent = frame
  29. luckyBlockButton.Size = UDim2.new(0, 280, 0, 50)
  30. luckyBlockButton.Position = UDim2.new(0, 10, 0, 70)  -- Positioned below "Teleport to Level 40"
  31. luckyBlockButton.Text = "Enter the Lucky Block"
  32. luckyBlockButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  33. luckyBlockButton.BackgroundColor3 = Color3.fromRGB(255, 215, 0)  -- Yellow color for lucky block
  34.  
  35. -- Set up the "Random Door" button
  36. randomDoorButton.Parent = frame
  37. randomDoorButton.Size = UDim2.new(0, 280, 0, 50)
  38. randomDoorButton.Position = UDim2.new(0, 10, 0, 130)
  39. randomDoorButton.Text = "Random Door"
  40. randomDoorButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  41. randomDoorButton.BackgroundColor3 = Color3.fromRGB(255, 165, 0)
  42.  
  43. -- Set up the "Chair" teleport button
  44. chairButton.Parent = frame
  45. chairButton.Size = UDim2.new(0, 280, 0, 50)
  46. chairButton.Position = UDim2.new(0, 10, 0, 190)
  47. chairButton.Text = "Teleport to Chair"
  48. chairButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  49. chairButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  50.  
  51. -- Set up the Destroy button
  52. destroyButton.Parent = frame
  53. destroyButton.Size = UDim2.new(0, 280, 0, 50)
  54. destroyButton.Position = UDim2.new(0, 10, 0, 250)
  55. destroyButton.Text = "Destroy GUI"
  56. destroyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  57. destroyButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  58.  
  59. -- Set up the Hide/Show button
  60. hideShowButton.Parent = frame
  61. hideShowButton.Size = UDim2.new(0, 280, 0, 50)
  62. hideShowButton.Position = UDim2.new(0, 10, 0, 310)
  63. hideShowButton.Text = "Hide/Show Buttons"
  64. hideShowButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  65. hideShowButton.BackgroundColor3 = Color3.fromRGB(255, 165, 0)
  66.  
  67. -- Function to teleport to "Level 40"
  68. local function teleportToLevel40()
  69.     local targetPosition = Vector3.new(1, 866, -1425)
  70.     game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(targetPosition))
  71. end
  72.  
  73. -- Function to teleport to the "Lucky Block" position
  74. local function enterLuckyBlock()
  75.     local targetPosition = Vector3.new(3, 869, -1486)
  76.     game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(targetPosition))
  77. end
  78.  
  79. -- Function to teleport to the "Chair" position
  80. local function teleportToChair()
  81.     local targetPosition = Vector3.new(11, 4131, 384)
  82.     game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(targetPosition))
  83. end
  84.  
  85. -- Function to teleport to a random door position
  86. local function teleportRandomDoor()
  87.     local randomPositions = {
  88.         Vector3.new(-671, 4092, -400),
  89.         Vector3.new(-658, 4092, -400),
  90.         Vector3.new(-644, 4092, -400),
  91.         Vector3.new(-631, 4092, -400)
  92.     }
  93.     local randomPosition = randomPositions[math.random(1, #randomPositions)]
  94.     game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(randomPosition))
  95. end
  96.  
  97. -- Function to destroy the GUI
  98. local function destroyGui()
  99.     screenGui:Destroy()
  100. end
  101.  
  102. -- Function to toggle hide/show for buttons
  103. local function toggleHideShow()
  104.     local isVisible = teleportButton.Visible  -- Check if the teleport button is visible
  105.    
  106.     -- Toggle visibility for buttons (except the Hide/Show button itself)
  107.     teleportButton.Visible = not isVisible
  108.     luckyBlockButton.Visible = not isVisible
  109.     chairButton.Visible = not isVisible
  110.     destroyButton.Visible = not isVisible
  111.     randomDoorButton.Visible = not isVisible
  112. end
  113.  
  114. -- Connect the buttons to their functions
  115. teleportButton.MouseButton1Click:Connect(teleportToLevel40)
  116. luckyBlockButton.MouseButton1Click:Connect(enterLuckyBlock)  -- Connect the new Lucky Block button
  117. chairButton.MouseButton1Click:Connect(teleportToChair)
  118. randomDoorButton.MouseButton1Click:Connect(teleportRandomDoor)
  119. destroyButton.MouseButton1Click:Connect(destroyGui)
  120. hideShowButton.MouseButton1Click:Connect(toggleHideShow)
  121.  
  122. -- Make the GUI draggable (only the frame)
  123. local dragging = false
  124. local dragStart = nil
  125. local startPos = nil
  126.  
  127. -- Event to begin dragging the frame
  128. frame.InputBegan:Connect(function(input)
  129.     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  130.         dragging = true
  131.         dragStart = input.Position
  132.         startPos = frame.Position
  133.     end
  134. end)
  135.  
  136. -- Event to update the frame's position while dragging
  137. frame.InputChanged:Connect(function(input)
  138.     if dragging then
  139.         local delta = input.Position - dragStart
  140.         frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  141.     end
  142. end)
  143.  
  144. -- Event to stop dragging when mouse button is released
  145. frame.InputEnded:Connect(function(input)
  146.     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  147.         dragging = false
  148.     end
  149. end)
Tags: delta
Advertisement
Add Comment
Please, Sign In to add comment