Advertisement
notJahh

Realistic Lighting + Infinite Yield

May 6th, 2025
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.48 KB | None | 0 0
  1. -- Services
  2. local TweenService = game:GetService("TweenService")
  3. local StarterGui = game:GetService("StarterGui")
  4.  
  5. -- Create GUI elements
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local Title = Instance.new("TextLabel")
  9. local Button1 = Instance.new("TextButton")
  10. local Button2 = Instance.new("TextButton")
  11. local Button3 = Instance.new("TextButton")
  12. local Button4 = Instance.new("TextButton")
  13. local Button5 = Instance.new("TextButton")
  14. local CloseButton = Instance.new("TextButton")
  15. local MinimizeButton = Instance.new("TextButton")
  16. local Footer = Instance.new("TextLabel")
  17.  
  18. -- Setting up the GUI
  19. ScreenGui.Name = "InjectorGui"
  20. ScreenGui.ResetOnSpawn = false
  21. ScreenGui.Parent = game.CoreGui
  22.  
  23. -- Frame setup (solid black with rounded corners)
  24. Frame.Parent = ScreenGui
  25. Frame.Size = UDim2.new(0, 250, 0, 450)
  26. Frame.Position = UDim2.new(0.5, -125, 0.5, -225)
  27. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)  -- Black background
  28. Frame.Active = true
  29. Frame.Draggable = true
  30.  
  31. -- Add UICorner to create rounded corners
  32. local UICorner = Instance.new("UICorner")
  33. UICorner.CornerRadius = UDim.new(0, 20)  -- Set the roundness of the corners
  34. UICorner.Parent = Frame
  35.  
  36. -- Title (centered and bigger text size)
  37. Title.Parent = Frame
  38. Title.Size = UDim2.new(1, -40, 0, 40)  -- Increased the height to make space for the bigger text
  39. Title.Position = UDim2.new(0, 10, 0, 0)
  40. Title.BackgroundTransparency = 1
  41. Title.Text = "Hydrogen"
  42. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  43. Title.Font = Enum.Font.SourceSansBold
  44. Title.TextSize = 30  -- Increased the text size
  45. Title.TextXAlignment = Enum.TextXAlignment.Center
  46. Title.TextYAlignment = Enum.TextYAlignment.Center  -- Center vertically
  47.  
  48. -- Close Button (with rounded corners)
  49. CloseButton.Parent = Frame
  50. CloseButton.Size = UDim2.new(0, 30, 0, 30)
  51. CloseButton.Position = UDim2.new(1, -30, 0, 0)
  52. CloseButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
  53. CloseButton.Text = "X"
  54. CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  55. CloseButton.Font = Enum.Font.SourceSansBold
  56. CloseButton.TextSize = 20
  57.  
  58. -- Add rounded corners to CloseButton
  59. local UICornerClose = Instance.new("UICorner")
  60. UICornerClose.CornerRadius = UDim.new(0, 10)  -- Rounded corners
  61. UICornerClose.Parent = CloseButton
  62.  
  63. -- Minimize Button ("_") with rounded corners
  64. MinimizeButton.Parent = Frame
  65. MinimizeButton.Size = UDim2.new(0, 30, 0, 30)
  66. MinimizeButton.Position = UDim2.new(1, -60, 0, 0)
  67. MinimizeButton.BackgroundColor3 = Color3.fromRGB(50, 150, 200)
  68. MinimizeButton.Text = "_"
  69. MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  70. MinimizeButton.Font = Enum.Font.SourceSansBold
  71. MinimizeButton.TextSize = 20
  72.  
  73. -- Add rounded corners to MinimizeButton
  74. local UICornerMinimize = Instance.new("UICorner")
  75. UICornerMinimize.CornerRadius = UDim.new(0, 10)  -- Rounded corners
  76. UICornerMinimize.Parent = MinimizeButton
  77.  
  78. -- Button Styling Function
  79. local function styleButton(button, text, yPos)
  80.     button.Parent = Frame
  81.     button.Size = UDim2.new(1, -20, 0, 50)
  82.     button.Position = UDim2.new(0, 10, 0, yPos)
  83.     button.Text = text
  84.     button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  85.     button.TextColor3 = Color3.fromRGB(255, 255, 255)
  86.     button.Font = Enum.Font.SourceSans
  87.     button.TextSize = 18
  88. end
  89.  
  90. styleButton(Button1, "Simple Shader", 50)
  91. styleButton(Button2, "HDR Graphics", 110)
  92. styleButton(Button3, "Smoother Camera", 170)
  93. styleButton(Button4, "Realistic Graphics", 230)
  94. styleButton(Button5, "Infinite Yield", 290)
  95.  
  96. -- Footer
  97. Footer.Parent = Frame
  98. Footer.Size = UDim2.new(1, -20, 0, 30)
  99. Footer.Position = UDim2.new(0, 10, 1, -40)
  100. Footer.BackgroundTransparency = 1
  101. Footer.Text = "Powered by ChatGPT"
  102. Footer.TextColor3 = Color3.fromRGB(150, 150, 150)  -- Gray text
  103. Footer.Font = Enum.Font.SourceSansItalic
  104. Footer.TextSize = 12
  105. Footer.TextXAlignment = Enum.TextXAlignment.Center
  106.  
  107. -- Button Functions
  108. Button1.MouseButton1Click:Connect(function()
  109.     loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-Simple-Shader-37434"))()
  110. end)
  111. Button2.MouseButton1Click:Connect(function()
  112.     loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-HDR-GRAPHICS-29409"))()
  113. end)
  114. Button3.MouseButton1Click:Connect(function()
  115.     loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-Better-smoother-camera-21239"))()
  116. end)
  117. Button4.MouseButton1Click:Connect(function()
  118.     loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-Realistic-Graphics-V1-5612"))()
  119. end)
  120. Button5.MouseButton1Click:Connect(function()
  121.     loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
  122. end)
  123.  
  124. -- Close destroys GUI
  125. CloseButton.MouseButton1Click:Connect(function()
  126.     ScreenGui:Destroy()
  127. end)
  128.  
  129. -- Minimize Button
  130. local minimized = false
  131. MinimizeButton.MouseButton1Click:Connect(function()
  132.     minimized = not minimized
  133.     Button1.Visible = not minimized
  134.     Button2.Visible = not minimized
  135.     Button3.Visible = not minimized
  136.     Button4.Visible = not minimized
  137.     Button5.Visible = not minimized
  138.     Footer.Visible = not minimized
  139.     local targetSize = minimized and UDim2.new(0, 250, 0, 40) or UDim2.new(0, 250, 0, 450)
  140.     Frame:TweenSize(targetSize, "Out", "Quad", 0.3, true)
  141. end)
  142.  
  143. -- Notification
  144. StarterGui:SetCore("SendNotification", {
  145.     Title = "Hydrogen has been Injected",
  146.     Text = "",  -- No more "cool"
  147.     Duration = 10  -- Duration of 10 seconds
  148. })
  149.  
  150. -- Ensure the GUI is properly loaded
  151. ScreenGui.Parent = game.CoreGui
  152.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement