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

Dialog Choice Script Not Working, I need help please!?

Asked by 6 years ago

Here is the code:

local Player = game.Players.LocalPlayer
local Leaderstats = Player:WaitForChild("leaderstats")


script.Parent.DialogChoiceSelected:connect(function(player,dialog)
 if dialog.Name=="Yes" then
    if Leaderstats.Cash.Value > 249999 then 
        Leaderstats.Cash.Value = 0
        Leaderstats.Rep.Value = 0
        Leaderstats.Rebirths.Value = Leaderstats.Rebirths.Value + 1
        end
    end
end)

It for some reason doesn't work, idk why. I've tried it and tried it, but it still doesn't work. Please help me!

0
Any errors that appear in 'Output' on Studio? shadow7692 69 — 6y
0
Why are you doing this in a local script? User#5423 17 — 6y
0
It should be in a normal script? K1ng_Phant0m 13 — 6y

Answer this question