Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Changing a gui text?

Here is my atempt at changing a gui's text using a script

game.StarterGui.ScreenGui.Info.Text = "Intermission 9"

the problem is it doesnt change the text, probly an easy fix for some but im a noob with lua, please help, thanks.

1 answer

Your problem is that you're trying to change the gui's text from the StarterGui's gui. When in-game, the gui that you see is stored in your PlayerGui. When a player joins, all guis from StarterGui get cloned into your PlayerGui.

So to fix? Access the gui from your PlayerGui.

This should be used in a localscript;

local plr = game.Players.LocalPlayer --Get the player
local gui = plr.PlayerGui.ScreenGui.Info --Get the gui

gui.Text = "Intermission 9" --Change the text

This discussion is preserved as it was. New answers, comments, and votes are closed.