I'm working on a Morphroom with a GUI that allows for the player to input a custom VertexColor. The issue now is that the Values arnt changing.
In studio I've manually changed R,G,B to see if the whole script works. It does somewhat except the values arnt changing.
Display.Click.MouseClick:Connect(function(player) local HairColor = player.DATA_.HairColor local R = HairColor.Red.Value local G = HairColor.Green.Value local B = HairColor.Blue.Value local colorstring = tostring(Vector3.new(R,G,B)) print(colorstring) Display.SurfaceGui.Vertex.Text = tostring(Vector3.new(R,G,B)) end)
It keeps coming out as 1,1,1
even if I changed R,G, or B. Is there something I'm doing wrong or missing?
The issue is that studio play mode now enforces filtering enabled. So, the server is not counting the changes you made as valid. If that is not the issue, the only other thing I can think of is that a click detector cannot be used with a GUI. Try using something like the Button1Down
event to see when a player clicked the GUI. Note: If you are using a GUI, use a LocalScript. If you need to connect with the server use remote events/functions. There is no excuse for not using a LocalScript in a GUI.