I am making a dialogue in my game but I don't know why this is happening because there is a TextLabel in PlayerGui but somehow roblox doesn't detect it. What should I do?

Script:

wait(15)

local player = game.Players.LocalPlayer

player.PlayerGui.Main.Frame.TextLabel = "Hello everyone! My name is Nicolas and welcome to Decision Duel!"

wait(9)

player.PlayerGui.Main.Frame.TextLabel = "In this game, if you win the first competition, you will be able to choose two participants, a map and weapons!"

wait(9)

player.PlayerGui.Main.Frame.TextLabel = "Then, the chosen participants will fight in the map the winner chose and with the weapons that the winner chose."

wait(9)

player.PlayerGui.Main.Frame.TextLabel = "Everyone is ready? Let's start! Good luck everyone!"

wait(9)

3 comments

0

Do you mean player.PlayerGui.Main.Frame.TextLabel.Text as opposed to player.PlayerGui.Main.Frame.TextLabel?

0

Oh, yeah! I forgot that! Thank you so much!

0

Mark it as "Answered" if your problem has been solved.