So I'm making a clicking thing, and every time you click a brick the brick changes color, changes your click value in Workspace, and updates the GUI that says how many clicks you have. It works perfectly fine in studio, but in the real thing, it doesn't work. Help? Here is the code.
function onClicked(playerWhoClicked)
game.Workspace.Clicks.Value = game.Workspace.Clicks.Value + 1
game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.TextLabel.Text = ("Clicks : ".. game.Workspace.Clicks.Value)
script.Parent.BrickColor = BrickColor.random()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
If you could help it would be greatly appreciated. Thanks!

3 comments
Well actualy, that would be nice.. because I only know how to do it for one player. If you could do it, thanks! If you can't thanks anyway!
And also I thought I had filtering enabled off, but put streaming enabled off. :P
I'll approve if you don't have the script for that.