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

Why doesn’t this work with FilteringEnabled, and how can I make it compatible?

Asked by 6 years ago
Edited by OldPalHappy 6 years ago
script.Parent.DialogChoiceSelected:connect(function(player, choice)
    if (choice == script.Parent.Choice1) then
        if (player.leaderstats["????"].Value >= 10) then
            player.leaderstats["????"].Value = player.leaderstats["????"].Value - 10
            player.leaderstats["????"].Value = player.leaderstats["????"].Value + 50
            script.Parent.Choice1.ResponseDialog = "Transaction complete."
        else
            script.Parent.Choice1.ResponseDialog = "Insufficient Funds."
        end
        return
    end
end)

This is inside a dialog for a gem trading machine, it only works when FE is turned off The dialog choices are named Choice1 Choice2 Choice3 and Choice4

0
The emojis got replaced with ? Marks, that doesn’t happen in studio Hungryrandomboi 0 — 6y
0
Are you using a local script or a script? OMG_Gaming404 73 — 6y

Answer this question