##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?

4 comments

0

GetService

0

GetService

0

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.

0

I think Roblox should simply make game:FindService() internal since game:GetService() is better(based off of your points)