I have a button that when I click it, it randomly fires a Remote Event in order to give me a random shirt color. It works the first time I click it, but when I try and click it again, nothing happens. Either its not firing again, or it just randomly selects one event and keeps selecting that event, instead of selecting another event every time I click it. Here's my code:
local ShirtColors = game.ReplicatedStorage.Customization.ShirtColor:GetChildren()
local RandomShirtColor = ShirtColors[math.random(1,#ShirtColors)]
script.Parent.MouseButton1Click:Connect(function()
RandomShirtColor:FireServer()
end)
Thanks in advance for anyone who helps.

1 comment
Thanks it worked