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

Please analyze me the use of bars in the explorer table in roblox studio ?

Asked by 4 years ago

Please analyze me the use of bars in the explorer table in roblox studio eg Workspace, StarterPack, StarterCharacterScript, ...

2 answers

Log in to vote
0
Answered by
XDvvvDX 186
4 years ago
Edited 4 years ago

If I understood the question correctly, so here's the answer. These things you see in the explorer are not called "bars". They're name in Roblox Studio is "Services". Each of the following services does something different. For example, the StarterGui is a service that controls all about the UIs in the game, otherwise the Workspace is controlling everything about the game's environment, like characters, parts, and more. There are a lot of services which you don't have access to by the normal explorer. Here are some examples : Visit service, notification service, tween service, and a lot more. To access these services you'll have to use GetService() function, here's an example:

local Service = game:GetService("Visit") --This following code defines the Visit Service.

Learning all the services is not so recommended as a beginner. You should first learn the most common services like StarterGui, Workspace, TweenService, NotificationService, StarterPack, StarterPlayer. Then when you're an expert in each of them you can learn some extra services like Visit Service etc. So, these are the "bars" in the explorer. I hope it was helpful!

0
Wow. U are good :> triccg123 9 — 4y
0
Where can I start learning scripts? triccg123 9 — 4y
0
@triccgl23 you might wanna try Roblox development hub, or try learning from youtube tutorials like Alvin Blox. I suggest Hub more than video but you can choose what is easier. TheKingOfDaMemes 24 — 4y
0
Thanks.That help alot triccg123 9 — 4y
Ad
Log in to vote
0
Answered by
Nckripted 580 Moderation Voter
4 years ago

Usually, you would use GetService on any of these. While not all objects in explorer require GetService, it is good practice to use it. For example:

local service = game:GetService("MarketplaceService")

When you get a service, you are getting all the functions of that service. That is why everybody uses GetService.

Answer this question