I am trying to make a dialog system and the function is not running to delete the part.
I would love help on this!
Setup:
Code:
local Dialog = script.Parent.Dialog
local floor = game.Workspace.Cave.Floor
local function onSelected(player, choice)
if choice == Dialog.PlayerSaidNo then
floor:Destroy()
end
end
Dialog.DialogChoiceSelected:Connect(onSelected)