script.Parent.MouseButton1Down:connect(function(player) script.Parent.Parent.Parent.Parent.Parent.ScriptPart.Flavor.Value = script.Parent.Flavor.Value script.Parent.Parent.Parent.Parent.Parent.ScriptPart.Colors.Value = script.Parent.Colors.Value script.Parent.Parent.Parent.Parent.Parent.Text.Text.TextLabel.Text = "Chocolate" end)
The script works just fine in studio! It is a normal script located in a TextButton