local healPads = workspace.Interactables.HealPads:GetChildren() -- Lấy tất cả các pad local player = game.Players.LocalPlayer -- Hàm chạy va chạm local function healLoop() local humanoidRoot = player.Character:WaitForChild("HumanoidRootPart") -- Đợi nhân vật load xong while true do for i = 3, 1, -1 do -- Duyệt qua các pad từ 3 -> 2 -> 1 local healPad = healPads[i] if healPad then -- Giả lập va chạm firetouchinterest(humanoidRoot, healPad, 0) wait(0.0001) firetouchinterest(humanoidRoot, healPad, 1) wait(0.0001) end end end end -- Chạy khi nhân vật spawn hoặc respawn player.CharacterAdded:Connect(function() wait(1) -- Chờ nhân vật load xong tránh lỗi healLoop() end) -- Khởi động lần đầu if player.Character then healLoop() end