Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

[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
0
I want it to kick the person after a dialog choice is done from them. 10TheDragon10 7 — 7y
0
Or do i put thin in a normal script after the dialog choice? 10TheDragon10 7 — 7y
0
I did it but it doesn't kick you? 10TheDragon10 7 — 7y
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 10TheDragon10 7 — 7y
0
oops ill fix that hiimgoodpack 2009 — 7y
Ad

Answer this question