Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local CollectionScript = {}
- -- Configurações
- CollectionScript.Config = {
- WalkSpeed = 16,
- JumpPower = 50,
- AutoMoney = false,
- AutoCollect = false,
- AutoPullCoins = false,
- GodMode = false,
- SafeMode = false,
- CollectionRadius = 3000,
- -- Configurações Gráficos
- NoFogEnabled = false,
- NoShadowEnabled = false,
- FullBrightEnabled = false,
- RTXModeEnabled = false
- }
- -- Variáveis
- CollectionScript.Connections = {}
- CollectionScript.Player = game:GetService("Players").LocalPlayer
- CollectionScript.SafePlatform = nil
- CollectionScript.Camera = workspace.CurrentCamera
- CollectionScript.Lighting = game:GetService("Lighting")
- CollectionScript.OriginalLighting = {
- FogEnd = CollectionScript.Lighting.FogEnd,
- FogStart = CollectionScript.Lighting.FogStart,
- GlobalShadows = CollectionScript.Lighting.GlobalShadows,
- Brightness = CollectionScript.Lighting.Brightness,
- Ambient = CollectionScript.Lighting.Ambient,
- OutdoorAmbient = CollectionScript.Lighting.OutdoorAmbient
- }
- CollectionScript.ColorCorrection = nil
- CollectionScript.Bloom = nil
- CollectionScript.CurrentPage = 1
- CollectionScript.Pages = {}
- -- Função principal
- function CollectionScript:CreateGUI()
- -- Cria a interface
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Name = "SimpleCollectionMenu"
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- -- Frame principal
- local MainFrame = Instance.new("Frame")
- MainFrame.Name = "MainFrame"
- MainFrame.Size = UDim2.new(0, 240, 0, 300) -- Compactado
- MainFrame.Position = UDim2.new(0.5, -120, 0.5, -150) -- Centralizado
- MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 45)
- MainFrame.BorderSizePixel = 0
- MainFrame.Parent = ScreenGui
- local UICorner = Instance.new("UICorner")
- UICorner.CornerRadius = UDim.new(0, 8)
- UICorner.Parent = MainFrame
- local UIStroke = Instance.new("UIStroke")
- UIStroke.Color = Color3.fromRGB(255, 50, 150)
- UIStroke.Thickness = 2
- UIStroke.Parent = MainFrame
- -- Cabeçalho arrastável
- local Header = Instance.new("Frame")
- Header.Name = "Header"
- Header.Size = UDim2.new(1, 0, 0, 30)
- Header.Position = UDim2.new(0, 0, 0, 0)
- Header.BackgroundColor3 = Color3.fromRGB(255, 50, 150)
- Header.BorderSizePixel = 0
- Header.Active = true
- Header.Parent = MainFrame
- local HeaderCorner = Instance.new("UICorner")
- HeaderCorner.CornerRadius = UDim.new(0, 8)
- HeaderCorner.Parent = Header
- -- Título
- local Title = Instance.new("TextLabel")
- Title.Name = "Title"
- Title.Size = UDim2.new(0.5, 0, 1, 0)
- Title.Position = UDim2.new(0.05, 0, 0, 0)
- Title.BackgroundTransparency = 1
- Title.Text = "MOD MENU"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextScaled = true
- Title.Font = Enum.Font.GothamBold
- Title.Parent = Header
- -- Botões de controle
- local Controls = Instance.new("Frame")
- Controls.Name = "Controls"
- Controls.Size = UDim2.new(0.5, 0, 1, 0)
- Controls.Position = UDim2.new(0.5, 0, 0, 0)
- Controls.BackgroundTransparency = 1
- Controls.Parent = Header
- -- Botão página anterior
- local PrevPageButton = Instance.new("TextButton")
- PrevPageButton.Name = "PrevPageButton"
- PrevPageButton.Size = UDim2.new(0, 25, 0, 25)
- PrevPageButton.Position = UDim2.new(0, 0, 0.5, -12.5)
- PrevPageButton.BackgroundColor3 = Color3.fromRGB(0, 200, 255)
- PrevPageButton.Text = "<"
- PrevPageButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- PrevPageButton.TextScaled = true
- PrevPageButton.Font = Enum.Font.GothamBold
- PrevPageButton.Parent = Controls
- local PrevPageCorner = Instance.new("UICorner")
- PrevPageCorner.CornerRadius = UDim.new(0, 6)
- PrevPageCorner.Parent = PrevPageButton
- -- Botão página seguinte
- local NextPageButton = Instance.new("TextButton")
- NextPageButton.Name = "NextPageButton"
- NextPageButton.Size = UDim2.new(0, 25, 0, 25)
- NextPageButton.Position = UDim2.new(0, 30, 0.5, -12.5)
- NextPageButton.BackgroundColor3 = Color3.fromRGB(0, 200, 255)
- NextPageButton.Text = ">"
- NextPageButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- NextPageButton.TextScaled = true
- NextPageButton.Font = Enum.Font.GothamBold
- NextPageButton.Parent = Controls
- local NextPageCorner = Instance.new("UICorner")
- NextPageCorner.CornerRadius = UDim.new(0, 6)
- NextPageCorner.Parent = NextPageButton
- -- Botão minimizar
- local MinimizeButton = Instance.new("TextButton")
- MinimizeButton.Name = "MinimizeButton"
- MinimizeButton.Size = UDim2.new(0, 25, 0, 25)
- MinimizeButton.Position = UDim2.new(0, 60, 0.5, -12.5)
- MinimizeButton.BackgroundColor3 = Color3.fromRGB(255, 204, 0)
- MinimizeButton.Text = "_"
- MinimizeButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- MinimizeButton.TextScaled = true
- MinimizeButton.Font = Enum.Font.GothamBold
- MinimizeButton.Parent = Controls
- local MinimizeCorner = Instance.new("UICorner")
- MinimizeCorner.CornerRadius = UDim.new(0, 6)
- MinimizeCorner.Parent = MinimizeButton
- -- Botão fechar
- local CloseButton = Instance.new("TextButton")
- CloseButton.Name = "CloseButton"
- CloseButton.Size = UDim2.new(0, 25, 0, 25)
- CloseButton.Position = UDim2.new(0, 90, 0.5, -12.5)
- CloseButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
- CloseButton.Text = "X"
- CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CloseButton.TextScaled = true
- CloseButton.Font = Enum.Font.GothamBold
- CloseButton.Parent = Controls
- local CloseCorner = Instance.new("UICorner")
- CloseCorner.CornerRadius = UDim.new(0, 6)
- CloseCorner.Parent = CloseButton
- -- Área de conteúdo
- local ContentFrame = Instance.new("Frame")
- ContentFrame.Name = "Content"
- ContentFrame.Size = UDim2.new(1, -10, 1, -40)
- ContentFrame.Position = UDim2.new(0, 5, 0, 35)
- ContentFrame.BackgroundTransparency = 1
- ContentFrame.Parent = MainFrame
- -- Criação das páginas
- self.Pages = {
- Page1 = Instance.new("Frame"),
- Page2 = Instance.new("Frame"),
- Page3 = Instance.new("Frame")
- }
- for _, page in pairs(self.Pages) do
- page.Size = UDim2.new(1, 0, 1, 0)
- page.Position = UDim2.new(0, 0, 0, 0)
- page.BackgroundTransparency = 1
- page.Visible = false
- page.Parent = ContentFrame
- local Layout = Instance.new("UIListLayout")
- Layout.Padding = UDim.new(0, 6)
- Layout.Parent = page
- end
- -- Página 1: Velocidade e Coleta
- local Page1 = self.Pages.Page1
- local MoveSection = self:CreateSection("VELOCIDADE", Color3.fromRGB(0, 200, 255), Page1)
- MoveSection.Size = UDim2.new(1, 0, 0, 100)
- local SpeedLabel = Instance.new("TextLabel")
- SpeedLabel.Size = UDim2.new(1, 0, 0, 20)
- SpeedLabel.BackgroundTransparency = 1
- SpeedLabel.Text = "Velocidade: " .. self.Config.WalkSpeed
- SpeedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- SpeedLabel.TextXAlignment = Enum.TextXAlignment.Left
- SpeedLabel.Font = Enum.Font.Gotham
- SpeedLabel.TextSize = 14
- SpeedLabel.Parent = MoveSection
- local SpeedButton = Instance.new("TextButton")
- SpeedButton.Size = UDim2.new(1, 0, 0, 28)
- SpeedButton.Position = UDim2.new(0, 0, 0, 25)
- SpeedButton.BackgroundColor3 = Color3.fromRGB(0, 200, 255)
- SpeedButton.Text = "Aumentar Velocidade"
- SpeedButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- SpeedButton.TextSize = 14
- SpeedButton.Font = Enum.Font.GothamBold
- SpeedButton.Parent = MoveSection
- local SpeedCorner = Instance.new("UICorner")
- SpeedCorner.CornerRadius = UDim.new(0, 6)
- SpeedCorner.Parent = SpeedButton
- local JumpLabel = Instance.new("TextLabel")
- JumpLabel.Size = UDim2.new(1, 0, 0, 20)
- JumpLabel.Position = UDim2.new(0, 0, 0, 55)
- JumpLabel.BackgroundTransparency = 1
- JumpLabel.Text = "JumpPower: " .. self.Config.JumpPower
- JumpLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- JumpLabel.TextXAlignment = Enum.TextXAlignment.Left
- JumpLabel.Font = Enum.Font.Gotham
- JumpLabel.TextSize = 14
- JumpLabel.Parent = MoveSection
- local JumpButton = Instance.new("TextButton")
- JumpButton.Size = UDim2.new(1, 0, 0, 28)
- JumpButton.Position = UDim2.new(0, 0, 0, 80)
- JumpButton.BackgroundColor3 = Color3.fromRGB(0, 200, 255)
- JumpButton.Text = "Aumentar JumpPower"
- JumpButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- JumpButton.TextSize = 14
- JumpButton.Font = Enum.Font.GothamBold
- JumpButton.Parent = MoveSection
- local JumpCorner = Instance.new("UICorner")
- JumpCorner.CornerRadius = UDim.new(0, 6)
- JumpCorner.Parent = JumpButton
- local CollectSection = self:CreateSection("COLETA", Color3.fromRGB(255, 100, 0), Page1)
- CollectSection.Size = UDim2.new(1, 0, 0, 130)
- local CollectButton = Instance.new("TextButton")
- CollectButton.Size = UDim2.new(1, 0, 0, 32)
- CollectButton.Position = UDim2.new(0, 0, 0, 25)
- CollectButton.BackgroundColor3 = Color3.fromRGB(255, 100, 0)
- CollectButton.Text = "COLETAR TUDO"
- CollectButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CollectButton.TextSize = 15
- CollectButton.Font = Enum.Font.GothamBold
- CollectButton.Parent = CollectSection
- local CollectCorner = Instance.new("UICorner")
- CollectCorner.CornerRadius = UDim.new(0, 6)
- CollectCorner.Parent = CollectButton
- local TeleportItemsButton = Instance.new("TextButton")
- TeleportItemsButton.Size = UDim2.new(1, 0, 0, 32)
- TeleportItemsButton.Position = UDim2.new(0, 0, 0, 60)
- TeleportItemsButton.BackgroundColor3 = Color3.fromRGB(255, 200, 0)
- TeleportItemsButton.Text = "TELEPORTAR ITENS PRA MIM"
- TeleportItemsButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TeleportItemsButton.TextSize = 15
- TeleportItemsButton.Font = Enum.Font.GothamBold
- TeleportItemsButton.Parent = CollectSection
- local TeleportItemsCorner = Instance.new("UICorner")
- TeleportItemsCorner.CornerRadius = UDim.new(0, 6)
- TeleportItemsCorner.Parent = TeleportItemsButton
- local AutoPullCoinsButton = Instance.new("TextButton")
- AutoPullCoinsButton.Size = UDim2.new(1, 0, 0, 32)
- AutoPullCoinsButton.Position = UDim2.new(0, 0, 0, 95)
- AutoPullCoinsButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- AutoPullCoinsButton.Text = "Auto-Pull Coins: DESLIGADO"
- AutoPullCoinsButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- AutoPullCoinsButton.TextSize = 14
- AutoPullCoinsButton.Font = Enum.Font.Gotham
- AutoPullCoinsButton.Parent = CollectSection
- local AutoPullCoinsCorner = Instance.new("UICorner")
- AutoPullCoinsCorner.CornerRadius = UDim.new(0, 6)
- AutoPullCoinsCorner.Parent = AutoPullCoinsButton
- -- Página 2: Automação e Proteção
- local Page2 = self.Pages.Page2
- local AutoSection = self:CreateSection("AUTOMAÇÃO", Color3.fromRGB(0, 255, 150), Page2)
- AutoSection.Size = UDim2.new(1, 0, 0, 100)
- local AutoMoneyButton = Instance.new("TextButton")
- AutoMoneyButton.Size = UDim2.new(1, 0, 0, 28)
- AutoMoneyButton.Position = UDim2.new(0, 0, 0, 25)
- AutoMoneyButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- AutoMoneyButton.Text = "Auto-Money: DESLIGADO"
- AutoMoneyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- AutoMoneyButton.TextSize = 14
- AutoMoneyButton.Font = Enum.Font.Gotham
- AutoMoneyButton.Parent = AutoSection
- local AutoMoneyCorner = Instance.new("UICorner")
- AutoMoneyCorner.CornerRadius = UDim.new(0, 6)
- AutoMoneyCorner.Parent = AutoMoneyButton
- local AutoCollectButton = Instance.new("TextButton")
- AutoCollectButton.Size = UDim2.new(1, 0, 0, 28)
- AutoCollectButton.Position = UDim2.new(0, 0, 0, 55)
- AutoCollectButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- AutoCollectButton.Text = "Coleta Auto: DESLIGADO"
- AutoCollectButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- AutoCollectButton.TextSize = 14
- AutoCollectButton.Font = Enum.Font.Gotham
- AutoCollectButton.Parent = AutoSection
- local AutoCollectCorner = Instance.new("UICorner")
- AutoCollectCorner.CornerRadius = UDim.new(0, 6)
- AutoCollectCorner.Parent = AutoCollectButton
- local StatusLabel = Instance.new("TextLabel")
- StatusLabel.Size = UDim2.new(1, 0, 0, 20)
- StatusLabel.Position = UDim2.new(0, 0, 0, 85)
- StatusLabel.BackgroundTransparency = 1
- StatusLabel.Text = "Status: Pronto"
- StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- StatusLabel.TextSize = 12
- StatusLabel.Font = Enum.Font.Gotham
- StatusLabel.Parent = AutoSection
- local ProtectSection = self:CreateSection("PROTEÇÃO", Color3.fromRGB(150, 0, 255), Page2)
- ProtectSection.Size = UDim2.new(1, 0, 0, 100)
- local GodModeButton = Instance.new("TextButton")
- GodModeButton.Size = UDim2.new(1, 0, 0, 28)
- GodModeButton.Position = UDim2.new(0, 0, 0, 25)
- GodModeButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- GodModeButton.Text = "God-Mode: DESLIGADO"
- GodModeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- GodModeButton.TextSize = 14
- GodModeButton.Font = Enum.Font.Gotham
- GodModeButton.Parent = ProtectSection
- local GodModeCorner = Instance.new("UICorner")
- GodModeCorner.CornerRadius = UDim.new(0, 6)
- GodModeCorner.Parent = GodModeButton
- local SafeModeButton = Instance.new("TextButton")
- SafeModeButton.Size = UDim2.new(1, 0, 0, 28)
- SafeModeButton.Position = UDim2.new(0, 0, 0, 55)
- SafeModeButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- SafeModeButton.Text = "Safe Mode: DESLIGADO"
- SafeModeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- SafeModeButton.TextSize = 14
- SafeModeButton.Font = Enum.Font.Gotham
- SafeModeButton.Parent = ProtectSection
- local SafeModeCorner = Instance.new("UICorner")
- SafeModeCorner.CornerRadius = UDim.new(0, 6)
- SafeModeCorner.Parent = SafeModeButton
- -- Página 3: Gráficos
- local Page3 = self.Pages.Page3
- local GraphicsSection = self:CreateSection("GRÁFICOS", Color3.fromRGB(0, 255, 255), Page3)
- GraphicsSection.Size = UDim2.new(1, 0, 0, 130)
- local NoFogButton = Instance.new("TextButton")
- NoFogButton.Size = UDim2.new(1, 0, 0, 32)
- NoFogButton.Position = UDim2.new(0, 0, 0, 25)
- NoFogButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- NoFogButton.Text = "No Fog: DESLIGADO"
- NoFogButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- NoFogButton.TextSize = 14
- NoFogButton.Font = Enum.Font.Gotham
- NoFogButton.Parent = GraphicsSection
- local NoFogCorner = Instance.new("UICorner")
- NoFogCorner.CornerRadius = UDim.new(0, 6)
- NoFogCorner.Parent = NoFogButton
- local NoShadowButton = Instance.new("TextButton")
- NoShadowButton.Size = UDim2.new(1, 0, 0, 32)
- NoShadowButton.Position = UDim2.new(0, 0, 0, 60)
- NoShadowButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- NoShadowButton.Text = "No Shadow: DESLIGADO"
- NoShadowButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- NoShadowButton.TextSize = 14
- NoShadowButton.Font = Enum.Font.Gotham
- NoShadowButton.Parent = GraphicsSection
- local NoShadowCorner = Instance.new("UICorner")
- NoShadowCorner.CornerRadius = UDim.new(0, 6)
- NoShadowCorner.Parent = NoShadowButton
- local FullBrightButton = Instance.new("TextButton")
- FullBrightButton.Size = UDim2.new(1, 0, 0, 32)
- FullBrightButton.Position = UDim2.new(0, 0, 0, 95)
- FullBrightButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- FullBrightButton.Text = "Full Bright: DESLIGADO"
- FullBrightButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- FullBrightButton.TextSize = 14
- FullBrightButton.Font = Enum.Font.Gotham
- FullBrightButton.Parent = GraphicsSection
- local FullBrightCorner = Instance.new("UICorner")
- FullBrightCorner.CornerRadius = UDim.new(0, 6)
- FullBrightCorner.Parent = FullBrightButton
- local RTXButton = Instance.new("TextButton")
- RTXButton.Size = UDim2.new(1, 0, 0, 32)
- RTXButton.Position = UDim2.new(0, 0, 0, 130)
- RTXButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- RTXButton.Text = "RTX Mode: DESLIGADO"
- RTXButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- RTXButton.TextSize = 14
- RTXButton.Font = Enum.Font.Gotham
- RTXButton.Parent = GraphicsSection
- local RTXCorner = Instance.new("UICorner")
- RTXCorner.CornerRadius = UDim.new(0, 6)
- RTXCorner.Parent = RTXButton
- -- Armazena referências
- self.GUI = ScreenGui
- self.MainFrame = MainFrame
- self.StatusLabel = StatusLabel
- self.SpeedButton = SpeedButton
- self.SpeedLabel = SpeedLabel
- self.JumpButton = JumpButton
- self.JumpLabel = JumpLabel
- self.CollectButton = CollectButton
- self.TeleportItemsButton = TeleportItemsButton
- self.AutoPullCoinsButton = AutoPullCoinsButton
- self.AutoMoneyButton = AutoMoneyButton
- self.AutoCollectButton = AutoCollectButton
- self.GodModeButton = GodModeButton
- self.SafeModeButton = SafeModeButton
- self.NoFogButton = NoFogButton
- self.NoShadowButton = NoShadowButton
- self.FullBrightButton = FullBrightButton
- self.RTXButton = RTXButton
- self.PrevPageButton = PrevPageButton
- self.NextPageButton = NextPageButton
- -- Inicializa a primeira página
- self:ShowPage(1)
- -- Configura funcionalidades
- self:SetupFunctionality()
- return ScreenGui
- end
- -- Função para criar seções
- function CollectionScript:CreateSection(title, color, parent)
- local Section = Instance.new("Frame")
- Section.Size = UDim2.new(1, 0, 0, 100)
- Section.BackgroundColor3 = Color3.fromRGB(35, 35, 55)
- Section.BackgroundTransparency = 0.1
- Section.Parent = parent
- local SectionCorner = Instance.new("UICorner")
- SectionCorner.CornerRadius = UDim.new(0, 6)
- SectionCorner.Parent = Section
- local SectionStroke = Instance.new("UIStroke")
- SectionStroke.Color = color
- SectionStroke.Thickness = 1
- SectionStroke.Parent = Section
- local SectionTitle = Instance.new("TextLabel")
- SectionTitle.Size = UDim2.new(1, -10, 0, 20)
- SectionTitle.Position = UDim2.new(0, 5, 0, 2)
- SectionTitle.BackgroundTransparency = 1
- SectionTitle.Text = title
- SectionTitle.TextColor3 = color
- SectionTitle.TextSize = 16
- SectionTitle.Font = Enum.Font.GothamBold
- SectionTitle.Parent = Section
- return Section
- end
- -- Função para alternar páginas
- function CollectionScript:ShowPage(pageNumber)
- self.CurrentPage = math.clamp(pageNumber, 1, 3)
- for i, page in pairs(self.Pages) do
- page.Visible = (i == "Page" .. self.CurrentPage)
- end
- self.PrevPageButton.Visible = self.CurrentPage > 1
- self.NextPageButton.Visible = self.CurrentPage < 3
- end
- -- Configura funcionalidades
- function CollectionScript:SetupFunctionality()
- local UserInputService = game:GetService("UserInputService")
- -- SISTEMA DE ARRASTE
- local dragging = false
- local dragStart, startPos
- self.MainFrame.Header.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = self.MainFrame.Position
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
- local delta = input.Position - dragStart
- self.MainFrame.Position = UDim2.new(
- startPos.X.Scale,
- startPos.X.Offset + delta.X,
- startPos.Y.Scale,
- startPos.Y.Offset + delta.Y
- )
- end
- end)
- UserInputService.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = false
- end
- end)
- -- BOTÃO MINIMIZAR
- self.MainFrame.Header.Controls.MinimizeButton.MouseButton1Click:Connect(function()
- if self.MainFrame.Size.Y.Offset == 30 then
- self.MainFrame.Size = UDim2.new(0, 240, 0, 300)
- self.MainFrame.Content.Visible = true
- else
- self.MainFrame.Size = UDim2.new(0, 240, 0, 30)
- self.MainFrame.Content.Visible = false
- end
- end)
- -- BOTÃO FECHAR
- self.MainFrame.Header.Controls.CloseButton.MouseButton1Click:Connect(function()
- self:StopAll()
- self.GUI:Destroy()
- end)
- -- BOTÕES DE NAVEGAÇÃO DE PÁGINAS
- self.PrevPageButton.MouseButton1Click:Connect(function()
- self:ShowPage(self.CurrentPage - 1)
- end)
- self.NextPageButton.MouseButton1Click:Connect(function()
- self:ShowPage(self.CurrentPage + 1)
- end)
- -- CONTROLE DE VELOCIDADE
- self.SpeedButton.MouseButton1Click:Connect(function()
- if self.Config.WalkSpeed >= 100 then
- self.Config.WalkSpeed = 16
- else
- self.Config.WalkSpeed = self.Config.WalkSpeed + 16
- end
- self.SpeedLabel.Text = "Velocidade: " .. self.Config.WalkSpeed
- self:UpdateCharacterMovement()
- end)
- -- CONTROLE DE JUMPPOWER
- self.JumpButton.MouseButton1Click:Connect(function()
- local jumpValues = {50, 75, 100, 125, 150}
- local currentIndex = 1
- for i, value in ipairs(jumpValues) do
- if self.Config.JumpPower == value then
- currentIndex = i
- break
- end
- end
- local nextIndex = currentIndex % #jumpValues + 1
- self.Config.JumpPower = jumpValues[nextIndex]
- self.JumpLabel.Text = "JumpPower: " .. self.Config.JumpPower
- self:UpdateCharacterMovement()
- end)
- -- BOTÃO COLETAR TUDO
- self.CollectButton.MouseButton1Click:Connect(function()
- self:CollectEverything()
- end)
- -- BOTÃO TELEPORTAR ITENS
- self.TeleportItemsButton.MouseButton1Click:Connect(function()
- self:TeleportItemsToMe()
- end)
- -- TOGGLE AUTO-PULL COINS
- self.AutoPullCoinsButton.MouseButton1Click:Connect(function()
- self.Config.AutoPullCoins = not self.Config.AutoPullCoins
- if self.Config.AutoPullCoins then
- self.AutoPullCoinsButton.BackgroundColor3 = Color3.fromRGB(255, 200, 0)
- self.AutoPullCoinsButton.Text = "Auto-Pull Coins: LIGADO"
- self:StartAutoPullCoins()
- else
- self.AutoPullCoinsButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- self.AutoPullCoinsButton.Text = "Auto-Pull Coins: DESLIGADO"
- self:StopAutoPullCoins()
- end
- end)
- -- TOGGLE AUTO-MONEY
- self.AutoMoneyButton.MouseButton1Click:Connect(function()
- self.Config.AutoMoney = not self.Config.AutoMoney
- if self.Config.AutoMoney then
- self.AutoMoneyButton.BackgroundColor3 = Color3.fromRGB(0, 255, 150)
- self.AutoMoneyButton.Text = "Auto-Money: LIGADO"
- self:StartAutoMoney()
- else
- self.AutoMoneyButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- self.AutoMoneyButton.Text = "Auto-Money: DESLIGADO"
- self:StopAutoMoney()
- end
- end)
- -- TOGGLE COLETA AUTO
- self.AutoCollectButton.MouseButton1Click:Connect(function()
- self.Config.AutoCollect = not self.Config.AutoCollect
- if self.Config.AutoCollect then
- self.AutoCollectButton.BackgroundColor3 = Color3.fromRGB(255, 150, 0)
- self.AutoCollectButton.Text = "Coleta Auto: LIGADO"
- self:StartAutoCollect()
- else
- self.AutoCollectButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- self.AutoCollectButton.Text = "Coleta Auto: DESLIGADO"
- self:StopAutoCollect()
- end
- end)
- -- TOGGLE GOD-MODE
- self.GodModeButton.MouseButton1Click:Connect(function()
- self.Config.GodMode = not self.Config.GodMode
- if self.Config.GodMode then
- self.GodModeButton.BackgroundColor3 = Color3.fromRGB(150, 0, 255)
- self.GodModeButton.Text = "God-Mode: LIGADO"
- self:StartGodMode()
- else
- self.GodModeButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- self.GodModeButton.Text = "God-Mode: DESLIGADO"
- self:StopGodMode()
- end
- end)
- -- TOGGLE SAFE MODE (Corrigido para teleportar imediatamente)
- self.SafeModeButton.MouseButton1Click:Connect(function()
- self.Config.SafeMode = not self.Config.SafeMode
- if self.Config.SafeMode then
- self.SafeModeButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
- self.SafeModeButton.Text = "Safe Mode: LIGADO"
- self:TeleportToSafe() -- Teleporta imediatamente ao ativar
- self.StatusLabel.Text = "Status: Teleportado para Safe Platform"
- self.StatusLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
- wait(2)
- self.StatusLabel.Text = "Status: Pronto"
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- else
- self.SafeModeButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- self.SafeModeButton.Text = "Safe Mode: DESLIGADO"
- if self.SafePlatform then
- self.SafePlatform:Destroy()
- self.SafePlatform = nil
- end
- self.StatusLabel.Text = "Status: Safe Mode Desativado"
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 0)
- wait(2)
- self.StatusLabel.Text = "Status: Pronto"
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- end)
- -- TOGGLES GRÁFICOS
- self.NoFogButton.MouseButton1Click:Connect(function()
- self.Config.NoFogEnabled = not self.Config.NoFogEnabled
- if self.Config.NoFogEnabled then
- self.NoFogButton.BackgroundColor3 = Color3.fromRGB(0, 255, 255)
- self.NoFogButton.Text = "No Fog: LIGADO"
- self.Lighting.FogEnd = 1000000
- self.Lighting.FogStart = 0
- else
- self.NoFogButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- self.NoFogButton.Text = "No Fog: DESLIGADO"
- self.Lighting.FogEnd = self.OriginalLighting.FogEnd
- self.Lighting.FogStart = self.OriginalLighting.FogStart
- end
- end)
- self.NoShadowButton.MouseButton1Click:Connect(function()
- self.Config.NoShadowEnabled = not self.Config.NoShadowEnabled
- if self.Config.NoShadowEnabled then
- self.NoShadowButton.BackgroundColor3 = Color3.fromRGB(0, 255, 255)
- self.NoShadowButton.Text = "No Shadow: LIGADO"
- self.Lighting.GlobalShadows = false
- else
- self.NoShadowButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- self.NoShadowButton.Text = "No Shadow: DESLIGADO"
- self.Lighting.GlobalShadows = self.OriginalLighting.GlobalShadows
- end
- end)
- self.FullBrightButton.MouseButton1Click:Connect(function()
- self.Config.FullBrightEnabled = not self.Config.FullBrightEnabled
- if self.Config.FullBrightEnabled then
- self.FullBrightButton.BackgroundColor3 = Color3.fromRGB(0, 255, 255)
- self.FullBrightButton.Text = "Full Bright: LIGADO"
- self.Lighting.Brightness = 3
- self.Lighting.Ambient = Color3.fromRGB(255, 255, 255)
- self.Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255)
- else
- self.FullBrightButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- self.FullBrightButton.Text = "Full Bright: DESLIGADO"
- self.Lighting.Brightness = self.OriginalLighting.Brightness
- self.Lighting.Ambient = self.OriginalLighting.Ambient
- self.Lighting.OutdoorAmbient = self.OriginalLighting.OutdoorAmbient
- end
- end)
- self.RTXButton.MouseButton1Click:Connect(function()
- self.Config.RTXModeEnabled = not self.Config.RTXModeEnabled
- if self.Config.RTXModeEnabled then
- self.RTXButton.BackgroundColor3 = Color3.fromRGB(0, 255, 255)
- self.RTXButton.Text = "RTX Mode: LIGADO"
- self.Lighting.Brightness = 2
- self.Lighting.GlobalShadows = true
- if not self.ColorCorrection then
- self.ColorCorrection = Instance.new("ColorCorrectionEffect")
- self.ColorCorrection.Parent = self.Lighting
- end
- self.ColorCorrection.Saturation = 0.5
- self.ColorCorrection.Contrast = 0.2
- if not self.Bloom then
- self.Bloom = Instance.new("BloomEffect")
- self.Bloom.Parent = self.Lighting
- end
- self.Bloom.Intensity = 0.5
- self.Bloom.Size = 24
- self.Bloom.Threshold = 0.8
- else
- self.RTXButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- self.RTXButton.Text = "RTX Mode: DESLIGADO"
- self.Lighting.Brightness = self.OriginalLighting.Brightness
- self.Lighting.GlobalShadows = self.OriginalLighting.GlobalShadows
- if self.ColorCorrection then
- self.ColorCorrection:Destroy()
- self.ColorCorrection = nil
- end
- if self.Bloom then
- self.Bloom:Destroy()
- self.Bloom = nil
- end
- end
- end)
- -- Inicializa personagem
- self.Character = self.Player.Character
- if self.Character then
- self:UpdateCharacterMovement()
- if self.Config.GodMode then
- self:StartGodMode()
- end
- if self.Config.SafeMode then
- self:TeleportToSafe()
- end
- end
- self.Player.CharacterAdded:Connect(function(char)
- self.Character = char
- wait(1)
- self:UpdateCharacterMovement()
- if self.Config.GodMode then
- self:StartGodMode()
- end
- if self.Config.SafeMode then
- self:TeleportToSafe()
- end
- end)
- end
- -- Atualiza movimento do personagem
- function CollectionScript:UpdateCharacterMovement()
- if self.Character then
- local humanoid = self.Character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid.WalkSpeed = self.Config.WalkSpeed
- humanoid.JumpPower = self.Config.JumpPower
- end
- end
- end
- -- Encontra objetos coletáveis
- function CollectionScript:FindCollectibles()
- local collectibles = {}
- for _, obj in pairs(workspace:GetDescendants()) do
- if (obj:IsA("Part") or obj:IsA("MeshPart")) and obj:FindFirstChild("TouchInterest") then
- local name = string.lower(obj.Name)
- if string.find(name, "moneda") or string.find(name, "coin") or
- string.find(name, "money") or string.find(name, "gem") or
- string.find(name, "diamond") then
- table.insert(collectibles, obj)
- end
- end
- end
- return collectibles
- end
- -- Encontra apenas moedas
- function CollectionScript:FindCoins()
- local coins = {}
- for _, obj in pairs(workspace:GetDescendants()) do
- if (obj:IsA("Part") or obj:IsA("MeshPart")) and obj.Parent and obj:FindFirstChild("TouchInterest") then
- local name = string.lower(obj.Name)
- if string.find(name, "moneda") or string.find(name, "coin") or
- string.find(name, "money") then
- table.insert(coins, obj)
- end
- end
- end
- return coins
- end
- -- Teleporta para objetos
- function CollectionScript:TeleportToObject(obj)
- if not self.Character or not self.Character:FindFirstChild("HumanoidRootPart") or not obj.Parent then
- return false
- end
- local hrp = self.Character.HumanoidRootPart
- hrp.CFrame = CFrame.new(obj.Position + Vector3.new(0, 3, 0))
- if firetouchinterest then
- firetouchinterest(hrp, obj, 0)
- wait(0.01)
- firetouchinterest(hrp, obj, 1)
- end
- wait(0.05)
- return true
- end
- -- Move objeto para o jogador
- function CollectionScript:MoveToPlayer(obj)
- if not self.Character or not self.Character:FindFirstChild("HumanoidRootPart") or not obj.Parent then
- return false
- end
- local hrp = self.Character.HumanoidRootPart
- obj.CFrame = hrp.CFrame + Vector3.new(math.random(-2,2), math.random(1,3), math.random(-2,2))
- if firetouchinterest then
- firetouchinterest(hrp, obj, 0)
- wait(0.01)
- firetouchinterest(hrp, obj, 1)
- end
- wait(0.05)
- return true
- end
- -- Coleta tudo
- function CollectionScript:CollectEverything()
- local success, err = pcall(function()
- self.StatusLabel.Text = "Status: Coletando..."
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 0)
- local collectibles = self:FindCollectibles()
- local collected = 0
- for _, obj in pairs(collectibles) do
- if self:TeleportToObject(obj) then
- collected = collected + 1
- end
- wait(0.05)
- end
- self.StatusLabel.Text = "Status: Coletados " .. collected .. " objetos"
- self.StatusLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
- if self.Config.SafeMode then
- self:TeleportToSafe()
- end
- wait(2)
- self.StatusLabel.Text = "Status: Pronto"
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- end)
- if not success then
- self.StatusLabel.Text = "Status: Erro na coleta"
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
- warn("Erro ao coletar: " .. err)
- wait(2)
- self.StatusLabel.Text = "Status: Pronto"
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- end
- -- Teleporta itens para o jogador
- function CollectionScript:TeleportItemsToMe()
- local success, err = pcall(function()
- self.StatusLabel.Text = "Status: Teleportando itens..."
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 0)
- local items = self:FindCollectibles()
- local collected = 0
- for _, obj in pairs(items) do
- if self:MoveToPlayer(obj) then
- collected = collected + 1
- end
- wait(0.05)
- end
- self.StatusLabel.Text = "Status: Teleportados " .. collected .. " itens"
- self.StatusLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
- if self.Config.SafeMode then
- self:TeleportToSafe()
- end
- wait(2)
- self.StatusLabel.Text = "Status: Pronto"
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- end)
- if not success then
- self.StatusLabel.Text = "Status: Erro no teleporte"
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
- warn("Erro ao teleportar itens: " .. err)
- wait(2)
- self.StatusLabel.Text = "Status: Pronto"
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- end
- -- Auto-Pull Coins (Corrigido para puxar todas as moedas continuamente)
- function CollectionScript:StartAutoPullCoins()
- self:StopAutoPullCoins() -- Garante que não há conexões duplicadas
- self.AutoPullCoinsConnection = game:GetService("RunService").Heartbeat:Connect(function()
- if not self.Config.AutoPullCoins or not self.Character or not self.Character:FindFirstChild("HumanoidRootPart") then
- return
- end
- local coins = self:FindCoins()
- if #coins == 0 then
- self.StatusLabel.Text = "Status: Aguardando moedas..."
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 0)
- return
- end
- self.StatusLabel.Text = "Status: Puxando moedas..."
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 0)
- for _, obj in pairs(coins) do
- if not self.Config.AutoPullCoins then break end
- if obj.Parent then -- Verifica se a moeda ainda existe
- self:MoveToPlayer(obj)
- end
- wait(0.05) -- Pequeno atraso para evitar sobrecarga
- end
- if #coins > 0 then
- self.StatusLabel.Text = "Status: Moedas coletadas!"
- self.StatusLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
- end
- if self.Config.SafeMode then
- self:TeleportToSafe()
- end
- end)
- end
- function CollectionScript:StopAutoPullCoins()
- if self.AutoPullCoinsConnection then
- self.AutoPullCoinsConnection:Disconnect()
- self.AutoPullCoinsConnection = nil
- end
- self.StatusLabel.Text = "Status: Pronto"
- self.StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- -- Auto-Money
- function CollectionScript:StartAutoMoney()
- self:StopAutoMoney()
- self.AutoMoneyConnection = game:GetService("RunService").Heartbeat:Connect(function()
- if not self.Config.AutoMoney then return end
- local collectibles = self:FindCollectibles()
- for _, obj in pairs(collectibles) do
- if not self.Config.AutoMoney then break end
- local name = string.lower(obj.Name)
- if string.find(name, "moneda") or string.find(name, "coin") or string.find(name, "money") then
- self:TeleportToObject(obj)
- wait(0.2)
- end
- end
- if self.Config.SafeMode then
- self:TeleportToSafe()
- end
- end)
- end
- function CollectionScript:StopAutoMoney()
- if self.AutoMoneyConnection then
- self.AutoMoneyConnection:Disconnect()
- self.AutoMoneyConnection = nil
- end
- end
- -- Coleta automática
- function CollectionScript:StartAutoCollect()
- self:StopAutoCollect()
- self.AutoCollectConnection = game:GetService("RunService").Heartbeat:Connect(function()
- if not self.Config.AutoCollect then return end
- local collectibles = self:FindCollectibles()
- for _, obj in pairs(collectibles) do
- if not self.Config.AutoCollect then break end
- local name = string.lower(obj.Name)
- if string.find(name, "gem") or string.find(name, "coin") or string.find(name, "money") or string.find(name, "moneda") or string.find(name, "diamond") then
- self:TeleportToObject(obj)
- wait(0.2)
- end
- end
- if self.Config.SafeMode then
- self:TeleportToSafe()
- end
- end)
- end
- function CollectionScript:StopAutoCollect()
- if self.AutoCollectConnection then
- self.AutoCollectConnection:Disconnect()
- self.AutoCollectConnection = nil
- end
- end
- -- God Mode
- function CollectionScript:StartGodMode()
- self:StopGodMode()
- if self.Character then
- local humanoid = self.Character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid.MaxHealth = math.huge
- humanoid.Health = math.huge
- self.GodModeConnection = game:GetService("RunService").Heartbeat:Connect(function()
- if not self.Config.GodMode then return end
- if humanoid and humanoid.Health < math.huge then
- humanoid.Health = math.huge
- end
- end)
- self.GodModeDiedConnection = humanoid.Died:Connect(function()
- if self.Config.GodMode then
- local hrp = self.Character:FindFirstChild("HumanoidRootPart")
- if hrp then
- humanoid.Health = math.huge
- hrp.Position = hrp.Position + Vector3.new(0, 5, 0)
- end
- end
- end)
- end
- end
- end
- function CollectionScript:StopGodMode()
- if self.GodModeConnection then
- self.GodModeConnection:Disconnect()
- self.GodModeConnection = nil
- end
- if self.GodModeDiedConnection then
- self.GodModeDiedConnection:Disconnect()
- self.GodModeDiedConnection = nil
- end
- if self.Character then
- local humanoid = self.Character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid.MaxHealth = 100
- humanoid.Health = 100
- end
- end
- end
- -- Teleport to Safe Platform
- function CollectionScript:TeleportToSafe()
- if not self.Character or not self.Character:FindFirstChild("HumanoidRootPart") then
- return
- end
- if not self.SafePlatform then
- self.SafePlatform = Instance.new("Part")
- self.SafePlatform.Name = "SafePlatform"
- self.SafePlatform.Size = Vector3.new(10, 1, 10)
- self.SafePlatform.Position = Vector3.new(0, 300, 0)
- self.SafePlatform.Anchored = true
- self.SafePlatform.CanCollide = true
- self.SafePlatform.Transparency = 0.5
- self.SafePlatform.Parent = workspace
- end
- local hrp = self.Character.HumanoidRootPart
- hrp.CFrame = CFrame.new(self.SafePlatform.Position + Vector3.new(0, 5, 0))
- end
- -- Para tudo
- function CollectionScript:StopAll()
- self:StopAutoMoney()
- self:StopAutoCollect()
- self:StopAutoPullCoins()
- self:StopGodMode()
- self.Config.AutoMoney = false
- self.Config.AutoCollect = false
- self.Config.AutoPullCoins = false
- self.Config.GodMode = false
- self.Config.SafeMode = false
- self.Config.NoFogEnabled = false
- self.Config.NoShadowEnabled = false
- self.Config.FullBrightEnabled = false
- self.Config.RTXModeEnabled = false
- if self.SafePlatform then
- self.SafePlatform:Destroy()
- self.SafePlatform = nil
- end
- self.Lighting.FogEnd = self.OriginalLighting.FogEnd
- self.Lighting.FogStart = self.OriginalLighting.FogStart
- self.Lighting.GlobalShadows = self.OriginalLighting.GlobalShadows
- self.Lighting.Brightness = self.OriginalLighting.Brightness
- self.Lighting.Ambient = self.OriginalLighting.Ambient
- self.Lighting.OutdoorAmbient = self.OriginalLighting.OutdoorAmbient
- if self.ColorCorrection then
- self.ColorCorrection:Destroy()
- self.ColorCorrection = nil
- end
- if self.Bloom then
- self.Bloom:Destroy()
- self.Bloom = nil
- end
- end
- -- Inicializa
- function CollectionScript:Init()
- local success, message = pcall(function()
- self:CreateGUI()
- print("✅ MOD MENU CARREGADO COM SUCESSO!")
- print("🎯 Auto-Pull Coins corrigido: puxa todas as moedas continuamente!")
- print("🛡️ Safe Mode ajustado: teleporta imediatamente ao ativar!")
- print("📱 Menu compactado (240x300) com sistema de páginas!")
- end)
- if not success then
- warn("❌ Erro: " .. message)
- end
- end
- -- Executa o script
- CollectionScript:Init()
- return CollectionScript
Advertisement
Add Comment
Please, Sign In to add comment