I'm trying to make an NPC respond with a random response (through tables) but I can't manage to make the script re-run. It chooses a random set the first time, but if you speak to them a second time, the responses are the same as before. You have to rejoin to get a new set of responses.

How would I re-roll them? I can't trigger a re-roll through clicking goodbye, since the only function I found that relates to the goodbye option is DialogChoiceSelected. If I use a LocalScript the script doesn't work entirely.

1 comment

0

Yeah, that's the problem with trying to get computers to randomize things for you. They simply just can't do that. I guess to make it more random, I would advise you to use math.randomseed.