Sins yesterday roblox studio update i keep getting
ReplicatedStorage.Libary.Terrain:20: attempt to index nil with ‘Row-nan(ind)’
like 50-70% of the time i don’t know what to do i tried waiting a bit longer before i run the script
all i can find on the internet is that somthing about it means the computer can’t calculate the formula or somthing
ERROR:
ReplicatedStorage.Libary.Terrain:20: attempt to index nil with ‘Row-nan(ind)’
i basicly have 2 functions in a modulescipt inside replicated storage
one converts a vector3 value to a grid vector3 for my chunkloader
chunks are 200x200x200
example
lib.PositionToChunkGrid(Vector3.new(133,-101,555))
will return
Vector3.new(200,-200,600)
lib is the module in replicated storage
getChunk returns the folder from workspace chunks named “Col200|Row-200|Index600” ← (XYZ)
local TempLocationToCheck = lib.PositionToChunkGrid(Triangle.Position)
local ChunkFolder = lib.Terrain["GetChunk"](TempLocationToCheck)
Chunks = {
["Col200"] = {
["Row-200"] = {
["Index600"] = {INSTANCEChunkFolderInWorkspace,INTamountofPartsInChunk}
}
}
}
Terrain.GetChunk = function(InputPosition)
return Chunks["Col"..InputPosition.X]["Row"..InputPosition.Z]["Index"..InputPosition.Y]
end
the script that calls the functions is called from a SCRIPT from ServerScriptService
any ideas what could cause / fix it
Thx in advance