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"
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"
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"
thanks :)
wait it still doesnt work
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
https://scriptinghelpers.org/blog/common-mistakes#PlayerGui