local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
local PlayerGui = player:WaitForChild("PlayerGui")
-- Helper to find the training remote anywhere in ReplicatedStorage
local function findTrainRemote()
local possibleNames = {"RemoteEvent", "TrainRemote", "AddStat", "Attack", "Action"}
local folder = ReplicatedStorage:FindFirstChild("Remotes") or ReplicatedStorage
for _, name in ipairs(possibleNames) do
local found = folder:FindFirstChild(name, true)
if found and found:IsA("RemoteEvent") then return found end
end
return nil
end
local TrainRemote = findTrainRemote()
-- MD5 Logic (For your key system)
local function getMd5(str)
local success, lib = pcall(function()
return loadstring(game:HttpGet("https://raw.githubusercontent.com/kikito/md5.lua/master/md5.lua"))()
end)
return (success and lib) and lib.sumhexa(str) or ""
end
local validHashes = {"35d4ecf3c0b6d1be1198b75785770943"}
local function checkCode(input)
local hashedInput = getMd5(input:gsub("%s+", ""))
for _, v in ipairs(validHashes) do if hashedInput == v then return true end end
return false
end
-- MAIN SCRIPT START
local function loadMainScript()
print("[System] Constructing UI...")
local SETTINGS = { TrainDelay = 0.25, CheckDelay = 1.0, TeleportHeight = 6 }
local STAT_ID = { Strength=1, Durability=2, Chakra=3, Sword=4, Agility=5, Speed=6 }
local SPOTS = {
Strength = {{ req = 100, path = "Workspace.Map.TrainingAreas.Training Dummy", label = "Dummy (100)" }},
Durability = {{ req = 100, path = "Workspace.Map.TrainingAreas.Pirate ship.Model", label = "Ship (100)" }},
Chakra = {{ req = 100, path = "Workspace.Map.TrainingAreas.Tree1.ObjectRoot", label = "Chakra Tree (100)" }},
Agility = {{ req = 100, path = "Workspace.Map.TrainingAreas.Trampoline.Bouncy", label = "Trampoline (100)" }},
Speed = {{ req = 100, path = "Workspace.Map.TrainingAreas.Treadmills", label = "Treadmills (100)" }},
Sword = {}
}
local ActiveStats = {}
local CurrentSpotLabels = {}
-- UI Creation
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "TrainerUI_Fixed"
ScreenGui.IgnoreGuiInset = true
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = PlayerGui
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.fromOffset(300, 400)
MainFrame.Position = UDim2.new(0.5, -150, 0.5, -200)
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
MainFrame.Active = true
MainFrame.Draggable = true -- Simple drag for testing
MainFrame.Parent = ScreenGui
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, 0, 0, 40)
Title.Text = "Trainer Loaded - @getbreaches"
Title.TextColor3 = Color3.new(1, 1, 1)
Title.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
Title.Parent = MainFrame
local Container = Instance.new("ScrollingFrame")
Container.Position = UDim2.new(0, 5, 0, 45)
Container.Size = UDim2.new(1, -10, 1, -50)
Container.BackgroundTransparency = 1
Container.Parent = MainFrame
local UIList = Instance.new("UIListLayout")
UIList.Padding = UDim.new(0, 5)
UIList.Parent = Container
-- Create Buttons
for statName, _ in pairs(SPOTS) do
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(1, 0, 0, 40)
btn.Text = "Toggle " .. statName
btn.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
btn.TextColor3 = Color3.new(1, 1, 1)
btn.Parent = Container
btn.MouseButton1Click:Connect(function()
ActiveStats[statName] = not ActiveStats[statName]
btn.BackgroundColor3 = ActiveStats[statName] and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(50, 50, 60)
end)
end
-- Training Loop
task.spawn(function()
while true do
for stat, enabled in pairs(ActiveStats) do
if enabled and TrainRemote then
TrainRemote:FireServer("Train", STAT_ID[stat])
end
end
task.wait(SETTINGS.TrainDelay)
end
end)
print("[System] UI should now be visible on your screen.")
end
-- Key Popup Logic
local function showKeyPopup()
local gui = Instance.new("ScreenGui", PlayerGui)
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.fromOffset(300, 150)
frame.Position = UDim2.new(0.5, -150, 0.5, -75)
frame.BackgroundColor3 = Color3.fromRGB(20, 20, 25)
local txt = Instance.new("TextBox", frame)
txt.Size = UDim2.new(0.8, 0, 0, 40)
txt.Position = UDim2.new(0.1, 0, 0.2, 0)
txt.PlaceholderText = "Enter Key"
local sub = Instance.new("TextButton", frame)
sub.Size = UDim2.new(0.4, 0, 0, 30)
sub.Position = UDim2.new(0.3, 0, 0.6, 0)
sub.Text = "Submit"
sub.MouseButton1Click:Connect(function()
if checkCode(txt.Text) then
gui:Destroy()
loadMainScript()
else
sub.Text = "Wrong!"
task.wait(1)
sub.Text = "Submit"
end
end)
end
showKeyPopup()
Comments
No comments yet
Be the first to share your thoughts!