Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How come my dialog shop is not working?

Asked by 8 years ago

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

0
Did anything come out on the output? HungryJaffer 1246 — 8y
0
No jo3thebomb 12 — 8y
0
then i believe it has to do with the if then statements. HungryJaffer 1246 — 8y

Answer this question