#How to detect if player resets

1 messages · Page 1 of 1 (latest)

tardy echo
#

i only want to detect if player reseted not died btw*

ashen wraith
#
local resetBindable = Instance.new("BindableEvent")
resetBindable.Event:connect(function()
    -- Implement custom reset logic here
end)

-- This will remove the current behavior for when the reset button 
-- is pressed and just fire resetBindable instead.
game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetBindable)

-- Setting ResetButtonCallback to false will grey out the reset button
-- in the menu and players won't be able to reset in your game.
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
chrome jungle
#

does the above code work at all?

tardy echo
#

one more question, will it work in local script?

ashen wraith
#

yes

tardy echo
#

one more question (sorry)

how can i learn name of who reseted

#

nvm figured it out