I'm trying to make it so that when you click a button, the union (food)'s transparency goes 0. Right clicking changes it back to 1. Here is my script if needed.
local Food = game.Workspace.Food
function leftClick() Food.Transparency = 0 end
function rightClick() Food.Transparency = 1 end
script.Parent.MouseButton1Click:Connect(leftClick) script.Parent.MouseButton2Click:Connect(rightClick)
EDIT: I forgot to mention, I want to make it so that it pops up in everyones screen. Right now, it's in a local script and putting it on a regular script wont work. It works fine, but it only pops up in my screen.

4 comments
I tested it and it seems it was only client sided for me. I think I did a mistake? Can you please check ?
Sure
Everything looks working for me. Perhaps you didn't change the script or maybe script isn't a Server Script (Which it isn't possible)
I typed something wrong. Not sure what it was, but I just pasted your script and changed it instead of typing it manually