Two events firing at once when i want 1

What do i want to achieve | I want to be able to colour a wig or a skirt. They BOTH have different events

Issue | The events keep firing together, I want it to so if you click the APPLY button it applys the colour i have onto that item which is a skirt but it fires the wig event which also colours that as well.

Solutions | I basically had two events in seperate lines with the same button but of course that wouldn’t work, so i’ve tried this attempt so it basically only’s colours the wigs if the SKIRTs gui is not visible to try fix it but it didn’t work

script.Parent.Frame1.Page.Apply.MouseButton1Click:Connect(function()
	if script.Parent.Face.Roundify.Skirts.Visible == false then
	local Color = Preview.BackgroundColor3
	Event:FireServer(Color)
	else
	local Color = Preview.BackgroundColor3
	Event1:FireServer(Color)
	end
end)

Event = Wig Color

Event1 = Skirt Colour

If you need any more information, I’m happy to provide, Thank you to anyone who tries to help me or does :slight_smile:

1 Like

Hi. The issue might be inside the server script that handles these events. Are you sure it contains functions connected to both events?

I think we’d be more helpful if you could provide part of that code.

2 Likes