So here's ordinary script:
script.Parent.ClickDetector.MouseClick:Connect(function(player)
game.ReplicatedStorage.RemoteBuy:FireServer()
end)
When player(client) clicks it, script in serverScriptService listens and does something. It has been working normally, but now it gives me an Error saying FireServer can only be called from the client. But isn't player a client? Is it a bug?
Changing to FireClient and OnClientEvent will not work, because script is in ServerScriptService. Thank's in advance!!!

6 comments
I understand now thanks. Now I recalled when I changed it to Server script , but didn't really remember it till now.
Thing is that it does absolutely nothing now. I changed it to local script and am FiringServer from it but nothing happens, it doesn't even print("Hay") in mouseClick funtion
then your doing something wrong
look at this guide https://scriptinghelpers.org/guides/server-client-relationship-in-roblox
Now problem is not in Server-client relationship, but with clickdetector, it doesn't even detect mouseclick
then post a question