Advertisement
OnFireRobloxScriptin

Roblox Deathscreen message

May 23rd, 2023 (edited)
6,881
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. --//Variables
  2. local deathscreen = script.Parent.Frame --Variable for the Frame
  3. local player = game.Players.LocalPlayer --Variable for the Player
  4. local character = player.Character --Variable for the Player's character
  5.  
  6. character:WaitForChild("Humanoid").Died:Connect(function() --When the character dies
  7.     deathscreen.Visible = true --Make the deathscreen visible
  8.     task.wait(5) --Wait 5 seconds
  9.     deathscreen.Visible = false --Make the deathscreen invisible
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement