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

What is more efficient [''] or "."? For indexing?

Asked by 4 years ago

I know what [''] is for and what its being used for

for example if you wanted to do

print(game.ServerStorage[Player.UserId]) --you'd use []

-- Cause you cant do 

game.ServerStorage.Player.UserId

But I was wondering what is more efficient to use

0
they both tack the same amount of time royaltoe 5144 — 4y

Answer this question