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.
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.
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.
no, you can print stuff from BindToClose in studio. the "wait(5)" is most likely his problem
Try to remove the "wait(5)" from the script.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
It will not print if you are in Roblox Studio, only will print on a Server.
no, you can print stuff from BindToClose in studio. the "wait(5)" is most likely his problem