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
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
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.