Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Infinite Yield Full GUI (Executor Safe)
- -- Credits: SunDrop (TikTok), MarioChey (Roblox)
- local CoreGui = game:GetService("CoreGui")
- local UIS = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- -- remove old
- pcall(function()
- CoreGui.InfiniteYieldGUI:Destroy()
- end)
- -- ScreenGui
- local gui = Instance.new("ScreenGui")
- gui.Name = "InfiniteYieldGUI"
- gui.IgnoreGuiInset = true
- gui.Parent = CoreGui
- -- Sounds
- local function sound(id, vol)
- local s = Instance.new("Sound")
- s.SoundId = "rbxassetid://" .. id
- s.Volume = vol
- s.Parent = gui
- return s
- end
- local clickSound = sound(9118828564, 0.6)
- local minimizeSound = sound(9118826042, 0.6)
- local closeSound = sound(9118827822, 0.6)
- -- Main Frame
- local main = Instance.new("Frame")
- main.Size = UDim2.fromScale(0.45, 0.4)
- main.Position = UDim2.fromScale(0.275, 0.3)
- main.BackgroundColor3 = Color3.fromRGB(20,20,20)
- main.BorderSizePixel = 0
- main.Parent = gui
- Instance.new("UICorner", main).CornerRadius = UDim.new(0,16)
- -- Auto scale (safe)
- local scale = Instance.new("UIScale", main)
- scale.Scale = math.clamp(workspace:GetRealPhysicsFPS() / 60, 0.85, 1)
- -- Open animation
- main.Size = UDim2.fromScale(0,0)
- TweenService:Create(
- main,
- TweenInfo.new(0.4, Enum.EasingStyle.Quint),
- {Size = UDim2.fromScale(0.45, 0.4)}
- ):Play()
- -- Top bar
- local top = Instance.new("Frame")
- top.Size = UDim2.fromScale(1, 0.18)
- top.BackgroundColor3 = Color3.fromRGB(30,30,30)
- top.BorderSizePixel = 0
- top.Parent = main
- Instance.new("UICorner", top).CornerRadius = UDim.new(0,16)
- -- Title
- local title = Instance.new("TextLabel")
- title.Size = UDim2.fromScale(0.7, 1)
- title.Position = UDim2.fromScale(0.05, 0)
- title.BackgroundTransparency = 1
- title.Text = "Infinite Yield"
- title.TextColor3 = Color3.new(1,1,1)
- title.Font = Enum.Font.GothamBold
- title.TextScaled = true
- title.TextXAlignment = Enum.TextXAlignment.Left
- title.Parent = top
- -- Buttons
- local function topBtn(txt, x)
- local b = Instance.new("TextButton")
- b.Size = UDim2.fromScale(0.1, 0.7)
- b.Position = UDim2.fromScale(x, 0.15)
- b.Text = txt
- b.Font = Enum.Font.GothamBold
- b.TextScaled = true
- b.TextColor3 = Color3.new(1,1,1)
- b.BackgroundColor3 = Color3.fromRGB(60,60,60)
- b.Parent = top
- Instance.new("UICorner", b).CornerRadius = UDim.new(0,8)
- return b
- end
- local minimize = topBtn("—", 0.78)
- local close = topBtn("X", 0.89)
- close.BackgroundColor3 = Color3.fromRGB(170,60,60)
- -- Load button
- local load = Instance.new("TextButton")
- load.Size = UDim2.fromScale(0.8, 0.28)
- load.Position = UDim2.fromScale(0.1, 0.45)
- load.BackgroundColor3 = Color3.fromRGB(45,45,45)
- load.Text = "Load Infinite Yield"
- load.TextColor3 = Color3.new(1,1,1)
- load.Font = Enum.Font.GothamBold
- load.TextScaled = true
- load.Parent = main
- Instance.new("UICorner", load).CornerRadius = UDim.new(0,12)
- -- Credits
- local credits = Instance.new("TextLabel")
- credits.Size = UDim2.fromScale(1, 0.2)
- credits.Position = UDim2.fromScale(0, 0.8)
- credits.BackgroundTransparency = 1
- credits.Text = "Made by SunDrop (TikTok)\nMarioChey (Roblox)"
- credits.TextColor3 = Color3.fromRGB(180,180,180)
- credits.Font = Enum.Font.Gotham
- credits.TextScaled = true
- credits.Parent = main
- -- Load Infinite Yield
- load.MouseButton1Click:Connect(function()
- clickSound:Play()
- pcall(function()
- loadstring(game:HttpGet(
- "https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"
- ))()
- end)
- end)
- -- Minimize
- local minimized = false
- minimize.MouseButton1Click:Connect(function()
- minimizeSound:Play()
- minimized = not minimized
- TweenService:Create(
- main,
- TweenInfo.new(0.3, Enum.EasingStyle.Quint),
- {Size = minimized and UDim2.fromScale(0.45, 0.18) or UDim2.fromScale(0.45, 0.4)}
- ):Play()
- load.Visible = not minimized
- credits.Visible = not minimized
- end)
- -- Close
- close.MouseButton1Click:Connect(function()
- closeSound:Play()
- local t = TweenService:Create(
- main,
- TweenInfo.new(0.3, Enum.EasingStyle.Quint),
- {Size = UDim2.fromScale(0,0)}
- )
- t:Play()
- t.Completed:Wait()
- gui:Destroy()
- end)
- -- Drag (PC + Mobile)
- local dragging, startPos, startInput
- top.InputBegan:Connect(function(i)
- if i.UserInputType == Enum.UserInputType.MouseButton1
- or i.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- startInput = i.Position
- startPos = main.Position
- end
- end)
- top.InputEnded:Connect(function(i)
- if i.UserInputType == Enum.UserInputType.MouseButton1
- or i.UserInputType == Enum.UserInputType.Touch then
- dragging = false
- end
- end)
- UIS.InputChanged:Connect(function(i)
- if dragging and (i.UserInputType == Enum.UserInputType.MouseMovement
- or i.UserInputType == Enum.UserInputType.Touch) then
- local delta = i.Position - startInput
- main.Position = UDim2.new(
- startPos.X.Scale,
- startPos.X.Offset + delta.X,
- startPos.Y.Scale,
- startPos.Y.Offset + delta.Y
- )
- end
- end)
Add Comment
Please, Sign In to add comment