GGez1488

made in heaven

Jul 27th, 2025 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.56 KB | None | 0 0
  1. -- Made in Heaven GUI для Roblox Brookhaven (Delta Executor)
  2.  
  3. local player = game.Players.LocalPlayer
  4. local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  5. gui.Name = "MadeInHeavenGUI"
  6. gui.ResetOnSpawn = false
  7.  
  8. -- === DRAG FUNCTION ===
  9. local function makeDraggable(instance)
  10.     local UIS = game:GetService("UserInputService")
  11.     local dragging, dragInput, dragStart, startPos
  12.  
  13.     instance.InputBegan:Connect(function(input)
  14.         if input.UserInputType == Enum.UserInputType.MouseButton1 then
  15.             dragging = true
  16.             dragStart = input.Position
  17.             startPos = instance.Position
  18.  
  19.             input.Changed:Connect(function()
  20.                 if input.UserInputState == Enum.UserInputState.End then
  21.                     dragging = false
  22.                 end
  23.             end)
  24.         end
  25.     end)
  26.  
  27.     instance.InputChanged:Connect(function(input)
  28.         if input.UserInputType == Enum.UserInputType.MouseMovement then
  29.             dragInput = input
  30.         end
  31.     end)
  32.  
  33.     UIS.InputChanged:Connect(function(input)
  34.         if input == dragInput and dragging then
  35.             local delta = input.Position - dragStart
  36.             instance.Position = UDim2.new(
  37.                 startPos.X.Scale,
  38.                 startPos.X.Offset + delta.X,
  39.                 startPos.Y.Scale,
  40.                 startPos.Y.Offset + delta.Y
  41.             )
  42.         end
  43.     end)
  44. end
  45.  
  46. -- === GUI BUTTON ===
  47. local mainButton = Instance.new("TextButton", gui)
  48. mainButton.Size = UDim2.new(0, 150, 0, 40)
  49. mainButton.Position = UDim2.new(0, 10, 0.8, 0)
  50. mainButton.BackgroundColor3 = Color3.fromRGB(70, 70, 255)
  51. mainButton.TextColor3 = Color3.new(1, 1, 1)
  52. mainButton.Font = Enum.Font.FredokaOne
  53. mainButton.TextSize = 16
  54. mainButton.Text = "🌌 Made in Heaven"
  55.  
  56. makeDraggable(mainButton)
  57.  
  58. -- === MENU FRAME ===
  59. local frame = Instance.new("Frame", gui)
  60. frame.Size = UDim2.new(0, 220, 0, 80)
  61. frame.Position = UDim2.new(0, 170, 0.8, 0)
  62. frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  63. frame.BorderSizePixel = 2
  64. frame.Visible = false
  65.  
  66. makeDraggable(frame)
  67.  
  68. -- === TOGGLE BUTTON ===
  69. local toggle = Instance.new("TextButton", frame)
  70. toggle.Size = UDim2.new(0, 200, 0, 40)
  71. toggle.Position = UDim2.new(0, 10, 0, 20)
  72. toggle.BackgroundColor3 = Color3.fromRGB(255, 80, 80)
  73. toggle.Text = "⚡ Activate Heaven"
  74. toggle.Font = Enum.Font.FredokaOne
  75. toggle.TextSize = 16
  76. toggle.TextColor3 = Color3.new(1, 1, 1)
  77.  
  78. -- === SOUND SETUP ===
  79. local SoundService = game:GetService("SoundService")
  80.  
  81. local scream = Instance.new("Sound", SoundService)
  82. scream.SoundId = "rbxassetid://5059139543"
  83. scream.Volume = 5
  84. scream.Name = "HeavenScream"
  85. scream.Looped = false
  86. scream.TimePosition = 0
  87.  
  88. -- === LIGHT & TIME ===
  89. local heavenActive = false
  90. local lighting = game:GetService("Lighting")
  91. local currentSpeed = 0
  92. local maxSpeed = 10000
  93. local baseSpeed = 10
  94.  
  95. task.spawn(function()
  96.     while true do
  97.         if heavenActive then
  98.             currentSpeed = math.clamp(currentSpeed * 1.05 + 1, baseSpeed, maxSpeed)
  99.         else
  100.             currentSpeed = math.clamp(currentSpeed * 0.95 - 1, 0, maxSpeed)
  101.         end
  102.  
  103.         if currentSpeed > 0 then
  104.             lighting.ClockTime = (lighting.ClockTime + 0.003 * currentSpeed) % 24
  105.         end
  106.         wait(0.01)
  107.     end
  108. end)
  109.  
  110. -- === TOGGLE LOGIC ===
  111. toggle.MouseButton1Click:Connect(function()
  112.     heavenActive = not heavenActive
  113.  
  114.     if heavenActive then
  115.         toggle.Text = "☄️ Heaven Activated"
  116.         toggle.BackgroundColor3 = Color3.fromRGB(100, 255, 100)
  117.  
  118.         if scream.IsLoaded then
  119.             scream:Play()
  120.         else
  121.             scream.Loaded:Wait()
  122.             scream:Play()
  123.         end
  124.     else
  125.         toggle.Text = "⚡ Activate Heaven"
  126.         toggle.BackgroundColor3 = Color3.fromRGB(255, 80, 80)
  127.         scream:Stop()
  128.     end
  129. end)
  130.  
  131. -- === MENU TOGGLE ===
  132. mainButton.MouseButton1Click:Connect(function()
  133.     frame.Visible = not frame.Visible
  134. end)
Advertisement
Add Comment
Please, Sign In to add comment