I am working on a simulator and this error occurs. I don't know how to fix it. Also I am very bad at scripting
FireClient: player argument must be a Player object
Here's the script:
script.Parent.Touched:connect(function(part)
local plr = game.Players:GetPlayerFromCharacter(part.Parent)
game.ReplicatedStorage.SellGrass:FireClient(plr)
end)

2 comments
I don't get the error anymore, but now this other script doesn't work. There is no error too.
Nevermind, I fixed it. Ty.