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

The UI clones but text does not show when cloned?

Asked by
Ben_B 9
4 years ago
Edited by Ziffixture 4 years ago

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)
0
There is an Edit function below your post. Ziffixture 6913 — 4y

1 answer

Log in to vote
1
Answered by
Ziffixture 6913 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

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.

0
What line? It comes up as not valid in DataModel sorry Ben_B 9 — 4y
0
PlayerGui is inside players. For example : game.Players.Ben_B.PlayerGui, or game.Players.LocalPlayer.PlayerGui. youtubemasterWOW 2741 — 4y
Ad

Answer this question