I made script which giving clothing for player which clicks GUI but why that's not working?

script.Parent.MouseButton1Click:connect(function()
	game.ReplicatedStorage.EventStorage.clothing[math.random(1, 7)]:FireServer()
	game.ReplicatedStorage.EventStorage.pants[math.random(1, 6)]:FireServer()
end)

Thank you for every help.

1 comment

0

Please send the Server Script which receives the Server Event, so that I can see the issue. Simply sending this code is not going to work