Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make your game/server automatically shutdown by itself?

I've seen games where servers automatically shutdown by themselves after you completed a game.

I want to know how it automatically shuts down by itself after a choice dialog is finished.

It would be helpful in many of my games to know this.

1 answer

[edit]

Here is how to detect if a player has selected a dialog choice.

local BadDialogChoice = --Insert the FULL name of the dialog choice like workspace.Part.Dialog.DialogChoice1
BadDialogChoice.DialogChoiceSelected:connect(function(plr)
	game.Players:FindFirstChild(plr.Name):Kick()
end

5 comments

0

I want it to kick the person after a dialog choice is done from them.

0

Or do i put thin in a normal script after the dialog choice?

0

I did it but it doesn't kick you?

0

local BadDialogChoice = workspace.Part.Part.Dialog.DialogChoice.DialogChoice.DialogChoice.DialogChoice.DialogChoice.DialogChoiceEnd1 --Insert the FULL name of the dialog choice like workspace.Part.Dialog.DialogChoice1 BadDialogChoice.DialogChoiceSelected:connect(function(plr) game.Players:FindFirstChild(plr):Kick() end

0

oops ill fix that

This discussion is preserved as it was. New answers, comments, and votes are closed.