How to make an automatic training system?

So what do I have to do?
I need to make a button that starts the automatic training of the player. Without his interaction

What exactly do you need to do?
I want

  1. The player is either teleported or walks himself to the right place for training.

  2. I want to roughly speaking turned on auto-click (but which will act only on throws), and thus the system threw for the player dynamite (it is thrown simply by clicking the left mouse button)

That’s all, that is, the player goes to the place (or he teleports). Then the system throws the dynamite forward. And the player at this time can move away from the computer.

That’s just the problem I do not know how to do it? Can you tell me? Here if anyone needs a link to the mode, where there is such a thing:[🌞SUMMER] Shoot Wall Simulator - Roblox, Arm Wrestle Simulator - Roblox, Punch Wall Simulator - Roblox.

1 Like

This might help you.

local autoClickerOn = false

local function automaticTraining(on)
    if on then
        humanoid:MoveTo(partForTraining.Position)
        humanoid.MoveToFinished:Wait()

        autoClickerOn = true
    else
        autoClickerOn = false
    end
end

-- Fire the automaticTraining once you clicked a button or your case.

while true do
    if autoClickerOn then
        throwDynamite:Fire() -- In this case I assume you use bindable event although you can change it to your specific case.
    end
end
1 Like