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

What's wrong with this script?

The function isn't being printed, I'm not sure why.

game.Players.PlayerAdded:connect(function(player)
print('test 1')
game.Players.PlayerRemoving:connect(function(player)
print('test2')
end)
end)

1 answer

✓ Accepted answer

First, you cannot have a event inside of another event.

Code:

game.Players.PlayerAdded:connect(function(player)
	print("test 1")
end)
game.Players.PlayerRemoving:connect(function(player)
	print("test 2")
end)

1 comment

0

works, thanks.

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