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

how do i know when to use objects values when scripting and how do i know where i need to put them?

Asked by 5 years ago

i have seen videos of people scripting and i have seen them use things like values and folders but i dont know when i will need to use them and where i put them. Could someone explain to me please?

2 answers

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

You never have to use them. Some people prefer to use ModuleScripts to store cross-script values, some people communicate between scripts using BindableEvents, it's all what you're comfortable with. If you want to use value objects, use value objects! If you want to organize stuff using folders, use folders! It's up to you and what makes sense for what you're doing.

0
but how will i know when to use sever script storage etc.? EzireBlueFlame 14 — 5y
0
ServerScriptStorage is where you put scripts that you don't want in the workspace, see more information here. https://www.robloxdev.com/api-reference/class/Script User#22604 1 — 5y
Ad
Log in to vote
0
Answered by
angeI1001 123
5 years ago

You use them when you have to, it's kinda obvious :P It's easier to edit the value instead of entering the script everytime, that's pretty much the main reason.

I hope this helped you.

0
I would still say to avoid using value holders as you can easily recreate the same functionality with a module script. User#5423 17 — 5y
0
^ What's better about a module script? Nothing, if you're using them for the same purpose. User#22604 1 — 5y

Answer this question