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

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

Asked by 5 years ago
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.

0
It will not print if you are in Roblox Studio, only will print on a Server. iagometroid 61 — 5y
0
no, you can print stuff from BindToClose in studio. the "wait(5)" is most likely his problem mybituploads 304 — 5y

2 answers

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

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.

0
no, you can print stuff from BindToClose in studio. the "wait(5)" is most likely his problem mybituploads 304 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

Try to remove the "wait(5)" from the script.

Answer this question