It didn’t work. I think it might be a problem with this function now.
local function PlaceStructure(model, cframe)
model:SetPrimaryPartCFrame(cframe)
local rayParams = RaycastParams.new()
rayParams.FilterType = Enum.RaycastFilterType.Blacklist
rayParams.FilterDescendantsInstances = {model, game.Workspace.Map.Structures}
local result = game:GetService("Workspace"):Raycast(model.PrimaryPart.Position, model.PrimaryPart.Position + Vector3.new(0, -100, 0), rayParams)
if result then
local newPosition = Vector3.new(model.PrimaryPart.Position.X, result.Position.Y, model.PrimaryPart.Position.Z)
local newCFrame = CFrame.new(newPosition, model.PrimaryPart.Orientation)
model:SetPrimaryPartCFrame(newCFrame)
end
end