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

Which function should I use: game:GetService() or game:FindService()?

Asked by 5 years ago

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?

0
GetService awesomeipod 607 — 5y
0
GetService IFeelLikeAGucciAdlib -2 — 5y
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. hiimgoodpack 2009 — 5y
0
I think Roblox should simply make game:FindService() internal since game:GetService() is better(based off of your points) saSlol2436 716 — 5y

Answer this question