How to refrence player in a bindable event


leaderboard

banana is not a tool, the only objects allowed inside a backpack is a tool.

also replace
workspace.Banana.BananaPrompt
to
script.Parent
as I now know the script is a child of the prompt

done all that and it doesnt work but we are making progress

local repStorage = game:GetService("ReplicatedStorage")
local Banana = game.Workspace.Banana
local bananaPrompt = Banana.BananaPrompt
local bananaPurchased = repStorage.BananaPurchased

bananaPurchased.Event:Connect(function(player)
	local cash = player.leaderstats.Cash
	
	if cash.Value >= 10 then
		cash.Value -= 10
local tool = Instance.new("Tool", player.Backpack)
tool.RequiresHandle = false
local clone = Banana:Clone()
clone.Parent = tool
clone.BananaPrompt:Destroy()
	end
end)

BananaPrompt is not a valid member of Tool “Workspace.Banana”

local repStorage = game:GetService("ReplicatedStorage")
local Banana = game.Workspace.Banana
local bananaPrompt = Banana.BananaPrompt
local bananaPurchased = repStorage.BananaPurchased

bananaPurchased.Event:Connect(function(player)
	local cash = player.leaderstats.Cash
	
	if cash.Value >= 10 then
		cash.Value -= 10
local tool = Instance.new("Tool", player.Backpack)
tool.Name = "Banana"
tool.RequiresHandle = false
local clone = Banana:Clone()
clone.Anchored = false
clone.Parent = tool
clone:GetChildren()[1]:Destroy()
	end
end)

tagging for notification

(30char)

got the exact same error still not working

show workspace and backpack in explorer

this is getting complicated, im just gonna get my friend to do it

we’re very close tho
(remove30)