Dictionary syntax errors

I’ve recently learned about dictionaries and I was created some code till I got stumbled on an error,

local Infinity_5 = script
local Inf5_Folder = script.Parent
local StarterGui = Infinity_5.Parent.Parent


--[[
L O A D I N G    
             --]]


local LoadingCore = {
local Access = StarterGui.Loading.Holder
local Background = Access.Background
local TimeToComplete = 9
}

This is the error I’d get

image
image

I tried adding " ," and also " ; ", I learned these from other coding languages but I don’t know lua’s.

You don’t localize Dictionary keys, remove the local from the lines in the dictionary

image

I did that too and this happened

You forgot to separate lines, put a comma after each line

image

And then this errors pops up

Because you try to get a dictionary key whilst creating the dictionary. Get rid of the background line from the dictionary and make it outside afterwards

LoadingCore.Background = LoadingCore.Access.Background