Roblox not robloxxing? Scripting issue

ok for some reason or another my script is erroring even though i implemented checks to make sure rooms didnt try to go off the map

yet for some random reason its saying that the specified position doesn’t exist

eror

does anyone have any idea on why this issue is happening?

Make sure the table Grid exists in your code, run print(Grid) above the error line to check if the desired values exist within your table.

Make sure you initialise Grid[_y+offset.Y] to an empty table before the “for _x = Position.X, RoomSize.X do” loop,
like this:
Grid[_y+offset.Y] = {}

turns out it was erroring due to decimals.

1 Like

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