So if Choice1 is selected, if the player has more than so and so rep then create a new choice via this script. please help, link me to a wiki also that will help me with dialogs
script.Parent.DialogChoiceSelected:connect(function(player,choice)
local humanoid = player.Character:findFirstChild("Humanoid")
if not humanoid then return end --End the function if the humanoid isn't found
local stats = player:FindFirstChild('leaderstats')
if not stats then return end
local rep = stats:FindFirstChild('Reputation')
if not rep then return end
if choice.Name == "Choice1" then
wait(1)
rep.Value = rep.Value + 2
elseif choice.Name == "Choice2" then
wait(1)
rep.Value = rep.Value + 1
elseif choice.Name == "Choice3" then
wait(1)
rep.Value = rep.Value - 1
end
end)

2 comments
thank you so much!
WAIT! I have edited my answer so it actually works Humanoid-side. Update your script to that!