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

How to get a Gui to The players gui using cloning?

if script.Parent.Parent.Parent.TeamColor == "Bright red" then
	local s = game.Lighting.RedSold:Clone()
	s.Parent = script.Parent
end

I'm trying to get a gui (RedSold) from lighting and into the Starter Gui in the Player.PlayerGui

1 answer

✓ Accepted answer

Since it's a BrickColor value, you need to use BrickColor.new!

if script.Parent.Parent.Parent.TeamColor == BrickColor.new("Bright red") then
    local s = game.Lighting.RedSold:Clone()
    s.Parent = script.Parent
end

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