Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Services
- local TweenService = game:GetService("TweenService")
- local StarterGui = game:GetService("StarterGui")
- -- Create GUI elements
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Button1 = Instance.new("TextButton")
- local Button2 = Instance.new("TextButton")
- local Button3 = Instance.new("TextButton")
- local Button4 = Instance.new("TextButton")
- local Button5 = Instance.new("TextButton")
- local CloseButton = Instance.new("TextButton")
- local MinimizeButton = Instance.new("TextButton")
- local Footer = Instance.new("TextLabel")
- -- Setting up the GUI
- ScreenGui.Name = "InjectorGui"
- ScreenGui.ResetOnSpawn = false
- ScreenGui.Parent = game.CoreGui
- -- Frame setup (solid black with rounded corners)
- Frame.Parent = ScreenGui
- Frame.Size = UDim2.new(0, 250, 0, 450)
- Frame.Position = UDim2.new(0.5, -125, 0.5, -225)
- Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Black background
- Frame.Active = true
- Frame.Draggable = true
- -- Add UICorner to create rounded corners
- local UICorner = Instance.new("UICorner")
- UICorner.CornerRadius = UDim.new(0, 20) -- Set the roundness of the corners
- UICorner.Parent = Frame
- -- Title (centered and bigger text size)
- Title.Parent = Frame
- Title.Size = UDim2.new(1, -40, 0, 40) -- Increased the height to make space for the bigger text
- Title.Position = UDim2.new(0, 10, 0, 0)
- Title.BackgroundTransparency = 1
- Title.Text = "Hydrogen"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.Font = Enum.Font.SourceSansBold
- Title.TextSize = 30 -- Increased the text size
- Title.TextXAlignment = Enum.TextXAlignment.Center
- Title.TextYAlignment = Enum.TextYAlignment.Center -- Center vertically
- -- Close Button (with rounded corners)
- CloseButton.Parent = Frame
- CloseButton.Size = UDim2.new(0, 30, 0, 30)
- CloseButton.Position = UDim2.new(1, -30, 0, 0)
- CloseButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
- CloseButton.Text = "X"
- CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CloseButton.Font = Enum.Font.SourceSansBold
- CloseButton.TextSize = 20
- -- Add rounded corners to CloseButton
- local UICornerClose = Instance.new("UICorner")
- UICornerClose.CornerRadius = UDim.new(0, 10) -- Rounded corners
- UICornerClose.Parent = CloseButton
- -- Minimize Button ("_") with rounded corners
- MinimizeButton.Parent = Frame
- MinimizeButton.Size = UDim2.new(0, 30, 0, 30)
- MinimizeButton.Position = UDim2.new(1, -60, 0, 0)
- MinimizeButton.BackgroundColor3 = Color3.fromRGB(50, 150, 200)
- MinimizeButton.Text = "_"
- MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- MinimizeButton.Font = Enum.Font.SourceSansBold
- MinimizeButton.TextSize = 20
- -- Add rounded corners to MinimizeButton
- local UICornerMinimize = Instance.new("UICorner")
- UICornerMinimize.CornerRadius = UDim.new(0, 10) -- Rounded corners
- UICornerMinimize.Parent = MinimizeButton
- -- Button Styling Function
- local function styleButton(button, text, yPos)
- button.Parent = Frame
- button.Size = UDim2.new(1, -20, 0, 50)
- button.Position = UDim2.new(0, 10, 0, yPos)
- button.Text = text
- button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.Font = Enum.Font.SourceSans
- button.TextSize = 18
- end
- styleButton(Button1, "Simple Shader", 50)
- styleButton(Button2, "HDR Graphics", 110)
- styleButton(Button3, "Smoother Camera", 170)
- styleButton(Button4, "Realistic Graphics", 230)
- styleButton(Button5, "Infinite Yield", 290)
- -- Footer
- Footer.Parent = Frame
- Footer.Size = UDim2.new(1, -20, 0, 30)
- Footer.Position = UDim2.new(0, 10, 1, -40)
- Footer.BackgroundTransparency = 1
- Footer.Text = "Powered by ChatGPT"
- Footer.TextColor3 = Color3.fromRGB(150, 150, 150) -- Gray text
- Footer.Font = Enum.Font.SourceSansItalic
- Footer.TextSize = 12
- Footer.TextXAlignment = Enum.TextXAlignment.Center
- -- Button Functions
- Button1.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-Simple-Shader-37434"))()
- end)
- Button2.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-HDR-GRAPHICS-29409"))()
- end)
- Button3.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-Better-smoother-camera-21239"))()
- end)
- Button4.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-Realistic-Graphics-V1-5612"))()
- end)
- Button5.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
- end)
- -- Close destroys GUI
- CloseButton.MouseButton1Click:Connect(function()
- ScreenGui:Destroy()
- end)
- -- Minimize Button
- local minimized = false
- MinimizeButton.MouseButton1Click:Connect(function()
- minimized = not minimized
- Button1.Visible = not minimized
- Button2.Visible = not minimized
- Button3.Visible = not minimized
- Button4.Visible = not minimized
- Button5.Visible = not minimized
- Footer.Visible = not minimized
- local targetSize = minimized and UDim2.new(0, 250, 0, 40) or UDim2.new(0, 250, 0, 450)
- Frame:TweenSize(targetSize, "Out", "Quad", 0.3, true)
- end)
- -- Notification
- StarterGui:SetCore("SendNotification", {
- Title = "Hydrogen has been Injected",
- Text = "", -- No more "cool"
- Duration = 10 -- Duration of 10 seconds
- })
- -- Ensure the GUI is properly loaded
- ScreenGui.Parent = game.CoreGui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement