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
How does games make player cannot reset character/respawn?
For example:
thenk u
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.
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
game:GetService(“StarterGui”):SetCore(“ResetButtonCallback”, false)
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)
thenk u!!!
No problem! If that worked and it’s all good, make sure to mark this topic as solved so it can close.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.