Why is there error here? [SOLVED]

https://gyazo.com/448393d188b7185cd853aa0e7409694c

while wait(1) do
	local s = "Found"
	local d = script.Parent
	local pos = d.Position
	local size = d.Size/2
	local reg = Region3.new(pos - size, pos + size)
	local ignore = {workspace.RailwayRoof,d}
	local n = {}
	local n[1] = workspace:FindPartsInRegion3WithIgnoreList(reg,ignore,100)
	local n[2] = workspace:FindPartsInRegion3WithIgnoreList(reg,ignore,100)
	local n[3] = workspace:FindPartsInRegion3WithIgnoreList(reg,ignore,100)	
	end

23:47:42.839 Workspace.RegionDetection.Script:9: Expected identifier when parsing expression, got ‘[’ - Studio - Script:9

1 Like

Try to remove all of the locals from the new table arrays and lmk what happens

1 Like

Yea just saw that myself. thx

./.

2 Likes