WOAh, So, I am literally making a game. and it needs you to click on a part and then it appears. SO!!! I started off writing this long code and soon came to the conclusion that the event itself is broken, here is what I mean: What I did:
local m = game.Players.LocalPlayer:GetMouse()
m.Button1Down:Connect(function()
print('hi')
end)
***Dude.. It doesn't print, there is no error and I am simply lost in the dark to solve this ugly Glitch >:(
HelPpPpPp, ThANccX
I tried multiple other things like, gui's might be effecting it, i deleted every gui and still nothing.... Yall halp me***

11 comments
local script?
yes
I normally do it from localscripts
Where is the script located?
startergui
You need to use remote events.
I tested this by inserting the code into a LocalScript in StarterGui. As I expected, it worked. I belive your error stems from some other element/script in your game, or the LocalScript being disabled.
Is the LocalScript running? Try adding a print at the top
Does filtering the target make it any less to work?
Check if your script is not disabled.
I never even disable my scripts