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

The UI clones but text does not show when cloned?

My last post was very confusing. Basically, the User Interface clones and destroys, but text does not show:

local statusDom = game.ReplicatedStorage.StatusDom
local text = script.Parent.TextLabel
local servermusic = game.Workspace.Sounds.new_summer
local ding = game.Workspace.Sounds.Celebration

statusDom.Changed:Connect(function()
	local clone = script.Parent:Clone()
	clone.Parent = game.StarterGui
	clone.Enabled = true
	clone.TextLabel.Text = statusDom.Value
	wait(5)
	clone.Enabled = false
	clone:Destroy()
end)

1 comment

0

There is an Edit function below your post.

1 answer

You're cloning to StarterGui. This is a container that is not responsible for handling the User Interface, but the setup. This service is alike many other with the handle "Starter", meaning all related content will be transferred to a separate container as a default asset. E.g. the StarterPack & Backpack relationship.

StarterGui's partner, is the local container PlayerGui. You need to parent to this.

2 comments

0

What line? It comes up as not valid in DataModel sorry

0

PlayerGui is inside players. For example : game.Players.Ben_B.PlayerGui, or game.Players.LocalPlayer.PlayerGui.

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