I am working on a dialog shop and i got the following code inside Test Dumb Humanoid Head Dialog DialogScript DialogChoice ChoiceA

And for some reason it does not show a answer/question when i click his chat sign.

local dialog = script.Parent
dialog.DialogChoiceSelected:connect(function(player, choice)

local stats = player:FindFirstChild("leaderstats")
if not stats then return end

local money = stats:FindFirstChild("Money")
if not money then return end

if choice == script.Parent.DialogChoice.ChoiceA then
	if money.Value >= 10 then
		game.ReplicatedStorage.Fishingtool:clone().Parent = player.Backpack
		end
	end
end)

If anyone can help me that would be nice! <3 Much love

3 comments

0

Did anything come out on the output?

0

No

0

then i believe it has to do with the if then statements.