YT can't tell it and i don't know how to use it so i need some suggestion
game:GetService(Service)
is used to obtain the requested service. Unlike indexing the given service with dot notation (e.g game.ServerStorage
), the GetService method allows you to find services with unusual names. For example, the Run Service service would have to be indexed like this: game["Run Service"]
. However, by using GetService, this code can be reduced to game:GetService("RunService")
(notice how the whitespace is avoided).
Here's the wiki link
game:GetService("ServiceName") is a command to find Services in the game, so you can use them for certain things.
For e.g:
If you type in for example "Instance.new("Team", game.Teams)" when there are no teams, the output will through out an error saying that there's no such thing as "game.Teams". If you do this instead: "Instance.new("Team", game:GetService("Teams"))", it'll create a team in game.Teams without any errors.