Getting a value from a dictionary

local entity = entityStats.selectedEntity.location:Clone()

In this line, I want to call a value from the dictionary entityStats, however the value selectedEntity is a variable, I was thinking I could use brackets but it didn’t work. The dictionary is also located in a module script if that matters.

The variable was out of scope my bad

1 Like