Mr_3242

Enter Brainrot iPhone sized script

May 10th, 2026
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 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")
  8. local randomDoorButton = Instance.new("TextButton")
  9. local luckyBlockButton = Instance.new("TextButton")
  10.  
  11. -- Set up the screen GUI
  12. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13.  
  14. -- iPhone sized frame
  15. frame.Parent = screenGui
  16. frame.Size = UDim2.new(0, 220, 0, 300)
  17. frame.Position = UDim2.new(1, -230, 0.5, -150)
  18. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  19. frame.BackgroundTransparency = 1
  20.  
  21. -- Set up the "Level 40" teleport button
  22. teleportButton.Parent = frame
  23. teleportButton.Size = UDim2.new(0, 200, 0, 38)
  24. teleportButton.Position = UDim2.new(0, 10, 0, 10)
  25. teleportButton.Text = "Teleport to Level 40"
  26. teleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  27. teleportButton.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  28. teleportButton.TextScaled = true
  29.  
  30. -- Set up the "Enter the Lucky Block" button
  31. luckyBlockButton.Parent = frame
  32. luckyBlockButton.Size = UDim2.new(0, 200, 0, 38)
  33. luckyBlockButton.Position = UDim2.new(0, 10, 0, 55)
  34. luckyBlockButton.Text = "Enter the Lucky Block"
  35. luckyBlockButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  36. luckyBlockButton.BackgroundColor3 = Color3.fromRGB(255, 215, 0)
  37. luckyBlockButton.TextScaled = true
  38.  
  39. -- Set up the "Random Door" button
  40. randomDoorButton.Parent = frame
  41. randomDoorButton.Size = UDim2.new(0, 200, 0, 38)
  42. randomDoorButton.Position = UDim2.new(0, 10, 0, 100)
  43. randomDoorButton.Text = "Random Door"
  44. randomDoorButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  45. randomDoorButton.BackgroundColor3 = Color3.fromRGB(255, 165, 0)
  46. randomDoorButton.TextScaled = true
  47.  
  48. -- Set up the "Chair" teleport button
  49. chairButton.Parent = frame
  50. chairButton.Size = UDim2.new(0, 200, 0, 38)
  51. chairButton.Position = UDim2.new(0, 10, 0, 145)
  52. chairButton.Text = "Teleport to Chair"
  53. chairButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  54. chairButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  55. chairButton.TextScaled = true
  56.  
  57. -- Set up the Destroy button
  58. destroyButton.Parent = frame
  59. destroyButton.Size = UDim2.new(0, 200, 0, 38)
  60. destroyButton.Position = UDim2.new(0, 10, 0, 190)
  61. destroyButton.Text = "Destroy GUI"
  62. destroyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  63. destroyButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  64. destroyButton.TextScaled = true
  65.  
  66. -- Set up the Hide/Show button
  67. hideShowButton.Parent = frame
  68. hideShowButton.Size = UDim2.new(0, 200, 0, 38)
  69. hideShowButton.Position = UDim2.new(0, 10, 0, 235)
  70. hideShowButton.Text = "Hide/Show Buttons"
  71. hideShowButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  72. hideShowButton.BackgroundColor3 = Color3.fromRGB(255, 165, 0)
  73. hideShowButton.TextScaled = true
  74.  
  75. -- Function to teleport to "Level 40"
  76. local function teleportToLevel40()
  77. local targetPosition = Vector3.new(1, 866, -1425)
  78. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(targetPosition))
  79. end
  80.  
  81. -- Function to teleport to the "Lucky Block" position
  82. local function enterLuckyBlock()
  83. local targetPosition = Vector3.new(3, 869, -1486)
  84. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(targetPosition))
  85. end
  86.  
  87. -- Function to teleport to the "Chair" position
  88. local function teleportToChair()
  89. local targetPosition = Vector3.new(11, 4131, 384)
  90. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(targetPosition))
  91. end
  92.  
  93. -- Function to teleport to a random door position
  94. local function teleportRandomDoor()
  95. local randomPositions = {
  96. Vector3.new(-671, 4092, -400),
  97. Vector3.new(-658, 4092, -400),
  98. Vector3.new(-644, 4092, -400),
  99. Vector3.new(-631, 4092, -400)
  100. }
  101.  
  102. local randomPosition =
  103. randomPositions[math.random(1, #randomPositions)]
  104.  
  105. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(
  106. CFrame.new(randomPosition)
  107. )
  108. end
  109.  
  110. -- Function to destroy the GUI
  111. local function destroyGui()
  112. screenGui:Destroy()
  113. end
  114.  
  115. -- Function to toggle hide/show for buttons
  116. local function toggleHideShow()
  117. local isVisible = teleportButton.Visible
  118.  
  119. teleportButton.Visible = not isVisible
  120. luckyBlockButton.Visible = not isVisible
  121. chairButton.Visible = not isVisible
  122. destroyButton.Visible = not isVisible
  123. randomDoorButton.Visible = not isVisible
  124. end
  125.  
  126. -- Connect the buttons to their functions
  127. teleportButton.MouseButton1Click:Connect(teleportToLevel40)
  128. luckyBlockButton.MouseButton1Click:Connect(enterLuckyBlock)
  129. chairButton.MouseButton1Click:Connect(teleportToChair)
  130. randomDoorButton.MouseButton1Click:Connect(teleportRandomDoor)
  131. destroyButton.MouseButton1Click:Connect(destroyGui)
  132. hideShowButton.MouseButton1Click:Connect(toggleHideShow)
  133.  
  134. -- Make the GUI draggable
  135. local dragging = false
  136. local dragStart = nil
  137. local startPos = nil
  138.  
  139. frame.InputBegan:Connect(function(input)
  140. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  141. dragging = true
  142. dragStart = input.Position
  143. startPos = frame.Position
  144. end
  145. end)
  146.  
  147. frame.InputChanged:Connect(function(input)
  148. if dragging then
  149. local delta = input.Position - dragStart
  150.  
  151. frame.Position = UDim2.new(
  152. startPos.X.Scale,
  153. startPos.X.Offset + delta.X,
  154. startPos.Y.Scale,
  155. startPos.Y.Offset + delta.Y
  156. )
  157. end
  158. end)
  159.  
  160. frame.InputEnded:Connect(function(input)
  161. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  162. dragging = false
  163. end
  164. end)
Advertisement
Add Comment
Please, Sign In to add comment