RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make it so the text only updates once the local players health is 0"
-- local script local player = game:GetService("Players").LocalPlayer local textLabel = script.Parent local messages = {"'In war, truth is the first casualty.' - Aeschylus", "Only the dead have seen war.", "E", "Good luck", "Have fun"} while true do if player.Character.Humanoid.Health == 0 then local randomIndex = math.random(#messages) textLabel.Text = messages[randomIndex] end task.wait(3) end