-- Services local TweenService = game:GetService("TweenService") local Players = game:GetService("Players") local player = Players.LocalPlayer -- Character local function getChar() local char = player.Character or player.CharacterAdded:Wait() return char, char:WaitForChild("HumanoidRootPart") end local character, hrp = getChar() -- Settings local FLY_TIME = 0.35 local HEIGHT_OFFSET = 2 -- Папка Snowflakes local snowFolder = workspace:WaitForChild("Particles"):WaitForChild("Snowflakes") -- Найти ближайший Attachment в Snowflakes local function getNearestSnowflake() local nearestPos local shortest = math.huge for _, obj in ipairs(snowFolder:GetDescendants()) do if obj:IsA("Attachment") then local pos = obj.WorldPosition local dist = (hrp.Position - pos).Magnitude if dist < shortest then shortest = dist nearestPos = pos end end end return nearestPos end -- Loop task.spawn(function() while task.wait(0.1) do if not hrp or not hrp.Parent then character, hrp = getChar() end local pos = getNearestSnowflake() if pos then local tween = TweenService:Create( hrp, TweenInfo.new(FLY_TIME, Enum.EasingStyle.Linear), {CFrame = CFrame.new(pos + Vector3.new(0, HEIGHT_OFFSET, 0))} ) tween:Play() tween.Completed:Wait() end end end)