I have a script that kill you if you choose the wrong dialog option but it doesnt work.
function Chosen(player,dialog) if dialog.Name == "Die" then game.Players.LocalPlayer.Character.Humanoid.Health = 0 script.Parent.Parent.Sound:Play() end script.Parent.Choose.DialogChoiceSelected:connect(Chosen) --GalaxyFPS Studios
I'm not sure about this but you have to set the dialog's name first.
function Chosen(player, dialog) dialog.Name = "Die" if dialog.Name == "Die" then game.Players.LocalPlayer.Character.Humanoid.Health = 0 script.Parent.Parent.Sound:Play() end script.Parent.Choose.DialogChoiceSelected:connect(Chosen) --GalaxyFPS Studios
I'm new as well but just adding dialog.Name = "Die" should make the if statement work.