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

why is it not changing the text on my textlabel?

So everything is working flawlessly except it is not changing the text after the wait unless the wait = wait(1) nothing more which i'm finding odd

local newpart = Instance.new("Part",game.ServerStorage)
local newgui = Instance.new("ScreenGui",game.ServerStorage)



--Main
newpartclone = newpart:Clone()
	newpartclone.Parent = game.Workspace
		newpart.Anchored = true
newpart.Position = Vector3.new(5,5,5)


newguiclone = newgui:Clone()
	newguiclone.Parent = game.StarterGui
		newguiclone.Name = "GUI"
																			 
  			Instance.new("TextLabel",game.StarterGui.GUI) -- adding textlabel 

				local GUI_TextLabel = game.StarterGui.GUI.TextLabel 

			local GUI = game.StarterGui.GUI

GUI.Enabled = true
GUI_TextLabel.Size = UDim2.new(0, 200, 0, 50)

GUI_TextLabel.Text = "PART HAS BEEN INSERTED"
wait(2)
GUI_TextLabel.Text = "EVERYTHING IS GOOD"

1 answer

Edit the TextLabel in the PlayerGui of the player, not StarterGui. The player sees what is inside of PlayerGui, and everything from StarterGui is cloned into PlayerGui when the character loads.

1 comment

0

so i can keep everything how it is but in like line 27 address the player gui? and would i need to transfer this to a local script?

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