Hi all,
I’ve been trying to use the GetPartsBoundInBox() function for a while now, but whenever I run it, the following error in the output box appears. I’ve tried removing the game. from the code, but the same error still pops up. I’ve seen examples of others code, and it appears that my code which doesn’t work for me somehow works for them, and the documentation for this code mentions needing to use WorldRoot, but WorldRoot only shows as an unknown global for me, so any help would be appreciated. Thanks in advance!
for i,v in pairs(game.workspace:GetPartsBoundInBox(CFrame.new(previousSectorPosition), Vector3.new(1, 1, 1))) do
--code logic