Error "tables cannot be cyclic"

Trying to use datastore2 but I keep getting this error.

		local function updatestat(updatedvalue)
			
			playerdata:FindFirstChild(currentdata).Value = currentdata:Get(updatedvalue)
			
		end

This occurs when you try to reference something (a table as the name suggests) inside of itself. What does currentdata:Get(updatedvalue) return?

fixed it, i was being stupid and put currentdata instead of currentstat

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.