Item dont cloning in backpack

local boombox = game.ServerScriptService.Gamepass.BoomBox

game.Players.PlayerAdded:Connect(function(plr)
	if game.MarketplaceService:UserOwnsGamePassAsync(plr.UserId, 18662868) then
		plr:WaitForChild("Backpack")
		clone = boombox:Clone()
		clone.Parent = game.Players[plr.Name].Backpack
		print("You have pass")
	else
		print("You Dont have the gamepass")
	end
end)

I maked this code but it won’t work it just worked 1 time i dont know why but it doesnt work anymore

your script wasnt pasted in correctly, try this:

` x 3

script

` x 3

so then it should look like

this

edit: thanks

theres an error in your code, when i pasted the code in a script, the clone variable is highlighted, change it to:

local boombox = game.ServerScriptService.Gamepass.BoomBox

game.Players.PlayerAdded:Connect(function(plr)
	if game.MarketplaceService:UserOwnsGamePassAsync(plr.UserId, 18662868) then
		local clone = boombox:Clone()
		clone.Parent = game.Players[plr.Name].Backpack
		print("You have pass")
	else
		print("You Dont have the gamepass")
	end
end)

it still dont work it prints text but not cloning item

okay i found out why it’s not working I just put the tool in Workspace and it worked