I'm making this clickdetector function where, when player clicks, it should call remote event which will then be listened by a script in serverScriptService, Here's Structure
That's script in localScript, But thing is that it does nothing!!! It may not do anything after line2, but it doesn't even print
print("hay")
script.Parent.MouseClick:Connect(function(player)
game:GetService("ReplicatedStorage").RemoteBuy:FireServer()
end)

5 comments
If it doesn't print the first line the script isn't running. It's either disabled or misplaced.
It is not Disabled and I get same result If I place simple 1 line print("Hello World") local script in workspace
local scripts have to be in replicatedfirst, a player GUI, a character, or a player's "PlayerScripts"
ouch. nothing worse than giving a completely wrong answer :(
It's very interesting cause this kind of setup has been working for moths but with server script. One day it started giving an error FireServer can only be called from client