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

Why isnt bindtoclose letting me or showing anything in the output?

game:BindToClose(function()

local players = PlayerService:GetPlayers()

for i,v in pairs(players) do

print(v.Name)

end

wait(5)

end)

No errors nothing, nothing in the output.

2 comments

0

It will not print if you are in Roblox Studio, only will print on a Server.

0

no, you can print stuff from BindToClose in studio. the "wait(5)" is most likely his problem

2 answers

It will not print if you are in Roblox Studio, only will print or run on a Server because "BindToClose" will run before the game shut down.

1 comment

0

no, you can print stuff from BindToClose in studio. the "wait(5)" is most likely his problem

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