Is it possible and safe to store variables in a dictionary? I feel it looks neater that way.
1 Like
local Table = {
Number = 1,
String = "Value",
Boolean = true
}
or
local Value = "Value"
local Table = {
Value = Value
}
do you mean like this?
if so, it should be safe to do this
1 Like
It’s safe to store values in variables of any which type, Roblox restricts access to the majority of functions belonging to the debug library so your variables are protected inherently.
You should only use tables to store values when it is necessary to do so as it is faster/more efficient to fetch a value from a variable as opposed to one stored inside a table.
1 Like