Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I don't get how this Variables thing works?

I can't get the difference between

game.ReplicatedStorage

and

game:Getservice("ReplicatedStorage")

can anyone tell me how it works?

1 answer

✓ Accepted answer

The GetService method will create services that aren't already loaded, so some services you can't get by name because they don't exist yet.

Most services are already created: BadgeService, MarketplaceService, LogService, and GuiService are a few. A few that aren't already created are the GroupService, PathfindingService, and DataStoreService; there are probably some others but I'm not bothering to check.

Some services also aren't named properly. ScriptContext has the name of "Script Context"; that space makes you have to use game["Script Context"] if you want to get it by name, and you may not remember that each time you want to access it.

2 comments

0

Thanks! :D

0

Np

This discussion is preserved as it was. New answers, comments, and votes are closed.