Hello i Was Just Wondering How To Make Random Text Appear Out Of Varaibles With Strings I Made For A Death Screen
Text Variables Are Through Line 1 to 7
local textpreset1 = "What Led You Down This Path?"
local textpreset2 = "Way To Go Buddy."
local textpreset3 = "Welp That's NOT A Way To Do It."
local textpreset4 = "Really Bro?"
local textpreset5 = "Forgot To Put On A Vest?"
local textpreset6 = "Do You Like Hurting Other People?"
local textpreset7 = "Good Job. Just Good Job."
-- died
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:connect(function()
script.Parent.Sound:Play()
script.Parent.Frame2.Visible = true
script.Parent.Frame.Visible = true
script.Parent.TextLabel.Visible = true
script.Parent.TextLabel.TextTransparency = 1
wait(3)
script.Parent.TextLabel.TextTransparency = 0
script.Parent.TextLabel.Text = (textpreset1 or textpreset2 or textpreset3 or textpreset4 or textpreset5 or textpreset6 or textpreset7)
wait(9)
script.Parent.TextLabel.Text = ""
script.Parent.Frame.Visible = false
script.Parent.Frame2.Visible = false
end)
Please Leave Your Suggestions In The Comments.

2 comments
can you use varaibles in arrays?
You can.