Okay so, I have this section in an obby where the player has to click on a part to "build" them.
The problem is, this script works globally so it's happening for all players, so how could I have it only pop up for the player who clicked on it? Inside that brick there is a ClickDetector and inside the ClickDetector resides this script.
My Script (Class is Script, not LocalScript):
function BuildBrick()
script.Parent.Parent.CanCollide = true
script.Parent.Parent.Transparency = 0
end
script.Parent.MouseClick:Connect(BuildBrick)

2 comments
don't forget to accept my answer if it solves your problem.
It should be under the answer.