Hi, I am making a game and in this game you sell stuff. With the selling I have this error.
" Fire is not a valid member of RemoteEvent "ReplicatedStorage.BindableEvents.Sell"
This is my script :
script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local player = game.Players:GetPlayerFromCharacter(hit.Parent)
game.ReplicatedStorage.BindableEvents.Sell:Fire(player)
end
end)

4 comments
If you don't mind me asking, where would I replace that code for? Like what line of code do I replace for the code you commented. I'm a little confused.
Instead of
Instead of game.ReplicatedStorage.BindableEvents.Sell:Fire(player) do game.ReplicatedStorage.BindableEvents.Sell:FireServer(player)
Sorry for asking you so much but now I am getting this error: FireServer can only be called from the client