DialogChoicesSelected not firing at all

Hello, I have an issue with the DialogChoiceSelected event. The script is a local script and should fire when I speak to the npc, but it doesn’t fire at all.

local dialog = script.Parent.Dialog
local ss = game.ServerStorage
dialog.DialogChoiceSelected:Connect(function(player,choice)
	print(choice.Name)
	if choice.Name == "Burger" then
		print("Burger selected!")
		local burgerClone = ss:WaitForChild("Burger"):Clone()
		burgerClone.Parent = player.BackPack
	elseif choice.Name == "BloxySoda" then
		local sodaClone = ss:WaitForChild("BloxySoda"):Clone()
		sodaClone.Parent = player.BackPack
	elseif choice.Name == "KickedFromSLF" then
		--kick user from SLF 
	end
end)

You can’t run localscripts like that. Put the localscript in StarterPlayer > StarterPlayerScripts.

first of all it should be a server script (since you’re cloning tools to the backpack) second of all local scripts don’t run in workspace