|
| 1 | +-- https://github.com/nucax |
| 2 | +local Players = game:GetService("Players") |
| 3 | +local RunService = game:GetService("RunService") |
| 4 | + |
| 5 | +local player = Players.LocalPlayer |
| 6 | +local character = player.Character or player.CharacterAdded:Wait() |
| 7 | +local hrp = character:WaitForChild("HumanoidRootPart") |
| 8 | + |
| 9 | +local autoFarmEnabled = false |
| 10 | +local darkMode = false |
| 11 | +local spawnPosition = Vector3.new(-246.7, 180.1, 326.7) |
| 12 | +local mapPosition = Vector3.new(-125.0, 48.1, 14.5) |
| 13 | + |
| 14 | +local ScreenGui = Instance.new("ScreenGui") |
| 15 | +ScreenGui.Name = "i bet youre using dex 3.0" |
| 16 | +ScreenGui.Parent = player:WaitForChild("PlayerGui") |
| 17 | + |
| 18 | +local function createButton(name, position, callback) |
| 19 | + local button = Instance.new("TextButton") |
| 20 | + button.Size = UDim2.new(0, 200, 0, 50) |
| 21 | + button.Position = position |
| 22 | + button.Text = name |
| 23 | + button.BackgroundColor3 = Color3.fromRGB(255, 255, 255) |
| 24 | + button.TextColor3 = Color3.fromRGB(0, 0, 0) |
| 25 | + button.Parent = ScreenGui |
| 26 | + button.MouseButton1Click:Connect(callback) |
| 27 | + return button |
| 28 | +end |
| 29 | + |
| 30 | +local tpButton = createButton("Tp to Spawn", UDim2.new(0, 50, 0, 50), function() |
| 31 | + hrp.CFrame = CFrame.new(spawnPosition) |
| 32 | +end) |
| 33 | + |
| 34 | +local tpMapButton = createButton("Tp to Map", UDim2.new(0, 50, 0, 120), function() |
| 35 | + hrp.CFrame = CFrame.new(mapPosition) |
| 36 | +end) |
| 37 | + |
| 38 | +local toggleButton = createButton("Auto Farm: OFF", UDim2.new(0, 50, 0, 190), function() |
| 39 | + autoFarmEnabled = not autoFarmEnabled |
| 40 | +end) |
| 41 | + |
| 42 | +local githubButton = createButton("https://github.com/nucax", UDim2.new(0, 50, 0, 260), function() |
| 43 | + if syn then |
| 44 | + syn.request({Url = "https://github.com/nucax", Method = "GET"}) |
| 45 | + else |
| 46 | + setclipboard("https://github.com/nucax") |
| 47 | + end |
| 48 | +end) |
| 49 | + |
| 50 | +local closeButton = createButton("Close GUI", UDim2.new(0, 50, 0, 330), function() |
| 51 | + ScreenGui:Destroy() |
| 52 | +end) |
| 53 | + |
| 54 | +local themeButton |
| 55 | +local buttons = {} |
| 56 | + |
| 57 | +themeButton = createButton("Toggle White/Black GUI", UDim2.new(0, 50, 0, 400), function() |
| 58 | + darkMode = not darkMode |
| 59 | + local bg = darkMode and Color3.fromRGB(0,0,0) or Color3.fromRGB(255,255,255) |
| 60 | + local fg = darkMode and Color3.fromRGB(255,255,255) or Color3.fromRGB(0,0,0) |
| 61 | + for _, btn in ipairs(buttons) do |
| 62 | + btn.BackgroundColor3 = bg |
| 63 | + btn.TextColor3 = fg |
| 64 | + end |
| 65 | +end) |
| 66 | + |
| 67 | +buttons = {tpButton, tpMapButton, toggleButton, githubButton, closeButton, themeButton} |
| 68 | + |
| 69 | +RunService.RenderStepped:Connect(function() |
| 70 | + if autoFarmEnabled then |
| 71 | + hrp.CFrame = CFrame.new(spawnPosition) |
| 72 | + end |
| 73 | +end) |
| 74 | + |
| 75 | +RunService.RenderStepped:Connect(function() |
| 76 | + toggleButton.Text = autoFarmEnabled and "Auto Farm: ON" or "Auto Farm: OFF" |
| 77 | +end) |
0 commit comments