Sell is not a valid member of Folder "ReplicatedStorage.BindableEvents"

Even if they weren’t used, they’d be good to have so they’re 100% there, however I use them in the script since you don’t want to waste what it returns

looking at what @fungi3432 said, the variable is broken.

i removed these two lines and got alot more errors

local stats = game.Players.PlayerAdded:WaitForChild("leaderstats")
local Cash = stats:WaitForChild("Cash")

I keep forgetting to edit the script, I meant to wait for the stats on the player. I apologize, I’m doing a lot of things at once right now

this is the error after removing this OnServerEvent is not a valid member of BindableEvent “ReplicatedStorage.BindableEvents.Sell”

but they are not used in the script you gave me, if u just do that to the script you gave me, it should work

You need to use RemoteEvents rather than BindableEvents for Client → Server communication. Is this for Server → Server, or Server → Client?

for server its a server script just called a script it is not local

No, I meant to say is the client invoking the event and the server responding, or is the server invoking another area in the server?

server is invoking the event not the client

So this is Server → Server communication? In that case, we’d want to take a look at the script that’s firing the event. Can you show us the script that fires the event?

(Also, you can switch back to Sell.Event, since it’s a BindableEvent not a RemoteEvent)

it says server in the error not client so thats what i’m going off by

So where is the event being activated from then? (Where is the Event being :Fire()'d)

this script is firing the event

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)

Since the new script appears to be inside a part, I’m assuming it’s a server script. In this case, change this line in your original script

to this
ReplicatedStorage.BindableEvents.Sell.Event:Connect(function(player)
since it’s a BindableEvent communicating only on the server.

is this for the remote handler or the :fire script?

This is for the remote handler script.

ok that worked but i got Event is not a vaild member of remote event

ReplicatedStorage.RemoteEvents.Power.Event:Connect(function(player, valueFolder)

this is for the remote handler