Resetting Disabled whilst in vehicle / normal seat

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    When you are seated in a vehicle seat or a normal seat, your reset button is disabled and you cannot reset. When not in a vehicle seat or normal seat, you can reset.

  2. What is the issue? Include screenshots / videos if possible!
    I’ve got a script to disable resetting in general, but nothing to disable it in a vehicle seat / seat.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I looked on here, but just a disable reset button in general was all I found.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local coreCall do
    local MAX_RETRIES = 8

    local StarterGui = game:GetService('StarterGui')
    local RunService = game:GetService('RunService')

    function coreCall(method, ...)
        local result = {}
        for retries = 1, MAX_RETRIES do
            result = {pcall(StarterGui[method], StarterGui, ...)}
            if result[1] then
                break
            end
            RunService.Stepped:Wait()
        end
        return unpack(result)
    end
end

assert(coreCall('SetCore', 'ResetButtonCallback', false))

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Have you tried detecting when a humanoid is seated in a local script?

1 Like

I have not thought of this, and I will look into this.