-
What do you want to achieve?
I want to work out how the core of Studio works. -
What is the issue?
Spent 8 hours looking for it and reading the development tutorials and such but to no avail. -
What solutions have you tried so far? Spent 8 hours looking for solutions on the Developer Hub to no avail.
Hey guys. Just looking for a quick overview of the way studio works. Pretty basic for anyone who knows. Really, it’s “How does the general overview of the entire game operate?”
Q1. How does the code reading flow? What scripts activate in what order? So Serverscripts before Workspace? Or top to bottom (workspace object at the top, next object down, next object, then after workspace, players then lighting etc)?
Q2. So is all the stuff that’s transported into Player, then considered Client side? And anything NOT INSIDE the player is Server side? So I should only have instant visual and audio stuff in Player so it instantly happens for the player, and the only other stuff inside Player should be for “That player only” like personal Guis or personal sounds. Correct?
Q3. What are the best ways to sort content? So I have a bunch of intValue items in a folder which are used like globals. So I can go in and set my cooldown for a particular thing, or base walk speed, or base attack speed, and that way I can control the overall game from 1 folder. A master control station of global variables. Where is the best place to have them?
I know ServerStorage is best place to have stuff to clone out into workspace (things that are constantly appearing and disappearing). I know Workspace is the best place to have the main map and location objects (permanent stuff). I know Guis which the player requires are best off in StarterGui. I just want to know what are the best places to store what and why they are the best places.
So really I am after something like this:
–[[
Hey Steve,
Q1. Work flow is in this order, Each sections flows from top to bottom. However, ServerScriptService is before anything. Then ReplicatedFirst, then the rest play out top down.
Q2. Yes anything IN PLAYER is Client side. All the Starter sections, StarterGui, StarterPack, etc, copy into any player that joins, and become Client side.
Q3. I store all my game control code and variables in an invisible object called “Controller” parented to Workspace. In there I have a Globals folder, and my main game operation script. Why? Because it’s the top and I can get there super fast and call it super easy. ReplicatedFirst is great if you want something instantly copied to all players before anything else happens. Replicated storage is the same but more for thing that are replicated but big and will slowdown the server if they are all replicated first. ServerScriptService is a way to have the server game script be able to access everything with highest priority for faster calculations. Forget LocalizationService. Alternatively, you can have your globals in ServerStorage but that can get messy and it can be hard to find your globals in there if you have a lot of stuff.
Easy
]]–
So just really easy simple answers.
If there is a link to something that just sums it all up for me, that would be AWESOME!
Anyway back to seeing if I can help out other people.
Cheers