How to stop player from resetting?

How does games make player cannot reset character/respawn?
For example:

  • The Strongest Battleground
    TSBG has a system where there’s a cooldown before you can reset and shows the duration using the roblox notification system.

thenk u :slight_smile:

4 Likes

use StarterGui:SetCore(), it has an option for removing reset button

2 Likes

you mean ResetCallback? If yes it will worked but in TSBG you’ll still have the reset button but it will still not allow you to reset.

1 Like

not really sure what you mean. if you want to have a cooldown before you’re allowed to reset, you can disable the reset button, wait for the cooldown, and enable the reset button

1 Like

game:GetService(“StarterGui”):SetCore(“ResetButtonCallback”, false)

2 Likes

If you mean the button is always enabled, but if you try to reset you can’t, you can actually set the ResetButtonCallback to a BindableEvent.

local sGui = game:GetService("StarterGui")

local event = Instance.new("BindableEvent")

event.Event:Connect(function()
    --logic here
    if (canReset) then --where canReset is determined in your code
        Humanoid:TakeDamage(100)
    end
end)

sGui:SetCore("ResetButtonCallback", event)
2 Likes

thenk u!!!

1 Like

No problem! If that worked and it’s all good, make sure to mark this topic as solved so it can close.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.