
Keyless

--TOGGLES
getgenv().autotrain = true -- true for on, false for off
--VARIABLES
local player = game:GetService("Players").LocalPlayer
local char = player.Character
local sword = char:FindFirstChildOfClass("Tool")
function train()
if sword then
sword:Activate()
end
end
while getgenv().autotrain do
task.wait()
train()
if not getgenv().autotrain then
break
end
end

Working