Run it
Copy the script and paste it into your executor.
Players = :()
ReplicatedStorage = :()
UserInputService = :()
RunService = :()
player = Players.LocalPlayer
Remotes = ReplicatedStorage:()
state = {
fullAuto = ,
train = ,
rebirth = ,
alive = ,
isTraining =
}
guiParent = (gethui ()) :()
(() guiParent.Name )
guiParent = player:()
guiParent:()
guiParent.TrainMenu_Auto:()
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = guiParent
FULL_HEIGHT =
MIN_HEIGHT =
main = .()
main.Size = .(, , , FULL_HEIGHT)
main.Position = .(, -, , )
main.BackgroundColor3 = .(, , )
main.BorderSizePixel =
main.Parent = gui
.(, main).CornerRadius = .(, )
titleBar = .()
titleBar.Size = .(, , , )
titleBar.BackgroundColor3 = .(, , )
titleBar.BorderSizePixel =
titleBar.Parent = main
.(, titleBar).CornerRadius = .(, )
title = .()
title.Size = .(, -, , )
title.Position = .(, , , )
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(, , )
title.Font = .Font.GothamBold
title.TextSize =
title.TextXAlignment = .TextXAlignment.Left
title.Parent = titleBar
(text, xOffset, color)
b = .()
b.Size = .(, , , )
b.Position = .(, xOffset, , )
b.BackgroundColor3 = color
b.Text = text
b.TextColor3 = .(, , )
b.Font = .Font.GothamBold
b.TextSize =
b.BorderSizePixel =
b.Parent = titleBar
.(, b).CornerRadius = .(, )
b
minBtn = (, -, .(, , ))
closeBtn = (, -, .(, , ))
content = .()
content.Size = .(, , , -)
content.Position = .(, , , )
content.BackgroundTransparency =
content.Parent = main
layout = .(, content)
layout.Padding = .(, )
layout.HorizontalAlignment = .HorizontalAlignment.Center
pad = .(, content)
pad.PaddingTop = .(, )
statusLabel = .()
statusLabel.Size = .(, -, , )
statusLabel.BackgroundColor3 = .(, , )
statusLabel.TextColor3 = .(, , )
statusLabel.Font = .Font.GothamMedium
statusLabel.TextSize =
statusLabel.Text =
statusLabel.BorderSizePixel =
statusLabel.Parent = content
.(, statusLabel).CornerRadius = .(, )
(txt)
statusLabel.Text = .. txt
(name, defaultOn, callback)
btn = .()
btn.Size = .(, -, , )
btn.BackgroundColor3 = defaultOn .(, , ) .(, , )
btn.TextColor3 = .(, , )
btn.Font = .Font.Gotham
btn.TextSize =
btn.BorderSizePixel =
btn.Text = name .. .. (defaultOn )
btn.Parent = content
.(, btn).CornerRadius = .(, )
on = defaultOn
btn.MouseButton1Click:(()
on = on
btn.Text = name .. .. (on )
btn.BackgroundColor3 = on .(, , ) .(, , )
(on)
)
btn
(cf)
char = player.Character player.CharacterAdded:()
hrp = char:()
hrp
hrp.CFrame = cf
.()
()
Remotes:():()
.()
state.isTraining =
()
b8 = .Lobby.Gym.Barbells:()
b8
prompt = b8:(, )
prompt
(b8:() + .(, , ))
.()
prompt.Enabled =
prompt.RequiresLineOfSight =
prompt.MaxActivationDistance =
.()
(prompt)
.()
guiCheck = player.PlayerGui:()
active = (guiCheck guiCheck.Root.TrainingPanel.Card.Visible)
state.isTraining = active
active
()
pGui = player:()
tGui = pGui pGui:()
tGui tGui.Root.TrainingPanel.Card.Visible
valLabel = tGui.Root.TrainingPanel.Card.Body.Info:()
valLabel valLabel.Text ~=
clean = valLabel.Text:(, )
cur, cap = clean:()
cur cap
(cur), (cap)
,
(, , (on)
state.fullAuto = on
on
.(()
state.fullAuto state.alive
()
entered = ()
retries =
state.fullAuto entered retries <
retries = retries +
.()
entered = ()
state.fullAuto
()
reachCap =
state.fullAuto state.alive reachCap
Remotes.TrainRep:()
.()
cur, cap = ()
cur cap
(.(, cur, cap))
cur >= cap
reachCap =
state.fullAuto
()
()
.()
()
Remotes.TravelTo:()
.()
()
_ = ,
Remotes.Rebirth:()
.()
()
.()
()
)
()
)
(, , (on)
on
.(()
()
)
()
)
(, , (on)
state.train = on
on
.(()
Event = Remotes:()
state.train state.alive
Event:()
.()
)
)
(, , (on)
on
.(()
()
.()
Remotes:():()
)
)
(, , (on)
state.rebirth = on
on
.(()
Event = Remotes:()
state.rebirth state.alive
Event:()
.()
)
)
minimized =
minBtn.MouseButton1Click:(()
minimized = minimized
content.Visible = minimized
main.Size = .(, , , minimized MIN_HEIGHT FULL_HEIGHT)
minBtn.Text = minimized
)
closeBtn.MouseButton1Click:(()
state.alive =
state.fullAuto =
state.train =
state.rebirth =
()
gui:()
)
dragging, dragStart, startPos
titleBar.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = main.Position
)
UserInputService.InputChanged:((input)
dragging (input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch)
delta = input.Position - dragStart
main.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X,
startPos.Y.Scale, startPos.Y.Offset + delta.Y)
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
)Simple AI written script to train until max then rebirth and go again. If it works for you give me a like and I will write a keyless Auto Fight script next time.