This commit is contained in:
heyshawtyy committed 2026-11-09 22:37:44 +05:00
1 parent fd5e92d0f5
commit 9f898c04dd
415 files changed
+6241617 -633464

No files matched your search

+10
View File
@@ -1967,6 +1967,16 @@ local function spawnNpc(spot, parent)
rig:PivotTo(spot.CFrame + Vector3.new(0, hum.HipHeight + root.Size.Y / 2 - 3, 0))
end
rig.Parent = parent
-- продавец под навесом лавки: имя над головой упиралось бы в крышу, а лавку и так подписывает вывеска
do
local params = RaycastParams.new()
params.FilterType = Enum.RaycastFilterType.Exclude
params.FilterDescendantsInstances = { rig }
local headPos = root.Position + Vector3.new(0, 2, 0)
if Workspace:Raycast(headPos, V(0, 8, 0), params) then
hum.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
end
end
local head = rig:FindFirstChild("Head")
if head then