##How I found game:FindService()
When I was typing some code, I noticed something:
game:FindService("Players")
##My Question
Which function should I choose, game:FindService() or game:GetService().
Which function is more efficient?
##How I found game:FindService()
When I was typing some code, I noticed something:
game:FindService("Players")
##My Question
Which function should I choose, game:FindService() or game:GetService().
Which function is more efficient?
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
GetService
GetService
GetService probably uses FindService and then if it doesn't exist, it creates it. It's like having workspace:FindFirstChild("foo"):Destroy(); it doesn't check that the method returned anything and then using something that needs it after it that doesn't check. I feel that FindService isn't useful.
I think Roblox should simply make game:FindService() internal since game:GetService() is better(based off of your points)