Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
- local w = library:CreateWindow("AFK Luck Legends")
- local b = w:CreateFolder("Gems Upgrades")
- local f = w:CreateFolder("Rebirth Upgrades")
- local h = w:CreateFolder("Prestige Upgrade")
- local e = w:CreateFolder("Mix")
- local u = w:CreateFolder("Credits")
- b:Toggle("Gems",function(bool)
- shared.toggle = bool
- GemsGU = bool
- end)
- b:Toggle("Luck",function(bool)
- shared.toggle = bool
- LuckGU = bool
- end)
- b:Toggle("XP",function(bool)
- shared.toggle = bool
- XPGU = bool
- end)
- f:Toggle("Tokens",function(bool)
- shared.toggle = bool
- TokensRU = bool
- end)
- f:Toggle("Luck",function(bool)
- shared.toggle = bool
- LuckRU = bool
- end)
- f:Toggle("XP",function(bool)
- shared.toggle = bool
- XPRU = bool
- end)
- h:Toggle("Tokens",function(bool)
- shared.toggle = bool
- TokensPU = bool
- end)
- h:Toggle("Luck",function(bool)
- shared.toggle = bool
- LuckPU = bool
- end)
- h:Toggle("XP",function(bool)
- shared.toggle = bool
- XPPU = bool
- end)
- e:Toggle("AntiAfk",function(bool)
- shared.toggle = bool
- AntiAfk = bool
- end)
- --Credits
- u:Label("Youtube Subs: "..getgenv().Subscribers,{
- TextSize = 25;
- TextColor = Color3.fromRGB(255,255,255);
- BgColor = Color3.fromRGB(69,69,69)
- })
- u:Label("Discord Members: "..getgenv().TotalMembers,{
- TextSize = 25;
- TextColor = Color3.fromRGB(255,255,255);
- BgColor = Color3.fromRGB(69,69,69)
- })
- u:Label("Pastebin Views: "..getgenv().TotalPastebinViews,{
- TextSize = 25;
- TextColor = Color3.fromRGB(255,255,255);
- BgColor = Color3.fromRGB(69,69,69)
- })
- u:Button("Discord Server",function()
- setclipboard(getgenv().Discord)
- end)
- u:Button("Youtube Channel",function()
- setclipboard(getgenv().Youtube)
- end)
- u:Button("Pastebin Page",function()
- setclipboard(getgenv().Pastebin)
- end)
- u:Button(getgenv().Username,function()
- setclipboard(getgenv().Username)
- end)
- toggle = false
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Maxgat5 Scripts";
- Text = "Press E To Toggle The Script";
- Duration = 45;
- })
- game:GetService("UserInputService").InputBegan:Connect(function(key)
- if key.KeyCode == Enum.KeyCode.E then
- toggle = not toggle
- end
- end)
- for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.MainUI.UpgradeFrame.UpgradeScroll.GemUpgrades.Upgrades:GetChildren()) do
- if v.ClassName == "Frame" then
- checkGems = string.find(v.TextLabel.Text,"Gems")
- checkLuck = string.find(v.TextLabel.Text,"Luck")
- checkXP = string.find(v.TextLabel.Text,"XP")
- if checkGems ~= nil then
- v.Button.TextButton.Text = "GemsGU"
- v.Button.TextButton.TextTransparency = 0
- v.Button.TextButton.TextScaled = true
- v.Button.TextButton.AnchorPoint = Vector2.new(0.5, 0)
- v.Button.TextButton.Position = UDim2.new(0.017,0,0.012,0)
- v.Button.TextButton.Size = UDim2.new(0.021,0,0.056,0)
- v.Button.TextButton.BackgroundTransparency = 0
- v.Button.TextButton.Parent = game:GetService("Players").LocalPlayer.PlayerGui.MainUI
- end
- if checkLuck ~= nil then
- v.Button.TextButton.Text = "LuckGU"
- v.Button.TextButton.TextTransparency = 0
- v.Button.TextButton.TextScaled = true
- v.Button.TextButton.AnchorPoint = Vector2.new(0.5, 0)
- v.Button.TextButton.Position = UDim2.new(0.043,0,0.012,0)
- v.Button.TextButton.Size = UDim2.new(0.021,0,0.056,0)
- v.Button.TextButton.BackgroundTransparency = 0
- v.Button.TextButton.Parent = game:GetService("Players").LocalPlayer.PlayerGui.MainUI
- end
- if checkXP ~= nil then
- v.Button.TextButton.Text = "XPGU"
- v.Button.TextButton.TextTransparency = 0
- v.Button.TextButton.TextScaled = true
- v.Button.TextButton.AnchorPoint = Vector2.new(0.5, 0)
- v.Button.TextButton.Position = UDim2.new(0.068,0,0.012,0)
- v.Button.TextButton.Size = UDim2.new(0.021,0,0.056,0)
- v.Button.TextButton.BackgroundTransparency = 0
- v.Button.TextButton.Parent = game:GetService("Players").LocalPlayer.PlayerGui.MainUI
- end
- end
- end
- for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.MainUI.UpgradeFrame.UpgradeScroll.RebirthUpgrades.Upgrades:GetChildren()) do
- if v.ClassName == "Frame" then
- checkTokens = string.find(v.TextLabel.Text,"Tokens")
- checkLuck = string.find(v.TextLabel.Text,"Luck")
- checkXP = string.find(v.TextLabel.Text,"XP")
- if checkTokens ~= nil then
- v.Button.TextButton.Text = "TokensRU"
- v.Button.TextButton.TextTransparency = 0
- v.Button.TextButton.TextScaled = true
- v.Button.TextButton.AnchorPoint = Vector2.new(0.5, 0)
- v.Button.TextButton.Position = UDim2.new(0.017,0,0.083,0)
- v.Button.TextButton.Size = UDim2.new(0.021,0,0.056,0)
- v.Button.TextButton.BackgroundTransparency = 0
- v.Button.TextButton.Parent = game:GetService("Players").LocalPlayer.PlayerGui.MainUI
- end
- if checkLuck ~= nil then
- v.Button.TextButton.Text = "LuckRU"
- v.Button.TextButton.TextTransparency = 0
- v.Button.TextButton.TextScaled = true
- v.Button.TextButton.AnchorPoint = Vector2.new(0.5, 0)
- v.Button.TextButton.Position = UDim2.new(0.043,0,0.083,0)
- v.Button.TextButton.Size = UDim2.new(0.021,0,0.056,0)
- v.Button.TextButton.BackgroundTransparency = 0
- v.Button.TextButton.Parent = game:GetService("Players").LocalPlayer.PlayerGui.MainUI
- end
- if checkXP ~= nil then
- v.Button.TextButton.Text = "XPRU"
- v.Button.TextButton.TextTransparency = 0
- v.Button.TextButton.TextScaled = true
- v.Button.TextButton.AnchorPoint = Vector2.new(0.5, 0)
- v.Button.TextButton.Position = UDim2.new(0.068,0,0.083,0)
- v.Button.TextButton.Size = UDim2.new(0.021,0,0.056,0)
- v.Button.TextButton.BackgroundTransparency = 0
- v.Button.TextButton.Parent = game:GetService("Players").LocalPlayer.PlayerGui.MainUI
- end
- end
- end
- for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.MainUI.UpgradeFrame.UpgradeScroll.PrestigeUpgrades.Upgrades:GetChildren()) do
- if v.ClassName == "Frame" then
- checkTokens = string.find(v.TextLabel.Text,"Tokens")
- checkLuck = string.find(v.TextLabel.Text,"Luck")
- checkXP = string.find(v.TextLabel.Text,"XP")
- if checkTokens ~= nil then
- v.Button.TextButton.Text = "TokensPU"
- v.Button.TextButton.TextTransparency = 0
- v.Button.TextButton.TextScaled = true
- v.Button.TextButton.AnchorPoint = Vector2.new(0.5, 0)
- v.Button.TextButton.Position = UDim2.new(0.017,0,0.152,0)
- v.Button.TextButton.Size = UDim2.new(0.021,0,0.056,0)
- v.Button.TextButton.BackgroundTransparency = 0
- v.Button.TextButton.Parent = game:GetService("Players").LocalPlayer.PlayerGui.MainUI
- end
- if checkLuck ~= nil then
- v.Button.TextButton.Text = "LuckPU"
- v.Button.TextButton.TextTransparency = 0
- v.Button.TextButton.TextScaled = true
- v.Button.TextButton.AnchorPoint = Vector2.new(0.5, 0)
- v.Button.TextButton.Position = UDim2.new(0.043,0,0.152,0)
- v.Button.TextButton.Size = UDim2.new(0.021,0,0.056,0)
- v.Button.TextButton.BackgroundTransparency = 0
- v.Button.TextButton.Parent = game:GetService("Players").LocalPlayer.PlayerGui.MainUI
- end
- if checkXP ~= nil then
- v.Button.TextButton.Text = "XPPU"
- v.Button.TextButton.TextTransparency = 0
- v.Button.TextButton.TextScaled = true
- v.Button.TextButton.AnchorPoint = Vector2.new(0.5, 0)
- v.Button.TextButton.Position = UDim2.new(0.068,0,0.152,0)
- v.Button.TextButton.Size = UDim2.new(0.021,0,0.056,0)
- v.Button.TextButton.BackgroundTransparency = 0
- v.Button.TextButton.Parent = game:GetService("Players").LocalPlayer.PlayerGui.MainUI
- end
- end
- end
- spawn(function()
- while wait() do
- local X = game:GetService("Workspace").CurrentCamera.ViewportSize.X
- local Y = game:GetService("Workspace").CurrentCamera.ViewportSize.Y
- if GemsGU == true then
- if toggle == true then
- mousemoveabs(X/60,Y/11.5)
- wait() mouse1press() wait() mouse1release() wait()
- end
- end
- if LuckGU == true then
- if toggle == true then
- mousemoveabs(X/21,Y/11.5)
- wait() mouse1press() wait() mouse1release() wait()
- end
- end
- if XPGU == true then
- if toggle == true then
- mousemoveabs(X/15,Y/11.5)
- wait() mouse1press() wait() mouse1release() wait()
- end
- end
- if TokensRU == true then
- if toggle == true then
- mousemoveabs(X/60,Y/6.5)
- wait() mouse1press() wait() mouse1release() wait()
- end
- end
- if LuckRU == true then
- if toggle == true then
- mousemoveabs(X/21,Y/6.5)
- wait() mouse1press() wait() mouse1release() wait()
- end
- end
- if XPRU == true then
- if toggle == true then
- mousemoveabs(X/15,Y/6.5)
- wait() mouse1press() wait() mouse1release() wait()
- end
- end
- if TokensPU == true then
- if toggle == true then
- mousemoveabs(X/60,Y/4.7)
- wait() mouse1press() wait() mouse1release() wait()
- end
- end
- if LuckPU == true then
- if toggle == true then
- mousemoveabs(X/21,Y/4.7)
- wait() mouse1press() wait() mouse1release() wait()
- end
- end
- if XPPU == true then
- if toggle == true then
- mousemoveabs(X/15,Y/4.7)
- wait() mouse1press() wait() mouse1release() wait()
- end
- end
- end
- end)
- game:GetService('RunService').Stepped:connect(function()
- spawn(function()
- if AntiAfk == true then
- local bb=game:service'VirtualUser'
- bb:CaptureController()
- bb:ClickButton2(Vector2.new())
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement