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

textlabel and wait() problem can somebody please help me?

Asked by 6 years ago
Edited 6 years ago

so basically im trying to make a script and it seems that whenever i do wait(number) before it it doesnt do anything heres the script

wait(3)

game.StarterGui.ScreenGui.TextLabel.Text = "test"

1 answer

Log in to vote
0
Answered by 6 years ago

StarterGui is a placeholder for Guis. Content inside StarterGui get replicated to the Local Player's PlayerGui. The Gui itself is in the PlayerGui. Here is the Local Script:

local plr = game:GetService("Players").LocalPlayer
wait(3)
plr:WaitForChild("PlayerGui").ScreenGui.TextLabel.Text = "Test"
1
thanks :) DimondWolfLord -19 — 6y
1
wait it still doesnt work DimondWolfLord -19 — 6y
Ad

Answer this question