Hello.
This script gonna take a screenshot if your character dies. It's gonna save the screenshot of Bot's folder.
This script gonna take a screenshot if your character dies. It's gonna save the screenshot of Bot's folder.
PLAYER_DIED = PLAYER_DIED or false
if PLAYER_DIED == false and connected() and hp() <= 0 then
wait(500)
screenshot(name() .. ' - Death at ' .. date() .. ' - ' .. formattedtime())
PLAYER_DIED = true
elseif PLAYER_DIED == false and hp() > 0 then
PLAYER_DIED = false
end