Description:
If the LocalPlayer:GetFriendsOnline({num}) method is provided a negative integer, it’ll trigger an unexpected crash.
Lua:
game:GetService("Players").LocalPlayer:GetFriendsOnline(-1)
Result:
Solution:
Implement proper error handling, validate the integer is above 0 and less than 201.
Impact:
Annoying bug, crashes the client. If you accidentally provide a negative integer, it’ll crash your players in production.
It’s also possible to upload a plugin containing the above Lua, which will result in an unexpected crash until the user uninstalls the plugin.
Result:
Place: test - Roblox