Client exports

This section describes all client-side exports provided by the resource. These exports are intended to be used by other client scripts to control, integrate, or synchronize the death screen logic.


startDeathScreen

Description Displays the death screen UI and starts the death timer.

Export

exports['pinkFrog_deathScreen']:startDeathScreen(time)

Parameters

Name
Type
Description

time

number

Death screen duration in seconds

Example

exports['pinkFrog_deathScreen']:startDeathScreen(60)

IsDeadScreenActive

Description Returns whether the death screen is currently active.

Export

exports['pinkFrog_deathScreen']:IsDeadScreenActive()

Returns

Type
Description

boolean

true if death screen is visible

Example

if exports['pinkFrog_deathScreen']:IsDeadScreenActive() then
    print("Player is dead")
end

HardReset

Description Fully resets the death screen state after the player is revived. This is the recommended export to call after any external revive.

What it does

  • Hides the death screen

  • Clears injury & skeleton data

  • Stops death / crawl animations

  • Restores normal player control

Export

Example


HideDeathScreen

Description Hides the death screen UI without performing a full reset. Use only if you want to manually control player state.

Export

Example


ApplyDeathAnimation

Description Applies the configured death animation to the player. Useful when reviving without resetting UI logic.

Export

Example



Last updated