plr = game.Players.LocalPlayer.Character
humrootpart = plr.HumanoidRootPart
----
function IsIn(Part, Vec1, Vec2)
local R3 = Region3.new(Vec1, Vec2)
local Check = workspace:FindPartsInRegion3WithWhiteList(R3, {Part}, math.huge) -- yes
if #Check > 0 then
return true
else
return false
end
end
while wait() do
coroutine.wrap(function()
if IsIn(humrootpart, Vector3.new(-1007.25, -200, 943.65), Vector3.new(1037.75, 200, -1101.25)) then -- big map
print("Region1")
if IsIn(humrootpart, Vector3.new(-446.7, -200, 509.95), Vector3.new(195.5, 200, -81.55)) then -- forest 1
print("Region2")
end
end
end)()
end
I have no idea why its not working, my region is correct.
