Win/Lose Screen Script
Customize your variables, then fill in the blanks!
⭐⭐⭐
Get all answers right to earn your stars!
🎮 Your Custom Settings
Players needed to start the game
ScreenGui name in StarterGui
ScreenGui name in StarterGui
📝 Script (ServerScriptService)
This script waits for players to join, then shows win/lose screens when someone is knocked out. Create two ScreenGuis (winGui and loseGui) in StarterGui with Enabled = false!
local Players = game:("Players")
repeat task.() until #Players:GetPlayers() >= 2
for _, player in pairs(Players:GetPlayers()) do
local character = player.Character or player.:Wait()
local humanoid = character:WaitForChild("")
humanoid.:Connect(function()
player..loseGui. = true
for _, otherPlayer in pairs(Players:GetPlayers()) do
if otherPlayer ~= player then
otherPlayer.PlayerGui.winGui.Enabled = true
end
end
end)
end
