#225788989Saturday, September 30, 2017 7:47 PM GMT
Ok, so im trying to make it so if the player clicks on a dialog choice, some of thier cash will dissapear. i made some leader boards for cash, but im having truoble scripting.
#225789273Saturday, September 30, 2017 7:53 PM GMT
local dummy= workspace.Dummy
local dialog= dummy.Head.Dialogorwhatevernameitshouldbe
local amount= 5
dialog.DialogChoiceSelected:Connect(function(plr, msg)
if msg== "BLA" then
plr.leaderstats.CASH.Value=plr.leaderstats.CASH.Value-amount
end
end)
#225790204Saturday, September 30, 2017 8:13 PM GMT
Here is my script:
whenever i run the script, it says, "Dialog Choice Selected is not a valid member of Dialog Choice" what does that means and how do i fix it?