Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

TextLabel is not a valid member of Frame "Players.BrasileiroConstrutor.PlayerGui.Main.Frame" ?

Asked by 3 years ago
Edited 3 years ago

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)

0
Do you mean player.PlayerGui.Main.Frame.TextLabel.Text as opposed to player.PlayerGui.Main.Frame.TextLabel? RAFA1608 543 — 3y
0
Oh, yeah! I forgot that! Thank you so much! BrasileiroConstrutor 27 — 3y
0
Mark it as "Answered" if your problem has been solved. RAFA1608 543 — 3y

Answer this question